on 09-23-2008 7:30 AM
hai
i have one scenario that is
table column is availble like staus
when data retrive the value of status is in progress it showing in cell as red color background.
it is also reflected when onlead select on that row shows in form.
form filed also should be in same color back ground.
how to do this
Hai Eswar,
Take One Context Attribute. For Ex. it is " Color " .Right Click on it --> Select Properties. --> In the Properties, Select Type as --> com.sap.ide.webdynpro.uielementdefinitions.TableCellDesign ( You can Select this type from Dictionary Simple Type ). --> bind this Attribute to the Your required TableColoumn's cellDesign's Property.
Now you can set required color to it like below.
wdContext.currentContextElement().setColor(WDTableCellDesign.BADVALUE_DARK); ( For Red Color)
wdContext.currentContextElement().setColor(WDTableCellDesign.STANDARD); ( For Standard Color)
Refer this Blog for other color's
With Regards,
Roop Kumar.
Edited by: Roop Kumar Annavarapu on Sep 23, 2008 12:27 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Create one value attribute under your table node like colourow of type com.sap.ide.webdynpro.uielementdefinitions.TableCellDesign
and bind this value attribute to the column property Design.
And write a code in wdDointi()
Iterator j = WDTableCellDesign.iterateValues();
{
for(int i=0;i<=tabledata.length-1;i++)
WDTableCellDesign design = (WDTableCellDesign)j.next();
tab.setColumncelldesign(design);
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
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.