Creating multiple categories instance on document creation

Im trying to create a document with multiple categories instance on it .
It seems it only takes the last CATEGORY_DEFINITION passed to creation call.
NamedValue[] attrNV1 = new NamedValue[2];
attrNV1[0] = new NamedValue( "CUSTOM_82413", "Ma valeur1");
attrNV1[1] = new NamedValue( "CUSTOM_82800", "Ma valeur3");
NamedValue[] catDef1 = new NamedValue[2];
catDef1[0] = new NamedValue( Options.CATEGORY_CLASS_ID, new Long( 82414 ));
catDef1[1] = new NamedValue( Options.CATEGORY_DEFINITION_ATTRIBUTES, attrNV1 );
fileMeta[ 3 ] = new NamedValue( Options.CATEGORY_DEFINITION, catDef1 );
NamedValue[] attrNV2 = new NamedValue[1];
attrNV2[0] = new NamedValue( "CUSTOM_82789", "Ma valeur2");
NamedValue[] catDef2 = new NamedValue[2];
catDef2[0] = new NamedValue( Options.CATEGORY_CLASS_ID, new Long( 82790) );
catDef2[1] = new NamedValue( Options.CATEGORY_DEFINITION_ATTRIBUTES, attrNV2 );
fileMeta[ 4 ] = new NamedValue( Options.CATEGORY_DEFINITION, catDef2 );
Item doc = fileM.createDocument(fileMeta, null, null);
Only last CATEGORY_DEFINITION is created.
Is this normal behavior or can I create multiple category instance at document creation?

I dont know why this is not working. I think It might be a bug.
you can create multiple category instances using fileM.updateDocument()

Similar Messages

  • Create multiple portal instances with only one database?

    Can someone create multiple portal instances with only one database?
    If so, how is this done, just by running the portal configuration wizard?
    How are most people running with multiple developers working on portal? Do they share a portal instance, or create their own?
    Thank you very much!
    Phillip

    i'm currently using 9ias rel 2(9.0.2) and i have install one infrastructure and two mid tier, hoping that this will create two portal, but it didn't. Can you please tell me how to do create two portal within one server.
    thanks and regards;
    andrew

  • [How-to] Create multiple Artboards in existing document?

    Herro,
    I'm wondering how to create multiple artboards at once in an existing document. I can manually re-arrange them later, that's fine. But I often find myself needing to create 20+ artboards for some of my complex projects.
    Currently, adding those 20+ artboards manually is a pain as you can imagine.
    Help?
    Cheers.

    open the Artboards panel. (Window->Artboards)
    then down the bottom start clacking away at the new artboard button.

  • How to create multiple AD instances

    Hello Everyone,
    I have a requirement to create different resource object for different type of accounts (as recon rule is different for them) under same AD resource. For that i exported the resource object ( AD User--removing dependency), process (AD User) and process form (UD_ADUSER). In resource object i replaced "AD User" with "AD User1" and tried to import it but it gives me error on updating 'RRL' and 'SDC' tables. Same happens for process (Change AD User to AD User1, UD_ADUSER to UD_ADUSER1, Lookup.AD.Configuration to Lookup.AD1.Configuration) and process form (change UD_ADUSER to UD_ADUSER1, AD User to AD User1, tdUD_ADUSER to tcUD_ADUSER1[data object]).
    I checked that RRL and SDC tables contains the recon rules and column metadata respectively but i am not able to find out why it is Showing me the error on updating these tables. Does anybody achieved this and what is the best and easiest way to create the multiple instances?
    I am just trying to create multiple instances manually here :)

    Thanks Evolution...i actually missed out this lookup....
    Now provisioning is working fine for other resource object also...
    I have one more doubts regarding child table...i am using the same child table UD_ADUSRC for this resource object also and when i assigned any group membership thru this child table (in AD User1) it gives me DOBJ.insert failed error. I have checked the tasks (+Add user to group, Remove user from group, update user to group+) and all are referring the correct attrs (as in AD User). There is mapping defined in Resource Object and Process definition for Reconciliation also but recon any user with group membership is also giving me error...
    can't we use one child form in two process forms ? any other configuration which i should check?
    I am using the same look up for Reconciliation mapping attrs for both the resource objects (AD User and AD User1)....

  • How to create multiple component instances at runtime using java

    Hi,
    I need to create component instances at runtime using java.I found ComponentSet.add method.But I am not finding a way to get handle of ComponentSet.
    I see methods with params of IRuntimeNode.But how to get ComponentSet from IRuntimeNode.
    If anybody knows or have sampel code then please share with me.
    thanks,
    ashok

    Ashok --
    This is a common challenge for those using Configurator Extensions with multiple instantiation for the first time. The problem is that the CIO's representation of the structure for multiply-instantiable Components differs slightly from what both Configurator Developer users and Configurator Runtime users see in those respective applications. Multiply-instantiable Components are not direct children of the Model in which they're defined. Internally, there is an entity that sits between the parent Model and the instantiable Components; that intermediate entity is the ComponentSet object you've found in the CIO documentation.
    If the name of your multiply-instantiable Component is "My Component", then its ComponentSet may be accessed simply by calling getChildByName("My Component") on its parent Model; a List of the instantiated Components may be accessed with the ComponentSet's getChildComponentNodes() method, and instances may be added and deleted using its add() and delete() methods.
    Hope this helps.
    Eogan

  • Create multiple Task Instance from one Task Instance

    We have a process, where user can request for multiple resources(access) in one single request.Currently user has to wait until all the resource requests are approved by application owners to start the provisioning process.
    I am thinking of splitting that one request(task) into multiple task, based on the number of resources requested.so that, if one resource request is approved user can get that particular access.
    My question :
    1.How will I split the one task into multiple task and pass the required information to child task?
    2.How do I handle views?Currently since its one task , we checkout and check-in the same view.
    3.How will I overcome the possibility of one view overwritten by the other.
    Thanks.

    We have a process, where user can request for
    multiple resources(access) in one single
    request.Currently user has to wait until all the
    resource requests are approved by application owners
    to start the provisioning process.
    I am thinking of splitting that one request(task)
    into multiple task, based on the number of resources
    requested.so that, if one resource request is
    approved user can get that particular access.
    My question :
    1.How will I split the one task into multiple task
    and pass the required information to child task?
    2.How do I handle views?Currently since its one task
    , we checkout and check-in the same view.
    3.How will I overcome the possibility of one view
    overwritten by the other.
    Thanks.Hi,
    yes u can split one task into multiple task means as ur requirment diffrent task for different resource. so u have to write diffrent W/F for each resource and call them by setting a counter for number of resource.
    the below code help u.
    <Variable name='index'>
              <i>0</i>
         </Variable>
    <Activity id='1' name='createNewTask'>
              <Action id='0' name='createView' application='com.waveset.session.WorkflowServices'>
                   <Argument name='op' value='createView'/>
                   <Argument name='type' value='Process'/>
                   <Argument name='viewId' value='Process'/>
                   <Argument name='taskName'>
                             <s>give any name to the task</s>
                   </Argument>
                   <Argument name='process'>
                             <s>task name that u want to launch</s><!-- u can get task name dynamicly by rule also by passing resource name -->
                   </Argument>          
                   <Argument name='accountId' value='$(accountId)'/><!-- pass the required information to child task as argument -->
                   </Action>
                   <Action id='1' application='com.waveset.session.WorkflowServices'>
                   <Argument name='op' value='checkinView'/>
                   <Argument name='view'>
                        <ref>view</ref>
                   </Argument>
                   </Action>
                   <Action id='2'>
                        <set name='view'>
                        <null/>
                        </set>
                   </Action>
                   <Transition to='incrementIndex'/>
    </Activity>
         <Activity id='2' name='incrementIndex'>
              <Action id='0'>
                   <set name='index'>
                        <add>
                             <ref>index</ref>
                             <i>1</i>
                        </add>
                   </set>
              </Action>
              <Transition to='createNewTask'>
                   <lt>
                        <ref>index</ref>
                        <ref>length</ref><!-- number of resource-->
                   </lt>
              </Transition>
              <Transition to='end'/>
         </Activity>

  • Creating multiple response instances.

    I have created a jsp through which i can download a jar on to my cell.
    My requirement is first to send a wml to the client and then start downloading
    the jar file. But, i am able to display the wml file but not able to download the jar
    file.
    [b]this is code i am using to send the wml file:
    response.setContentType("text/vnd.wap.wml");
    RequestDispatcher viewPage_sucess1=request.getRequestDispatcher("/sucess.wml");
    viewPage_sucess1.forward(request,response);
    this is code i am using to download the jar file:
    response.setContentType("application/vnd.symbian.install");
                String disHeader = "Attachment;Filename=" + fileName ;
                response.setHeader("DownloadFile",disHeader);
                path="/".concat(path);
                System.out.println("NEW PATH----------------------------->>>"+path);
                file = new File(path);
                out.clear();
                out=pageContext.pushBody();
                fileInputStream = new FileInputStream(file);
                int i;
                while ((i=fileInputStream.read())!=-1) {
                    response.getOutputStream().write(i);
                response.getOutputStream().flush();
                if i try download the jar without the wml file, it works fine.
    can anyone please suggest me what to do. Is problem due to response
    object. how would solve this problem.

    I need to use an xml file for the questions and answers.
    And there are more than 1 correct answer for the questions.
    I'm pretty new to actionscript so a few pointers in the right
    direction would be a great help to me.
    Should I be using the xml component? The dataset components?
    Check box components for the questions?
    How do I get the xml to interact with the flash.... sorry for
    all the questions.

  • One Oracle Application Server and multiple OC4J Instances

    While we are getting new server (for development) we have to set-up a Development and Production enviroment for our project (dont have previous OAS installation) but on the same machine.
    So, is a good option to have One OAS INstallation (Ora Home) and then create multiple OC4J instances, one for each environment (Development, QA and Production)?, is it possible? How to manage deployments between OC4J instances, simulating different contexts if they are in the same server and under the same HTTP Server? Will be there conflicts?

    Hi,
    you can do this and OracleAs will manage the different instances. The deployment can be done with Enterprise Manager in which case you select the OC4J instance first before deploying. If deploying from JDeveloper, you can specify the OC4J instance when creating the named connection
    Frank

  • How do I create multiple columns with bullets in pages

    I'm trying to figure out how to create multiple columns within a document in which I bullet information...

    At the point you wish to change to two columns, Insert > Columns and then in the Layout Inspector, select the number of columns. After the insertion point, you will also need to insert another Column Change to return the following paragraphs to single column.
    Then Select the text to be bulleted and in the Text Inspector > List tab select the type of bullets.
    Note: This creates two columns that flow together. This can be tricky if you add any text later.
    If you wish to ensure alignment, create a two column text table and remove the lines with the Graphic Inspector > Lines > No Lines option and insert your text in each column and apply the bullets as above.
    This will create a text box - you then need to ensure it moves with the text by electing "Object Moves With Text" in the Wrpa Inspector.
    Message was edited by: bwfromspring hill

  • PS2013 - When creating a new instance of Project Server hangs in 'Waiting for resources' status

    Hi,
    I have one instance of Project Server 2013 fully operational and I tried to duplicate the instance to make some tests. As I know the issue of using the same Content Database of Project Server in the same Server Farm, I used the powershell  backup/restore/dismount
    and mount the content database to change the site IDs to avoid index duplication. The Project server database was a regular SQL backup and restore in another database.
    I created a new Web App in the port 90 as show below.
    Then I included the Content database of Project Server as separated DB from SharePoint for this new SharePoint -acme90 and I tried to create the new instance. The creation hanged in "Waiting for Resources" status.
    To make another check excluding the reuse of the SharePoint-80 I tried to create another instance both in the SharePoint-80 where is the working instance and in the SharePoint-90, everything default and again they all hanged in Waiting for Resource.
    If I try to create the instance using PowerShell I got the following error:
    PS C:\Users\epm_setup> Mount-SPProjectWebInstance -DatabaseName Test_EPM -SiteCo
    llection http://acme02/epm -Lcid 1046
    Mount-SPProjectWebInstance : Cannot find an SPSite object with Id or Url:
    http://acme02/epm.
    At line:1 char:1
    + Mount-SPProjectWebInstance -DatabaseName Test_EPM -SiteCollection
    http://acme02/ ...
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    ~~~
        + CategoryInfo          : InvalidData: (Microsoft.Offic...ountPwaInstance:
       PSCmdletMountPwaInstance) [Mount-SPProjectWebInstance], SPCmdletPipeBindEx
      ception
        + FullyQualifiedErrorId : Microsoft.Office.Project.Server.Cmdlet.PSCmdletM
       ountPwaInstance
    All SharePoint and Project Server services are running, all App Pools and sites are started at the IIS. I could not find a hanging timer job.
    I cannot stop the hanged process or dismount the instances using Powershell since no instance created.
    How should I solve the hanging status of creation of the instance? As they are in Hyper-V I can go back using one snapshot.
    Thank you.
    Best regards, Ricardo Segawa - Segawas Projetos / Microsoft Partner

    Hi Eric,
    Thank your for your interest in this case.
    I checked for running and crashed PWA jobs and deleted all of them just after restoring the snapshot and tried to create the new instance in the new web app in port 90 (besides the existing and working instance in port 80), but again it hanged in "waiting
    for resources". There is not any timer job hanging, no error in event viewer or in log. So the error is well before working with cloned dbs.
    Answering your questiion, I am working all on 2013. My intention is backup one instance of the port 80 and copy to the instance of port 90, changing of course the url and the index of the content db of SharePoint. The process I used was:
    Create a new web app in port 90, creating a new SharePoint_Content_2 on a
    http://server:90 site.
    Created the top level site called Portal using the Team Site template.
    Create a new content db for new instance of Project Server named EPM_Content_2 using Central Admin.
    Backup content db from port 80 instance of Project Server and restore to this EPM_content_2 using PowerShell cmd.
    Dismounted and mounted this Project Server content db to create new index for existing sites to avoid index conflicts.
    Backup the Project Server DB from port 80 using SQL backup and restored as ProjectWebApp2 db for port 90 instance.
    Tried to create a new instance of Project Server
    http://server:90/pwa on web app of port 90 using the ProjectWebApp2 db and using the same app pool of the other instance. But as in the previous case, it hang out in "Waiting for resources".
    Best regards, Ricardo Segawa - Segawas Projetos / Microsoft Partner

  • Multiple JVM instances

    Dear all,
    I am trying to create multiple JVM instances using createJavaVM(...) but I can't do it. When I try to create the second instance, the function returns an error.
    Does anybody know about getting multiple JVM instances running??
    Thanks in advance,

    Hallo,
    createJavaVM(...) trys to create a JVM in your current
    process, so I am not surprised that you get an error
    the second time round, because there is already a JVM
    in the process. If you want multiple JVMs, each needs
    to be in its own process.
    Why do you want to create more than one JVM in your
    process? The JVM is multithreadable, and you can start
    more than one thread in the JVM. Would that do what
    you want?I need multiple instances because my application needs nearly 2Gb of memory and the maximum heap I get is 1700 Mb. I think with multiple instances, I'll get it.
    Do you know about getting a bigger heap??
    >
    David Singleton
    [email protected]

  • Multiple component instances for one component usage

    Hi,all
    How can I create multiple component instances for one component usage.
    I'm using the following code for creating  a single component instance for specific component usage:
    if(c_Usage.hasActiveComponent())
          c_Usage.deleteComponent();
    if(wdContext.currentContextElement().getSelectedTab().equalsIgnoreCase("Registered"))
          c_Usage.createComponent("health.gov.registered.Registered";);
    I can't create one more component instance for
    IWDComponentUsage c_Usage
    cause I have to delete the component instance associated with this component usage.
    Any idea how can I do it anyway?
    Regards,
    Michael

    Hi,
    To create another instance of the same component you need to embed the same component under the Used Components more then once. For Example if you have Componet A to which you want to embed Component B then under "Used Components" of Component A add component B twice.

  • Running Multiple Server Instance in Weblogic Server

    Hi
    I am using Weblogic 5.1.0 with SP6. I am trying to run multiple server
    instances
    of Weblogic Server. The one that comes by default is "myServer".
    My question is if i were to create multiple server instances, do i need to
    copy the
    weblogic.properties file in each of folder corresponding to respective
    application
    server instance. I am not using Clusters.
    Also if i need to include some classes or jar files in my application server
    instance
    classpath, how do i do it. cuz in weblogic.properties file i didn't find any
    property
    corresponding to classpath.
    The classpath i need to set is for my creating a JDBC pool for connectivity
    to my
    AS400 DB2 database using the Type 4 (AS400JDBCDriver) Driver. Is there some
    other way to do it.
    Thanks in advance
    Niranjan

    There is an answer on your first question at
    weblogic.support.interest.clustering
    I asked a similar question. Search for a message posted by me on 24/11/00
    Rgds,
    Mike
    "Niranjan Soni" <[email protected]> wrote in message
    news:[email protected]..
    Hi
    I am using Weblogic 5.1.0 with SP6. I am trying to run multiple server
    instances
    of Weblogic Server. The one that comes by default is "myServer".
    My question is if i were to create multiple server instances, do i need to
    copy the
    weblogic.properties file in each of folder corresponding to respective
    application
    server instance. I am not using Clusters.
    Also if i need to include some classes or jar files in my applicationserver
    instance
    classpath, how do i do it. cuz in weblogic.properties file i didn't findany
    property
    corresponding to classpath.
    The classpath i need to set is for my creating a JDBC pool forconnectivity
    to my
    AS400 DB2 database using the Type 4 (AS400JDBCDriver) Driver. Is theresome
    other way to do it.
    Thanks in advance
    Niranjan

  • Multiple jvm/instances/auto restart

    Hi
    I have two mid tiers and both are load balanced by BigIP load balancer .
    I want to know the following
    1. How can I increase the jvm process and what is it's advantages/disadvantages ?
    2. Is it possible to set automatic restart feature in the Application server ?
    3. In some article I found that we can create multiple oc4j instance and give the same
    context root . What is the advantages/disadvantages ?
    4. Is there any feature in the app sever for monitoring like if the appserver uses more resources or crashes we can send email to the administrator ?
    Thanks,
    Suneesh

    Hello,
    My answer is based on the fact that you are using OracleAS 10g (R1, 2 or 3) -which one are you using?-
    OPMN: Oracle Process Management and Notification is the service in charge of starting and monitor the status of a process such as OC4J and its related JVM. Take a look to the OPMN documentation of your release. (and Administration Guide)
    To have multiple OC4J that use the same context root (same application deployed) you need to have an instance with cluster enabled for several process of the same instance. Take a look to the deployment and configuration guide of your App server version.
    OPMN, Clustering, and Oracle Deployment guides will answer the 4 questions you have.
    Regards
    Tugdual Grall

  • Need to create a mass upload program for appraisal document creation for multiple employee

    Hi Expertise,
    I need to create a mass upload program for appraisal document creation for manager and his multiple employee
    at a time using tcode appcreate.
    Please help me out.
    Best regards,
    Priyaranjan

    Hi Priyaranjan,
    I think you can take the abap'ers help in creating the program. But u need to provide them the exact functionality and the required specifications in creating the appraisal document.
    Even tcode also u can get it prepared by Abap'ers.
    Thanks and Regards
    Balaji

Maybe you are looking for

  • Error upon opening photoshop cc

    Someone please help... every time I try to open up my Photoshop CC it says "Could not initialize Photoshop because an unexpected end-of-file was encountered" I have a deadline on my photos and I need your support

  • Why has my iPad stopped using my phone number to send and rec iMessages?

    A few problems since IOS 7 came out. I updated my phone to this miserable IOS7 and now my ipad will not send or receive texts on my ipad. I also do not have the option of putting the phone number in when it was there before. What happened? I also can

  • HT4527 How do I transfer all my iPod songs to my new touch iPod

    How do I transfer all my iPod songs to my new touch iPod

  • A sample coding for 'MRM_DBTAB_RBKPV_READ'

    i need the sample coding for 'MRM_DBTAB_RBKPV_READ'. i need the coding through which i can reterieve the value. Promise to award points. Regards, Anitha

  • Oracle Spool File

    Hi All, I am new to this SPOOLING of oracle Sql data to a file.I am in need of formatting a file.That format looks like... Date: 05/17/2006 SOI DIFFERENCE REPORT Page 1 Latest SOI File Generated : 1:01AM ON 2006/05/18 CUSIP DESC SYMBOL table data Can