on 06-10-2010 5:16 AM
Hi ,,
In Login screen i have id and pass and button and caption also.But the caption will be disable...If the login fails it back to Login screen,at that time only the caption will be enable.How can i do this any sample related link is helpful????
Thanks in advance.....
To do this create a context attribute of type WDUI_VISIBILITY and Bind it with the Visible Property of the UI element. Then set the visibleity on the basis of your requirement.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
As I mentioned in earlier Post that you need to declare a context attribute say VISIBLE of type WDUI_VISIBILITY. Then bind this with your UI Property and use the below code to get/set the VISIBLE attribute:
DATA lo_nd_visible TYPE REF TO if_wd_context_node.
DATA lo_el_visible TYPE REF TO if_wd_context_element.
lo_nd_visible = wd_context->get_child_node( name = wd_this->wdctx_visible ).
lo_el_visible = lo_nd_visible->get_element( ).
lo_el_visible->set_attribute(
name = `VISIBLE`
value = abap_true).
Hope it works for You.
Hi,
Caption has a property called "Enabled". Bind this propert to some attribute in the context of type wdy_boolean.
Initially i would be false so ur Caption will be disabled and than according to ur need
set this flag true or false to enable and disable the caption..
DATA lo_nd_node1 TYPE REF TO if_wd_context_node.
DATA lo_el_node1 TYPE REF TO if_wd_context_element.
lo_nd_node1 = wd_context->get_child_node( name = wd_this->wdctx_node1 ).
lo_el_node1 = lo_nd_node1->get_element( ).
IF lv_flag = abap_true.
lo_el_node1->set_attribute(
name = `FLAG`
value = abap_true).
ELSE.
lo_el_node1->set_attribute(
name = `FLAG`
value = abap_false).
ENDIF.
where
node1: is the node in the context.
Flag : is the attribute isnide the node of type WDY_BOOLEAN.
lv_flag : is the indicator when u have to ea=nable or disable the caption.
Hope this will help you.
Thanks & Regards,
Arvind
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
In context of that view create one attribute(Type Char1) , and bind it to the visible property of the caption (Bind directly to the selected attribute)
If login fails set the attribute 'X' else blank.so caption will be visible only if login fails. I hope it solves your problem.
With Regards,
Kiruba
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
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.