on 06-05-2009 2:08 PM
Hi,
In my application use will enter some set of Cost Centers in a table and submits request.
In return i will get a list of invalid cost centers which i need to display in a table with input field
In that table all cost centers will displayed, but invalid cost centers should be highlighted or background color should some other color. like red or yellow.
Is it possible using java code to change a input field color.
Please help me.
Thanks
Hi,
If you want user to edit the invalid data in input field then there is no possiblity.
Or else you can use the textview and you can change the sematicColour property to change the colour.
Regards,
Charan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
declare a error message in message pool and declare a method say "checkCostCenters " and in this method, u can check whether it is a valid cost center .. if it is invalid cost center , then throw the erro message using the below code :
wdComponentAPI.getMessageManager().reportContextAttributeMessage(
inputfieldattibutePointer, IMessageProgramPlanComp.ur error message,
new Object[] );
for getting pointer and label use the below code:
IWDAttributePointer inputfieldPointer = URNODEELEMENTElement
.getAttributePointer(URNODEELEMENT.ATTRIBUTENAME);
String inputfieldLabel = wdContext.nodeURVALUENODE.getNodeInfo()
.getAttribute(URNODELEMENT.ATTRIBUTE).getSimpleType()
.getFieldLabel();
hope it helps..
Thanks and Regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
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.