on 10-24-2013 11:01 AM
Dear
i need to make one checkbox when i checked it open new small page or session have 2 fields first hard code second field value ( main work center )
when i write main work center i need to update this value on iw32 .
please Answer me
Thanks
Hi Eman,
This is a very wide-open question so it's difficult to provide an answer. You may want to check out these tutorials for getting started with Web Dynpro ABAP...
You may also find the tutorial series Introduction to Web Dynpro ABAP by Thomas Jung to be helpful...
And for demonstration of using popup-windows...
Cheers,
Amy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Eman,
The InputField UI element has a boolean property called readOnly. Bind this property to a context attribute of type WDY_BOOLEAN. The Checkbox UI element has an event called onToggle. Create an event handler for this onToggle event, and in the event handler code, set the value of the WDY_BOOLEAN context attribute to true or false. This will toggle the InputField to read-only or editable depending on the value of the bound WDY_BOOLEAN context attribute.
Cheers,
Amy
Dear Amy
this is screen shot for my web dynpro please check and till me .
method ONACTIONGROUNDCALLCHECKBOX .
DATA lo_nd_ground_calls TYPE REF TO if_wd_context_node.
DATA lo_el_ground_calls TYPE REF TO if_wd_context_element.
DATA ls_ground_calls TYPE wd_this->element_ground_calls.
DATA lv_checkbox LIKE ls_ground_calls-checkbox.
DATA lv_textview LIKE ls_ground_calls-textview.
DATA lv_gewrk LIKE ls_ground_calls-gewrk.
DATA lo_el_context TYPE REF TO if_wd_context_element.
DATA ls_context TYPE wd_this->element_context.
DATA lv_enabling LIKE ls_context-enabling.
lo_el_context = wd_context->get_element( ).
* lo_el_context->get_attribute( EXPORTING name = `ENABLING` IMPORTING value = lv_enabling ).
lo_nd_ground_calls = wd_context->get_child_node( name = wd_this->wdctx_ground_calls ).
lo_el_ground_calls = lo_nd_ground_calls->get_element( ).
lo_el_ground_calls->get_attribute( EXPORTING name = `GEWRK` IMPORTING value = lv_gewrk ).
lo_el_ground_calls->get_attribute( EXPORTING name = `CHECKBOX` IMPORTING value = lv_checkbox ).
lo_el_ground_calls->set_attribute( name = `TEXTVIEW` value = lv_textview ).
IF lv_checkbox = 'X'.
lo_el_ground_calls->set_attribute( name = `TEXTVIEW` value = ' مركز الخدمة المعتمد ' ).
lo_el_ground_calls->set_attribute( name = `ENABLING` value = 'X' ).
ELSE.
lo_el_ground_calls->set_attribute( name = `ENABLING` value = '' ).
lo_el_ground_calls->set_attribute( name = `TEXTVIEW` value = '' ).
ENDIF.
endmethod.
my code but this not working
i need if i checked for كولات أرضيه open 2 fields : first hard code name (main work center) second editable filed (work center) .
Thanks waiting for ur answer Amy.
Hi,
The dump is because of the attribute "ENABLING" is not inside the node "GROUND_CALLS".
The code written below results in dump.
lo_el_ground_calls->set_attribute( name = `ENABLING` value = 'X' ).
Solution1:
1. Move the attribute "ENABLING" inside the node "GROUND_CALLS".
2. Then bind the attribute to ENABLED property
Solution 2:
1. Change the above line of code as below
wd_context->set_attribute( name = `ENABLING` value = 'X' ).
method ONACTIONGROUNDCALLCHECKBOX .
DATA lo_nd_ground_calls TYPE REF TO if_wd_context_node.
DATA lo_el_ground_calls TYPE REF TO if_wd_context_element.
DATA ls_ground_calls TYPE wd_this->element_ground_calls.
DATA lv_checkbox LIKE ls_ground_calls-checkbox.
DATA lv_textview LIKE ls_ground_calls-textview.
DATA lv_gewrk LIKE ls_ground_calls-gewrk.
DATA lo_el_context TYPE REF TO if_wd_context_element.
DATA ls_context TYPE wd_this->element_context.
DATA lv_enabling LIKE ls_context-enabling.
lo_el_context = wd_context->get_element( ).
lo_nd_ground_calls = wd_context->get_child_node( name = wd_this->wdctx_ground_calls ).
lo_el_ground_calls = lo_nd_ground_calls->get_element( ).
lo_el_ground_calls->get_attribute( EXPORTING name = `GEWRK` IMPORTING value = lv_gewrk ).
lo_el_ground_calls->get_attribute( EXPORTING name = `CHECKBOX` IMPORTING value = lv_checkbox ).
lo_el_ground_calls->set_attribute( name = `TEXTVIEW` value = lv_textview ).
IF lv_checkbox = 'X'.
lo_el_ground_calls->set_attribute( name = `TEXTVIEW` value = ' مركز الخدمة المعتمد ' ).
wd_context->set_attribute( name = `ENABLING` value = 'X' ).
ELSE.
wd_context->set_attribute( name = `ENABLING` value = '' ).
lo_el_ground_calls->set_attribute( name = `TEXTVIEW` value = '' ).
ENDIF.
please tell me what can i do ASAP .
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
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.