We're reclaiming inactive PDIs to keep them available for active builders. Learn what's changing, who's affected, and how to protect your work. Read More

Regarding the formatter of Variable Editor

bharathk1611333
Tera Contributor

Hi all,

I hope everyone is doing well.

I have created a record producer for procurement case table now I want to see all those variables in the case table, so for that early we have a Variable editor so we can get the variables from it. 

But now it is not working, the formatter and ui macro script are in active.

Can you please help me out on this?

Thanks,
Bharath

 

6 REPLIES 6

glideFather
Tera Patron

ahoy @bharathk1611333,

 

your requirement is not clear to me, could you specify:

1) what you (or who) did and where,

2) what happened

3) and what you expected to happen instead?

 

Also adding some screenshot would make it easier to udnerstand and then help youbetter


✂-----Cutting-out-the---✦AI-noise✦---All-replies-written-and-vouched-for-by-GlideFather---

Hi @glideFather ,

My requirement is to show the record producer variables on the Procurement Case table and for this we are having a Variable Editor in slush bucket which is used to show all the variables related to the table record producer, 

now when I am trying to configure the Variable editor from the form builder and form designer I am unable to find it

the formatter is active and ui macro script also active

Doctor ITOM
Tera Expert

Hi Bharath,

 

To view variables for a Record Producer on a custom or Task-extended table (like Procurement Case), you can use the OOTB Task Variable Formatter. If your UI Macro is inactive, use the com.glideapp.questionset.DefaultQuestionEditor formatter, which is natively supported for custom tables.

 

Could you please specify the tables/applications and other config you did.

Tanushree Maiti
Tera Patron

Hi @bharathk1611333 

 

If you are trying to view it in Configurable workspace/SOW then check this KB  article:

KB2199466 Variables are not visible on sc_task in SOW or any configurable workspace, shows fine on P... 

 

Resolution

- Issue was related to this custom UI Formatter name "abb_com_glideapp_servicecatalog_veditor"
- In OOB, it starts with "com_glideapp_servicecatalog_veditor" because in the backend we have a check for this if (el.getValue().startsWith("com_glideapp_servicecatalog_veditor").
- If you still want to use custom formatter, then formatter value should be added as a sufffix "com_glideapp_servicecatalog_veditor_abb" (not prefix) .
- Also after correcting the name we should again update the form layout ( remove variable editor from the layout and save and then add it back so that it updates sys_ui_section records correctly )
- We have updated it for sc_task table on the above instance and verified it is working fine

 

 

 

Please Accept the solution if it assisted you with your question & Mark this response as Helpful.
Regards
Tanushree Maiti
ServiceNow Technical Architect
LinkedIn: https://www.linkedin.com/in/tanushreemaiti