Skip to Content
0
Former Member
Apr 16, 2007 at 06:46 PM

Validation for DropdownbyIndex

37 Views

Hi All,

In my view I have some InputFields and DropdownbyIndex UI elements.

I binded Value Atrributes for InputFields and Value Node for DropdownbyIndex.

While doing validation for these elements :

For <b>InputFields(Value Atrributes):</b>

IWDAttributeInfo attributeInfo=this.wdContext.getNodeInfo().getAttribute("name");

messageManager.reportContextAttributeMessage(this.wdContext.currentContextElement(),attributeInfo,IMessageSomeComp.MISSING_NAME,
new Object[] { "Name" }, false);

For <b>DropdownByIndex(Value Node):</b>


IWDAttributeInfo attributeInfo1=this.wdContext.nodeSample().getNodeInfo().getAttribute("value");

messageManager.reportContextAttributeMessage(this.wdContext.currentSampleElement()attributeInfo1,IMessageSomeComp.MISSING_NAME,
new Object[] { "Name" }, false);

If I execute this both are working fine and I am getting a Red Box around inputfield(Name). But for DropdownbyIndex it is not like that. There is no Red Box.

why it is like this and how can I solve this. Please give me some good solution.

Thanks a lot in advance.

Joe