The Zurich release has arrived! Interested in new features and functionalities? Click here for more

Variables formatter for record producer in Portal

ngo
Kilo Contributor

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

find_real_file.png

Thanks

Nitish Goel

2 REPLIES 2

johansec
Tera Guru

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)


find_real_file.png



In my HTML this was nested in a bootstrap modal


find_real_file.png




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


find_real_file.png



Popup with variables


find_real_file.png




Not sure if this is what you were looking for or not, but hopefully it can help in some way.


ngo
Kilo Contributor

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