on 04-14-2009 1:51 PM
Hi Friends,
I am new to WDA , so i have a basic query,
I have 2 view in my component - First and Second.
In First View, I enter some text using input fields.When i submit , same text is displayed on Second View.
When i click BACK on Second View by firing outbound plug , First View reappears.
Problem is - Same Text is displayed in Input field .I want input field to be clear for better user clarity.
Pls suggest how to clear it.
Hi,
Use the method SET_ATTRIBUTE_NULL of if_wd_context_node to clear that attribute to which the Input field is bound in the respective handlers Or
You can use the SET_ATTRIBUTE method of the context node and pass the initial value ie default value
space in case of character types etc.
Regards,
Lekha.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
just bind your input field to an attribute and set that attribute as null and thus your text in input field will become null.
Regards,
Anand
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Lalit,
In the ONACTIONBACK method use the following code:
DATA lo_el_context TYPE REF TO if_wd_context_element.
DATA ls_context TYPE wd_this->element_context.
* get element via lead selection
lo_el_context = wd_context->get_element( ).
** get single attribute
lo_el_context->set_attribute_null(
EXPORTING
name = `ABC` "ABC is the name of attribute that is binded to the input field.
).
I hope it helps.
Regards
Arjun
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Lalit,
Go to the properties tab of first view and change property LifeTime from framework controlled to when visible.
Surely Your problem will be resolved.
Regards,
Rohit
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.