Skip to Content
0
Former Member
Nov 02, 2005 at 12:37 PM

EVS Validation

44 Views

Hi, I'm using EVS for one of my input fields in my project.

And I've to display the text onSelect and onEnter for corresponding key value of EVS values.which is working fine.

But when enter any value manually then onEnter it should ignore the case of the letters and should display the corresponding text for the entered key in InputFeild for that I'm converting the case of the context variable in the inputfield.

and I used toUpperCase and equalsIngnoreCase both but when I run the code it was giving error the specified key value doesn't exist but when I cleck on EVS Selector it filters out the name and diplays only the name which I entered in the Input field.

I want the same thing when I do oneneter It shoud display the corresponding text for the key which I entered in Inputfield.

Code which I'm using for the same

ISimpleTypeModifiable cond1Type =

wdThis.wdGetAPI().getContext().getModifiableTypeOf(

"ctx_cnd_code1_cust");

cond1Type.setFieldLabel("Code List");

IModifiableSimpleValueSet valueSet1 =

cond1Type.getSVServices().getModifiableSimpleValueSet();

for (int i = 0; i < codeSize; i++) {

valueSet1.put(

wdContext

.nodeEt_Domvalues()

.getEt_DomvaluesElementAt(i)

.getDomain_Value(),

wdContext

.nodeEt_Domvalues()

.getEt_DomvaluesElementAt(i)

.getDomain_Text());

}

and for displaying text.

I'm using this

cond_code1 =

wdContext.currentContextElement().getCtx_cnd_code1_cust();

ISimpleTypeModifiable productsType =

wdThis.wdGetAPI().getContext().getModifiableTypeOf(

"ctx_cnd_code1_cust");

productsType.setFieldLabel("Code List");

IModifiableSimpleValueSet valueSet1 =

productsType.getSVServices().getModifiableSimpleValueSet();

desc1 =

valueSet1.getText(

wdContext.currentContextElement().getCtx_cnd_code1_cust().toUpperCase());

wdContext.currentContextElement().setCtx_cc1_desc_cust(desc1);

where toUpperCase is not working.

This method I'm callig at two places one in the view for onEnter of the inputField and one in doModifyView for onSelect to display the text in the EVS.

Please help me out as I'm running out of time.It's urgent.