on 11-10-2009 5:39 AM
hi
i have a req to make a field as of diff color or shd have a border to highlight it from the other input fields.
pls tell what shd be the property of the attr i shd attach & how to set the value for this particular field.
pls send me the sample code.
i was trying to work with WDUI_CELL_BG_DESIGN,but do know what value shd be pass to set the attr.
regds
Hi,
Is this the separate Input field....
One thing you do, if you have 4 input fields, out of which 1 input fieild you want to have the color then...
Create 2 transparanet containers(TCO), 1st input( that you want to change the color) and rest inside the other TCO.
Now bind the property for backgournd to the context attribute(WDUI_CELL_BG_DESIGN) to the 1st TCO.
Based on the considition you can pass 2(fill1) or border value...
Check the domain values.... which you want to pass...
Hope this is clear....
Regards,
Lekha.
Edited by: Lekha on Nov 10, 2009 11:16 AM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
The domain WDUI_CELL_BG_DESIGN consits of values :
00 transparent
01 fill1
02 fill2
03 fill3
04 plain
05 Header
06 border
so after creating an attribute of type WDUI_CELL_BG_DESIGN and binding it to the cell design property you can set the values for the attribute.
DATA lo_nd_resume_info TYPE REF TO if_wd_context_node.
DATA lo_el_resume_info TYPE REF TO if_wd_context_element.
DATA ls_resume_info TYPE wd_this->element_resume_info.
DATA lv_backgrnd LIKE ls_resume_info-backgrnd.
navigate from <CONTEXT> to <RESUME_INFO> via lead selection
lo_nd_resume_info = wd_context->get_child_node( name = wd_this->wdctx_resume_info ).
*
get element via lead selection
lo_el_resume_info = lo_nd_resume_info->get_element( ).
*
set the attribute
lo_el_resume_info->set_attribute(
EXPORTING
name = `backgrnd`
value = '01' ).you can change the value accordingly.
Priya
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Use a TC with Matrix Layout.
Now for each field you will have property , you have Layout Data. There you have CellBackground Design property to change the background of particular fields.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
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.