1. marco gaspar
  2. PowerBuilder
  3. Wednesday, 4 October 2023 19:31 PM UTC

Good afternoon.
How do I change the RadioButton properties in a DataWindow at run time.

Grateful.

marco gaspar Accepted Answer Pending Moderation
  1. Thursday, 5 October 2023 11:36 AM UTC
  2. PowerBuilder
  3. # 1

Hi Chris,

I'm doing it like this:
dw_pessoa.Modify("richteste.Values='Test T/Concluido C")
But I can't set the values.

Grateful.

Comment
  1. René Ullrich
  2. Thursday, 5 October 2023 12:11 PM UTC
You have to separate display value and actual value by a tabulator:

dw_pessoa.Modify("richteste.Values='Test~tT/Concluido~tC")
  1. Helpful 1
  1. Chris Pollach @Appeon
  2. Thursday, 5 October 2023 12:32 PM UTC
Correct! ;-)
  1. Helpful
  1. marco gaspar
  2. Thursday, 5 October 2023 12:35 PM UTC
It worked perfectly, thanks.
  1. Helpful
There are no comments made yet.
marco gaspar Accepted Answer Pending Moderation
  1. Wednesday, 4 October 2023 20:27 PM UTC
  2. PowerBuilder
  3. # 2

Hi Chris,

I would like to change the Displey value, for example:
dw_pessoa.object.radiobuttons.line[1].DisplayValue = 'My'

Grateful.

Comment
  1. Chris Pollach @Appeon
  2. Wednesday, 4 October 2023 20:37 PM UTC
That would be the display "values" ...

<DW Control Name>.Modify("<Columnname>.Values='<displayval actualval/displayval actualval/ (i.e., red 1/white 2/>'")

HTH
  1. Helpful
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Wednesday, 4 October 2023 20:21 PM UTC
  2. PowerBuilder
  3. # 3

Hi Marco;

  RB's in a DWO are not a normal control. Instead, they are a column where the "Edit Style" is set to be a RB (as one example). So to modify these at runtime, you would use the Modify() command. For example ...

<DW Control Name>.Modify ("<Columnname>.RadioButtons.3D=<Yes or No>")     // Change RB's 3D look & Feel

HTH

Regards ... Chris

TIP: The DW Syntax Utility can be your friend.   ;-)

Comment
  1. marco gaspar
  2. Wednesday, 4 October 2023 20:27 PM UTC
Hi Chris,



I would like to change the Displey value, for example:

dw_pessoa.object.radiobuttons.line[1].DisplayValue = 'My'



Grateful.
  1. Helpful
There are no comments made yet.
John Fauss Accepted Answer Pending Moderation
  1. Wednesday, 4 October 2023 19:42 PM UTC
  2. PowerBuilder
  3. # 4

Hi, Marco -

Look in PB Help at the topic named "RadioButtons.property (DataWindow object)".

Best regards, John

Comment
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.