cancel
Showing results for 
Search instead for 
Did you mean: 

How to use simple types for table column names ?

Former Member
0 Kudos

Hi,

can any one tell how to to use simple types for table column names?

It is required in internationalizing of webdynpro applications.

Regards,

Rajesh

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Rajesh

1) Create one Simple Type - Representation Tab - Entered for Field Label and Column Label.

2) Goto Navigator Tab, navigate through the created simple type's package

In the generated (<simpletypename>.dtsimpletype.xlf), add Resource Name as Texts@tableColumnHeading, Resource Type as 'tableColumnHeading' and add description in Text .

3)In the View, create a context variable with the SAME NAME as simple type and bind that variable to the table cloumn heading

Best Regards

Chaitanya.A

Former Member
0 Kudos

Hi,

1: define required column names in <SimpleType>

2:use the following code to get those values

3:bind 'text' property of Column headers to context attributes

4:take a context attribute 'Value' as type of <SimpleType>

5:set these values to context attributes

IWDAttributeInfo objAttrInfo=wdContext.getNodeInfo().getAttribute(IPrivate<ViewName>View.IContextElement.VALUE);

ISimpleTypeModifiable simple=objAttrInfo.getModifiableSimpleType();

Map m=simple.getEnumerationTexts();

Collection c=m.values();

Iterator it=c.iterator();

if(it.hasNext())

{

wdContext.currentContextElement.set<att1>(it.next().toString);

}

if(it.hasNext())

{

wdContext.currentContextElement.set<att2>(it.next().toString);

}

if(it.hasNext())

{

wdContext.currentContextElement.set<att3>(it.next().toString);

}

Regards

LakshmiNarayana