Checkin and checkout view with java

I went through the waveset API and I am trying to checkin and check out view/object.....I found a method which does it but im not sure what would the String id would be in the following method.
checkoutView(ViewMaster vm, java.lang.String id, java.util.Map options)
Here is what I have so far
Session ses = SessionFactory.getConfiguratorSession("http://127.0.0.1:8080/FIM/servlet/rpcrouter2",username,pass,false);
LighthouseContext lh = ses;
AbstractViewHandler avh = null;
ViewMaster vm = new ViewMaster(lh);
HashMap m = new HashMap();
GenericObject go = null;
go = avh.checkoutView(vm,String id, m);another way of checking out the object is throught LighthouseContext
but even there it requires a String id
I tried doing:
Session ses = SessionFactory.getConfiguratorSession("http://127.0.0.1:8080/FIM/servlet/rpcrouter2",username,pass,false);
LighthouseContext lh = ses;
HashMap m = new HashMap();
lh.getView("configurator", m);i got a following error:
com.waveset.util.WavesetException: Server exception: com.waveset.util.InternalError: Unable to locate view handler for 'configurator'
     at com.waveset.session.RemoteSession.getResultObject(RemoteSession.java:1076)
     at com.waveset.session.RemoteSession.rpc(RemoteSession.java:1027)
     at com.waveset.session.RemoteSession.callx(RemoteSession.java:955)
     at com.waveset.session.RemoteSession.call(RemoteSession.java:939)
     at com.waveset.session.RemoteSession.call(RemoteSession.java:925)
     at com.waveset.session.RemoteSession.call(RemoteSession.java:912)
     at com.waveset.session.RemoteSession.call(RemoteSession.java:901)
     at com.waveset.session.RemoteSession.getView(RemoteSession.java:799)
     at Test.main(Test.java:29)
thx
Edited by: djavia on Nov 6, 2007 6:51 AM

The format for the id parameter is <ViewName>:<ObjectName>.
eg, 'User:configurator'.
Michael.

Similar Messages

  • Facing problem to Checkin and checkout file from starteam using vba

    Hi,
    Im trying to checkin and checkout file in starteam through vba. I have imported the
    StarTeamSDK104.dll in reference in vba project and tried to accomplish my task.
    I am able to locate the file, but not able to checkout/checkin the file. I am not sure how to use checkin/checkout function in vba. I am getting an error at the checkout code(hichlighted in bold in the below code). Also I was able to
    do it in java but i want it in vba.
    Could someone help me on this.
    Below is the code im using.
    Sub ST_Test()
    Dim strAddress As String
    Dim nPort As Long
    Dim strUser As String
    Dim strPassword As String
    Dim strProjectName As String
    strAddress = "Sample Address"
    nPort = 1234
    strUser = "Sample Username"
    strPassword = "Sample Password"
    strProjectName = "Sample Project"
    Dim Factory As New StServerFactory
    Dim Server As StServer
    Set Server = Factory.Create(strAddress, nPort)
    Server.Connect
    Server.logOn strUser, strPassword
    Dim project As StProject
    Set project = FindProject(Server, strProjectName)
    Dim view As StView
    Dim finder As StStarTeamFinder
    Dim Folder As Stfolder
    Set view = project.DefaultView
    Set Folder = view.RootFolder
    For Each chk In Folder.getItems(Server.TypeNames.File)
        Dim fileitem As StFile
        Set fileitem = chk
        If fileitem.Name = "Filename.txt" Then
            fileitem.checkout(0,False,True,False )
        End If
    Next chk
    End Sub

    Hi,
    As for the checkout method, please refer to the following link:
    http://msdn.microsoft.com/en-us/library/office/aa223821(v=office.11).aspx
    The syntax is:
    expression.CheckOut(FileName)
    Jaynet Zhang
    TechNet Community Support

  • Pdf and djvu viewer with bookmark support.

    Hello everyone.
    Can someone advise me pdf and djvu viewer with a bookmarks support?
    I was using evince before but some time ago a bookmark support
    ceased to work for me.
    I mean a bookmark support with ability to open saved documents
    after restarting of viewer.

    Thanks for answer. As far as I discovered apvlv remembers the last position in pdf and djvu files but opens it only in pdf files correctly. At least it happens with my djvu files.

  • What do you think of this book: "Programming and Problem Solving with Java"

    Hello Everyone:
    This may be a strange post but I am wondering if anyone has read this book and what do you think of it?
    Book Information
    Title: Programming and Problem Solving with Java
    Authors: Neell Dale, Chip Weens, Mark Headington
    Publisher: Jones & Bartlett
    Thanks for any comments

    No believe me the book is bad! The only reason I asked is I am in a university class that uses those two books for there course. The author messed up on HelloWorld.java with 4 errors at compile time! How can anyone be that stupid since they are the ones who are supposed to be teaching me the fundamentals of Java. Anyhow I just wanted other people's thoughts about the books.
    Thanks again for your input.

  • Is it possible to play .rm and .wma file with java?

    Hello Friends,
    Please tell me,
    how to play .rm and .wma file with java?
    Thanks,
    Harsh Modha

    As far as I know, you can not play those files.
    Here you have the complete list of supported formats. Hope this helps.
    http://java.sun.com/products/java-media/jmf/2.1.1/formats.html
    Maybe you should try to convert from wma or rm to a supported format before attempting to play it.

  • Create database view with Java Dictionary

    Hi,
    is there a possibility to create and deploy a database view with the
    Java Dictionary (in SAP NetWeaver Development Studio)?
    It seems as if you can only create and deploy database tables.

    or else, with prior versions, use somethinig like this...
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/7094c365-e8c4-2910-62b6-93712dd555d4

  • OLAP on 11g and Materialised Views with Multiple Value-Based Hierarchies

    Hello OLAPians
    I am trying to setup Orable BIEE to report on an OLAP cube with pre-aggregated data. As OBIEE is not able to hook into the OLAP directly i have to create an SQL cubeview.
    Currently i am on a 10g OLAP environment and am using the oracle sample SQL cubeview generator to create an SQLview of my cube.
    The cube itself has multiple dimensions and these dimensions have multiple VALUE-based (ragged) hierarchies and dimension members can be shared across hierarchies also.
    Initially i had a problem running the view generator plugin because there is a bug within it that does not finish if there are multiple value-based hierarchies present. I was able to get around this by manually editing the limitmap for the cubeview and manually creating the SQL view.
    The question that i want to ask is how robust is the 11g materialised views with multiple value-based hierarchies and the sharing of dimension members across different hierarchies?
    Has anyone successfully been able to create a cubeview and import it into OBIEE without the hassle of manually editing the limitmap?
    A problem arises with the value-based setup whereby if the client creates a newer depth in the ragged hierarchy, i need to manually create the limitmap and the cube-view over again, and then re-map the BI Administration mappings.

    The simple answer to your question,
    how robust is the 11g materialised views with multiple value-based hierarchies...?is that materialized views are not supported on top of value-based hierarchies in 11g. The reason is that it is not possible to write a reasonable SQL statement that aggregates a fact over a value-based hierarchy. Such a SQL statement is necessary if we want to create a rewritable MV on top of the cube.
    But I suspect this is not what you are really asking. If you are trying to set up OBIEE on top of the cube in 10g using the view generator, then you will probably want to use the "ET VIEWS" that are generated automatically in 11g. These are generated whether or not you enable materialized views on top of your cube. I am not aware of any issues with the generated value-based hierarchy view support in 11g. Members may be shared between value hierarchies and you will not need to generate or modify limit maps.

  • OSX 10.4.10, Net beans and Sams Programing with JAVA

    I am brand new to Java so I downloaded Net Beans on my MAC. I bought a copy of Teach Your Self Programing with Java in 24 hrs.
    So far I got the first three programs to compile on Net Beans but got stuck when they started to talk about arguments. The following will not compile. Starting at line 2
    1) System.out.println("The " + arguments [0]
    2) + " " + arguments[1] + " fox "
    3) + "jumped over the "
    4) + arguments[2] + " dog. ")
    I get the little red x on each line.
    Is the book wrong or am I missing something?
    All the tutorials talk about Javac. I can't seem to find it or get to it on my computer. How do I know if I even have it?
    And is there such a thing as a "command line" on a MAC?

    Hi, you should put any code you post in between code brackets like this:
      code here   I dont use a mac or netbeans but javac is the java compiler, you would not have been able to compile the first two. The .exe (or whatever mac executable is) is usually located in the lib folder in the java directory. It comes when you download JDK. As for the code, it would help me if you posted the first couple lines of the error message. It looks fine to me, but I would need to see your whole class in order to help you further
    and yes there is a command line on a mac...i think its called terminal and usually looks like a little computer
    Edited by: jaredL on Sep 20, 2007 7:45 PM
    Edited by: jaredL on Sep 20, 2007 7:47 PM

  • Communication error when calling web service for checkin and checkout files

    Hello,
    I am trying to checkout  and also to checkin files within the DMS via web service. The files are stored in the VAULT (=TRESOR) without the data server parth and DVA computer.
    For checkout:
    Original zum Ändern auschecken
      CALL FUNCTION 'BAPI_DOCUMENT_CHECKOUTMODIFY2'
        EXPORTING
          documenttype    = pi_documenttype
          documentnumber  = pi_documentnumber
          documentpart    = pi_documentpart
          documentversion = pi_documentversion
          documentfile    = lf_documentfiles
          pf_http_dest    = ''
          pf_ftp_dest     = ''
        statusextern    = lf_status
        IMPORTING
          return          = lf_return
          checkedoutfile  = ls_checkedoutfile.
    and for checkin:
    Dokument einchecken
      CALL FUNCTION 'BAPI_DOCUMENT_CHECKIN2'
        EXPORTING
          documenttype    = pi_documenttype
          documentnumber  = pi_documentnumber
          documentpart    = pi_documentpart
          documentversion = pi_documentversion
          hostname        = ''
          statusintern    = ''
       statusextern    = lf_status
          statuslog       = ''
        IMPORTING
          return          = lf_return
        TABLES
          documentfiles   = lt_files.
    But it is not working cause I always get a 'communication error' from the function CV120_FTP_START_REG_SERVER when calling one of these BAPIs via web service:
    IF pf_check_gui = 'X'.
        CLEAR: gf_gui_exist,
               gf_gui_checked.
        CALL FUNCTION 'RFC_PING'
             DESTINATION 'SAPGUI'
             EXCEPTIONS: communication_failure = 1 MESSAGE lf_msg_text
                         system_failure        = 2 MESSAGE lf_msg_text.
        IF sy-subrc = 0.
          gf_gui_exist = 'X'.
        ELSE.
          CLEAR gf_gui_exist.
        ENDIF.
        gf_gui_checked = 'X'.
      ENDIF.
    Afterwards the following function is called where I got the error 'Program no longer started via RFC. No return possible.':
    -> Vault with DVA -> ** Start FTP on the client
      CALL FUNCTION 'SYSTEM_START_REG_SERVER'
           EXPORTING: progname    = 'sapftp'
                      startmode   = ''                          " X
                      exclusiv    = 'Y'
                      waittime    = 500
                      startcomp   = 'C'    " G=gui, C=RFC
                      startpara   = ' '
          IMPORTING: err_code    = lf_errno
                     err_mess    = lf_error_msg
                     destination = pfx_destination.
    Regards
    Jens

    Hi! As mentioned below I had the same problem.
    There are two notes concerning security setting of the SAP Gateway:
    1069911 - GW: Changes to the ACL list of the gateway (reginfo)
    1480644 -  gw/acl_mode versus gw/reg_no_conn_info
    Your basis team should check if the Gateway settings allow external programs to register on the gateway.
    Best regards
    Dominik

  • How to use activeX viewer with java( CR XI)

    Post Author: jws1624
    CA Forum: JAVA
    Hi
    I could find any sample source or refference about usging activeX viewer and java (CR XI R2 sp3).
    Because of downloading excel(export function), I can't choose JRC viewer . So I think activeX viewer is only way to solve my problem.
    Can anyone let me know how to coding it with jsp? ( there are saveral samples in asp code, but not jsp)

    Post Author: Ted Ueda
    CA Forum: JAVA
    The limitation of not having Excel exports is specific to the Crystal Reports Java Reporting Component, and not with the viewer.ActiveX viewer is supported with the Report Designer Component, which is not Java but COM based - the RDC furthermore is deprecated, and not supported starting with Crystal Reports 2008.  The ActiveX viewer is also supported with Crystal Reports Server and BusinessObjects Enterprise.If you use CR.NET, then Excel export is supported - however, as its name implies, it uses a .NET-based SDK.Sincerely,Ted Ueda 

  • Slow, not responding, and not compatible with java etc since updating to 6.0.2. Love Firefox normally but am not happy.

    Since updating to Firefox 6.0.2 i have not been happy with the way it is running. It is incredibly slow, keeps telling me its 'not responding' and looking at my add-ons, seems incompatible with the java console, with skype click to call, etc. I also seem unable to look at complex 3d graphics online, which used to work fine. Now they end up crashing the system.
    This is a big problem for me, and i have noticed (on your other forums on this website) that others are having similar problems.
    Is there any thing i can do before this problem is eventually fixed by firefox?

    i tried. like i said, only when i disable all i can watch youtube. i have not checked settings of extensions but i am not an it specialist. i probably would not know what to look for.

  • Windows and Mac hostnames with Java.

    Hi,
    I'm not sure if this is the correct board or not for this, but I'm really getting frustrated, and I'm sure it's something easy for someone who knows.
    Anyway.. I'm working on some Java software for school, and I'm trying to get the program to run on my 2 machines (one is the MBP, and the other is a windows XP pc), but I'm having trouble having trouble finding one machine from the other (in either direction) because neither can seem to find the hostname of the other.
    On my Mac, from the Sharing panel I have set my local hostname to david.local. On my windows box, my hostname is david. I can ping myself on each machine, but when I try to hit the other, the hostname can't be found.
    Please help me figure this out. I know it has something to do with the naming, because I gotten this to work a couple of years ago for another project. Only.. it's been a while and I hadn't had to do it since then, so I've forgotten what I had to do back then to get it working.
    Any help with be greatly appreciated!
    David

    Hi Rick,
    I changed the Mac so it would be on Mshome (yes, I left it as the default in windows.. lol.)
    Rebooted both.. no dice.
    A question about this though.. can I still connect to other networks? I take my computer to school, and I have never had to change this before, and everything had worked smoothly.
    Oh! That reminds me. I can connect to shared folders on my Windows machine from my Mac with the Connect to Server from Finder. I do smb://david/<shared folder> and it all worked out just fine, without the workgroup being set. (Still works now, btw)
    Thanks,

  • Motion JPG viewer with Java FX

    Hi
    I am looking the way to build image viewer ,
    There is the folder in one server with one image file name only . I can access to this image from URL address , this image will update every 5 second .
    I want to make one JavaFX application to display the image like motion image
    That mean application need kind of thread or data bind to load image every 2 second and seamlessly update the image viewer .
    What would the best way to do that in JavaFX 2.0 ?
    Thanks
    Mavaj

    1. Create an ImageView and place it in your scene.
    2. Create a Timeline which cycles forever and has a keyframe every 2 seconds.
    3. In the KeyFrame event handler create a new Image based on the url and set the Image into the ImageView.
    4. Play your timeline.
    The Timeline will take care of all the threading so you don't have to worry about it.
    The Image implementation will take care of the Image fetching from the url.

  • HT202912 How do I remove Java 1.7 and replace this with Java 1.6.0_65?

    I need to get back to  an older JRE specifically Java 1.6.0_65. Right now I have Java 1.7.-_71-b14.
    I've tried the instruction in the terminal - sudo rm -fr /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin
    That doesn't work. In Terminal mode, a "java -version" query returns the same "Java 1.7..." indicating it has not been removed. What else do I have to do here ?
    Thanks

    I need to get back to  an older JRE specifically Java 1.6.0_65. Right now I have Java 1.7.-_71-b14.
    I've tried the instruction in the terminal - sudo rm -fr /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin
    That doesn't work. In Terminal mode, a "java -version" query returns the same "Java 1.7..." indicating it has not been removed. What else do I have to do here ?
    Thanks

  • Reading and generate IDocs with Java

    Hello guys,
    I need to develop an application that transform IDocs to XML and XML to IDocs, doing modifications like sum on some fields (by a metadata file).
    Can anyone help me to find how I can do that?
    Regards,
    Julio Sardella

    Thank you guys, but that didn't helped me so much.
    I've forgot to say that my application has to be a stand-alone app that convert xml to idoc and vice-versa but outside the SAP environment. It's kinda robot app. It's just convert the files and trasnfer to the both sides (DI and a private app).
    Sorry for the low level of information.
    Regards,

Maybe you are looking for

  • What exactly does cm:select ... select from?

    Hello, I have just started playing around with personalization server and I am having a really simple problem. I am using the <cm:select query="..." /> tag and I can never get it to return any results. The variable that it returns is always an array

  • Adobe Reader XI opening document issue

    I have just uploaded Adobe Reader XI and now I am unable to open any pdf documents.When opening ths document there are no details showing up. How can I fix this?

  • How to I recover deleted pictures from my iCloud account?

    How do I recover deleted pictures from my iCloud account?

  • Oracle Client Version

    Hi, We are on PT 8.46.04 and FSCM 8.8 and planning to upgrade the Batch NT server Hardware running on Windows Server 2000 SP4 to WIndows Server 2003. We are also upgrading the Oracle database from 9.0.2.1.0 to 10g. My question is, do we need to upgra

  • Error Message When Attempting to Open a Portfolio of Projects

    "The description cannot exceed the maximum length of 400 kilobytes" When I click OK it returns me to all projects again rather than just the projects in the portfolio I have selected. What is causing this?