How to include variables under My Request widget?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-06-2017 08:11 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-06-2017 02:26 PM
Hi JItendra,
Requests can have multiple Request Items.
Request Items might have multiple variables.
So, it may not be a good idea to populate then on My Requests list.
Maybe you could elaborate with some examples on why you want to do this so we can suggest something.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-06-2017 04:58 PM
Hi Jitendra,
As Ravindran mention, this is not a good option to add variables in Request list because one Request can have multiple RITMs but still if you are looking for solution related to this
here is an example where you can add variable names in data.variables = ['']; array in attached widget at line#9 (server side).
Please find attached widget XML. You can import this xml in widget (sp_widget_list) table and include in any page to see result.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-06-2017 07:02 PM
Hi Chirag,
Thanks for replying! I don't want to show up every variable. I just want to display one variable lets say it is short_notes which give brief detail about request. Is that possible if yes how?
Regards,
Jitendra Singh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-06-2017 11:02 PM
Just to clarify - Variables are associated with RITM (Requested Item) not with My Request.
As I mention, you can add variable name in array and the script will print all variables for example, if you want to show "short_notes" variable then add "short_notes" to data.variables = array like data.variables = ;