Problems changing a iview name programmatically

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

Hi Ismael,
Can you try using a PCD Inspector to do the same.
The name of the iview is stored using the property com.sap.portal.pcm.Title. You need to change the name in this property. Remember to update the name with the right locale i.e. the locale which is set for the Portal.
http://help.sap.com/saphelp_nw70/helpdata/EN/47/a4a442dc030e31e10000000a1550b0/content.htm
I am not too sure about the coding part.
Thanks,
Nikhil

Similar Messages

  • Permanent change of iView property programmatically

    Hallo,
    I used this code to change iView property from another iView:
    private IPcmObject getPcdObject( IPortalComponentRequest pRequest, String pPcdUrl ) throws NamingException
                        IPcmObjectService pcdFactory = (IPcmObjectService) PortalRuntime.getRuntimeResources().getService( IPcmObjectService.KEY );
                        Hashtable env = new Hashtable();
                        env.put( Context.INITIAL_CONTEXT_FACTORY, IPcdContext.PCD_INITIAL_CONTEXT_FACTORY );
                        env.put( Context.SECURITY_PRINCIPAL, pRequest.getUser() );
                        IPcmObjectBuilder pcmSrv = pcdFactory.getInitialContext(env);
                        try {
                             return( (IPcmObject)pcmSrv.lookup(pPcdUrl) );
                        catch (NamingException e) {
                             throw e;
              public void onButtonClick_CV(Event event) throws Exception
                                                      IPortalComponentRequest aRequest =
                                  (IPortalComponentRequest) this.getRequest();
                   IPcmObject obj = null;
                             String iView = "portal_content/Example/com.example";
                                       try {
                                       obj = getPcdObject(aRequest, iView);
                                  } catch (NamingException e) {
                                       // TODO Auto-generated catch block
                                       e.printStackTrace();
                                  obj.getAttributes().put("StartUri","/documents");
                                  obj.getAttributes().put("path","/documents");
    ..... and when I access property by obj.getAttributes().get("StartUri"), I get right result: "/documents". But this is not permanent change of iView property - when I access this property later, I get old value of this property.
    Does somebody knows how to made changes permanent?
    Best Regards,
    Josef Motl

    Hi All,
    I want to read and modify the property of one iview from another iview.
    I wrote the following code. but,I am not able to print any property from get method....
    How to get and set any property of the iview.
    public class MyPortalExample extends AbstractPortalComponent
        public void doContent(IPortalComponentRequest aRequest, IPortalComponentResponse response)
              IPcmObject obj = null;
              String iView = "pcd:portal_content/example/animalselector";
              try {
              obj = getPcdObject(aRequest, iView);
              } catch (NamingException e) {
                   e.printStackTrace();
              response.write("object"+obj.getAttributes().size());
              while(obj.getAttributes().getIDs().hasMoreElements())
                   response.write(obj.getAttributes().get("Change By");
                   response.write(obj.getAttributes().get("path");
                   response.write(obj.getAttributes().get("name");
                   response.write(obj.getAttributes().get(obj.getAttributes().getIDs().nextElement().toString()).+"\n");
                   i++;
        private IPcmObject getPcdObject( IPortalComponentRequest pRequest, String pPcdUrl ) throws NamingException
         IPcmObjectService pcdFactory = (IPcmObjectService) PortalRuntime.getRuntimeResources().getService( IPcmObjectService.KEY );
         Hashtable env = new Hashtable();
         env.put( Context.INITIAL_CONTEXT_FACTORY, IPcdContext.PCD_INITIAL_CONTEXT_FACTORY );
         env.put( Context.SECURITY_PRINCIPAL, pRequest.getUser() );
         IPcmObjectBuilder pcmSrv = pcdFactory.getInitialContext(env);
         try {
              return( (IPcmObject)pcmSrv.lookup(pPcdUrl) );
         catch (NamingException e) {
              throw e;

  • Problem Changing session cookie name

    Hi,
    I am running Weblogic 5.1 service sp 6
    I attempted to change the name of the weblogic
    session cookie by modifying the following
    parameter in weblogic.properties
    weblogic.httpd.session.cookie.name=MyCookie
    I also noticed that even if I hust uncomment the line
    weblogic.httpd.session.cookie.name=WebLogicSession
    my application seems to timeout within a few minutes.
    However, when I do this I noticed that my session times out within 5
    minutes.
    I have my timeout set with
    weblogic.httpd.session.timeoutSecs=14400
    Thanks,
    Bill

    I have 2 diff app on one app server. If I change it for the app server, it will be applied to all applications that are running on this server. Right?
    In the servlet specification is written :
    The name of the session tracking cookie must be JSESSIONID.
    My question is : Is there is a possible workaround to change session coockie name on application level, not on app server level?

  • IView name change

    Hello,
    I need to change the name of the link displaying under a menu.
    If I select this link it will call Transactional Iview.
    If I change the IView name does it change the link as well? I tried this but it's not working for me.
    Please help me in this?
    Thanks,
    Sarada

    Hi,
    Changing an iview name does not affects anything, even though it is a transaction iview, you can very well change the name and still it will work fine as in transaction iview it asks you for an alias and the T-code, so this controls the link and not the iview name. When you did this, did you get any error? or what was the problem you faced?
    Regards,
    Ameya

  • Problem changing AppleID Name

    Hello,
    I am having problems changing my AppleID name. On Apple ID summary, it shows my moms name. Before I was 18 the billing information was under her name. Now I have changed it to my information. When I go to "Account Details" it shows my information, but when I go back to Apple ID summary, it still showers her name. How do i fix this or who can I talk to, to get this changed?
    thanks

    There is no an easier solution?
    Thank you !

  • How to Change the Visible names in JDBC IView ?

    While Creating a JDBC View, in one of the steps we select the column names from a schema which we want to view in a IView.While doing so in the next step there is a text field called <b>visible names</b> which is editable to change the column names.How to change the Column aliases or visibles names as is it not getting saved when we move onto the next screen ?.How to Configure the Visible Column names while configuring a JDBC IView ?.
    Can anybody please help me !.

    Hi Abhilash
    If I'm not wrong I saw something about this here (SDN), in a technical article about how to create a JDBC iView . I tried to get the link to the article but it seems there's a problem with the site, sorry...
    By the way, I had the same problem, and according to the   article this was not possible in the version EP6 SP2 but there was a plan to implement this in newer versions. I tried also to use a SQL command with the column names I wish to display but it didn't work either.
    Try to find this article in the EP Technical Article to confirm this info, ok ?
    Rgds,
    Fernando

  • Cognos iView Name Property not changing

    Hello,
    I have some Cognos iViews that was imported into the portal.  These iViews are pretty much similar to other SAP iViews with the addition of some CPS properties which is Cognos specific.  I'm able to change the name of the iView but the change did not apply to the PCD object or at run time.  The Name property shows the changed name but just didn't apply.
    Upon looking into this further and wondering where the default name is coming from, it seem to be set at the ID level.  I went to change the ID and seen the property where you change the object name but it's greyed out.  I believe that's because the SAP Portal version that we're on.  So, I'm unable to change this property.
    First off, is there a way to override the defualt property object name setting?
    Secondly, if no to the first question, is there a way to activate the object name setting so it can be changed?

    Thank you very much for that suggestion.  That process worked!
    I did have to export the role in the PCD to XML and then edit the instance of the iView's name to be a space.  I was then able to re-import the role with out any problem. 
    If anyone else runs in to this, make sure that you set all properties on the object you need to re-name <u>before</u> you export it.  Otherwise as soon as you open the object you'll get the same error.
    Next I am going to create a ticket with SAP about this problem.  I can see why they would not want to allow a null value in a property but they should allow a space.
    Thanks again,
    Steve

  • I have a problem with mail autofilling info email addresses. Emails sent to me the from looks like this: Holiday in the United States email address . I have no idea what this Holiday in the United States is...How can I fix/change to my name?

    I have an irritating problem with mail autofilling info in email addresses. Emails sent to me the from looks like this: Holiday in the United States <my email address>. I have no idea what this Holiday in the United States is or how it got to be there...How can I fix/change to my name?
    I fixed the To: autofilling incorrectly by deleting my email address from the Previous Recipients List, but is there a way to stop that from coming up on emails that I receive?

    Have you checked your Mac address book? If your email is saved somewhere in your address book with the name "Holidays in the United States" it might be adding the name automatically in Mac Mail.
    Alternatively, try this:
    Delete an Email Address from Auto-Complete in Mac OS X Mail
    To remove an email address from the auto-complete list in Mac OS X Mail:
    Start typing the recipient's address or name in a new message.
    Select the desired address from the auto-complete list as if you'd compose an email to them.
    Click the small down arrow in the recipient.
    Select Remove from Previous Recipients List from the menu.
    You can also search for the unwanted address directly in the previous recipients list:
    Select Window | Previous Recipients from the menu in Mac OS X Mail.
    Highlight the address you want to remove.You can highlight multiple addresses by holding down the Command key.
    Click Remove from List.
    Source: About.com

  • Portal Content Translation - Unable to see the changed iView name, desc etc

    Hi Experts,
    I am using Portal Content Translation to translate the name of iViews, roles, iview description etc from English to Spanish. I have followed the method mentioned in the below mentioned link:
    http://help.sap.com/saphelp_nw04/helpdata/en/74/641640b7b6dd5fe10000000a155106/frameset.htm
    I have successfully executed all the processes mentioned in the document. It includes:
    Creating Worklists and add content
    Generate translation data
    Release for translation
    Search worklist and define source and target language
    Load worklist for translation
    Translate worklist
    Make worklist as translated
    Publish translation
    I am able to publish the publish translation.
    The above document says that "Publishing a translation means that the translated text strings are written back to the objects to which they belong (for example, the translated title of a role to the role object stored in the Portal Content Directory). "
    In my case I have translated the name, description of an iView. After publishing am I supposed to see the name & description of iView in Spanish in the same iView (source iView).
    I have not created any target iView. Am I supposed to create any target iView?
    I am unable to see iView name, description in Spanish.
    Can you please let me know what is going wrong?
    Thanks
    Stuart

    Hi Stuart,
    please set the user's language in UME. You can do this in the personalization dialog (see SAP Library section <a href="http://help.sap.com/saphelp_nw70/helpdata/en/f8/64e93b3a612d52e10000000a11402f/frameset.htm">Setting Portal Preferences</a>. Assign the portal role "eu_core_role" to your user if you do not see the "personalize" link in the portal masthead.
    In what language does the iview name appear if you do not select Spanish language?
    Please check if the name of the iView appears in Spanish language in PCD after you switched portal language to Spanish.
    Best regards,
    Martin

  • Login problem after change in Domain name of portal

    I have installed portal 3.0 Beta on windows 2000. installation has gone fine and everything was working. after this i made change in domain name. for this i ran ssodatan.cmd script (source from metalink).
    now i am not able to go by
    "http://domain_name/pls/portal30/
    it gives the error
    "The request for content either timed out, or produced an error, after 0 seconds in the browser"
    Still i am able to go by "http://domain_name/pls/portal30_sso/" further if i login as any user, then all user are coming with "login server home page" as initial page.
    any idea?
    null

    Hi Suzette,
    I have portal 3.0.6.3.3 Beta i.e apache listener. For this i have not found domain name in registry. i made the following changes in htppd.conf file.
    ServerName 194.170.231.141
    <VirtualHost 194.170.231.141>
    DocumentRoot E:\ORAPOR\Apache\Apache\htdocs
    ServerName www.ahi-carrier.co.ae
    ServerAlias ahiweb 194.170.231.141
    </VirtualHost>
    This 194.170.231.141 is my Fixed Internet IP.
    my webserver machine name, where the oracle portal is installed is ahiweb(192.168.0.247).
    also i have firewall before the web server.
    Is these settings are OK for Portal.
    I am using apache listener for my developer forms and reports, and they are working fine with these setting on the internet.
    can i get white paper for these settings.
    Thanks
    null

  • Problem changing author name in commention tools

    Hi Forum
    Whenever I do commenting in Acrobat 8, it will use my short name as author.
    I would like to change that, and I don't want to change properties for each and every comment.
    In the Acrobat preferences, I have unchecked "Always use log-in name for Authors name" under Commenting, but Acrobat still uses "Login name" under Identity.
    Is there a way to get Acrobat to use the Identity:Name preferences instead?
    Kind regards
    Lars

    You also need to change the comment name in the tooll and then 'use as
    default' option ....
    Jon

  • DataPump Problem. Automaticaly change dump file name.

    Deal All
    I have create a plsql block and which will backup the database using datapump.
    He is working fine in scheduler but he generates error because it doesnot change
    file name every time. Against the following he always generates
    'EXPORT%U.DMP' = EXPORT01.DMP file name.
    Please tell me how i can change every file name automatically.
    Thanks
    Abid

    Hi,
    I have 10.2.0.4 db on windows and want to have a full datapump export every night and want a unique file name but this does not work for me. The script just does not execute. I have even tried this from the command line
    par file is
    DUMPFILE='expdp_testdb_full.'||to_char(sysdate,'YYYYMMDDHH24MISS')||'.dmp'
    JOB_NAME=expdp_testdb_full
    LOGFILE="expdp_full_testdb.log"
    DIRECTORY=DATAPUMP_DIR
    FULL=Y
    ESTIMATE=STATISTICS
    CONTENT=ALL
    PARALLEL=20

  • How can I change my user name? Someone else is using "phammm" my user name. At this point I cannot sign in with my email address and change my name. Help!

    When I try to access the user forum, I have this problem. I am trying to access the forum for a problem with Firefox. NOte the typo; my user name is phamm.

    hey...thanks for your post....ok I followed your instructions but seems this is what i had already done...
    so say when I turn my computer on
    I get
    MAC OS X
    Louise xOldsurnamex
    Login user: Louise xnewsurnamex
    Password-----------
    So I have already changed the login name and it is the only one showing in accounts (and is admin)
    What i want to change is the name above...I am unsure how to describe it? Basically the name of my computer???
    Errr is this poss? Do you know what i am describing?
    Thanx Louise

  • I can not transfer date from one hard drive to another, I keep getting an error because I have two of the same file names and one file name is in caps and I cant change the file name

    can not transfer date from one hard drive to another, I keep getting an error because I have two of the same file names and one file name is in caps and I cant change the file name. My original external has an error and needs to be reformatted but I dont want to lose this informations its my entire Itunes library.

    Sounds like the source drive is formatted as case sensitive and the destination drive is not. The preferred format for OS X is case insensitive unless there is a compelling reason to go case sensitive.
    Why can't you change the filename? Is it because the source drive is having problems?  If so is this happening with only one or two or a few files? If so the best thing would be to copy those over individually and then rename them on the destination drive.
    If it is more then you can do manually and you can't change the name on the source you will have to reformat the destination as case sensitive.
    Btw this group is for discussion of the Support Communities itself, you;d do better posting to Lion group. I'll see if a host will move it.

  • How do I change the first name associated with a developer account?

    How do I change the name on my developer account. I now have my discussion ID tied in with developer account, and I would like to change the name associated with my developer account. There is a field to change my first name on the discussion board, but there seems to be no option to change the first or last name associated with a developer account.

    I ran into the same problem and was glad to find this post.
    I started to register as a iOS developer but my daughters name shows up in the personal info field and can not be changed. When I go to the "manage my ID" page it has my name and the correct info. How do I fix this for my Developer ID registration?
    I just sent an email to the link Dave supplied and am waiting for a response.

Maybe you are looking for

  • Open items extract and upload

    Hi    We are into merging of two company codes 1300 & 1000 which are in of same client, can anyone explain how to move all the open items (Vendor/Customer/GL) in co code 1300 to co code 1000 using LSMW.... and table to view for all those three types

  • Help with multiple iphones on 1 itunes!

    Hello. I just backed up my iphone onto my itunes and I was going to back up my moms as well, but it was trying to sync her phone, and all my info as well. How can we have 2 or three different iphones on the same itunes?! HELP!

  • E51 update and memory card password problem

    This morning I updated the software of my e51. But after update, it asks me password of my memory card and I entered all the possible passwords but it doesn't accept.  What can I do about it? I searched internet tried some ways to unlock but they jus

  • PDF opening in a macromedia flash application

    Hello, Im not a mac user, but we use mac in our company. Im a webdesigner, working on windows XP, using macromedia flash (in this case Flash MX). My problem is, we build applications on dvd and cd's and we are trying to make them usable on macOS, bes

  • Sharepoint 2013 - Remove "Recent" from left menu

    Hello All - My client has requested that she be able to remove (or hide) the "Recent" menu header from the left menu in Sharepoint 2013. This is for specified site collections/sites/pages, not farm-wide. So far, I've tried to do this via JQuery by ad