Variables formatter for record producer in Portal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-12-2017 08:12 AM
Hi Folks,
It has been asked on the community earlier also but got no reply
Is it possible to generate the formatter in portal since it is a macro so i am sure that i have to create a custom code so has anyone come across this and can share a sample to get the variables data just like in formatter on the portal
Thanks
Nitish Goel
- Labels:
-
Service Portal Development
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-12-2017 10:58 AM
I do not know if this is what you are looking for but once I had to show all of the variables associated with a requested item and did it by doing using the OOB widget "sp-variable-editor".
In my client script I used (RT because I made a clone of the original with some minor changes)
In my HTML this was nested in a bootstrap modal
On-click of this button I update the parameters sent to the variable editor widget and display it in a pop up below are images of my use
Popup with variables
Not sure if this is what you were looking for or not, but hopefully it can help in some way.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-12-2017 11:34 AM
Hi Corey
Thanks for your response!
I am new to portal so i am having some trouble
please clarify as you are using this for catalog and i can see the table used in the code many times is sc_cart_item but for my case it should be question_answer
but i don't think i can edit this widget if there is a lot to be modified , else i will have to create a unordered list of the variables with their values in a custom widget but that wont look good
if you can explain what needs to be edited as i will be passing the sys_id of the current record through a widget and will be calling this widget
it is not showing up anything if i pass my current table which is sn_customerservice_case or question_answer and sys_id of the related record in the URL
Thanks
NItish Goel