Quantcast
Viewing all articles
Browse latest Browse all 12134

dynamic input to be chosen from drop down

Hello Everybody,

 

I have an application where a random value needs to be selected for "Person Responsible" from a drop down. The selected value has 2 values in the script which are related to each other like below:

 

"Name=prop_12345_1356", "Value=333333", ENDITEM, //<called Responsible_ID>
"Name=objnameprop_12345_1356", "Value=XDEGH - Smith, Will", ENDITEM, //<called Responsible_Name>

 

I have captured the list of values using web_reg_save_param() with ORD = ALL and the results are as below:

 

"CorrelatedValue_1 = 111111"

"CorrelatedValue_2 = AAAAAA - LastName1,  FirsName1"

"CorrelatedValue_3 = "],["BBBBBB - LastName2, FirstName2"

"CorrelatedValue_4 = 222222"

"CorrelatedValue_5 = BBBBBB - LastName2, FirstName2"

"CorrelatedValue_6 = "],["CCCCCC - LastName3, FirstName3"

.

.

.

.

.

"CorrelatedValue_348 ="],["ZZZZZZ - LastNameX, FirstNameX"

"CorrelatedValue_349 = 999999

"CorrelatedValue_350 =ZZZZZZ - LastNameX, FirstNameX"

 

I need to randomly select a Responsible_ID and input the corresponding Responsible_Name

e.g. if ordinance of ID is 1, ordinance of corresponding Name is 2

If ordinance of ID is 4, ordinance of corresponding Name is 5

If ordinance of ID is 7, ordinance of corresponding Name is 8

If ordinance of ID is 10, ordinance of corresponding Name is 11

 

Is there any way I can implement this using correlation?

 

P.S. Parameterizing the ID value and Name(with use same line as ID parameter setting) works fine but I was looking for a more dynamic solution since the values in drop down changes often.

 

 


Viewing all articles
Browse latest Browse all 12134

Trending Articles