Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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 ...

0 votes

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. 



2 answers

Permanent link
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".

0 votes

Comments

 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?

The client side attribute customization is done in JavaScript. You can find plenty of samples on jazz.net.


Permanent link
Do this workshop. Especially Lab 5: Process Enactment Workshop for the Rational solution for Collaborative Lifecycle Management

0 votes

Your answer

Register or log in to post 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 6,126

Question asked: May 07 '15, 7:44 p.m.

Question was seen: 2,997 times

Last updated: May 11 '15, 2:58 a.m.

Confirmation Cancel Confirm