on 07-14-2006 3:23 AM
Hello community,
Does anybody know how to set a context attribute that mapped to an inputField?
node = wd_context->get_child_node( 'NodeName' ).
node->bind_elements( new_items = ANY_TABLE ).
It seems to be very inconvenient to pass any table (ANY_TABLE). Why can't I just pass a string to this method?
Thanks.
There is a quick way to set values into attributes. Use the ABAP Web Dynpro Code Wizard for Read Context. It will generate all the code to get you down to the attribute that you choose in the graphical dialog. Then just change the generated code from a GET_ATTRIBUTE to a SET_ATTRIBUTE.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Do you have general understanding about context structure and data binding?
You are binding attribute to the particular property, not a node (with some exceptions like dataSource for table). But to set attribute you need at least one node element. There is always one - root. You can define cardinality of node 1..x and in this case you don`t need to create or bind your node. You can immediately set attribute value.
Best regards, Maksim Rashchynski.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.