Extending CheckOut & CheckIn

Hi,
Is it possible extending CheckOut & CheckIn commands in InDesign CS 4 ?

When you check-out documents Content DB creates a server side 'working copy'. This object may be updated multiple times and then checked-back in when you are done with your edits.
The versionManager.checkoutDocuments method returns you the id of the working copy. You need to call the checkin method on this object.
regards,
-sancho

Similar Messages

  • Checkout/Checkin View problem

    Hi,
    I need to do checkout a user view and update the values in that and then checkin the view.
    When i do a trace, only user.waveset.accountId is being displayed. The global variables like user.global.firstname, user.global.lastname are all coming as null. I have included firstname, lastname etc in the userextendedattributes also.
    I am checking out the view as the WF_CASE_OWNER and modifying WF_CASE_OWNER user view only. (Basically, its like Self service functionality, user can change his own address etc)
    What am i missing in this? Can anyone please help me out?
    Thanks

    Thanks for your prompt reply.
    I am accessing the views from enduser interface. I have already given authorized=true and subject as that of the WF_CASE_OWNER. I am able to get the user.waveset.accountId when i put the trace, but not the other attributes like user.global.firstname, etc.
    In the task it doesnot throw any error. In the tasks instances- the status is "finished"
    But my checkout and checkin view actions are like below:
    <Action id='1' application='com.waveset.session.WorkflowServices'>
    <Argument name='op' value='checkoutView'/>
    <Argument name='type' value='User'/>
    <Argument name='id'>
    <ref>WF_CASE_OWNER</ref>
    </Argument>
    <Argument name='authorized' value='true'/>
    <Argument name='subject'>
    <ref>WF_CASE_OWNER</ref>
    </Argument>
    <Return from='view' to='user'/>
    </Action>
    <Action id='2' application='com.waveset.session.WorkflowServices'>
    <Argument name='op' value='unlockView'/>
    <Argument name='view'>
    <ref>user</ref>
    </Argument>
    <Argument name='subject'>
    <ref>WF_CASE_OWNER</ref>
    </Argument>
    <Argument name='authorized' value='true'/>
    </Action>
    Can you please tell me what i am missing.

  • Checkout & checkin process

    hi
    can any one tell how to checkout and checkin while creating applications in webdynpro.
    regards
    vijaya
    Message was edited by:
            vijaya lakshmi

    Hi Vijayalakshmi,
         To do checkout and checkin first u should have access to DTR(User ID and Password).If u have them ,then this is the process:
    First you open the "implementation Perspective " of a view and try to modify the code(You can simply press your space bar on the keyboard),then it will automatically ask you for "checkout".If you say "yes" for checkout it will ask for user ID and password .If you provide that it will do a process of "checkout",now you can able to modify the code.If you try to  modify it ,one window will popup asking the name of the" activity",give a name for the "activity" and press OK.
    After completion of your modifications go to the "Development Configurations" perspective ,in that go to "open activities".There you can see the name of your "activity" ,right click on that activity,you can see the "checkin" option .
    Click it ,it will ask for information,say OK,ACTIVATE.Your  code will be successfully go to the DTR.
    Reward me with points if this information is helpful to you.
    Message was edited by:
            Bharath Akuthota

  • Checkout & checkin

    Hello,
    i've tried to modify the Versioning example from the Content DB Developers Guide. This one works pretty fine with an auto versioning test (Attributes.VERSIONING_CONFIGURATION_AUTO_VERSION, Boolean.TRUE).
    But I dont get the manual versioning...
    (Attributes.VERSIONING_CONFIGURATION_AUTO_VERSION, Boolean.FALSE)
    For testing purpose i delete all items within the folder, then generate a new DocDefinition an than a Document. Now i've tried to checkout this Item an then to check the same Item in...
    But here is the Problem: Within the checkin process i recieve an ORACLE.FDK.AggregateError (ORACLE.FDK.OperationOnlyAllowedForWorkingCopy)
    What should i do to check the same item (but content changed) in, so i get a Version 2 of the Item?
    The Versioning Example generates two items... but imho is this not the checkin/checkout principle like in CVS or SVN!?

    When you check-out documents Content DB creates a server side 'working copy'. This object may be updated multiple times and then checked-back in when you are done with your edits.
    The versionManager.checkoutDocuments method returns you the id of the working copy. You need to call the checkin method on this object.
    regards,
    -sancho

  • Create new version, checkout, checkin workflow not correct via abap

    Hey,
    I wrote an abap programm with the following workflow:
    - I create a new version of the document CVAPI_DOC_CREATE_NEW_VERSION
    - I check out the new version with CVAPI_DOC_CHECKOUTMODIFY
    - I check in the file with the new content CVAPI_DOC_CHECKIN
    And now there are 2 files in DMS with the same version. But there should be only one document with version 01.
    The method CREATE_NEW_VERSION creates an dms document. But also the CVAPI_DOC_CHECKIN method creates an document in dms. But the checkin method should override the new version.
    Thanks for your support.
    BR,
    Christoph

    Hi Christoph,
    unfortunately it is very hard to suggest a detailed solution for your individual program. Personally I would recommend you to
    use the following sequence:
    - I create a new version of the document CVAPI_DOC_CREATE_NEW_VERSION
    - BAPI_DOCUMENT_GETDETAIL2 to read out the current document data
    - I check out the new version with CVAPI_DOC_CHECKOUTMODIFY
    - BAPI_DOCUMENT_GETDETAIL2 to read out the current document data
    - I check in the file with the new content API_DOCUMENT_MAINTAIN2 or BAPI_DOCUMENT_CHANGE2.
    If you enter the storage category in the table DOCUMENTFILES of the mentioned function modules the file should be
    checked in again. For further information on the DMS BAPI behavior please see the attached documentation to SAP note 766277.
    Best regards,
    Christoph

  • 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

  • How to checkout from the batch script?

    Hello All !
    Does anybody knows how to maintain versioned files with the batch scripts? Particularly I'm talking about doing a checkout/checkin operations. Are any command-line utilities available? Is it possible at all?
    Regards, Sergey.

    you can get entire table script
    select dbms_metadata.get_ddl('TABLE','TABLE_NAME','SCHEMANAME') from dual;
    IT is not possible to get only the partition script
    As it is a part of table definition.
    You can also use the third party tool like 'TOAD' to get the script also.

  • Intradoc ClassCastException occurred after an update or a checkin of a doc

    Our website (developed in Java) use the oracle.ucm.irdc-11.1.1.jar sdk in order to connect and retrieve documents from the WebCenter and show it in our web application.
    In the webcenter content, I update the meta data (a date) using the Content Action> update menu of the Content Information of a specific document.
    In our web application, when we try to retrieve the document (which the metadata are now updated) with the “GET_SEARCH_RESULTS” idc service, our web application crash due to an error occurred in the webcenter server :
    ++Event generated by user 'ILL-CIS-StepING' at host 'CIS'. Unable to retrieve search results. Unable to execute service method 'getSearchResults'. Runtime error: java.lang.ClassCastException: java.lang.Long cannot be cast to java.lang.String [ Details ]++
    ++An error has occurred. The stack trace below shows more information.++
    +!csUserEventMessage,ILL-CIS-StepING,CIS!$!csUnableToRetrieveSearchResults!csUnableToExecMethod,getSearchResults!syServiceRuntime,java.lang.ClassCastException: java.lang.Long cannot be cast to java.lang.String+
    intradoc.common.ServiceException: !csUnableToRetrieveSearchResults!csUnableToExecMethod,getSearchResults
    *ScriptStack GET_SEARCH_RESULTS+
    +3:getSearchResults,**no captured values**+
    at intradoc.server.ServiceRequestImplementor.buildServiceException(ServiceRequestImplementor.java:2115)
    at intradoc.server.Service.buildServiceException(Service.java:2326)
    at intradoc.server.Service.createServiceExceptionEx(Service.java:2320)
    at intradoc.server.Service.createServiceException(Service.java:2315)
    at intradoc.server.Service.doCodeEx(Service.java:654)
    at intradoc.server.Service.doCode(Service.java:575)
    at intradoc.server.ServiceRequestImplementor.doAction(ServiceRequestImplementor.java:1643)
    at intradoc.server.Service.doAction(Service.java:547)
    at intradoc.server.ServiceRequestImplementor.doActions(ServiceRequestImplementor.java:1458)
    at intradoc.server.Service.doActions(Service.java:542)
    at intradoc.server.ServiceRequestImplementor.executeActions(ServiceRequestImplementor.java:1391)
    at intradoc.server.Service.executeActions(Service.java:528)
    at intradoc.server.ServiceRequestImplementor.doRequest(ServiceRequestImplementor.java:737)
    at intradoc.server.Service.doRequest(Service.java:1956)
    at intradoc.server.ServiceManager.processCommand(ServiceManager.java:437)
    at intradoc.server.IdcServerThread.processRequest(IdcServerThread.java:265)
    at intradoc.server.IdcServerThread.run(IdcServerThread.java:160)
    at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:545)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)
    Caused by: java.lang.ClassCastException: java.lang.Long cannot be cast to java.lang.String
    at intradoc.search.SearchCacheUtils.checkRowAgainstQueryElementClause(SearchCacheUtils.java:1772)
    at intradoc.search.SearchCacheUtils.checkRowAgainstQueryElement(SearchCacheUtils.java:1578)
    at intradoc.search.SearchCacheUtils.checkRowAgainstQueryElement(SearchCacheUtils.java:1572)
    at intradoc.search.SearchCacheUtils.checkRowAgainstParsedQuery(SearchCacheUtils.java:1529)
    at intradoc.search.SearchCacheUtils.checkSatisfiesQuery(SearchCacheUtils.java:1286)
    at intradoc.search.SearchCacheUtils.checkAndCaptureDocListChanges(SearchCacheUtils.java:1028)
    at intradoc.search.SearchCache.checkCache(SearchCache.java:533)
    at intradoc.server.SearchService.getSearchResults(SearchService.java:507)
    at sun.reflect.GeneratedMethodAccessor157.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at intradoc.common.IdcMethodHolder.invokeMethod(IdcMethodHolder.java:86)
    at intradoc.common.ClassHelperUtils.executeMethodEx(ClassHelperUtils.java:310)
    at intradoc.common.ClassHelperUtils.executeMethod(ClassHelperUtils.java:295)
    at intradoc.server.Service.doCodeEx(Service.java:620)
    +... 15 more+
    Here is the query text used :
    xLang <substring> `fr` <AND> (xMarket <contains> `0`) <AND> (xUserCategory <contains> `PUB`) <AND> (xInternetValidityDate <= `11/23/2012` <AND> xInternetExpirationDate > `11/23/2012`) <AND> (dDocType <matches> `ABOUT_US`) <AND> ((xFileType <matches> `pdf` <OR> xFileType <matches> `doc` <OR> xFileType <matches> `xls`)) <AND> (dDocTitle <substring> `` <OR> (xKeywords <substring> ``) <OR> (<ftx>{}</ftx>))
    In order to do not have this problem error, I need to ask to the administrator to restart the webcenter server or to rebuild the index and in this case the problem disappear.
    This problem occurs each time when we modify a metadata (for example : File type, expiration date,etc.) on any document.
    Of course, it is not acceptable to reboot the webcenter application each time a check-in/update is done.
    Could you please help us on this issue ?
    Thank you in avance.

    Maybe to help, I precise the use cases that lead to the ClassCastException.
    As previously sent, the query used is :
    xLang <substring> `fr` <AND> (xMarket <contains> `0`) <AND> (xUserCategory <contains> `PUB`) <AND> (xInternetValidityDate <= `28/11/2012` <AND> xInternetExpirationDate > `28/11/2012`) <AND> (dDocType <matches> `ABOUT_US`) <AND> ((xFileType <matches> `pdf` <OR> xFileType <matches> `doc` <OR> xFileType <matches> `xls`)) <AND> (dDocTitle <substring> `` <OR> (xKeywords <substring> ``) <OR> (<ftx>{}</ftx>))
    In our use case, the query returns two results : result1 and result2
    Use case 1
    I change the “fileType” metadata of the document “result1” in order to be out of the result. In this case, I put “fake” as fileType. The query returns only one result : result2 as expected -> OK
    Use case 2
    I change the “fileType” metadata of the document “result1” and I put the original value (“doc”). So, this item should be back in the result. The query raises the “ClassCastException” -> KO
    To be able to query again, I have to launch the “Collection Rebuild Cycle”.
    I relaunch the query again. It returns the two expected items.
    Use case 3
    I make a new check-in of a document. The metadata of this item are filled in order to have this item as result of the query. I launch the query … and the exception “ClassCastException” is raised. -> KO
    To be able to query again, I have to launch the “Collection Rebuild Cycle”.
    I relaunch the query again. It returns the three expected items (including now the newly created item) : result1, result2 and result3
    Use case 4
    I realize a checkout-checkin of the item “result1”. A new release of the document is done without modifying the metadata. The query returns the three expected results : result1, result2 and result3 -> OK
    Use case 5
    I update a metadata of “result1” but in order to let it in the result of the query. For example, I modify the internet expiration date : From 01/01/2015 to 01/01/2020. The query returns the three expected results : result1, result2 and result3 -> OK
    Use case 6
    I update a metadata of “result1” but in order to put it out of the result of the query. For example, I modify the internet expiration date : From 01/01/2020 to 01/01/2000. The query returns the two expected results : result2 and result3 -> OK
    Use case 7
    I update a metadata of “result1” but in order to put it back in the result of the query. For example, I modify the internet expiration date : From 01/01/2000 to 01/01/2020 (the original value). The query raises the “ClassCastException” -> KO
    I hope it can help.
    It is a real blocking point for us.

  • Configuring ClearCase for LV8

    Hi,
    I am trying to configure ClearCase to run with LV8. I have setup and
    multiple different SCC programs (PVCS, VSS, Perforce, etc.) with LV8
    but cannot figure out how to configure the directory and the project
    for ClearCase.
    Do I need to create a Project VOB or just a Project View? If I just
    have a Base View is it possible to link ClearCase to LV?
    Any help would be greatly appreciated.
    Thanks.
    Randy

    Hello Again,
    RGSchmidt wrote:
    Thanks for input but I want to integrate CC with LV.
    The developers are not following the rules with seperately running apps so I need to force the issue. We have been creating and using Views for a long time. LV does not work with a VOB only a PVOB.
    Any help in integrating the 2 would be greatly appreciated.
    I felt sure this was incorrect;  a PVOB
    only has real meaning to ClearCase UCM and if a PVOB was needed then anybody
    using Base ClearCase (a far better way of working) would be unable to integrate
    LV and ClearCase. 
    So I download the LabView 8.2.1 evaluation copy,
    installed it and started it up,  configured ClearCase as the source control
    system and it worked first time with no PVOB and
    no problems. I only have ClearCase VOBs as I hate UCM. :-)
    I can checkout,
    checkin, see the VI history (ClearCase history that is).  There a quite a number
    of things you cannot do with the integration and as such will still often want
    to use the ClearCase explorer to be able to work. 
    The only
    reference to UCM in the whole thing was an option in the Advance Settings
    window. In the Source Control Panel
    setting (LabView options), there is an advance button next to the "Source
    control provider name", in this Advance window under operations there is an
    option "Always prompt for an activity when working in a view of a ClearCase
    Project." that is an obvious reference to a UCM activity, but even with that
    still ticked Base ClearCase works fine.
    My system is
    Base ClearCase
    (not UCM)
    VOB and View
    server are running on a Sun system
    Client is on a 
    Windows XP box.
    Steps I took
    (assumes familiar with ClearCase terms)
    LV
        LV Source
    Control Panel   --- Source Control Provider Name -- ClearCase   --- all options
    can be left as default.
    ClearCase
    Using a normal VOB
    --  called ATS.
    I have a number of
    ClearCase already views created. 
    The Views need to
    be controlled vi ClearCase NOT LV,  use ClearCase explorer or Homebase or
    command line to create your views as you normally do. 
    Ensure that your
    VOB is mounted (use ClearCase explorer)
    Ensure your view
    have started and has been mounted. For example my view dannyt-test is mounted to
    drive P:
    Navigate to your
    LabView VI's within ClearCase vi the View mount point - so
    P:\ATS\LVProject\
    Open your VI, now
    the  in Tools -> source Control -> you can checkin / checkout the
    VI.
    I have not tried
    using the View extended pathname method, but I would expect that to work as
    well.
    As somebody who
    has worked as a build release manager and ClearCase administrator I would not
    expect the level of integration of LabView and ClearCase to solve your
    problem
    Getting developers
    to follow rule  needs to be done with training, encouragement,  ClearCase
    triggers and a good source control process that is both clear and workable. The
    final item is a very large stick :-)
    What part specifically is not working for you ?  do you have any error messages ?
    good
    luck 
    cheers
    Dannyt
    Danny Thomson CLAD
    Sub10 Systems Ltd

  • HANA Studio: Installation and usage

    Hi,
    I am currently retaking the the introduction course in the HANA development and wonder about the HANA studio GUI presented there.
    Installation:
    I see on the HANA Dev site that there is the Studio and the Client. Do I need both for installation? Or is in the studio already the client provided? If not, why are they separated? (instead of combined?)
    Short: What is finally required for installation?
    Plus in the intro on the second unit it is mentioned that I have to install as well some regi (???) client to access the HANA repositories. Is this still true? Also reg. config I see in the 1.0.80 version not the config-items as mentioned in the video. So, do I need them? resp. where to configure them?
    Usage:
    And last but not least I wonder about the statement that the System View is not much used. Better use the Project Explorer (or so). According to the video you could create your own files with the extensions you like and they will automatically associate with the proper editor. Is it really that in daily business the System View is hardly used? One creates his/her own files with appending the appropriate file ending?
    roland

    >Since everything is done in the System View (e.g. create an Analytic View) where is it stored?
    It doesn't matter if you use the Systems View or the Project Explorer; the content is stored the same place/way on the server. When you save/commit in either tool the content is always stored in the HANA Repository.  The HANA Repository is just a set of database tables (_SYS_REPO schema).
    >Before activation and after?
    You shouldn't really go picking around in the Repository database tables, but if you are curious before activation the content is stored in _SYS_REPO.INACTIVE_OBJECT and after activation in _SYS_REPO.ACTIVE_OBJECT.
    >Therefore that I cannot switch forth and back with versions of a View, correct?
    If you use the project explorer you can just access the version management from the History tab and restore or compare from any previous versions:
    >When I follow your video, than I create first a package in the System, which will be updated in my repository view. Checkout, checkin, compare old vs. older version, etc. can only be done in the Repository View, correct?
    You have to keep in mind that the Systems view was created before we really had a developer perspective in HANA Studio. It was design with Information Modeling (view creation) only in mind. Therefore in SPS05 when we added the developer perspective and many of the new development artifacts we introduced the repository and project explorer view.  When you create a package via either tool - they are the same thing. However if you want to then work with a project or any of the newer development artifacts you must check out the project from the repository view and edit the objects via the project explorer.
    >Is it also possible to check (resp. compare) if something in a folder structure was changed?
    Changed by someone else after you checked it out? If so, you usually would just do another check out from the project.  Otherwise you will find any conflicts when you activate.
    >In SPS08 the project is automatically connected with the Team and I don't have to do anything further, like Share. Correct?
    Correct.  We continue to make usability enhancements and the automatic sharing of a project during the project creation wizard is one of those.  We will continue with such enhancements in SPS09 - allowing the project creation wizard to also general some of the basic development artifacts (like xsapp and xsaccess) for you.  You might be interested to know that we have a new openSAP course for HANA development starting at the beginning of October and it is based upon SPS08 and will showcase these improved workflows.
    >For SPS08 is there an easier way to create the .xsaccess-file?
    There is a new wizard that inserts a template content. It certainly shouldn't lock up your system to choose the wizard. Not sure why that would happen.  You can also use the HANA Application Lifecycle Management tools and its Application Creation Wizard to generate the initial development objects with template content. For the complete list of all available options, please refer to the developers' guide on help.sap.com.
    >Editor = at least two tabs, one with drop-down lists and one with text-files
    Not within the Studio.  After you have created the XSACCESS File it can be 'configured' via the XS Admin web interface. Not all options of the xsaccess file can be set from the XS Admin tool yet, however. Today you can mainly configure the authentication options.
    In SPS09 we will extend these options to also include the CORS and Headers configuration:
    >Does this mean, the files are automatically synced?
    They are automatically committed upon any create or save operation.  Originally in SPS05 you had to always choose to commit via a context menu.  To improve the user experience we changed this to automatic. The manual commit menu option is still there (team->commit from the right mouse context menu). However it is really only needed if something goes wrong with the communication to the server or if you were developing offline and then want to force sync with the server at a later time.
    >Since in the connection no specifics reg. server, port is provided I wonder how the magic is done
    No magic.  The XSJS code executes within the database.  There is nothing for it to connect to since by its very definition it is always running within the database. The XS server isn't a separate application server connecting via JDBC or ODBC.  The main point of XS is that it is a light weight application server fully embedded within the database.

  • Getting errors when trying to execute CRUD programs

    Hi All
    I am trying to execute one of the CRUD programs for creating , updatying or deleting data in MDM server and a m getting a few errors .Could anybody advise.
    Created on Jun 6, 2007
    package com.sap.nw.mdm.rig;
    import com.sap.nw.mdm.rig.programs.data.blobs.BLOBDataProgram;
    import com.sap.nw.mdm.rig.programs.data.checkout_checkin_rollback.CheckOutCheckInRecordsProgram;
    import com.sap.nw.mdm.rig.programs.data.crud.CRUDDataProgram;
    import com.sap.nw.mdm.rig.programs.data.crud.bulk.BulkCRUDDataProgram;
    import com.sap.nw.mdm.rig.programs.data.keymapping.KeyMappingProgram;
    import com.sap.nw.mdm.rig.programs.data.search.SearchProgram;
    import com.sap.nw.mdm.rig.programs.data.search.attribute.AttributeSearchProgram;
    import com.sap.nw.mdm.rig.programs.data.search.field.FieldSearchProgram;
    import com.sap.nw.mdm.rig.programs.data.syndication.SyndicationProgram;
    import com.sap.nw.mdm.rig.programs.data.workflow.WorkflowProgram;
    import com.sap.mdm.data.RegionProperties;
    import com.sap.nw.mdm.rig.repository.Repository;
    import com.sap.nw.mdm.rig.server.Server;
    This class is the starting point to execute all sample programs.
    To see a description of the various programs you can execute, please have a look at the
    documentation for the following classes.  There are static variables in each of these
    classes that point to the various programs that can be executed with a description of
    what the program does.
    <ul>
    <li>{@link com.sap.nw.mdm.rig.programs.data.blobs.BLOBDataProgram}
    <li>{@link com.sap.nw.mdm.rig.programs.data.checkout_checkin_rollback.CheckOutCheckInRecordsProgram}
    <li>{@link com.sap.nw.mdm.rig.programs.data.crud.CRUDDataProgram}
    <li>{@link com.sap.nw.mdm.rig.programs.data.crud.bulk.BulkCRUDDataProgram}
    <li>{@link com.sap.nw.mdm.rig.programs.data.keymapping.KeyMappingProgram}
    <li>{@link com.sap.nw.mdm.rig.programs.data.search.SearchProgram}
    <li>{@link com.sap.nw.mdm.rig.programs.data.search.attribute.AttributeSearchProgram}
    <li>{@link com.sap.nw.mdm.rig.programs.data.search.field.FieldSearchProgram}
    <li>{@link com.sap.nw.mdm.rig.programs.data.syndication.SyndicationProgram}
    <li>{@link com.sap.nw.mdm.rig.programs.data.workflow.WorkflowProgram}
    </ul>
    @author Richard LeBlanc
    public class Application {
         private Application() {
    Starts the application and executes a program
    @param args - not required
         static public void main(String[] args) {
              System.out.println("876876");
              Application app = new Application();
              System.out.println("11111");
              Program program = null;
              System.out.println("22222");
    Simply uncomment the line that contains the program you wish to execute and run this class.
    Blob Programs
    //          program = BLOBDataProgram.RETRIEVE_AND_WRITE_IMAGE_TO_FILE;
    //          program = BLOBDataProgram.RETRIEVE_AND_WRITE_PDF_TO_FILE;
    Checkout/Checkin Data Programs
    //          program = CheckOutCheckInRecordsProgram.CHECK_OUT_NEW_CHECK_IN;
    //          program = CheckOutCheckInRecordsProgram.CHECK_OUT_NEW_ROLLBACK;
    //          program = CheckOutCheckInRecordsProgram.CHECK_OUT_EXISTING_CHECK_IN;
    //          program = CheckOutCheckInRecordsProgram.CHECK_OUT_EXISTING_ROLLBACK;
    Create Read Update Delete (CRUD) Data Programs
    //          program = CRUDDataProgram.CRUD_HIERARCHY_TABLE;
              program = CRUDDataProgram.CRUD_MAIN_TABLE;
    //          program = CRUDDataProgram.CRUD_MAIN_TABLE_WITH_FLAT_AND_HIERARCHY_LOOKUP_FIELDS;
    //          program = CRUDDataProgram.CRUD_MAIN_TABLE_WITH_QUALIFIED_LOOKUP_FIELD;
    //          program = CRUDDataProgram.CRUD_MAIN_TABLE_WITH_TAXONOMY_LOOKUP_FIELD;
    //          program = CRUDDataProgram.CRUD_TAXONOMY_TABLE_WITH_ATTRIBUTES;
              System.out.println("333333");
    Bulk Create Read Update Delete (CRUD) data programs
    (many records at once)
    //          program = BulkCRUDDataProgram.BULK_CRUD_MAIN_TABLE;
    KeyMapping Programs
    //          program = KeyMappingProgram.RETRIEVE;
    Search Programs
    //          program = SearchProgram.DRILL_DOWN_SEARCH;
    //          program = SearchProgram.KEYWORD;
    //          program = SearchProgram.MASK;
    //          program = SearchProgram.NAMED_SEARCH;
    //          program = SearchProgram.QUALIFIER;
    Attribute Search Programs
    //          program = AttributeSearchProgram.COUPLED_NUMERIC;
    //          program = AttributeSearchProgram.NUMERIC;
    //          program = AttributeSearchProgram.TEXT;
    Field Search Programs
    //          program = FieldSearchProgram.BOOLEAN;
    //          program = FieldSearchProgram.CURRENCY;
    //          program = FieldSearchProgram.LITERAL_DATE;
    //          program = FieldSearchProgram.LOOKUP;
    //          program = FieldSearchProgram.TEXT;
    Syndication Programs
    //          program = SyndicationProgram.SYNDICATE_PORT;
    Workflow Programs
    //          program = WorkflowProgram.EXECUTE;
              //TODO enter MDS name
              String mdsName = "172.18.139.200"; //the name of the Master Data Server
              String repositoryName = "GDS_1"; //make sure this is the name you use when unarchiving
                                                           //the repository otherwise change it to reflect the name
                                                           //of your repository
              String regionName = "English [US]";
              String userName = "Admin"; //there is an admin user with no password in the provided repository
              String password = ""; //there is an admin user with no password in the provided repository
              System.out.println("67r86587");
              app.start(mdsName, repositoryName, regionName, userName, password, program);
    Establishes a connection to the given server and logs in to the given repository
    with the given logon information and executes the given program
         private void start(String serverName, String repositoryName, String regionName,
                                  String user, String password, Program program) {
              //Create an instance of the MDS
              Server server = Server.getInstance(serverName);
              System.out.println("444444");
              //Get the list of running repositories from the server
              Repository[] repositories = server.getRepositories();
              System.out.println("5555");
              Repository repository = null;
              //Go through the list of repositories and see if any match the
              //given repository name
              for(int i=0, j=repositories.length; i<j; i++){
                   System.out.println("666666bbye");
                   if(repositories<i>.getIdentifier().getName().equals(repositoryName)) {
                        System.out.println(" hello" +repositoryName);
                        repository = repositories<i>;
                        System.out.println(" hi"   + repository);          
              //Get the list of regions for the repository
              RegionProperties[] regions = repository.getRegions();
              RegionProperties region = null;
              //Go through the list of regions and see if any match the given
              //repository name
              for(int i=0, j=regions.length; i<j; i++){
                   System.out.println(" hello");
                   if(regions<i>.getName().equals(regionName)) {
                        region = regions<i>;
                        System.out.println(" 99999" +region);
              //Login to the repository as you would using the Data Manager
              //This creates a user and repository session that are available using
              //repository.getSession()
              repository.login(region, user, password);
              //execute the program from the list above
              program.execute(repository);
              System.out.println(" finally");
              //destroy the session (destroys the repository and user sessions)
              repository.getSession().destroy();
              //close the connection to the MDS
              repository.getServer().closeConnection();
    I am getting the following errors:
    Exception in thread "main" java.lang.IllegalArgumentException: Table with Code 'Products' does not exist in the repository 'GDS_1'
         at com.sap.mdm.internal.schema.RepositorySchemaImpl.getTableSchema(RepositorySchemaImpl.java:136)
         at com.sap.nw.mdm.rig.programs.data.crud.CRUDMainTableRecordProgram.execute(CRUDMainTableRecordProgram.java:33)
         at com.sap.nw.mdm.rig.Application.start(Application.java:211)
         at com.sap.nw.mdm.rig.Application.main(Application.java:157)

    Hi Stephen,
    I assume that a super admin user does not get these error messages, right? If so, this behaviour might come due to missing permissions on PCD objects for the user rubinmd. Please apply note 792370 which explains how to set end user permission on the pcd folder com.sap.ip.collaboration/Rooms
    Kind regards,
    Roland

  • Is it possible to have PDF and PNG versions of 'same' folio

    Is it possible when copying over the articles to have one folio as PDF and another as PNG?
    Tried doing this by setting up an alternative folio as PNG and copying across the articles that were created for the original PDF folio, but they still appear to be PDF when loaded into the new folio and previewed on tablet, even though it has been set to PNG.
    Do they only get converted to PNG when published? shouldn't one be seeing thumbnails in the DPS Folio Producer: Editor browser window. Trying to preserve the meta data tags between folios, or do I have to re-export these files and re-input the tags and attributes manually.
    I see there is a way of copying articles between folios at an admin level, would this result in a correct transposition of PDF to PNG?

    We use the K4 publishing system, and haven't started using their plugin yet, as we are still 'kicking the tires'. That said PDF and Android don't play together so well, hence looking at a PNG version without having to re-enter all the metadata again, which is what happens with the method you describe above.
    The trouble is that the meta data is not part of the Indesign document so we have to re-enter it all plus there is the open/checkout/checkin/close of all documents from K4 which is a royal PIA, so uploading the same indesign documents isn't really helping. If the sidecar file worked 'properly' then perhaps that might be a solution, hear its not quite there though?
    So, copying the article across to a new folio looked like it might work but not sure why when it asks when setting up the folio, whether you want PDF or PNG specs those do not stay set or why they are ignored on copying to the new supposed PNG rendition.
    Would the K4 plugin solve this? would it work for all formats if we are building an Ipad and iPhone and Android version of a folio from the same document sourced in K4.

  • Need info

    Hi,
    I am new to CM SDK (and iFS) and have only learnt about it through its documentation. We want to use it in our project and have the following queries. It would be great if someone can answer them:
    1. If I store xml files in CM SDK, will I be able to search the file content using XML queries like how I can do when I store an XMLType object in XML DB? All my xml files are data files.
    2. When I checkout an object (Document), will that object be modifiable? What I would like to achieve is, checkout an object, do modifications on the same object and finally check it in. Is this possible?
    3. Can I checkout/checkin a Folder object? What would happen to objects inside the folder in that case?
    Thanks and Regards,
    Kamesh.

    Thanks a lot for the answers.
    2. This is up to you. "checkout" is an application-level operation, and using the Java API, you can decide what happens when an object is checked out.If I understand correctly, it means that calling reserveNext() method on a versioned document would not automatically lock the document. The content of the document can still be changed using setContent() method without changing any of the version information. Also, from the reference documentation, it looks as if one can call reserveNext() on an already reserved document! It is the custom applications duty to take care of the versioning feature(as per their requriement), using the API. CM SDK is not providing any default versioning behaviour through the API.
    The main reason for my above query was this note in the reference document:
    "Previous releases of the Oracle CM SDK allowed iterative changes to be held temporarily in a PendingPublicObject on the VersionSeries. The PendingPublicObject attribute and related methods have been deprecated in this release."
    3. Yes -- it's up to you what happens to items in the folder.Could you provide some links that have details/examples on folder versioning.
    I have a question for you. Do you plan to use the protocol servers to access files and folders stored in iFS?No, as of now. In future we may try to use some protocol servers (like for Web UI) mainly for viewing purpose.
    Thanks,
    Kamesh.

  • Problem in Connection pooling after deploying BC4J App Module as EJB

    Hi,
    We have deployed the application modules on standalone OC4J as stateful EJB session beans.
    The problem is that with each user, the number of database connections seem to increase. This is making the application unscalable, which defeats the purpose of using EJB!
    Can someone please suggest how to limit the number of database conections in this scenario?
    Can this be solved by application module pooling? How can we use the PoolMgr to work with the session beans?
    We have tried to invoke disconnect on the application module after calling methods(using appmodule.disconnect(true)) and reconnect (appmodule.reconnect()) on entering the method. This keeps the number of connections low and works the first time the method is invoked. But subsequently, it gives nullpointerexception when the Row is accessed in the JSP.
    The exception we are getting is :
    java.lang.NullPointerException
         at oracle.jbo.client.remote.ViewUsageImpl.getStructDef(ViewUsageImpl.java:241)
         at oracle.jbo.client.remote.ViewUsageImpl.findAttributeDef(ViewUsageImpl.java:275)
         at oracle.jbo.client.remote.RowImpl.getAttributeIndexOf(RowImpl.java:368)
         at oracle.jbo.client.remote.RowImpl.getAttribute(RowImpl.java:144)
         at Supplier.client.ejb.beanmanaged.SupplierAM_IntPaymtVORowBeanManagedClient.getMdid(SupplierAM_IntPaymtVORowBeanManagedClient.java:63)
         at supplier.sccPayCheq._jspService(_sccPayCheq.java:102)
         [SRC:/Supplier/sccPayCheq.jsp:44]
    The Application module configuration (in bc4j.xcfg) is:
    <AppModuleConfig name="SupplierAM9iAS">
    <AppServerConnectionName>StandaloneOC4JConnection</AppServerConnectionName>
    <AppModuleJndiName>Supplier.SupplierAM</AppModuleJndiName>
    <java.naming.security.credentials>admin</java.naming.security.credentials>
    <DeployPlatform>EjbIas</DeployPlatform>
    <java.naming.security.principal>admin</java.naming.security.principal>
    <DtMiddleTierDeploymentProfile>ProjectMiddleTier.deploy</DtMiddleTierDeploymentProfile>
    <ApplicationName>Supplier.SupplierAM</ApplicationName>
    <DtDeploymentProfile>ProjectEJB.deploy</DtDeploymentProfile>
    <DtCommonDeploymentProfile>ProjectCommon.deploy</DtCommonDeploymentProfile>
    <JDBCDataSource>jdbc/ConnectionCoreDS</JDBCDataSource>
    <jbo.server.internal_connection>jdbc/ConnectionCoreDS</jbo.server.internal_connection>
    <jbo.ejb.txntype>local</jbo.ejb.txntype>
    <jbo.doconnectionpooling>true</jbo.doconnectionpooling>
    <ApplicationPath>ProjectEJB</ApplicationPath>
    </AppModuleConfig>
    The Datasource used (in $ORACLE_HOME/j2ee/home/config/data-sources.xml) is:
    <data-source
              class="oracle.jdbc.pool.OracleConnectionCacheImpl"           connection-driver="oracle.jdbc.driver.OracleDriver"
              ejb-location="jdbc/ConnectionDS"
              inactivity-timeout="30"
              location="jdbc/ConnectionCoreDS"
              name="ConnectionDS"
              password="*******"
              pooled-location="jdbc/ConnectionPooledDS"
              url="jdbc:oracle:thin:@<IPADDESS>:<SID>"
              username="USER"
              xa-location="jdbc/xa/ConnectionXADS"
              max-connections="5"
              min-connections="1"/>

    Can this be solved by application module pooling? How
    can we use the PoolMgr to work with the session
    beans?You can use a stateless checkout/checkin appmodule.
    Take a look at the following help topics which explain this in good detail.
    "About Application Module Pooling"
    "About JSP Pages and Application Module Pooling"
    The pool can help reuse the appmodule instance across requests thus reducing the number of concurrent db sessions.
    Dhiraj

  • Workflow terminate if Map MDMWebService CheckOutResponse to artifact in BPM

    Hello, All
       Have you ever try to map a MDM Web Service checkout response to an Data Object in BPM?
       I have published MDM Web Service (checkout checkin) and try to use them as automatical activity in BPM. As for the checkout MDM web Service, it returns the check-out  internal Id array list in response. I have tested this Web Service seperately and it can return the correct check-out  internal Id array list in response.
    My problem:
      I want to save the returned internal Id array list into an artifact in BPM. I defined an Data Object in the type of com.sap.mdm.ws.beans.checkoutResponse, and I map the check out response to this Data Object directly. But BPM workflow will terminate if I map the MDM web service checkout responses to this Data Object.
       If you have used MDM Web Service as automatic task in your past BPM design, have you ever map out the output internal Id array? If so, could you please confirm whether it is the correct mapping method to save the output internal Id array?
    Thanks a lot!
    Welkin

    i think we have the same issue.
    the bpm call checkin ws to check in a mdm record.
    the ws call is succeeded, as the record is checked in.
    the problem is the bpm process will be screwed up if you try to map the response of the that ws call to context object.
    another problem is the bpm will convert the user account to lower case to call the ws.
    it is problem for mdm, as the login account for mdm is case sensitive.
    for this, we have created a ticket yesterday.
    Edited by: John Wu on Jan 13, 2011 5:18 PM

Maybe you are looking for

  • Firefox 5.0.1 crashes when I try to open it.

    I have recently downloaded the new version of firefox (5.0.1). Everytime I click the icon to open it, it doesn't load, instead a crash report pops-up. I feel like I have tried everything to solve this! Can anyone help me out on what causes it to keep

  • Live View & Preview query

    Hi, I'm not sure what is happening or how it can happen. I am building a test site (6 pages, php, text and images only) with horizontal menu. Current problem seems impossible to me but I know there must be a cause and solution. Hoping someone has see

  • Only crawling one list not whole site collection in FAST Search 2010 for SP

    Hi, I have one site collection and created different Lists inside it. Now I'd like to add some lists to the Content Source for FAST crawling. Everything fine but the search result includes other Lists that not added to the content source. I know that

  • How to download company hierarchy in BCS

    Hi, We have around 120 company codes listed in about 15 hierarchies.  Is there any way to download complete hierarchy structure (which is appearing in UCMON) to a text file ? Best Regards, Madhu

  • Dropbox & mycloud

    Hi guys, Quick question I need to transfer quite a lot of photo's from and to a dropbox account using my My mirror. Now I would like to know if there is a way to do so without having to keep my computer on because it takes a lot of time. I've found t