cancel
Showing results for 
Search instead for 
Did you mean: 

EVS control in Table

Former Member
0 Kudos

Hi Experts,

How to use EVS control in table column?

Can any one help me?

Please.

Advance Thanks.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Balaji,

Its same like EVS implementation for any input field.For the table u have an input field as editor. Use that input field for EVS implementation.

In case of any queries u can revert back.

regards

Sumit

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Experts,

I have set EVS in particular column in table.

My table contains three columns , that are "itemno", "name", "desc". I set EVS for "desc" column.

This is my coding

ISimpleTypeModifiable buildType1 = wdThis.wdGetAPI().getContext().getModifiableTypeOf("tablevalue.desc");

IModifiableSimpleValueSet simpleValueSet1 = buildType1.getSVServices().getModifiableSimpleValueSet();

buildType1.setFieldLabel("WBS Description");

simpleValueSet1.put("10","A");

simpleValueSet1.put("20","B");

simpleValueSet1.put("30","OT");

But when i deploy this application i got the following error

<b>MappedAttributeInfo(Ovs_Comp1View.tablevalue.desc): must not modify the datatype of a mapped attribute</b>

How to resolve this error?

Help me.

Advance Thanks.

Former Member
0 Kudos

Hi Balaji,

Write the code in the controller instead of the view.

Copy the same code and place them in the init of the controller from where this node is mapped.

Regards

Ayyapparaj

Former Member
0 Kudos

You might have mapped the same context to your controller too. So, you can;t modify it in your view. You can write that code in your controller.

Warm Regards,

Murtuza

Former Member
0 Kudos

Hi Balaji,

IWDNodeInfo sn=wdContext.<your node>().getNodeInfo();
    IWDAttributeInfo attinfo=sn.getAttribute("Cricket"); // "Cricket" is the context node value attribute
   ISimpleTypeModifiable mstype=attinfo.getModifiableSimpleType();
   mstype.setFieldLabel("Twenty20 World Cup");
   IModifiableSimpleValueSet valueset=mstype.getSVServices().getModifiableSimpleValueSet();
   valueset.put("India","M S Dhoni");
   valueset.put("Pakisthan","Younis Khan");
   valueset.put("Srilanka","Jayawardane");
   valueset.put("West Indies","Chris Gayle");
   valueset.put("Australia","Ricky Ponting");


Best Regards

Chaitanya.A

Former Member
0 Kudos

Hi balaji,

Write this code in controller instead of view.It will work.

regards

Sumit

Former Member
0 Kudos

Hi Balaji,

Try this link:

<a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f0e57440-ec1c-2a10-36b1-fe92341f98c4">https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f0e57440-ec1c-2a10-36b1-fe92341f98c4</a>

Former Member
0 Kudos

Hi! Balaji,

go through the following tutorial, you will get a fair Idea of EVS:--

<a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/49f2ea90-0201-0010-ce8e-de18b94aee2d#54">https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/49f2ea90-0201-0010-ce8e-de18b94aee2d#54</a>

regards,

Mithilehwar