- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-01-2015 09:50 PM
Hi,
How do I get a cat item display value from sc_req_item table? I have only REQITM info on the page.
Also I need to get the values of custom fields in sc_req_item table
Any sample code available?
Thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-02-2015 12:45 AM
Hi Mary, if you're looking for the values of your catalog item variables then you can do something like
Server:
current.variables.variable_name;
Client:
g_form.getValue('variable_name');
Thanks,
Berny
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-01-2015 10:39 PM
Depends... Are you trying to get via a BR? Client Script?
Business Rule would be something like:
current.cat_item.getDisplayValue();
once way for Client Script would be
var cat = g_form.getReference('cat_item');
alert(cat.name);
A little more about the requirement of getting it would help propose a better solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-02-2015 05:20 AM
Thanks for your reply. Just to give a little bit more info -
I am using jelly script to get this req item no by querying the task_survey table.
From this req item I need to get the values of item type and couple of custom columns from sc_req_item table.
Any help on that?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-02-2015 12:45 AM
Hi Mary, if you're looking for the values of your catalog item variables then you can do something like
Server:
current.variables.variable_name;
Client:
g_form.getValue('variable_name');
Thanks,
Berny