on 04-30-2007 2:04 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
User | Count |
---|---|
82 | |
10 | |
10 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.