cancel
Showing results for 
Search instead for 
Did you mean: 

Select Radio Button

Former Member
0 Kudos
46

Hi All,

i had a table with radio button, when i click on a radio button , then the selected row value

thru an 'select' button Action and diplayed in an text view element.

Thanks,

raju.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Raju,

In Button Action Method, can you write like below code.

Get the Values from Table's Node and Set the Selected values to text view .

Here I have got the Sales Document values from Table UI element and Display the Selected Sales Document Number into Textview , when I press the Button .

DATA lo_nd_sales TYPE REF TO if_wd_context_node.

DATA lo_el_sales TYPE REF TO if_wd_context_element.

DATA ls_sales TYPE wd_this->element_sales.

  • navigate from <CONTEXT> to <SALES> via lead selection

lo_nd_sales = wd_context->get_child_node( name = wd_this->wdctx_sales ).

  • @TODO handle not set lead selection

IF lo_nd_sales IS INITIAL.

ENDIF.

  • get element via lead selection

lo_el_sales = lo_nd_sales->get_element( ).

  • @TODO handle not set lead selection

IF lo_el_sales IS INITIAL.

ENDIF.

  • alternative access via index

  • lo_el_sales = lo_nd_sales->get_element( index = 1 ).

  • @TODO handle non existant child

  • IF lo_el_sales IS INITIAL.

  • ENDIF.

    • Get the Selected table Record*

lo_el_sales->get_static_attributes(

IMPORTING

static_attributes = ls_sales ).

    • Set the Selected Value*

wd_context->set_attribute(

EXPORTING

name = `VBELN`

value = ls_sales-vbeln ).

Regards,

Vijay.

Edited by: Vijay.V on Jul 15, 2008 1:16 PM

abhimanyu_lagishetti7
Active Contributor
0 Kudos

can you be more specific what you want exactly?

Abhi

Former Member
0 Kudos

Hi abhi,

Basically i had a table with some data,i want to select a row value from my table.below the table i had a button. when i click on button i want the selected row value , then i need to display the selected value in a text view element.

Thanks,

raju.

abhimanyu_lagishetti7
Active Contributor
0 Kudos

Hi

on button onclick event handler

data: lr_node type ref to if_wd_context_node.

data: lr_element type ref to if_wd_context_element.

lr_node = wd_context->get_child_node( '<name of the node binded to table>' ).

lr_element = lr_node->GET_LEAD_SELECTION( ).

now call lr_element->get_attribute( ) to get the selected row values

Abhi