on 01-29-2008 6:54 AM
hi,
I want to do validation for dropdownbox. What I have done:
public void checkSelected(java.string.fieldName)
{
Print Message from Message Pool.
}
onActionsubmit()
{
checkSelected(IPrivateView.IMaritalStatusElement.Value)
checkSelected(IPrivateView.IBloodGroupElement.Value)
}
How can I pass node dynamically so that this single method"checkSelected" works for two DropDownbox?
Please help me...
Regards
Manish
Hi,
You can't. There are 2 dropdownboxes and both are mapped with two different attributes, so you need to make a call to checkSelected(java.string.fieldName)
two times.
thanks & regards,
Manoj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi manish,
take the refference of ur DropDownByIndex in wdModifyView. at runtime map an action event using mappingOfAction method. take 2 different event id's for different ddBoxes. pass that event id at runtime to event handler.
u can check dynamic binding of events ,in case u want any calrification
regards
Sumit
Hi Manish, i explained how to do that here
[Dynamic validation regardless UI element.|;
Check my post at the bottom.
Regards
Julio César Herrera
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
use as follows
public void validate(IWDNode node, String attrName)
{
// To access a value
node.getCurrentElement().getAttributeValue(attrName);
//To get attrinfo
node.getNodeInfo().getAttribute(attrName);
}
invoke the above function
validate(<YourNode>,<Your Attribute part of 1param node>);
Regards
Ayyapparaj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
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.