cancel
Showing results for 
Search instead for 
Did you mean: 

single field color/border set property info??

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Answers (2)

Answers (2)

Chaitanya_Priya
Product and Topic Expert
Product and Topic Expert
0 Kudos

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

Former Member
0 Kudos

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.