Load data from decision table to Catalog Item form
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 hours ago
I have created a decision table where I have a unique input condition for each row. Now I'm looking for a way to list my records from the decision table into a Catalog Item.
I have created a new variable as a type = reference. The problem is that I can't select my decision table in my catalog item variable.
To me it sounds like you shouldn't be able to reference decision tables from a Catalog Item variable.
Is this by design or am I doing something wrong?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
an hour ago
Hi @Henrik Jutterst ,
A Decision Table is composed of multiple underlying tables. Even if you are able to reference the Decision Table itself, the actual decision rows are stored in the Decision Question (sys_decision_question) table, while the inputs are stored separately.
Instead, I would suggest copying the Decision Table code snippet and implementing the logic in a GlideAjax Script Include. You can then invoke the Script Include from the Client Script and use addOption() to dynamically populate the choices on the form load.
If you find this information useful, please mark it as Helpful and Accept the Solution.
Regards,
Harish