on 05-30-2011 6:42 AM
Dear All,
I have a requirement in WDA to display inputfield with some constant initially and allow
the user to change that value according to his wish.Currently I am using UI Element
InputField for this,but I am not able to show the constant initially.
How can I achieve this pls suggest.
Thanks,
Reddy.
Input Field must be bound to a context attribute.
you can set the value of this context attribute in the init method and the value that you pass there will come in the input field
initally.
you can write the code suggested in the above post
or you can put some default value in the properties of the context attribute.
go to the context tab. select you attribute and in the properties you will have one property called default value.
fill your constant value there.
thanks
sarbjeet singh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi sudhir,
To display with default values, you need to write your code in wddointi method.
Check this code..
* navigate from <CONTEXT> to <INPUT> via lead selection
lo_nd_input = wd_context->get_child_node( name = wd_this->wdctx_input ).
* get element via lead selection
lo_el_input = lo_nd_input->get_element( ).
lv_ship_point = '1001'.
* set single attribute
lo_el_input->set_attribute(
name = `SHIP_POINT`
value = lv_ship_point ). // Now ship_point have initial value 1001.
Cheers,
Kris.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
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.