Using script based attribute customization in RTC
What is the syntax for this scenario
IF RestrictedAccess field is "A-Department1"
THEN
set Customer field value = "A" and Department field value = "Department1"
Or the following
IF Customer field value = "A" and Department field value = "Department1"
THEN
RestrictedAccess field drop down options are narrowed down to ...
|
2 answers
For the first scenario, you will need to set "RestrictedAccess" as the dependency of both "Customer" and "Department", add a "Calculated Value" script to both "Customer" and "Department". In the script, you will read the value of "RestrictedAccess", and if it satisfies certain condition, set the value of "Customer" or "Department" accordingly.
The second scenario is similar, you just swap the position of "RestrictedAccess" and ["Customer" and "Department"]. And you may need to use a "Value Sets" script instead as you talked about a "drop down".
Comments
Uma venkata Lekkala
commented May 08 '15, 12:10 p.m.
Yeah, but I need the syntax. I coded in VB and pearl a lotin CQ hook customizations. I am at ground zero in RTC coding though I know the logical conditions.
Get value from Restrictedacces field and if it "A-Electrical" then set Customer = "A" and Engineering Dept="Electrical" but is there a code example for the above scenario to work?
Donald Nong
commented May 11 '15, 2:45 a.m.
The client side attribute customization is done in JavaScript. You can find plenty of samples on jazz.net. |
Ralph Schoon (63.5k●3●36●46)
| answered May 11 '15, 2:58 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
Do this workshop. Especially Lab 5: Process Enactment Workshop for the Rational solution for Collaborative Lifecycle Management
|
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.
Comments
Do you want to achieve both at the same time? It appears that the operation is mirrored, I am afraid that it may cause an infinite loop in your code.
No either the first three OR the last three lines in my post.