on 11-06-2009 1:26 PM
Dear experts,
I have a roadmap with 4 steps for my webdynpro application. At the step 4, I would like to set the "Next" button inactive.
How could I get it?
Many thanks,
Meer
please follow these stepss
just create the onnavigate method
every time call the next and previous buttons navigate method.
next and previous buttons take one Boolean value
give the button type Next button pass the X field
give step selected take one variable like string like Step
*OnNavigate method*
Write code like this
Edited by: anideepu on Nov 13, 2009 10:42 AM
OnNavigate method
Write code like this
DATA lo_nd_road_map TYPE REF TO if_wd_context_node.
DATA lo_el_road_map TYPE REF TO if_wd_context_element.
DATA ls_road_map TYPE wd_this->element_road_map.
DATA item_step TYPE wd_this->element_road_map-step.
DATA LV_STEP TYPE wd_this->element_road_map-step.
DATA lo_nd_ui TYPE REF TO if_wd_context_node.
DATA lo_el_ui TYPE REF TO if_wd_context_element.
DATA ls_ui TYPE wd_this->element_ui.
navigate from <CONTEXT> to <ROAD_MAP> via lead selection
lo_nd_road_map = wd_context->get_child_node( name = wd_this->wdctx_road_map ).
get element via lead selection
lo_el_road_map = lo_nd_road_map->get_element( ).
Navigate from <CONTEXT> to <UI> via lead selection
lo_nd_ui = wd_context->get_child_node( name = wd_this->wdctx_ui ).
get element via lead selection
lo_el_ui = lo_nd_ui->get_element( ).
CASE target_step.
WHEN 'STEP_1'.
*Display previous button.
wd_this->fire_to_first_plg( ).
lv_step = 'STEP_1'.
Edited by: anideepu on Nov 13, 2009 10:42 AM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI
Ideal way would be to create last View configured in your GAF roadmap to be as Confirmation screen in FPM configuration.
When processing reaches confirmation screen Next button is automatically disabled.
You can create Confirmation Screen in FPM - GAF configuration.
Hope this helps...
Cheers...
Manas Dua
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi Meer ,
u first read the context attribute which is binded to ur step in roadmap
DATA lo_el_context TYPE REF TO if_wd_context_element.
DATA ls_context TYPE wd_this->element_context.
DATA lv_selected_step TYPE wd_this->element_context-selected_step.
* get element via lead selection
lo_el_context = wd_context->get_element( ).
* get single attribute
lo_el_context->get_attribute(
EXPORTING name = `SELECTED_STEP`
IMPORTING value = lv_selected_step ).
apply CASE and correspondingly disable the Next button , create a attribute of type WDY_BOOLEAN
and set it to 'ABAP_FALSE' using set_Attribute method
CASE lv_selected_step.
WHEN 'FINISH'.
wd_this->set_step( step = 'FINISH' ).
wd_this->enable_next_button( enable = '' ).
wd_this->enable_prev_button( enable = 'X' ).
ENDCASE.
I hope it shud help
rgds,
amit
Hi,
I guess you might have bound some attribute to the selected step and also some attirbute to the ENABLED property of that step of the roadmap Ui element...
Before going to last view, set this attribute to last step and also set the enabled property of this step...
Hope this is clear.
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,
For which next button are you refering..
generally we create the roadmap and insert the no.of roadmap steps needed.
please let me know which NEXT BUTTON are you refering?
If you want to disable the road map step.
Create an attribute of type wdy_boolean in the context and bind it to the road map step enabled property.
you can make it enable or disable my making ABAP_TRUE OR ABAP_FALSE.
lo_el_resume_info->Set_attribute(
EXPORTING
name = `USERID`
value = ABAP_TRUE )."ENABLE
lo_el_resume_info->Set_attribute(
EXPORTING
name = `USERID`
value = ABAP_FALSE )."DISABLE
Priya
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
82 | |
10 | |
10 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.