Question

How to add Choices to Radio button property dynamically through activity?

Hello,

I have a requirement that to add choices to radio button property through activity from pagelist. let us assume I have a radio button property like option and I need to copy the options present in the individual pages of page list. How can i do that?

Example

PageList(1).option=A

PageList(1).option=B

PageList(1).option=C

PageList(1).option=D

and Option radio

Choices : A

B

C

D

Correct Answer
September 7, 2019 - 1:49pm

Properties are an instance of ‘RULE-OBJ-PROPERTY’ class with keys as ‘pyClassName’ and ‘pyPropertyName’. You can open the instance of particular property which you want to modify and append the options you want to add based upon your requirement to respective properties mentioned below.

  1. pyTableList(of type value list) if you’re using Local List
  2. pyPromptTableList(page list of class ‘Embed-PropertyPromtValues’) if you’re using prompt list. You will have to update two properties in this case.
    1. pyLocalizedValue(prompted to user)
    2. pyStandardValue(stored in clipboard)

Let me know if you face issues.

Thanks,

Pardeep

Comments

Keep up to date on this post and subscribe to comments

Pega
September 7, 2019 - 1:49pm

Properties are an instance of ‘RULE-OBJ-PROPERTY’ class with keys as ‘pyClassName’ and ‘pyPropertyName’. You can open the instance of particular property which you want to modify and append the options you want to add based upon your requirement to respective properties mentioned below.

  1. pyTableList(of type value list) if you’re using Local List
  2. pyPromptTableList(page list of class ‘Embed-PropertyPromtValues’) if you’re using prompt list. You will have to update two properties in this case.
    1. pyLocalizedValue(prompted to user)
    2. pyStandardValue(stored in clipboard)

Let me know if you face issues.

Thanks,

Pardeep

September 8, 2019 - 12:53am
Response to sharp3

Thanks, Pradeep.

It is working fine.