on 03-26-2007 9:29 PM
Hello all,
Im implementing the example of the article "Using a Composite Application via a Web Dynpro UI". Im using the code in the end of my message (the same as the article) to initialize the start and target location but I got the error " java.lang.NoClassDefFoundError: com/sap/tc/col/client/generic/api/IAspect".
I have added the 3 development components as asked previously in the article
(public part types_compilation of DC
caf/core/dict (CAF compartment), public part com.sap.caf.ui.utils of DC caf/UI/ptn/common (CAF compartment) and the public part default of DC
tc/col/runtime (compartment
SAP_JTECHS)).
I think the problem is in the deploy, but Im not sure.
May someone help me ?
Thanks in advance.
Code:
// Initialize location fields:
IAspect aspectList;
IAspectRow aspectRow;
int count;
IWDAttributeInfo attributeInfoStart, attributeInfoTarget;
ISimpleTypeModifiable startLocation, targetLocation;
IModifiableSimpleValueSet valueSetStart, valueSetTarget;
// access the context and get the relevant value nodes:
attributeInfoStart =
wdContext.nodeFindTravel().getNodeInfo().getAttribute("StartLocation");
startLocation = attributeInfoStart.getModifiableSimpleType();
valueSetStart = startLocation.getSVServices().getModifiableSimpleValueSet();
attributeInfoTarget = wdContext.nodeFindTravel().getNodeInfo().getAttribute(
"TargetLocation");
targetLocation = attributeInfoTarget.getModifiableSimpleType();
valueSetTarget = targetLocation.getSVServices().getModifiableSimpleValueSet();
// access the proxy and get all available locations
aspectList = TravelLocationServiceProxy.getAll();
// add wildcards for a general search:
valueSetStart.put("", "");
valueSetTarget.put("", "");
// loop over the result list
for (count = 0; count < aspectList.size(); count++) {
aspectRow = aspectList.getAspectRow(count);
valueSetStart.put(
aspectRow.getAttributeAsString("key"),
aspectRow.getAttributeAsString("name"));
valueSetTarget.put(
aspectRow.getAttributeAsString("key"),
Hi Helder,
Right click on your project, select Properties, in WebDynpro References -> Library references add "sap.com/cafruntimeuicouplingapilib".
Best regards, Maksim Rashchynski.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.