Creating MultiValued Taxonomy Attributes using API

Hi All,
I'm trying to create an attribute in the taxonomy table that has text/multivalued type. I am able to create the attribute and set the type to text/multivalued, but I am not sure how to create the actual value set for it.
For example, a "Color" attribute would have a value set consisting of a list of possible colors, i.e. blue, green, yellow, etc...
In the AttributeInfo class, I see no methods to accomplish this.
Please let me know if you have any ideas!
Thanks!
Roman D.

Hi Roman,
Please have a look at the AttributeInfo.GetFeatures() method.  This returns an instance of FeatureDomain which holds an array/collection of FeatureValue instances.  In your case it will be empty and you must add the FeatureValue instances.
Hope this helps,
Richard

Similar Messages

  • How to create Custom WEB ADI using API Only for both Dowload/Upload process

    I am able to create custom WEB ADI using API for upload process. I have written the following code to create custom WEB ADI using API for upload process.
    DECLARE
    v_application_id NUMBER:= 20003;
    v_object_code VARCHAR2(255):='WEBADI_API_DEM_17';
    v_int_user_name VARCHAR2(255):='WEBADI_API_DEM_17';
    v_language VARCHAR2(255):='US';
    v_source_lang VARCHAR2(255):='US';
    v_user_id NUMBER :=1345;
    v_integrator_code VARCHAR2(255);--:='WEBADI_API_DEM_17_INTG';
    v_param_list_code VARCHAR2(255);
    --v_interface_code  VARCHAR2(255);
    v_interface_code VARCHAR2(255);--:='WEBADI_API_DEM_17_INTF';
    p_layout_code VARCHAR2(255):='WEBADI_API_DEM_17_LAYOUT';
    V_MAPPING_CODE VARCHAR2(255);
    BEGIN
    BNE_INTEGRATOR_UTILS.CREATE_INTEGRATOR(P_APPLICATION_ID =>v_application_id,
    P_OBJECT_CODE =>v_object_code,
    P_INTEGRATOR_USER_NAME =>v_int_user_name,
    P_LANGUAGE =>v_language,
    P_SOURCE_LANGUAGE =>v_source_lang,
    P_USER_ID =>v_user_id,
    P_INTEGRATOR_CODE =>v_integrator_code);
    BNE_INTEGRATOR_UTILS.CREATE_INTERFACE_FOR_API (P_APPLICATION_ID =>v_application_id,
    P_OBJECT_CODE =>v_object_code,
    P_INTEGRATOR_CODE =>v_integrator_code,
    P_API_PACKAGE_NAME =>'XXDH_PRICE_LIST_POC_PKG',
    P_API_PROCEDURE_NAME =>'CREATE_PRICE_LIST',
    P_INTERFACE_USER_NAME =>'WEBADI_API_DEM_17',
    P_PARAM_LIST_NAME =>'WEBADI_API_DEM_17',
    P_API_TYPE =>'PROCEDURE',
    P_API_RETURN_TYPE =>NULL,
    P_UPLOAD_TYPE =>2,
    P_LANGUAGE =>v_language,
    P_SOURCE_LANG =>v_source_lang,
    P_USER_ID =>v_user_id,
    P_PARAM_LIST_CODE =>v_param_list_code,
    P_INTERFACE_CODE =>v_interface_code);
    BNE_INTEGRATOR_UTILS.CREATE_DEFAULT_LAYOUT
    (P_APPLICATION_ID =>v_application_id,
    P_OBJECT_CODE =>v_object_code,
    P_INTEGRATOR_CODE =>v_integrator_code,
    P_INTERFACE_CODE =>v_interface_code,
    P_USER_ID =>v_user_id,
    P_FORCE =>FALSE,
    P_ALL_COLUMNS =>TRUE,
    P_LAYOUT_CODE =>p_layout_code);
    BNE_CONTENT_UTILS.CREATE_CONTENT_COLS_FROM_VIEW (P_APPLICATION_ID =>v_application_id,
    P_CONTENT_CODE =>'WEBADI_API_DEM_17'||'_CNT',
    P_VIEW_NAME =>'XXDH_PRICE_LIST_POC_V',
    P_LANGUAGE =>v_language,
    P_SOURCE_LANGUAGE =>v_source_lang,
    P_USER_ID =>v_user_id);
    BNE_CONTENT_UTILS.CREATE_CONTENT_TO_API_MAP (P_APPLICATION_ID =>v_application_id,
    P_OBJECT_CODE =>v_object_code,
    P_INTEGRATOR_CODE =>v_integrator_code,
    P_CONTENT_CODE =>'WEBADI_API_DEM_17'||'_CNT',
    P_INTERFACE_CODE =>v_interface_code,
    P_LANGUAGE =>v_language,
    P_SOURCE_LANGUAGE =>v_source_lang,
    P_USER_ID =>v_user_id,
    P_MAPPING_CODE =>V_MAPPING_CODE);
    END;
    I need to know what are API we can use to create download+upload ADI? anyone has already prepared script....please share it it me. My email id - [email protected]
    Thanks

    Use FNDLOAD, it's the only way.
    There are 2 seperate scripts, 1 for the Integrator and 1 for Layout.
    FNDLOAD apps/<pw> 0 Y DOWNLOAD $BNE_TOP/patch/115/import/bneintegrator.lct <your name>.ldt BNE_INTEGRATORS INTEGRATOR_ASN="XXX" INTEGRATOR_CODE="<your code>"
    FNDLOAD apps/<pw> 0 Y DOWNLOAD $BNE_TOP/patch/115/import/bnelay.lct <your name>.ldt BNE_LAYOUTS LAYOUT_ASN="XXX" LAYOUT_CODE="<your code>"
    Cheers
    Jeroen

  • Create Roles and Permissions using API

    Hello,
    I'm new to Java and I'm trying to create Roles and Permissions in LiveCycle using API's. Can someone please check and correct my code below?
                //Create a ServiceClientFactory object
                ServiceClientFactory myFactory = ServiceClientFactory.createInstance(connectionProps);
                // Create an AuthorizationManagerServiceClient object
                AuthorizationManagerServiceClient amClient = new AuthorizationManagerServiceClient(myFactory);
                RoleImpl ri = new RoleImpl();
                ri.setName("Test ES Role");
                ri.setDescription("Test Role via API");
                ri.setMutableStatus(true);
                amClient.createRole(ri);
    Executing the above code throws exception as below;
    com.adobe.idp.um.api.UMException| [com.adobe.livecycle.usermanager.client.AuthorizationManagerServiceClient] errorCode:16385 errorCodeHEX:0x4001 message:Exception thrown is NOT a DSCException : UnExpected From DSC chainedException:java.lang.IllegalStateExceptionchainedExceptionMessage:null chainedException trace:java.lang.IllegalStateException
              at com.adobe.idp.dsc.clientsdk.ServiceClientFactory$1.handleThrowable(ServiceClientFactory.j ava:72)
              at com.adobe.idp.dsc.clientsdk.ServiceClient.invoke(ServiceClient.java:220)
              at com.adobe.livecycle.usermanager.client.AuthorizationManagerServiceClient.createRole(Autho rizationManagerServiceClient.java:159)
              at com.adobe.lc.ManageRolesAndPermissions.main(ManageRolesAndPermissions.java:70)
    Caused by: java.lang.NoClassDefFoundError: javax.ejb.EJBException
              at com.adobe.idp.dsc.clientsdk.ServiceClientFactory.evaluateMessageDispatcher(ServiceClientF actory.java:595)
              at com.adobe.idp.dsc.clientsdk.ServiceClient.invoke(ServiceClient.java:215)
              ... 2 more
    Caused by: java.lang.ClassNotFoundException: javax.ejb.EJBException
    Thank you,
    Sandeep

    Mahesh,
    Refer to your other thread ..
    API to create new items in inventory
    API to create new items in  inventory
    Regards,
    Hussein

  • Create, Load, & Assign Attribute using Notepad + Outline Load Utility

    Hi all, I have a requirement that I need to create a new attribute and then assign to many different members. Since there are so many members, I believe the best way to do this is to process this dynamically in notepad or wordpad through Outline Load Utility.
    This is the normal way how I would do it manually in Planning:
    1. Let's say this is my outline in Planning. "1000-X" is the base member where I will be assigning the new attribute to. And many more siblings to "1000-X" will be assigned with the same attribute:
    http://i.imgur.com/U6d1i.jpg
    2. So I changed the data type of "1000-X" to Stored. I highlighted "Entities". I created the new attribute named "Company".
    http://imgur.com/Kg2oe
    3. I have selected base member "1000-X" -> Edit -> then assign the new attribute to "Company". So that's done for a single member. However, keep in mind, I still have many more members to assign the new attribute to. I want to do this much quicker through dynamic way so I'm not sure if I have to go through this process. Maybe this could be alternated by creating it in notepad/wordpad?
    http://i.imgur.com/lg9G6.jpg
    Now, my question is, if I want to just type up everything in notepad/wordpad for assigning the new attribute "Company" to a massive amount of members. How would that structure look?
    I was reading this but I'm still a bit confused about how the structure should be formatted when it gets more complex:
    https://blogs.oracle.com/HyperionPlanning/entry/attributes_loading_and_assigning_attributes
    So basically there are 2 files: Attribute Load file and Entity Metadata Load file
    Now, this is my Attribute Load file. Can someone help me to verify my work?
    http://i.imgur.com/fnT8I.jpg
    =========
    Parent, Office
    Office,Office
    =========
    Next, here is the Entity Metadata Load file I created:
    http://i.imgur.com/wrSt9.jpg
    =============================
    Parent,Entity,Company
    "Total Non-Admin","Total Admin","Department XYZ - A & B & C", "Department X","TOtal Administration","USA","Operation XYZ","Operation X","1000-X"
    =============================
    Apparently, there's something wrong with it so correct me. Thanks for taking time reading this.
    - N

    I think Outline Load Utility needs .CSV files as the source files. See below format that loads fine.
    Parent,<Base Dim Name (Entity)>,<Data Storage>,<Alias: Default>,<Attr Dim 1>,<Attr Dim 2>,<Attr Dim 3>
    All Entites,Entity,Store,,,,
    Entity_1,All Entities,Store,,,,
    Entity_1_1,Entity_1,Store,,<Attr Dim 1_Member_1>,<Attr Dim 2_Member_2>,<None>
    Entity_1_2,Entity_1,Store,,<None>,<Atter Dim 2_Member_2>,<None>
    Note: Attribute assignments must be of the same level in the base dimensions. It may let you assign but will get error during the refresh.
    Thanks,
    KK

  • How to create NC data by using API?

    Hi, all
    I want to log NC by using API.  but can't complet succsessful .
    please help me check the following source code.
    thanks.
    NCProductionServiceInterface ncPSI = Services.getService("com.sap.me.nonconformance", "NCProductionService");
    CreateNCRequest ncRequest = new CreateNCRequest();
    //NC500_part: copy from NC500,and ALLOW_PARTIAL=YES
    ncRequest.setActivity("NC500_part");
    ncRequest.setSfcRef(new SFCBOHandle(site, sfc).toString());
    ncRequest.setValidateNCCodeOperation(true);
    // defined NCCODE: NCJPN1
    ncRequest.setNcCodeRef(new NCCodeBOHandle(site,"NCJPN1").toString());
    ncRequest.setDefectCount(new BigDecimal("3"));
    CreateNCResponse ncResponse = ncPSI.createNC(ncRequest);
    DispositionRequest disRequest = new DispositionRequest();
    disRequest.setActivity("NC500_part");  //what can be set for this Activity,  NC500_part is OK?
    disRequest.setSfcRef(new SFCBOHandle(site, sfc).toString());
    ProductionContext productionCtx = new ProductionContext();
    productionCtx.setResourceRef(new ResourceBOHandle(site, "COIL").toString());
    disRequest.setProdCtx(productionCtx);
    DispositionSelection disSelection = new DispositionSelection();
    //DispositionSelection is must need, but what shuold be set?
    disSelection.setXXXX();
    disRequest.setDispositionSelection(disSelection);
    disRequest.setNcCodeRef(new NCCodeBOHandle(site,"NCJPN1").toString());
    disRequest.setTotalDefectCount(new BigDecimal("3"));
    // DispositionNC
    DispositionResponse disResponse = ncPSI.disposition(disRequest);

    I log the nc to my SFC,but how to complete the nc process by API?
    Wait for you help,thanks

  • OIM 11g R2 - Creating a new role using API

    Hi,
    I am trying to create a new role in OIM 11g R2 using RoleManager API.The requirement is to provide "Role Owner" also while creating the role.May I know how to do that?.Thanks in advance.

                        HashMap <String, String> groupMap = new HashMap <String, String> ();
                        groupMap.put("Groups.Group Name", groupName);
                        groupMap.put("Groups.Role Description", "Just for testing");
                        long groupKey = -1L;
                        try {
                                groupKey = goi.createGroup(groupMap);
                                logger.info("RESULT: Group with group_key '" + groupKey
                                                + "' has been successfully created");
                        } catch (tcAPIException e) {
                                logger.info("Creating client...."+e);
                        } catch (tcDuplicateGroupException ex) {
                             return getGroupKey(goi, groupName);
                                //logger.info(""+ex.toString());
                        } catch (tcInvalidAttributeException er) {
                                logger.info(""+er.toString());
    I hope this really helps you,
    Thiago Leoncio.
    (Blog: thiagoleoncio)

  • Getting HTTP 400 while creating field in Account using Eloqua REST 2.0 API.

    I tried to create field in Account using /API/REST/2.0/assets/account/field, but got HTTP 400-"Request contains a message that does not conform to the contract."
            "constraint": null,
            "detail": null,
            "field": "permissions",
            "stackTrace": null,
            "value": "fullControl"
    I refered http://secure.eloqua.com/api/docs/Static/Rest/2.0/doc.htm#AccountField for AccountField API.
    As mentioned in API, permissions is of type InstancePermissions and has valid values as read,write and fullControl.
    Here is my sample request for creating account field.
      "name":"employee_office_address",
      "description":"field created for office address",
      "permissions":"fullControl",
      "folderId":null,
      "sourceTemplateId":null,
      "accessedAt":null,
      "scheduledFor":null,
      "depth":"complete",
      "internalName":"employee_office_address",
      "optionListId":null,
      "checkedValue":null,
      "uncheckedValue":null,
      "displayType":"text",
      "dataType":"text",
      "defaultValue":null,
      "isReadOnly":false,
      "isRequired":true,
      "isStandard":true,
      "outputFormatId":null
    Why I am getting this error? Am I doing something wrong here?
    Also, how will I able to know which field are mandatory and which are optional for making AccountField call?
    Could anyone please share information on this ?
    Thanks in advance.

    Hello,
    In order to solve your issue, I recommend you post your issue to exchange server development forum for more appropriate.
    http://social.msdn.microsoft.com/Forums/ie/en-US/home?forum=exchangesvrdevelopment
    Cara Chen
    TechNet Community Support

  • WebCenter Sites Query Content using API

    Hi all,
    I have created a asset called "TVLContent" and for this asset, I created 2 attributes: "Question" and "Answer".
    I need to create a query search using API, to get any content where "Question" or "Answer" attribute contains "Why".
    I'm using the line code below, for searching, but doesn't work.
    -----Code
    Session ses = SessionFactory.getSession();
    Condition c1 =ConditionFactory.createCondition("Question", OpTypeEnum.LIKE, "%Why%");
    Condition c2 =ConditionFactory.createCondition("Answer", OpTypeEnum.LIKE, "%Why%" );
    Query query = new SimpleQuery( "TVLContent", "FAQs", c1.or(c2) , Arrays.asList("name", "id", "Question", "Answer"));
    query.getProperties().setIsBasicSearch(true);
    AssetDataManager mgr = (AssetDataManager) ses.getManager(AssetDataManager.class.getName());
    List<Long> firstResults = new ArrayList<Long>();
    for(AssetData data : mgr.read(query)) {
    //read data, e.g. data.getAttributeData("Question").getData()
    ------Code
    If I change the query condition to c1 only, the query works fine,
    e.g. Query query = new SimpleQuery( "TVLContent", "FAQs", c1 , Arrays.asList("name", "id", "Question", "Answer"));
    If I change the query condition to c2 only, the query works fine.
    e.g. Query query = new SimpleQuery( "TVLContent", "FAQs", c2 , Arrays.asList("name", "id", "Question", "Answer"));
    But when I create a new condition (c1.or(c2)) doesn't work.
    e.g. Query query = new SimpleQuery( "TVLContent", "FAQs", c1.or(c2) , Arrays.asList("name", "id", "Question", "Answer"));
    How to fix this?
    What's the best way to create this query using API?
    See below the attribute definition:
    Name: Question
    Attribute Type: text
    Attribute Editor: TVLTextArea
    TVLTextArea XML (
    <?XML VERSION="1.0"?>
    <!DOCTYPE PRESENTATIONOBJECT SYSTEM "presentationobject.dtd">
    <PRESENTATIONOBJECT NAME="TEXTAREA">
    <TEXTAREA WRAPSTYLE ="SOFT"></TEXTAREA >
    </PRESENTATIONOBJECT>
    Name: Answer
    Attribute Type: text
    Attribute Editor: TVLCKEditor
    TVLCKEditor XML (
    <?XML VERSION="1.0"?>
    <!DOCTYPE PRESENTATIONOBJECT SYSTEM "presentationobject.dtd">
    <PRESENTATIONOBJECT NAME="TEXTAREA">
    <TEXTAREA WRAPSTYLE ="SOFT"></TEXTAREA >
    </PRESENTATIONOBJECT>
    }

    Hello,
    Can you share the condition which you are trying to pass?
    Try something like this example;
    Condition condition = ConditionFactory.createCondition( <ATTRIBUTE NAME>, OpTypeEnum.EQUALS, <ATTRIBUTE VALUE> );
    List<String> attributes = new ArrayList<String>();
    attributes.add(<ATTRIBUTE NAMES>); // add as many as required
    SortOrder sortOrder = new SortOrder(<Attribute Name to sortby>, <ORDER - Ascending or Descending>);
    Query query = new SimpleQuery( <Asset Type>, null, condition, attributes, Collections.singletonList(sortOrder));
    for( AssetData data : assetDataManager.read( query ) ) {
    // get all the data as mentioned here: http://docs.oracle.com/cd/E29542_01/doc.1111/e29634/asset_api_tutorial.htm#WBCSD2395
    Note: Import correct classes in your template or CSElement.
    Regards,
    Guddu

  • Custom AD Attributes using powershell

    Hi,
    Is it possible to create custom attributes using powershell v2/v3 ?
    Marcel

    Marcel,
    Active Directory Cookbook, 3rd Edition has a way to do it. Unfortunately, they do not include the crucial step of assigning the new attribute to the class. My company has multiple developers each with their own VM and we need to be able to do this hundreds
    of times internally and for our clients. I have been struggling for weeks trying to find the final piece. (recipe 10.7). Please let me know if you can figure out the last step
    Using PowerShell
    To create a schema attribute using the Quest tools, use the
    new-QADObject
    cmdlet as
    follows:
    new-QADObject -ParentContainer 'cn=schema,cn=configuration,
    <ForestRootDN>'
    -type
    'attributeSchema' -name 'adatum-LanguagesSpoken' -ObjectAttributes
    @{lDAPDisplayName='adatum-LanguagesSpoken';
    attributeId='1.3.6.1.4.1.999.1.1.28.3';oMSyntax='20';attributeSyntax='2.5.5.4';
    isSingleValued='FALSE';description='Language a user speaks';searchFlags='1'}
    To create a schema attribute using native PowerShell functionality, use the following
    syntax:
    $root = [ADSI]"LDAP://RootDSE"
    $schema = $root.schemaNamingContext
    $parentCont = [ADSI]("LDAP://" + $schema)
    $newAttr = $parentCont.Create("attributeSchema","adatum-LanguagesSpoken")
    $newAttr.put("lDAPDisplayName","adatum-LanguagesSpoken")
    $newAttr.put("attributeId","1.3.6.1.4.1.999.1.1.28.3")
    $newAttr.put("oMSyntax", 20)
    $newAttr.put("attributeSyntax", "2.5.5.4")
    $newAttr.put("isSingleValued", $false)
    $newAttr.put("description", "Languages a user speaks")
    $newAttr.put("searchFlags", 1)
    $newAttr.SetInfo()
    Discussion
    To create an attribute, you need to add an
    attributeSchema
    object to the
    Schema
    container.
    Typically, when you extend the schema, you perform several additions or modifications
    at once. The order of your extensions is very important. You can’t create a
    class, assign an attribute, and then create the attribute; you obviously need to create
    the attribute before it can be assigned to the class.
    Bud - MCITP

  • How to create numeric attribute using ABAP API

    Hi experts
    I'm trying to create a numeric attribute for a taxonomy table. In the how-to-examples there are only ways to create text attributes.
    Those who have tried, please let me know the steps.
    I have given below the code snippet which i tried to create numeric attribute. Please let me knw the missing link.
    ls_num_attr_val-rating = 500.
        APPEND ls_num_attr_val TO ls_ext_attr_info-characteristics.
      ls_ext_attr_info-attr_info-attr_id-id = lv_attribute_id.
           APPEND ls_ext_attr_info TO lt_ext_attr_info.
        GET REFERENCE OF lt_ext_attr_info INTO lv_data.
        ls_namevalue-value = lv_data.
        ls_namevalue-code = 'ACCT'.
        APPEND ls_namevalue TO ls_parameter-name_value_pairs.
        lv_string = 'Customer 12'.
        GET REFERENCE OF lv_string INTO lv_data.
        ls_namevalue-value = lv_data.
        ls_namevalue-code = 'CUST_NAME'.
        APPEND ls_namevalue TO ls_parameter-name_value_pairs.
        CALL METHOD lr_api->mo_core_service->create
          EXPORTING
            iv_object_type_code = 'ACCT_TYPE'
            is_parameter        = ls_parameter
            iv_parent_id        = 0
          IMPORTING
            ev_new_internal_id  = lv_key.
    Thanks
    SwarnaDeepika
    Edited by: SwarnaDeepika on Dec 19, 2009 4:38 PM

    Hello Ashok,
    [here|https://help.sap.com/javadocs/MDM/current/com/sap/mdm/examples/CreateField.html] is the Java API of the needed command.
    There is also an example of how to create a field. You can use the class by replacing the strings for the server, repository, table, etc. to your needs.
    If you want to create more than one field, simply use a loop, like the for-loop, while-loop, etc.
    Hope this helps.
    Best regards
    Dominik

  • How to create a taxonomy using MDM 5.5 SP05 JAVA API?

    Hi ALL,
    I have a requirement in which i have to create a taxonomy using MDM 5.5 SP05 JAVA API.
    Can anyone tell me how that functionality can be achieved?
    Thanks in Advance.
    Rajat.

    HI, Rajat.
    For exposing hierarchy in WD view you need to use node with recursive children in the context and Tree/TreeNodeType UI elements in view layout.
    For load hierarchy records you have to use RetrieveLimitedHierTreeCommand. You can load whole hierarchy (as I know, SP05 API have a bug - only first 1000 record can be loaded) or load hierarchy nodes on demand (using OnLoadChildren action of TreeNodeType element).
    Refer to this example of loading child records:
    // Context structure:
    // Tree (model node, model class built from com.sap.mdm.data.Record interface)
    //  |-- Children (recursive child node repeating Tree node)
    //  |-- DisplayValue (string value attribute, TreeNodeType's text property bound here)
    //  |-- HasChildren (boolean value attribute, TreeNodeType's hasChildren property bound here)
    // parentElem is element of node Tree or Children for which we must load child records, null for first level of hierarchy
    private void fillNodeWithChildren(IPrivateHierarchySelectView.ITreeElement parentElem) {
         // Determining RecordId of parent record and context node to which child records belong
         RecordId parentRecordId = null;
         if (parentElem != null) parentRecordId = parentElem.modelObject().getId();
         IPrivateHierarchySelectView.ITreeNode parentNode =
              parentElem == null
                   ? wdContext.nodeTree()
                   : parentElem.nodeChildren();
         // Loading children with RetrieveLimitedHierTreeCommand
         try {
              RetrieveLimitedHierTreeCommand retTreeCmd = new RetrieveLimitedHierTreeCommand(...); // use suitable constructor
              if (parentRecordId != null) retTreeCmd.setRootNode(parentRecordId);
              retTreeCmd.setResultDefinition(...); // don't forget set ResultDefinition
              retTreeCmd.execute();
              HierNode subRoot = retTreeCmd.getTree()
              parentNode.invalidate();
              // Processing loaded child records - add elements into parentNode
              if (subRoot == null) return;
              IPrivateHierarchySelectView.ITreeElement childElem;
              HierNode childRecord;
              HierNode[] children = subRoot.getChildren();
              int count = children == null ? 0 : children.length;
              for (int i = 0; i < count; i++) {
                   childRecord = children<i>;
                   childElem = parentNode.createTreeElement(childRecord);
                   childElem.setDisplayValue(childRecord.getDisplayValue());
                   childElem.setHasChildren(!childRecord.isLeaf());
                   parentNode.addElement(childElem);
              if (parentElem != null) parentElem.setHasChildren(count > 0);
         } catch (/* Some MDM Exceptions */) {}
    Don't forget call fillNodeWithChildren(null) in wdDoInit for load first level of hierarchy.

  • Trying to create Organization in OIM 11g R2 using API

    Hi All,
    I am trying to create Organization in OIM 11g R2 using API's. I able to create a organization with attributes Organization Name and Organization Customer Type but when i am trying to add Parent Organization Name it is throwing me the following error
    Caused by: oracle.iam.platform.entitymgr.UnknownAttributeException: Organization : [Parent Organization Name]
    any help in this regard will be helpful....
    Thanks

    Yes i do have the org with act_key 27
    I have done that changes...still it is throwing the same error
    Exception in thread "main" oracle.iam.identity.exception.OrganizationCreateException: IAM-3056148:act_createby is a System Attribute and cannot be set through API.:act_createby
         at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:237)
         at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:348)
         at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:259)
         at oracle.iam.identity.orgmgmt.api.OrganizationManager_874ar_OrganizationManagerRemoteImpl_1036_WLStub.createx(Unknown Source)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at weblogic.ejb.container.internal.RemoteBusinessIntfProxy.invoke(RemoteBusinessIntfProxy.java:85)
         at $Proxy2.createx(Unknown Source)
         at oracle.iam.identity.orgmgmt.api.OrganizationManagerDelegate.create(Unknown Source)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at Thor.API.Base.SecurityInvocationHandler$1.run(SecurityInvocationHandler.java:68)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
         at weblogic.security.Security.runAs(Security.java:41)
         at Thor.API.Security.LoginHandler.weblogicLoginSession.runAs(weblogicLoginSession.java:52)
         at Thor.API.Base.SecurityInvocationHandler.invoke(SecurityInvocationHandler.java:79)
         at $Proxy3.create(Unknown Source)
         at oracle.iam.ui.custom.Class1.main(Class1.java:108)
    Caused by: oracle.iam.identity.exception.OrganizationCreateException: IAM-3056148:act_createby is a System Attribute and cannot be set through API.:act_createby
         at oracle.iam.identity.orgmgmt.impl.OrganizationManagerImpl.create(OrganizationManagerImpl.java:318)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
         at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
         at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
         at oracle.iam.platform.utils.DMSMethodInterceptor.invoke(DMSMethodInterceptor.java:25)
         at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
         at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
         at $Proxy333.create(Unknown Source)
         at oracle.iam.identity.orgmgmt.api.OrganizationManagerEJB.createx(Unknown Source)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at com.bea.core.repackaged.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
         at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
         at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
         at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
         at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
         at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
         at com.oracle.pitchfork.spi.MethodInvocationVisitorImpl.visit(MethodInvocationVisitorImpl.java:34)
         at weblogic.ejb.container.injection.EnvironmentInterceptorCallbackImpl.callback(EnvironmentInterceptorCallbackImpl.java:54)
         at com.oracle.pitchfork.spi.EnvironmentInterceptor.invoke(EnvironmentInterceptor.java:42)
         at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
         at com.bea.core.repackaged.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
         at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
         at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
         at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
         at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
         at com.bea.core.repackaged.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
         at $Proxy331.createx(Unknown Source)
         at oracle.iam.identity.orgmgmt.api.OrganizationManager_874ar_OrganizationManagerRemoteImpl.__WL_invoke(Unknown Source)
         at weblogic.ejb.container.internal.SessionRemoteMethodInvoker.invoke(SessionRemoteMethodInvoker.java:40)
         at oracle.iam.identity.orgmgmt.api.OrganizationManager_874ar_OrganizationManagerRemoteImpl.createx(Unknown Source)
         at oracle.iam.identity.orgmgmt.api.OrganizationManager_874ar_OrganizationManagerRemoteImpl_WLSkel.invoke(Unknown Source)
         at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:667)
         at weblogic.rmi.cluster.ClusterableServerRef.invoke(ClusterableServerRef.java:230)
         at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:522)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:146)
         at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:518)
         at weblogic.rmi.internal.wls.WLSExecuteRequest.run(WLSExecuteRequest.java:118)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)
    Caused by: oracle.iam.platform.kernel.ValidationFailedException: IAM-3056148:act_createby is a System Attribute and cannot be set through API.:act_createby
         at oracle.iam.identity.usermgmt.utils.UserManagerUtils.createValidationFailedException(UserManagerUtils.java:337)
         at oracle.iam.identity.usermgmt.utils.UserManagerUtils.createValidationFailedException(UserManagerUtils.java:372)
         at oracle.iam.identity.utils.Utils.checkAllowedAttributes(Utils.java:2523)
         at oracle.iam.identity.orgmgmt.impl.handlers.create.CreateOrganizationValidationHandler.validate(CreateOrganizationValidationHandler.java:102)
         at oracle.iam.platform.kernel.impl.OrchProcessData.validate(OrchProcessData.java:258)
         at oracle.iam.platform.kernel.impl.OrchProcessData.runValidationEvents(OrchProcessData.java:203)
         at oracle.iam.platform.kernel.impl.OrchestrationEngineImpl.validate(OrchestrationEngineImpl.java:699)
         at oracle.iam.platform.kernel.impl.OrchestrationEngineImpl.process(OrchestrationEngineImpl.java:547)
         at oracle.iam.platform.kernel.impl.OrchestrationEngineImpl.orchestrate(OrchestrationEngineImpl.java:485)
         at oracle.iam.platform.kernel.impl.OrchestrationEngineImpl.orchestrate(OrchestrationEngineImpl.java:403)
         at sun.reflect.GeneratedMethodAccessor1171.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
         at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
         at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
         at oracle.iam.platform.utils.DMSMethodInterceptor.invoke(DMSMethodInterceptor.java:25)
         at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
         at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
         at $Proxy251.orchestrate(Unknown Source)
         at oracle.iam.identity.orgmgmt.impl.OrganizationManagerImpl.create(OrganizationManagerImpl.java:306)
         ... 46 more

  • Create group in OID using java api

    Hi all!
    I need to create group in OID using java api. Java api documentation contains examples for creating users but not for groups. I search oracle.com (and google) and didn't find any hint.
    Anybody know the way?
    thank you.

    Andrew,
    a group is created like any other entry in OID. You need to specify the dn, objectclass(es) and (mandatory) attributes.
    e.g.
    objectclass=groupOfUniqueNames
    with
    uniquemember=cn=orcladmin, cn=Users, dc=de,dc=oracle,dc=com
    as an example take a look at
    cn=iASAdmins, cn=Groups,cn=OracleContext,dc=de,dc=oracle,dc=com
    to see the schema (data) for groupofuniquenames you can either use ODM or query the directory server
    ldapsearch -p 3060 -b "cn=subschemasubentry" -s base "objectclass=*"
    regards,
    --Olaf                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • How to create new XML file using retreived XML content by using SAX API?

    hi all,
    * How to create new XML file using retreived XML content by using SAX ?
    * I have tried my level best, but output is coming invalid format, my code is follows,
    XMLFileParser.java class :-
    import java.io.StringReader;
    import java.io.StringWriter;
    import javax.xml.transform.OutputKeys;
    import javax.xml.transform.Transformer;
    import javax.xml.transform.TransformerConfigurationException;
    import javax.xml.transform.TransformerException;
    import javax.xml.transform.TransformerFactory;
    import javax.xml.transform.dom.DOMResult;
    import javax.xml.transform.sax.SAXSource;
    import javax.xml.transform.sax.SAXTransformerFactory;
    import javax.xml.transform.sax.TransformerHandler;
    import javax.xml.transform.stream.StreamResult;
    import org.w3c.dom.Document;
    import org.xml.sax.Attributes;
    import org.xml.sax.InputSource;
    import org.xml.sax.SAXException;
    import org.xml.sax.helpers.XMLFilterImpl;
    public class PdfParser extends XMLFilterImpl {
        private TransformerHandler handler;
        Document meta_data;
        private StringWriter meta_data_text = new StringWriter();
        public void startDocument() throws SAXException {
        void startValidation() throws SAXException {
            StreamResult streamResult = new StreamResult(meta_data_text);
            SAXTransformerFactory factory = (SAXTransformerFactory) SAXTransformerFactory.newInstance();
            try
                handler = factory.newTransformerHandler();
                Transformer transformer = handler.getTransformer();
                transformer.setOutputProperty(OutputKeys.ENCODING, "UTF-8");
                transformer.setOutputProperty(OutputKeys.INDENT, "yes");
                handler.setResult(streamResult);
                handler.startDocument();
            catch (TransformerConfigurationException tce)
                System.out.println("Error during the parse :"+ tce.getMessageAndLocation());
            super.startDocument();
        public void startElement(String namespaceURI, String localName,
                String qualifiedName, Attributes atts) throws SAXException {
            handler.startElement(namespaceURI, localName, qualifiedName, atts);
            super.startElement(namespaceURI, localName, qualifiedName, atts);
        public void characters(char[] text, int start, int length)
                throws SAXException {
            handler.characters(text, start, length);
            super.characters(text, start, length);
        public void endElement(String namespaceURI, String localName,
                String qualifiedName) throws SAXException {
            super.endElement("", localName, qualifiedName);
            handler.endElement("", localName, qualifiedName);
        public void endDocument() throws SAXException {
        void endValidation() throws SAXException {
            handler.endDocument();
            try {
                TransformerFactory transfactory = TransformerFactory.newInstance();
                Transformer trans = transfactory.newTransformer();
                SAXSource sax_source = new SAXSource(new InputSource(new StringReader(meta_data_text.toString())));
                DOMResult dom_result = new DOMResult();
                trans.transform(sax_source, dom_result);
                meta_data = (Document) dom_result.getNode();
                System.out.println(meta_data_text);
            catch (TransformerConfigurationException tce) {
                System.out.println("Error occurs during the parse :"+ tce.getMessageAndLocation());
            catch (TransformerException te) {
                System.out.println("Error in result transformation :"+ te.getMessageAndLocation());
    } CreateXMLFile.java class :-
    Sax.startDocument();
    Sax.startValidation();
    Sax.startElement("", "pdf", "pdf", new AttributesImpl());
    Sax.startElement("", "basic-metadata", "basic-metadata", new AttributesImpl());          
    String xmp_str = new String(meta_data.getByteArray(),"UTF8");
    char[] xmp_arr = xmp_str.toCharArray();
    Sax.characters(xmp_arr, 0, xmp_arr.length);
    Sax.endElement("", "pdf", "pdf");
    Sax.endValidation();
    Sax.endDocument();
    Sax.endElement("", "basic-metadata", "basic-metadata");* In CreateXMLFile.java
    class, I have retreived the xml content in the meta_data object, after that i have converted into character array and this will be sends to SAX
    * In this case , the XML file created successfully but the retreived XML content added as an text in between basic-metadata Element, that is, retreived XML content
    is not an XML type text, it just an Normal text Why that ?
    * Please help me what is the problem in my code?
    Cheers,
    JavaImran

    Sax.startDocument();
    Sax.startValidation();
    Sax.startElement("", "pdf", "pdf", new AttributesImpl());
    Sax.startElement("", "basic-metadata", "basic-metadata", new AttributesImpl());          
    String xmp_str = new String(meta_data.getByteArray(),"UTF8");
    char[] xmp_arr = xmp_str.toCharArray();
    Sax.characters(xmp_arr, 0, xmp_arr.length);
    </code><code>Sax.endElement("", "basic-metadata", "basic-metadata");</code>
    <code class="jive-code jive-java">Sax.endElement("", "pdf", "pdf");
    Sax.endValidation();
    Sax.endDocument();     
    * I HAVE CHANGED MY AS PER YOUR SUGGESTION, NOW SAME RESULT HAS COMING.
    * I AM NOT ABLE TO GET THE EXACT OUTPUT.,WHY THAT ?
    Thanks,
    JavaImran{code}

  • How to create a new User / Contact using APIs

    I am not able to figure out how to create a new User / Contact in WLPS using APIs
    . Is there a factory class ?
    Thanks,
    AJ

    Hi Bala,
    Try using these function modules
    SUSR_BAPI_USER_CREATE
    BAPI_USER_CREATE
    BAPI_USER_CREATE1
    BAPI_USER_INTERNET_CREATE ( This internally calls BAPI_USER_CREATE1)
    Please read the FM documentation for more information.

Maybe you are looking for

  • Requirement to attach a word document to an Appointment page

    Hi All, We have a requirement to attach or show a Word document which can be edited on the Appointment page. This document is like a form which has few questions , while creating an Appointment the use can open this and enter relevant answers and sav

  • 7.2 provisioning

    Hey guys, Could someone who has gotten a 7.2 to work tell me what their values are in the repository Privilege and Event Tasks tabs? ABAP is my main concern at the moment but I'm having the same issues on LDAP and ABAP repositorys. I can assign the <

  • ERP Quotation from Opportunity

    Hi,    I am not able to create ERP quotation form CRM Opportunity. the setting is done in Cross-system Copy Control for Opportunity and SAP-ECC Quotation. what other settings to be done to create ERP quotation as follow UP With Regards Selvam T

  • My iphone 4 screen is blue

    my iphone 4 screen is blue & resting when I turn on camera.

  • Turn off Subscriptions to forum posts

    If you're like me you probably have your settings set to email you when there's a new posting in a forum topic that you're subscribed to. I just checked my .Mac email to finds hundreds of notifcations that new postings have been made. So, in order to