cancel
Showing results for 
Search instead for 
Did you mean: 

Radiobuttongroupbyindex

Former Member
0 Kudos

Hi,

can someone give me away how i can assing to a "RadioButtonGroupByIndex" . i defined following supply funciton:

-


METHOD fill_radio_button .

DATA:

lt_attributes TYPE TABLE OF string,

wa_attributes type String.

wa_attributes = 'Radiobutton 1'.

INSERT wa_attributes INTO TABLE lt_attributes.

wa_attributes = 'Radiobutton 2'.

INSERT wa_attributes INTO TABLE lt_attributes.

wa_attributes = 'Radiobutton 3'.

INSERT wa_attributes INTO TABLE lt_attributes.

node->bind_elements( lt_attributes ).

ENDMETHOD.

-


und as result i get following erro:

"Dynamischer Typkonflikt bei Zuweisung von Referenzen"

to the texts attribute of the ui element radiobuttongroupbyindex i assigned it a defined context attribute type string.

Thanks in advance for any help

Ouiss

Accepted Solutions (1)

Accepted Solutions (1)

former_member215843
Active Participant
0 Kudos

Hi Ouiss,

You have to use the structure created by the framework for the node.

e.g. (if node is named "my_node" and attribute = "text")

data: l_attributes type wd_this->elements_my_node,
    wa_attributes type wd_this->element_my_node.

wa_attributes-text = ...
insert wa_attributes into table lt_attributes.
...
node->bind_table( lt_attributes ). 

"faster than bind_elements

Ciao, Regina

Former Member
0 Kudos

hi regina,

thanks for your answert. even if it didn't work, it helped me to find the write solution.

As i did ( your solution )

-


data: l_attributes type wd_this->elements_my_node,

wa_attributes type wd_this->element_my_node.

wa_attributes-text = "optionname"

-


i get compiler error:

"wa_attribute" is table without a header line and therefore has no component called "text" (text is the attribute).

this error let me make:

-


l_attributes TYPE wd_this->elements_rbtngr,

wa_attributes LIKE LINE OF lt_attributes.

wa_attributes-radiobutton_texts = 'optionsname'.

.....

-


then it was fine!

thanks

Ouiss

former_member215843
Active Participant
0 Kudos

Hi Ouiss,

I am afraid you missed the difference between <b>element_my_node</b> und <b>elements_my_node</b>.

Ciao, Regina

Former Member
0 Kudos

you are right. i missed the difference

but the oversight leads me to the new solution..

thanks a lot for your help

Ouiss

Answers (0)