cancel
Showing results for 
Search instead for 
Did you mean: 

Re: WebdynPro Callable object implementation

Former Member
0 Kudos
39

Hi Gurus,

I am new to CAF GPs. While doing an application regarding

"Implementing WebdynPro Callable objects in GP".....in the Design Time for creating technical description i am using this piece of code..........

IGPTechnicalDescription technicalDescription = TechnicalDescriptionFactory.newTechnicalDescription("CO_NAME","CO_DESCRIPTION",resourceAccessor,locale);

My problem is its showing error like "TechnicalDescriptionFactory cannot be resolved."

For your reference i am including the link for my application's document

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/bf45657a-0601-0010-0ca9-98d...

The below information i found in help.sap.com

Create technical description.

The technical description is created through the TechnicalDescriptionFactory.newTechnicalDescription() method. It requires resource accessor and original locale, as well as resource keys for the localizable name and description of the callable object.

I have reference for GPWebDynproResourceAccessor but i didnt understand what the others are.

Please solve my issue...i am desperately in need of it.

View Entire Topic
Former Member
0 Kudos

Hi,

Refer this link

http://help.sap.com/saphelp_nwce10/helpdata/en/de/8976417f2d5558e10000000a1550b0/content.htm

Make sure the below dependencies are added

Local Development ® GP-CORE ® caf/eu/gp/api/wd (public part GPWebDynproCO)

Local Development ® GP-CORE ® caf/eu/gp/api (public part external)

Local Development ® ENGFACADE ® tc/je/usermanagement/api (public part api)

For TechnicalDescription import

import com.sap.caf.eu.gp.co.api.IGPTechnicalDescription;

Then

IWDTextAccessor textAccessor = wdComponentAPI.getTextAccessor();

GPWebDynproResourceAccessor resourceAccessor =

new GPWebDynproResourceAccessor(textAccessor);

IGPTechnicalDescription technicalDescription = GPCallableObjectFactory

.createTechnicalDescription("CO_NAME", "CO_DESCRIPTION",

resourceAccessor, locale)

where textAccessor is your component textAccessor so that you can give your callable object name in the Message Pool and access it using

textAccessor.getText("CO_NAME");

Edited by: Sudhir Gorantla on Jun 18, 2008 8:28 AM