cancel
Showing results for 
Search instead for 
Did you mean: 

Read runtime atrributes of radiobutton

Former Member
0 Kudos

Hi All,

My requirement to read the runtime attributes of the radiobutton in the web dynpro component:  /SAPSRM/WDC_DODC_SC_I_LIM.

I need to read at runtime which radiobutton amongst say 'Confirmation & Inv' or 'Invoice Only' has been selected.

The radiobuttons are declared are 'radiobutton'.

I have read the attribute by using get_attribute method but since since both radiobuttons( 'Confirmation & Inv' or 'Invoice Only' ) are binded to same context element, I am awlays getting the importing value as 'X' .

Any leads will be appreciated.

Regards,

Depp

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos
ramakrishnappa
Active Contributor
0 Kudos

Hi Deepak,

From the screen shot its clear that SelectedKey property's attribute should have either 01 or 02. Check out the value Follow_Ind atribute's value.

Regards,

Rama

Former Member
0 Kudos

I used get_attribute to read the radiobutton value selected at runtime to read attribute follow_ind and it gave the selected radiobutton value at runtime.

ramakrishnappa
Active Contributor
0 Kudos

Good to know

Answers (2)

Answers (2)

Former Member
0 Kudos

Hello,

normally the single RadioButton defines there value via Attribute "keyToSelect". Here ther value is entered, which will set to the Attribute "selectedKey". Your "X" Scenario should not happen!

Which type of radiobutton Group (byIndex, byKey) is ist?


Former Member
0 Kudos

Chris, radiobutton is of type 'RADIOBUTTON'.

Former Member
0 Kudos

Radiobutton is inside a RadiobuttonGroup. I asked for the Group?

Could you post screenshots of the Radiobutton Attributes?

Former Member
0 Kudos

The radiobutton is not within any group :

ramakrishnappa
Active Contributor
0 Kudos

Hi Deepak,

Each radio button would have KEY TO SELECT and SELECTEDKEY properties.

Check out the context attributes which are bound to those attributes.

Read the attribute of SelectedKey and check out the KEY TO SELECT to find out the radio button checked.

Regards,

Rama

Former Member
0 Kudos

Rama, I have tried the approach you mentioned, but still I am not getting the selected radiobutton at runtime.

ramakrishnappa
Active Contributor
0 Kudos

Hi Deepak,

Please share the snap shot of properties of radio buttons.

Regards,

Rama

Former Member
0 Kudos