on 11-22-2007 3:05 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.