Skip to Content
0
Former Member
Mar 10, 2010 at 04:32 PM

Problems changing a iview name programmatically

14 Views

hi people

im trying to change a iview name programmatically but the application give a exception: java.lang.NoClassDefFoundError: com/sapportals/portal/pcd/pl/PlLocaleTextPair

This class is just the class that i need for get the name and for change the name, i have this class in the jar com.sap.portal.pcmbuilderservice_api.jar located in my classpath...

my actual test code is the next:

PlLocaleTextPair newName=(PlLocaleTextPair)name.get(0);

PlLocaleTextPair newNameEn=(PlLocaleTextPair)name.get(1);

PlLocaleTextPair newNameEs=(PlLocaleTextPair)name.get(2);

newName.setText("newName");

newNameEs.setText("newNameEs");

newNameEn.setText("newNameEn");

name.set(0,newName);

name.set(1,newNameEn);

name.set(2,newNameEs);

someone can help me??

thank you