Eclipse don't schow me the add Methods from IPage and IiView

Hello Together
I'm developing a WebDynpro that should add and remove iViews to/from a page. The Server we use is J2EE 7.01 (Portal 7 EHP1)
For this I want to use the following code. Which is shown in the Developerguide NW2004s:
Hashtable env = new Hashtable();
env.put(Context.INITIAL_CONTEXT_FACTORY, IPcdContext.PCD_INITIAL_CONTEXT_FACTORY);
env.put(Context.SECURITY_PRINCIPAL, request.getUser());
env.put(Constants.REQUESTED_ASPECT, PcmConstants.ASPECT_SEMANTICS);
InitialContext iCtx = null;
try
iCtx = new InitialContext(env);
IPage myPage =(IPage)iCtx.lookup("pcd:portal_content/Desktop/finance");
INewObjectDescriptor iViewDescriptor = (INewObjectDescriptor)iViewSrv.instantiateDescriptor (CreateMethod.DELTA_LINK, "pcd:portal_content/testxml", request.getUser());
myPage.addiView(iViewDescriptor,"testxml");
catch(Exception e)
The the problem I have now is, that eclipse does not know the method addiView or any other add Method.
So I tried to find out which mehtods exists in the class IPage which I use here.
For this I used the following code:
IPrivateChangeIviewInPageView.IMethodnamesNode methodNode = wdContext.nodeMethodnames();
IPrivateChangeIviewInPageView.IMethodnamesElement methodElem = null;
IUser sapUser = WDClientUser.getLoggedInClientUser().getSAPUser();
Hashtable env = new Hashtable();
env.put(Context.INITIAL_CONTEXT_FACTORY, IPcdContext.PCD_INITIAL_CONTEXT_FACTORY);
env.put(Context.SECURITY_PRINCIPAL, sapUser);
env.put(Constants.REQUESTED_ASPECT, PcmConstants.ASPECT_SEMANTICS);
try {
  InitialContext iCtx = new InitialContext(env);
  com.sap.portal.pcm.page.IPage myPage =(com.sap.portal.pcm.page.IPage)iCtx.lookup("pcd:portal_content/tgdmopa7/com.tgdmopa7.updatePage");
  Method[] meth = myPage.getClass().getMethods();          
  for (int i = 0; i < meth.length; i++) {
    Method m = meth<i>;
    methodElem = methodNode.createMethodnamesElement();
    methodElem.setName(m.getName());
    methodNode.addElement(methodElem);
} catch (NamingException e) {
In the table which shows the methods of the IPage class the add-Methods are shown.
I added the following jar-Files from the J2EE-Server to the classpath:
- com.sap.portal.ivs.api_iview_api.jar
- com.sap.portal.navigation.api_service_api.jar
- com.sap.portal.pcd.basicrolefactory_api.jar
- com.sap.portal.pcd.glservice_api.jar
- com.sap.portal.pcm.admin.apiservice_api.jar
- prtjndisupport.jar
- gl_api.jar
In the sharing References I refere to:
- PORTAL:sap.com/com.sap.portal.ivs.connectorservice
- PORTAL:sap.com/com.sap.portal.ivs.api_iview
- PORTAL:sap.com/com.sap.portal.ivs.iviewservice.oldpcm.iviews_dt
- PORTAL:sap.com/com.sap.portal.pcd.basicrolefactory
- PORTAL:sap.com/com.sap.portal.pcd.glservice
- PORTAL:sap.com/com.sap.portal.ivs.api_landscape
- PORTAL:sap.com/com.sap.portal.navigation.api_service
- PORTAL:sap.com/com.sap.portal.iviewservice.templates_cache_srv
- PORTAL:sap.com/com.sap.portal.pcm.admin.apiservice
Does somebody know why I do not see the add methods in eclipse?
Kind Regards
Pascal

I got the solution. I have imported now the com.sap.portal.ivs.api_portalpcm_api.jar and then eclipse find the addMethods.

Similar Messages

  • Help in the add method

    how can i implement the code in the add method, and how should i add a main method to print the list.
    import java.util.*;
    public class SinglyLinkedList implements List
      // an inner class: This is our node class, a singly linked node!
      private class Node
        Object data;
        Node next;
        Node(Object o, Node n)
          data = o;
          next = n;
        Node(Object o)
          this(o, null);
        Node( )
          this(null,null);
      private Node head; // the "dummy" head reference
      private int size;  // the number of items on the list
      public SinglyLinkedList()
        head = new Node(); // dummy header node!
      public void add(int index, Object o)
      //need some help here
      public boolean add(Object element)
           if (element == null) return false;
           // Check for dummy head node
           if (head.data == null)
                head = new Node(element, null);
        else
        // Traverse the list until we find the end
        Node next = head;
        while (next.next != null)
             next = next.next;
        next.next = new Node(element, null);
        return true;
    public static void main (String[] args){
      //need some help here
    }

    you not need to implement List you can just use add methods of it cause
    if you implementing it without implements all the methods in it then you
    must declare you class as abstract class;
    if you implemets List then your class should contains all the methods of interface List for example
    import java.util.*;
    public class SinglyLinkedList implements List
      // an inner class: This is our node class, a singly linked node!
      private class Node
        Object data;
        Node next;
        Node(Object o, Node n)
          data = o;
          next = n;
        Node(Object o)
          this(o, null);
        Node( )
          this(null,null);
      private Node head; // the "dummy" head reference
      private int size;  // the number of items on the list
      public SinglyLinkedList()
        head = new Node(); // dummy header node!
      public void add(int index, Object o)
        //need some help here
      public boolean add(Object element)
        if (element == null) return false;
        // Check for dummy head node
        if (head.data == null)
          head = new Node(element, null);
        else
          // Traverse the list until we find the end
          Node next = head;
          while (next.next != null)
            next = next.next;
          next.next = new Node(element, null);
        return true;
      public int size(){
      return 0;
      public boolean isEmpty(){
        return false;
      public boolean contains(Object o){
        return false;
      public Iterator iterator(){
        return null;
      public Object[] toArray(){
        return null;
      public Object[] toArray(Object a[]){
        return null;
      public  boolean remove(Object o){
        return false;
      public boolean containsAll(Collection c){
        return false;
      public  boolean addAll(Collection c){
        return false;
      public boolean addAll(int index, Collection c){
        return false;
      public boolean removeAll(Collection c){
        return false;
      public boolean retainAll(Collection c){
        return false;
      public void clear(){}
      public boolean equals(Object o){
        return false;
      public  int hashCode(){
        return 0;
      public Object get(int index){
        return null;
      public  Object set(int index, Object element){
        return null;
      public Object remove(int index){
        return null;
      public int indexOf(Object o){
        return 0;
      public int lastIndexOf(Object o){
        return 0;
      public ListIterator listIterator(){
        return null;
      public ListIterator listIterator(int index){
        return null;
      public List subList(int fromIndex, int toIndex){
        return null;
      public static void main (String[] args){
        //need some help here
    }

  • I Just received the update to iTunes, when I I look at the screen I do not see the normal icons.  When I select movies I do not get the new downloads unless i select the list in the sub file. How do I get backto the old method of seeing and using iTunes??

    I Just received the update to iTunes, when I I look at the screen I do not see the normal icons.  When I select movies I do not get the new downloads unless I select the list in the sub file. How do I get back to the old method of seeing and using iTunes??

    I can tell you that this is some of the absolutely worst customer service I have ever dealt with. I found out from a store employee that when they are really busy with calls, they have third party companies taking overflow calls. One of those companies is Xerox. What can a Xerox call center rep possibly be able to authorize on a Verizon account?  I'm Sure there is a ton of misinformation out there due to this. They don't note the accounts properly or so everyone can see them. I have been transferred before and have asked if they work for Verizon or a third party also and was refused an answer so, apparently they aren't required to disclose that information. I spent a long time in the store on my last visit and it's not just customers that get the runaround. It happens to the store employees as well and it's beyond frustrating.

  • This static method cannot hide the instance method from...

    What means the error message "This static method cannot hide the instance method from Referee"?
    Referee.java is a interface. I implemented it in the class RefereeMyName.java and made a method in that class to be static. Thats why I received that error message.
    But can't I use static methods when I have implemented a interface in that class? I want to have a Player.java class which I want to access RefereeMyName.getTarget(). I cannot use a instance instead because I wouldn't receive a valid return value then (RefereeMyName is the client class).
    What is the solution?

    Hi,
    Well i do not think that you can do that b'cos that way you are not giving the same signature for the method as that exists in the interface. I do not know how other way it can be done but if something urgent for you then you can remove that method from that interface and only define in the class.
    Regards,
    Shishank

  • HT4913 i am trying to get my computer and my wifes computer on my itunes match.  i did the add a computer function and it says that this computer is already associated with an apple id...if you use itunes match with your apple id etc for 90 days...please

    i did the add a computer function and it says that this computer is already associated with an apple id...if you use itunes match with your apple id etc for 90 days...please explain.  is this going to screw my wifes account up? 

    If you both have seperate iTunes Store accounts then basically, yes, it is going "screw up" your wife's account.
    iTunes Match is designed as a single-user service which is associated with one and only one iTunes Store account ID. If you have subscribed on your account and want to activate the service on another computer that is already signed in with an account the present account must be signed out and then iTunes signed into your account. This means the other computer will have complete access to your account and will only be able to make purchases on your account. iTM is not designed to be signed in and out at will. If she has apps purchased with her iTunes Store account they will not be able to be updated.

  • When I connect my iPod touch it tells me that I need a new version of Apple Mobile Device Support and to uninstall iTunes and then re-install it, I've done that twice with the newest version of iTunes and it still doesn't work?

    When I connect my iPod touch it tells me that I need a new version of Apple Mobile Device Support and to uninstall iTunes and then re-install it, I've done that twice with the newest version of iTunes and it still doesn't work?

    Try:
    Removing and reinstalling iTunes, QuickTime, and other software components for Windows Vista or Windows 7

  • How do you sync contacts with gmail, not other place on computer? I don't know where the contacts came from on that are now on my new phone. There are way too many and it is not my list of contacts I have on gmail. Where else is this from?

    I don't know where the contacts came from on that are now on my new phone. There are way too many and it is not my list of contacts I have on gmail. Where else is this from? I spent a LONG time on gmail going through my list of contacts. There were about 400 and I got it down to about 90. When I went to sync my new phone, ALL 400 synced.
    Thank you for any help!

    Sorry for the repeat...new here. OBVIOUSLY.

  • Why Apple don't systematically support the latest version of OpenGL and OpenCL with a new OS release?

    Why Apple don't systematically support the latest version of OpenGL and OpenCL with a new OS release?

    Maybe because it's necessary to build on a version that's been out long enough to be stable before releasing? Who knows?
    Are there specific features you're missing?

  • When i was waiting for an hour for itunes to grading my 2nd generation ipod touch to a 4.2.1 and it was about done, it suddenly said the network connection timed out and that made the upgrading a fail. Why does it do that? and what does it mean?

    When i was waiting for an hour for itunes to grading my 2nd generation ipod touch to a 4.2.1 and it was about done, it suddenly said the network connection timed out and that made the upgrading a fail. Why does it do that? and what does it mean?

    Error -3259 is a network timeout error, usually. This article might help:
    http://support.apple.com/kb/TS2799

  • Using saxparser in the suite method from junit

    Hi, i have a problem using SAXParser in the suite method of junit.
    My little test class 'myParser' works fine but when I call the method 'doIt' from the 'suite' method from a class that implements TestCase (junit) I get a java.lang.ClassCastException: org.apache.xerces.parsers.StandardParserConfiguration
    in line 7.
    Does anyone have an idea what I made wrong??
    1) public class myParser {
    2)   
    3)   public myParser() {}
    4)   
    5)   public void doIt() {
    6)     try {
    7)       org.xml.sax.XMLReader parser = new org.apache.xerces.parsers.SAXParser();
    8)       parser.parse("anyFile.xml");
    9)     } catch (java.io.IOException IOe) {
    10)       System.out.println(IOe.getMessage());
    11)     } catch (org.xml.sax.SAXException SAXe) {
    12)       System.out.println(SAXe.getMessage());
    13)     }
    14)   }
    15) }

    Hi JPilot,
    I�ve this problem, too.
    greez ZB

  • [svn] 4059: The measure() and updateDisplayList() methods of TextBox and TextGraphic now return early if the inheritingStyles and nonInheritingStyles proto chains haven 't been initialized, to avoid RTEs in the compose() method from invalid styles values.

    Revision: 4059
    Author: [email protected]
    Date: 2008-11-10 11:56:38 -0800 (Mon, 10 Nov 2008)
    Log Message:
    The measure() and updateDisplayList() methods of TextBox and TextGraphic now return early if the inheritingStyles and nonInheritingStyles proto chains haven't been initialized, to avoid RTEs in the compose() method from invalid styles values.
    QE Notes: None
    Doc Notes: None
    Bugs: SDK-17975
    Reviewer: Jason
    Ticket Links:
    http://bugs.adobe.com/jira/browse/SDK-17975
    Modified Paths:
    flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/TextBox.as
    flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/TextGraphic.as
    flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/graphicsClasses/TextGraphicEleme nt.as

    FYI - This regression has been filed here: http://bugs.adobe.com/jira/browse/SDK-31989

  • Dears iTunes gives me the Payment method declined message   and i bought Gift card 25$ and not work because i am in kuwait store and can not change store to USA. i try Master and visa and gift card what i can try else also i can not update free applicati

    Dears
    iTunes gives me the Payment method declined message   and i bought Gift card 25$ and not work because i am in kuwait store and can not change store to USA. i try Master and visa and gift card what i can try else also i can not update free application. my iPhone now useless.
    please help me ASAPi have to buy some application urgently.

    Whether you are trying to use a Credit Card or Redeem a Gift Card... My understanding is that you have to be within the US to use the US Store and have a valid US Billing Address.

  • HT4623 I just updated my iPad 3 but myI just updated my iPad 3 but myiPhone 5 keep giving me a error message.  I don't have permission to access the requested resource, from iPhone and via my Apple Mac??????

    I just updated my iPad 3 but myI just updated my iPad 3 but myiPhone 5 keep giving me a error message.  I don't have permission to access the requested resource, from iPhone and via my Apple Mac??????

    If you think this is a bug, you can report it here:
    Apple - Mac OS X - Feedback

  • Using the ContactInsertOrUpdate method from the ContactWS but error msg rcv

    [This thread was migrated from the On Demand Developer Forum in the old Siebel Community]
    Corsa
    Contributor
    I am getting the following error I do not know why or how to work around
    it.
    Method 'SetFieldValue' of business component 'Contact' (integration
    component 'Contact') for record with search specification '[External <br/>
          System Id] = "123456"' returned the following error:"Access <br/>
    denied.(SBL-DAT-00542)"(SBL-EAI-04375)
    Does any out there have any ideas?
    Previously when I tried to do the same action I got the following message:
    Multiple matches found for instance of integration component 'Contact'
    using search specification '[External System Id] = "123456"' in the
    business component 'Contact', based on user key 'Contact User
    Key:3'.(SBL-EAI-04390)
    Both messages are baffling me. Please, please help
    Product: CRM OnDemand
    06-16-2006 04:35 AM
    Re: Using the ContactInsertOrUpdate method from the ContactWS but error
    msg rcvd
    BigSlick
    Valued Contributor
    Hi Corsa,
    Can you access the record in the online application. Perhaps someone has
    changed the access rights for this Contact on the Contact Team ?
    -BigSlick
    06-20-2006 12:33 PM
    Re: Using the ContactInsertOrUpdate method from the ContactWS but error
    msg rcvd
    Corsa
    Contributor
    I realise now that the field AccountID is readonly and cannot be assigned.
    I was attempting to assign contactsList[count].AccountId to a value . I
    believe, this is the reason I was getting the access denied error.
    06-23-2006 11:10 AM
    ==============================================================================
    Click on the board or message subject at the top to return.

    Ok, so I hit a bump in the road. Just when I think I understand something It doesn't work correctly.
    I implemented it I thought correctly. I looked up something on the sun website (core java) I used advice from here, and my professor finaly responded to me with almost identical instructions. So I did it
    my RationalNumber.java no looks like this.
    public class RationalNumber implements Comparable
    //.....Break to new section
      public  float compute ()
           float value = getNumerator() / getDenominator();
         return value;
       public int compareTo(RationalNumber op2)
           if (Math.abs(compute() - op2.compute()) < .0001)
              return 0; //Equal
          if (compute() > op2.compute())
            return + 1; //Rational Number bigger
          if (compute() < op2.compute())
               return - 1; //Rational Number Smaller
         }I thought that would work fine, but it gives me an error when I compile it:
    RationalNumber.java:8: RationalNumber is not abstract and does not override abstract method compareTo(java.lang.Object) in java.lang.Comparable
    public class RationalNumber implements Comparable
           ^So now what, making it abstract only creates more errors....
    Also, thanks ChuckBing, I'm glad you like the screen name, I've been using it for years.

  • Is the raw output from JSP and XSQLServlet the same?

    Hi
    Is there is difference between the raw output from XSQLServlet and JSP? For example, assuming the same content is being generated, is there some additional header information emitted by XSQLServlet that is not done by JSP?
    I am using software that successfully consumes generated content from a JSP OK, but the same content (using the same XML/XSL) generated from XSQLServlet is being rejected. I am puzzled by this. Maybe this is due to some differences in servlet output or an encoding issue? The content is not HTML but XML-like with an "application" contentType, like Steve's SVG example.
    It seems that XSQLServlet is showing some data prior to emitting the actual content, i.e. HTTP version, responding server version, content type and date, e.g.
    HTTP/1.0 200 OK^M
    Server: Resin/2.0.5^M
    Content-type: application/x-sky; charset=UTF-8^M
    Date: Thu, 28 Mar 2002 06:45:34 GMT^M
    ^M
    (then the generated content)
    Is this preamble usually generated by a JSP also?
    If not, can this information be turned off, or put another way, can XSQLServlet's raw output be set to be exactly like JSP? If not, is there a workaround?
    I have tried setting the following XSQLConfig.xml
    <suppress-mime-charset> for the mime-type &
    <character-set-conversion>
    <none/>
    </character-set-conversion>
    also, but to no avail.
    Please help! I really want to use XSQLServlet!
    Thanks.
    Michael.

    Yes, just less fine control over the process but the same engine.
    Regards
    TD

Maybe you are looking for

  • How Do I setup Dual Ethernet (Snow Saucer) base as "repeater" for Extreme

    Just migrated from G4 iBook to an MBP. Currently still using my Snow Saucer (Dual Ethernet) airport base station (had to communicate with the Base using the iBook, and manually enter the MAC address of the MBP). When I go to the trouble of setting up

  • Need to Improve  pefromance for select statement using MSEG table

    Hi all, We are using a select statement using MSEG table which takes a very long time to run the program which is scheduled in back ground. Please see the history below.; 1) Previously this program was using SELECT-ENDSELECT statement inside the loop

  • Numerical Order for Photos

    Hello, I am trying to do one very simple thing. Have the photos in the timeline appear in numberical order. After all, that is the order they were taken in, I want them in that order. I can not find a way to do that other than by drag and drop which

  • Passing array result set between Viewstack pages

    Hi, all. I want to use an array result in various Viewstack pages. So the main application run a RemoteObject call, gives the result to a function that makes the area. I then want to call the array result from other pages in the Viewstack. Is there a

  • FW: Photo not showing on screen in photoshop 6 trial version

    I have downloaded the trial version of Photoshop 6, but when I open a photo in photoshop only a grey and white screen shows up, but on the little tab to the right I can see the photo in the background tab. How do I get the photo to show in the big sc