In RTC, Inside a validator function, how can I access other element value?
I am running a validator function, receiving 3 parameters (attribute, workitem, configuration)
I want to check other item value, but, from Developer Tool, i see that this other element has no id, and no name, so i can not get it through document.getElementById or document.getElementsByName.
Is there a way to get the sibling element of the workitem received in function?
|
One answer
Ralph Schoon (63.5k●3●36●46)
| answered Apr 19 '21, 8:14 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER edited Apr 19 '21, 9:43 a.m.
Please check https://jazz.net/library/article/1003 and the wiki: https://jazz.net/wiki/bin/view/Main/AttributeCustomization
Also check https://rsjazz.wordpress.com/2016/07/15/rtc-process-customization-what-you-can-and-cannot-do/
Also consider to perform https://jazz.net/library/article/1093 or at least look at the last two labs.
In the provided supported Java Script API you have only access to the data of the work item the customization runs in. E.g. you can access the attributes of the work item using workitem.getValue("attribute ID").
|
Your answer
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.