cancel
Showing results for 
Search instead for 
Did you mean: 

InputField with Matchcode + Any User's text

Former Member
0 Kudos

I have an InputField with a matchcode,

ISimpleTypeModifiable myType=wdThis.wdGetAPI().getContext().getModifiableTypeOf(field);

IModifiableSimpleValueSet values=myType.getSVServices().getModifiableSimpleValueSet();

values.put(cod,txt);

values.put(cod,txt);

values.put(cod,txt);

values.put(cod,txt);

values.put(cod,txt);

values.put(cod,txt);

OK,now i need to give permision to user to insert any text or select one of values in the matchcode. I dont know if that is possible, in my case, if I insert an incorrect value, the application show an error because de value isn't in the list of values.

Accepted Solutions (0)

Answers (3)

Answers (3)

siarhei_pisarenka3
Active Contributor
0 Kudos

Hi

>i need to give permision to user to insert any text or select one of values in the matchcode. I dont know if that is possible, in my case, if I insert an incorrect value, the application show an error because de value isn't in the list of values.

EVS does not have such function exposed to an end user. It's only possible to insert new key/pair in a value set with the code you typed before.

BR, Siarhei

Former Member
0 Kudos

In release >= 7.1 (or 7.11 I don't remember exactly) you can define a so-called proposal list for input fields which give you this functionality.

Armin

Former Member
0 Kudos

Hi Sebastian,

As your requirement is just to check user's input with the text or the code of the match value, keeping a drop down by key UI element in the view to display all the text of match values as the values for keys should be enough. Otherwise, as suggested by Jeetendra, have two input fields too to take values from user in case you need to add any value to the drop down list. Just ket the key-value pair and insert in the valueset.

In case, you need to modify any element of the drop down by key then, ask the user to select the value to be modified from the drop down and then enter the new key-value pair in the input fields and then execute the modify code (by deleting the earlier entry and adding the new one) on action of a separate button say MODIFY apart from earlier say SELECT.

Regards,

Tushar Sinha

Former Member
0 Kudos

Hi Friend,

Can you let us know how you are trying to insert values in node. I think you should create one drop down by key to display the

Match code. and Two other Input UI fields to take the Txt and code. after getting input from user in corresponding input UI try to create and add to the value node element and put those value attributes to the match code dynamically. Let us know if you face any issue regarding same.

Regards

Jeetendra.