on 10-19-2011 10:14 AM
Hi.
I have a viewcontainerUIelement inside a group in my screen. I have put a WDR_SELECT_OPTIONS inside, however it jumps out of the group and places it self above, however the buttons of the select_options are placed inside the group. I think it is easier to understand from a screenshot:
[http://imageshack.us/f/190/wda2.png/|http://imageshack.us/f/190/wda2.png/]
So two questions:
1. How do I force the select-options input field to be inside the group?
2. How do I disable the standard-buttons for the select-options?
Thanks, Jesper.
Thanks for the replies. I have hidden the buttons so one thing has been corrected.
I think the other problem may have to do with the pointer to the select-options:
get a pointer to the interface controller of the select options component
wd_this->m_wd_select_options = wd_this->wd_cpifc_select_options( ).
init the select screen
wd_this->m_handler = wd_this->m_action_select_options->init_selection_screen( ).
I think that wd_this->m_wd_select_options points at the first ViewContainer, so how can I get it to point to the second? I cannot see any parameters?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
OK I guess one way is to set i_description to something other than nothing or blank space - i.e. '.' and then it only writes that. Not too beautiful, so another solution would be greatly appreciated.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
OK one more question, I don't think it qualifies for it's own thread. I could not find the answer in the guide for selection fields.
My problem is, that there is text in front of my selection field, is there any way I can prevent this? I add the field like this:
lt_range_table = wd_this->m_action_handler->create_range_table(
i_typename = 'ZFIE_UCOMM' ).
wd_this->m_action_handler->add_selection_field(
i_id = 'UCOMM'
it_result = lt_range_table
i_read_only = read_only
i_no_intervals = abap_true
i_is_auto_description = abap_false ").
i_description = '' ).
The "i_is_auto_description" takes away the first part of the text, but not all of it. i_description was a test which did not work.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you very much, that was exactly what I was doing wrong!
Being new to WDA these concepts can be a bit confusing, but when it is possible to get help like this so quick, I cannot complain
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Jesper,
First create group and place your VC in it. you wil get all your selection screen within group.
To invisible standard buttons follow as suggested..
cheers,
Kris.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
looking at snap, there are 2 different VCU (ViewContainerUI Element). all selection screen fields and associated objects are part of VCU in which it is embedded.
regarding hiding buttons, refer link http://wiki.sdn.sap.com/wiki/display/Snippets/WebDynproABAP-Complexselect-optionscomponent+usages.
Below is the code for it.
Hide the standard select-options components.
wd_this->m_helper->set_global_options(
i_display_btn_cancel = abap_false
i_display_btn_check = abap_false
i_display_btn_reset = abap_false ).
Thanks,
Chandra
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
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.