on 08-14-2007 7:51 AM
there are 3 buttons on the screen, and each button corresponds to one Roadmap step. The roadmap and all the buttons are on one same view, the next/previous button were no used.
when we press button1, the roadmap step1 should be highlighted - changed color.
when we press button2, the roadmap step2 should be highlighted - changed color.
...
So how to design this kind roadmap?? Thanks for your kind help.
In the button event handler, you need to bind the selectedStep property of the roadmap to whichever step you want to be selected.
But, why do you want to have buttons to do this? You can do it when you click on the step itself right?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
But, why do you want to have buttons to do this? You can do it when you click on the step itself right?
--- Actually, our requirement is
1> click 'search'button - its corresponding roadmap step1 should be highlighted.
2> after search, some suitable data were selected out and displayed in one ALV container. Press one line of ALV - its corresponding roadmap step2 should be highlighted.
3> Show content of the selected ALV line in one text-field on screen - its corresponding roadmap step2 should be highlighted.
I just make the requiremnt little simple to clacify. Thanks.
Sorry, little modification:
1> click 'search'button - its corresponding roadmap step1 should be highlighted.
2> after search, some suitable data were selected out and displayed in one ALV container. Press one line of ALV - its corresponding roadmap step2 should be highlighted.
3> Show content of the selected ALV line in one text-field on screen - its corresponding roadmap step3 should be highlighted.
Here the roadmap step only be used as tag, no action was reacted when clicking on the step itself. Thanks.
Ok. Have a context attribute 'Selected_Step' of type string. Bind the selectedStep property of the roadmap control to this attribute. Depending on which step you wish to highlight, do a set_attribute of this context attribute. The highlighting will be taken care of automatically. In your case, in the doinit method, do a set_attribute( 'step1' ). Then in the event handler of the onSearch event, set attribute to step 2. And so on.
Hope this is clear.
Regards
Nithya
Thank you very much Nithya ~~ I solved this by your advice.
codes like:
DATA: road_node TYPE REF TO if_wd_context_node,
road_node_element TYPE REF TO if_wd_context_element.
road_node = wd_context->get_child_node( 'ROADMAP' ).
road_node_element = road_node->get_element( ).
road_node_element->set_attribute(
EXPORTING
name = `STEP`
value = 'STEP1 or 2,3...' ).
But I met one strange problem: on the screen, the number 1,2,3 of roadmap step can be displayed, but number 4 and 5 are missing... why this is happen?? seems very weird.
??
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
To use RoadMap you can go through this applicaiton 'WDR_TEST_EVENTS'
there is a better understanding for all the controls in the above component.
Regards
Abhimanyu L
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.