How to create looping model

Hi
I  have  few question  about looping pattern.
I hava 3 human activity  ( Request,  Check, Confirm)
I want  decided check activity owner users in Request activity.
it can be used  principal expression in potential owners.
But  I want to decided couple of  Check activity owners and the each owners have to  process each human activity.
I don't know how many Check activity owners before deciding owners.
finally, process last step (Confirm) after end of all Check activity .
Is that possible ?
Plz, help about the pattern.

You could try using Oracle Designer to create your diagrams. Also, it may make sense if you group the tables by functional areas
The Techical Reference Manual for the Oracle 11i HRMS application is good example of this, since the table relationships are shown by functional area (i.e. Person data, Job data, etc.).

Similar Messages

  • How to create a model access class ???

    HI,
          Can somebody tell me how to create a Model Access Class. In the Application Set, i can find the Model Access folder, but it has a list of application sets which is already created and the system asks to select a Application set. I need to create a new application set. Please help.
    Regards,
    Shiny

    Hi Shiny,
    I would suggest you not to create a new application set.
    If you are enhancing a standard PCUI application, i would suggest you to create new model access classes and assign them to the same application set which is assigned with the standard model access class for that application.
    Creating a model access class can be done through the transaction SE24(like any other Z-class).
    Go to transaction CRMC_BLUEPRINT_C and you could assign this newly created Model access class to the standard application set. This can be done under Application Element->Application Set->MOdel Access Class.
    If you still feel the need to create a new application set altogether, it can be done from Trx CRMC_BLUEPRINT_C->Layout of PCUI-> Application Element->Application set.
    I hope it helps.
    Cheers,
    Gyan.

  • How to create a Model based on an SQL Server?

    Hello,
    Can someone please guide me how can I create a Model which takes it's Data from a table in an SQL Server?
    Can I make such a Model that will connect directly to a Datasource on the Application Server?

    Well Roy,
    I was also facing some similar problem, just now got my service displayed in portal. Thanks a lot that you could solve it urself. Anyway, now for using this service from another portal component do the following
    1. Add SharingReference value in Deployment Descriptor of the portal app from where u want to access this service
    example:
    <application-config>
    <property name="SharingReference"       value="com.customer.training.MyFirstPortalApp">
    </property>
    </application-config>
    2. Add libraries of the Portal Service (xxxapi.jar)
    in your par file u can see one jar file as <servicename>api.jar . extract this to some other location and in the client portal app project add this .jar to its build path.
    3. Write code to access the Portal Service
        a. Import package of the Portal Service
        b. Get instance of the Portal Service
        c. Call methods of the Portal Service
    example:IPortalRuntimeResources runtimeResources =      PortalRuntime.getRuntimeResources();
    IService aService = runtimeResources.getService("com.customer.training.MyFirstPortalApp.MyService");
    // OR
    IService aService = runtimeResources.getService(IMyService.KEY);
    // Cast the Service
    IMyService myService = (IMyService)aService;
    // call methods of the service
    response.write(myService.getWelcomeString(aName));
    thats how it should be...
    regards,
    Shubhadip

  • How to create a model and JCO connection

    Hi all,
             The Userid and Password given while creating new model at Singleserver/Load balancing tab should be same as the userid and password given while creating JCO connection. i.e in JCO creation  while mapping modeldata to Application data and Metadata to metadata we will give some userid and password.
    will those 2 userids and passwords should be same.
    the error which i am getting is
    com.sap.tc.webdynpro.modelimpl.dynamicrfc.WDDynamicRFCExecuteException: Error connecting using JCO.Client: null
    Regards
    Padma N

    2 userids and passwords need not be same
    i got similar problem and this is how i resolved
    this is because jco connections are Using SSO and the user who is accessing that webdynpro application is not present in the backend system.
    please make sure user is there in the backend system from which you are getting data
    xxxxxxxxxxxxxxxxxxxxx
    Edited by: Armin Reichert on Feb 18, 2008 7:26 PM

  • How to Create Data Model

    I have a database of 1000 tables. How can I create ER-Model for that database. I mean figure showing fields and relationships. I am looking for a smart way.
    Regards,
    Amer

    You could try using Oracle Designer to create your diagrams. Also, it may make sense if you group the tables by functional areas
    The Techical Reference Manual for the Oracle 11i HRMS application is good example of this, since the table relationships are shown by functional area (i.e. Person data, Job data, etc.).

  • How to create loop expression in BRF ?

    Hi ,
    I have a requirement . I have a table as input parameter in a fuction signature . I need to loop at that table and check if a particular field in the row is initial. If yes , then I need to return the message with plant info in the current row concatenated with error message.
    Please advise.
    Thanks,
    Jayashri

    Hi,
    I had this similar requirement. Below are the steps I followed. It may be helpful to you.
    Step 1:- Created an internal table structure in events class. (Inherited CL_EVENT_BRF to ZCL_EVENT_BRF and added this internal table).
    Step 2:- After creating an object for event in runtime, assign your application internal table to the newly added itab of event object so that it will be in scope while executing action.
    Step 3:- Create an action with action class of executing function module. In this function module you can write code to look for a field with initial value and update the same table with any other desired data.
    Step 4:- After control returned from event processing, Event object will have all the updated values from function module.
    Now assign event->itab to application itab.
    In this approach you are actually applying business rule using code in function module. But you are still triggering this event using BRF. That means you have good control of when to execute function module and when not to using expression in BRF.
    Thanks,
    Amara.

  • How to add the model view controller in webcenter portal framework application

    i create a webcenter portal framework application.how to create a model class in my application..please help me.

    What you mean by this. You mean having model layer in webcenter portal framework application? Whats the exact requirement.? You want to create ADF BC in portal app.
    If you want to use adf taskflow application , i will recommend you to make separate adf application and use as shared lib in portal.

  • Create data models using interactive reporting

    Hey guys,
    I was wondering how you create data models using interactive reporting. An simple example would be great? I would really appreciate if I could get an answer.
    Also, I wanted to understand a real world situation that you guys might have faced with creating data models, etc...thanks a ton :-)
    -- Adi

    Your question is not that much clear on what you are asking for.
    But for reference please have a look at the below doc which explain the Integration with IR and webanalysis what you require.
    IR and WebAnalysis with Essbase
    Thanks,
    ~KKT~

  • How to create JavaBeanModel in Local DC of type WebDynPro

    Hi All,
    I am trying for create  JavaBeanModel with LocalDC. I have 2/3 Java class files binded in Jar file. I want use those jar file classes in JavaBeanModel.How to create JavaBean Model in LocalDC with Jar file not with Single Java class.
    Thanks in advance
    Thx & Rgds
    AW

    Hi Adam,
    The option to import java files through jar files in a local WD project is through the option "Local Jar Files". However for local WD DC project, the option is not available and you must have these jars contained in another Dc project and expose them in the form of public parts jars. Then you must define a dependency of the WD DC to the DC containing the jar file.
    Best Rgds,
    Nidhi
    Message was edited by:
            Nidhi Rajshree

  • Create Wire Model in webdynpro FPM.

    Hi Friends,
    Please , Help Me How to create Wire Model by Webdynpro FPM. Please Give me Step by Step  process.
    i have done Form, list, search and Tree but i am not geting how to do Wire Model. So Please Give me Step by step Review to create Wire Model with FPM.
    it's Urgent.
    Thanks.
    Pappu  Mehta
    Edited by: Pappu Kumar Mehta on Nov 18, 2011 3:38 AM

    Wire Model
    The wire model can be used to create running FPM application by pure configuration or at least with minimal coding effort. The runtime interdependencies between UIBBs are defined by configuration entities called “wires” which are based on reusable “connector” classes implementing the dependency semantics. The primary use cases for the wire model are object models with generic access interfaces (for example, ESF, BOPF, or BOL).
    A wire controls the runtime interdependencies between two UIBBs; that is, they determine the data content of the target UIBB depending on user interaction changing the “outport” of the source UIBB. Outports can be of type lead selection, selection or collection. For example, the execution of a search on a Search GUIBB will change its collection outport and may therefore change the data content of a result list displayed in a separate List GUIBB. Similarly, changing the lead selection in a list of sales orders may change the data content of another list displaying the associated sales order items.
    In order to be part of a wire model, a UIBB needs to implement a certain Web Dynpro interface which in turn provides a feeder model implementation. The FPM GUIBBs are automatically integrated if their feeder classes implement the feeder model interface.
    Application areas or object models define their own namespaces for which their connector classes, feeder model classes can be reused. Moreover, they typically need to provide a transaction handler class which manages transaction events like save, modify or check and global message handling.
    Wires are defined on the level of the floorplan configuration. For each model UIBB contained in the floorplan configuration, a source UIBB with specified outport can be defined. Furthermore, a connector class and, potentially, connector parameters must be maintained.
    If the floorplan contains composite components (tabbed components), the model UIBBs contained in the tabbed components can also be wired. However, in order to provide better reusability of composite components, it is also possible to define intrinsic wiring for tabbed components. A tabbed component can define a model UIBB as a “wire plug” (this is usually a master UIBB), which serves as an entry point for the wiring of the tabbed component from the enveloping floorplan component. If a wire plug is configured for a tabbed UIBB, only the wire plug UIBB can be wired from outside.
    Transaction Handler class
        The transaction interface provides methods for handling global and transactional events. In the FPM configuration editor, one transaction handler implementation can be assigned on the level of the wire model. However, it is not mandatory to specify. But it can be used for wring some specific logic for Application level events.
    Interface “IF_FPM_WIRE_MODEL_TRANSACTION” is implemented for creating transaction handle class.
    Method
    Method description
    START
    It is called at the starting of FPM application. It provides 3 things “FPM Massage manger instance”, “Property bag of FPM Application”, and “Runtime information of FPM”.  Here, we can also specify application commit capability.
    AFTER_FLUSH
    This method is called after FLUSH has been called for all current UIBBs. It can be used to flush buffers.
    AFTER_PROCESS_EVENT
    This method is called after PROCESS_EVENT has been called for all current UIBBs. It can be used for handling transactional events for example SAVE or CHECK. Moreover, it can be used to collect messages which here not handled inside UIBBs and to forward them to the FPM message handler.
    AFTER_PROCESS_BEFORE_OUTPUT
    This method is called after PBO has been called for all current UIBBs. It can be used to collect messages at the latest possible point in time before screen output.
    AFTER_NEEDS_CONFIRMATION
    This method is called after NEEDS_CONFIRMATION has been called for all UIBBs. It can be used to analyze and add confirmation requests.
    IS_DIRTY
    This method can be used to indicate a dirty state for the work protection mode.
    Connector Class
        The “IF_FPM_CONNECTOR” connector interface comprises an interface, “IF_FPM_CONNECTOR_DEF”, defining the access by the FPM framework and an interface “IF_FPM_CONNECTOR_RUN” for runtime access by the application feeder model.
    The definition interface possesses a static attribute, “SV_NAMESPACE”, which should be filled with the namespace (ex. ‘FPM_DEMO’ or ‘BOL’ or user specific) in the class constructor of a connector implementation (for example in a common superclass).
    Method for “IF_FPM_CONNECTOR_DEF”
        Method
    Method description
    GET_PARAMETER_LIST
    Connector classes can be parameterized to flexibly control their runtime behavior. The parameter values are maintained for the wires in the FPM configuration editor. A parameter is defined by a name, its data type and a descriptive text.
    INITIALIZE
    With this method the connector is initialized with the parameter values. This method is called by the FPM runtime upon UIBB instantiation.
    GET_PARAMETER_VALUE_SET
    With this method, a connector implementation can provide a value set for each parameter. For example, in an object model a parameter may carry the association name. For a wire between specified UIBBs, the method may provide a list of all associations between the source and target business object node.
    SET_INPUT
    Receives an object reference carrying the actual data of the connected outport. This method is called before the UIBB‟s PBO by the FPM runtime.
    Method for “IF_FPM_CONNECTOR_RUN”
        Method
    Method description
    GET_OUTPUT
    Returns an object reference carrying the actual data to be displayed by a UIBB. This method can be called by the UIBB at PBO for example in the GET_DATA method of a feeder class.
    IS_CREATE_ALLOWED
    Returns a Boolean indicator whether entity creation is allowed. This method can be called by the UIBB at PBO to dynamically control the activation of create buttons for example to maintain the action usage parameter in the GET_DATA method of a feeder class.
    CREATE_ENTITY
    Creates and returns a data entity which can be arbitrarily typed. This method can be called by an action handler of the UIBB for example in the PROCESS_EVENT method of a feeder class.
    There are total seven methods in connector interface “IF_FPM_CONNECTOR” that should be implemented in connector class. We should also create class constructor for setting “Namespace”. “SET_OUTPUT” and “GET_OUTPUT” is bridge between FPM components, so these methods should be implemented properly.
    Wire for Free UIBBs
        Wire model is implemented on Web Dynpro component by implementing “IF_FPM_UIBB_MODEL” Web Dynpro interface. It contains only one method “GET_MODEL_API” which is used to set “FPM Feeder Model” for Free GUIBBs. It contains only one parameter “RO_FEEDER_MODEL”. So, we have to create a FPM Feeder Model class and assign to that parameter.
        FPM Feeder Model Class – Interface “IF_FPM_FEEDER_MODEL” is implemented for creating Feeder Model Class.
        Method for “IF_FPM_ FEEDER_MODEL”
        Method
    Method description
    GET_NAMESPACE
    Returns the namespace of the underlying application area. Method is called at design time.
    SET_CONNECTOR
    Called upon instantiation of a UIBB. It hands over the connector (reference to IF_FPM_CONNECTOR_RUN) which can be accessed for data retrieval at PBO.
    GET_INPORT_KEY
    Returns a reference to an object key which characterizes the meta data type expected at the import (for example the business object node). Method is called at design time.
    GET_OUTPORTS
    Provides a table of outports comprising the object key, the port type an identifier and a descriptive text. Method is called at design time.
    GET_OUTPORT_DATA
    Returns an object reference carrying the actual data identifier for a certain port. Method is called at runtime.
            Assistance class can also be used as Feeder Model Class and reference “WD_ASSIT” can used as Feeder model instance.
    Ex:    METHOD get_model_api .
      ro_feeder_model = wd_assist.
    ENDMETHOD.
    Wire for GUIBBs
        Nothing special we need to do that.  Interface “IF_FPM_FEEDER_MODEL” is also implemented on feeder class for getting port support. We need to set port manually using structure “IF_FPM_FEEDER_MODEL=>CS_PORT_TYPE”. It contains three constants “COLLECTION”, “SELECTION” and “LEAD_SELECTION”. It should be properly configured.
    Source Codes:
    Code for Transaction handler class:
    class ZCL_MY_TRAN_HANDLER definition
      public
      create public .
    public section.
    *"* public components of class ZCL_MY_TRAN_HANDLER
    *"* do not include other source files here!!!
      interfaces IF_FPM_WIRE_MODEL_TRANSACTION .
    protected section.
    *"* protected components of class ZCL_MY_TRAN_HANDLER
    *"* do not include other source files here!!!
    private section.
    *"* private components of class ZCL_MY_TRAN_HANDLER
    *"* do not include other source files here!!!
      data MO_MSG_MAN type ref to IF_FPM_MESSAGE_MANAGER .
    ENDCLASS.
    CLASS ZCL_MY_TRAN_HANDLER IMPLEMENTATION.
    * <SIGNATURE>---------------------------------------------------------------------------------------+
    * | Instance Public Method ZCL_MY_TRAN_HANDLER->IF_FPM_WIRE_MODEL_TRANSACTION~AFTER_FLUSH
    * +-------------------------------------------------------------------------------------------------+
    * +--------------------------------------------------------------------------------------</SIGNATURE>
    method IF_FPM_WIRE_MODEL_TRANSACTION~AFTER_FLUSH.
      return.
    endmethod.
    * <SIGNATURE>---------------------------------------------------------------------------------------+
    * | Instance Public Method ZCL_MY_TRAN_HANDLER->IF_FPM_WIRE_MODEL_TRANSACTION~AFTER_NEEDS_CONFIRMATION
    * +-------------------------------------------------------------------------------------------------+
    * | [--->] IO_EVENT                       TYPE REF TO CL_FPM_EVENT
    * | [--->] IT_UIBBS                       TYPE        FPM_T_UIBB_COMPONENTS
    * | [<-->] CT_CONFIRMATION_REQUESTS       TYPE        FPM_T_CONFIRMATION_REQUESTS
    * +--------------------------------------------------------------------------------------</SIGNATURE>
    METHOD if_fpm_wire_model_transaction~after_needs_confirmation.
    *----- which event
      CASE io_event->mv_event_id.
    *----- start over
        WHEN if_fpm_constants=>gc_event-start_over.
    *----- raise confirmation request if state is dirty
          CHECK if_fpm_wire_model_transaction~is_dirty( ) = abap_true.
          APPEND cl_fpm_confirmation_request=>go_data_loss TO ct_confirmation_requests.
      ENDCASE.
    ENDMETHOD.
    * <SIGNATURE>---------------------------------------------------------------------------------------+
    * | Instance Public Method ZCL_MY_TRAN_HANDLER->IF_FPM_WIRE_MODEL_TRANSACTION~AFTER_PROCESS_BEFORE_OUTPUT
    * +-------------------------------------------------------------------------------------------------+
    * +--------------------------------------------------------------------------------------</SIGNATURE>
    method IF_FPM_WIRE_MODEL_TRANSACTION~AFTER_PROCESS_BEFORE_OUTPUT.
      RETURN.
    endmethod.
    * <SIGNATURE>---------------------------------------------------------------------------------------+
    * | Instance Public Method ZCL_MY_TRAN_HANDLER->IF_FPM_WIRE_MODEL_TRANSACTION~AFTER_PROCESS_EVENT
    * +-------------------------------------------------------------------------------------------------+
    * | [--->] IO_EVENT                       TYPE REF TO CL_FPM_EVENT
    * | [<-()] RV_RESULT                      TYPE        FPM_EVENT_RESULT
    * +--------------------------------------------------------------------------------------</SIGNATURE>
    method IF_FPM_WIRE_MODEL_TRANSACTION~AFTER_PROCESS_EVENT.
      CASE io_event->mv_event_id.
        WHEN ''.
        WHEN ''.
        WHEN OTHERS.
      ENDCASE.
    endmethod.
    * <SIGNATURE>---------------------------------------------------------------------------------------+
    * | Instance Public Method ZCL_MY_TRAN_HANDLER->IF_FPM_WIRE_MODEL_TRANSACTION~IS_DIRTY
    * +-------------------------------------------------------------------------------------------------+
    * | [<-()] RV_IS_DIRTY                    TYPE        BOOLE_D
    * +--------------------------------------------------------------------------------------</SIGNATURE>
    METHOD if_fpm_wire_model_transaction~is_dirty.
      rv_is_dirty = cl_fpm_wire_model_col_factory=>work_protection_is_dirty( )

  • How can I create a model node in SAP Records Management

    Product: SAP Records Management
    Hi,
    I would like to create a model node in a record tree.
    I found in the function modul BAPI_RECORD_ADDELEMENT no entry for the creation of a model node. Only the instance and the structure node can create by this function modul.
    So, does anyone know a solution to create a model note?
    Regards,
    Thomas Fanninger

    Hi Thomas,
    it is not possible with the BAPI due to the piece of coding:
    case  myElementType.
            when glob_const_elem_type_instance.
              myRecordElement->Type_Set( if_srm_sp_record_element=>type_instance ).
              myRecordInstanceElement ?= myRecordElement.
              loop at element_sp_poid into myElementSpPoidWa.
                mySpPoidWa-id = myElementSpPoidWa-name.
                mySpPoidWa-value = myElementSpPoidWa-value.
                insert mySpPoidWa into table myElementSpPoidTab.
              endloop.
              myElementSpsId = sps_id.
              myElementPoid = myClientService->poid_get_instance( im_rms_id  = myRmsId
                im_sps_id  = myElementSpsId  im_sp_poid = myElementSpPoidTab ).
              myService->check_sp_connection( myElementPoid ).
              myRecordInstanceElement->poid_set( myElementPoid ).
            when glob_const_elem_type_folder.
              myRecordElement->Type_Set( if_srm_sp_record_element=>type_folder ).
            when others.
              perform set_error using '852' return.
              return.
          endcase.
    But you can do that by using directly the Records API. How to use this is demonstrated in the report 'SRM_RECORD_API_HOWTO'. Search there for the subroutine 'fillrecordelement'. There a record element for insert is created and its type is set. You can set the type there to 'IF_SRM_SP_RECORD_ELEMENT~TYPE_MODEL'. Of course your POID then may not be an instance POID.
    Best regards,
    Thomas

  • How to customize Category and Category items list while creating New Model

    Hi,
    what the most convenient way to customize the Category and Category items list while creating New Model?
    This is standard:
    Now, what we want to achieve, is to customize this menu, to:
    1. Display in the Category window only f.e. two categories:
    - EA Diagrams
    - BPM Diagrams
    2. In the EA Diagrams, we want to have f.e. four copies of City Planning diagram, each of them should have different elements available, f.e. in the first copy, only Architecture Areas shall be made available, in the second one Architecture Areas and Business Functions, in the third on f.e. only Business Functions shall be made available. Additionally, it should behave like a hierarchy ... meaning you can create the second diagram, only as child (related diagram) of the first diagram etc.
    I know, excluding the particular diagrams/diagram elements can be configured using the right/profile settings, but how to:
    1. Customize the standard New Model menu window
    2. Create copies of City Planning Diagrams with different set-ups
    3. Set the relationship between diagrams
    Is such a configuration change possible?
    Thanks a lot for your help!
    Regards,
    Rafal

    Now, what we want to achieve, is to customize this menu, to:
    Question #1. Display in the Category window only f.e. two categories:
    - EA Diagrams
    - BPM Diagrams
    Click on Tools => General Options=> Model Creation
    Click on Properties => at right of Default category set
    Note : Model template does not work as Category. We can't set. An enchancement request has been open to SAP
    In the following example I defined a new default (MyNewDefault.mcc). As you can see only BPMN models are available.
    To create a new category set with BPMN choice
    a) Copy default.mcc in MyNewDefault.mcc file.
        Go to Tools=>General Options=>Model Creation : Select your new category
        Go to Tools=>General Options=>Model Creation : Edit properties and remove all things you does not want keep
    or
    b) Go to Tools=>General options=>Model Creation : Edit properties and click on Save as button and specify the file name "MyNewDefault".
        Quit the window.
        Select you new category : Go to Tools=>General Options=>Model Creation : "MyNewDefault"
        Edit properties and remove all things you does not want keep.
        Save you new category
    Question #2. How to define copies/replicas of existing diagrams
         Wrote an extension
    Question #3. How to make sure, particular diagrams can be used (created) only on predefined "levels" and how to set the parent-child relationship, so that PD enforced it directly when creating a new diagram.
         Specify yours conditons in your extension attached to your model
         Example : When the user want create a child diagram :  You can display a list of Parent Diagrams to select from.
         You can set in your extension by VBScript parent-child relationship
    Question #4 In the EA Diagrams, we want to have f.e. four copies of City Planning diagram, each of them should have different elements available, f.e. in the first copy, only Architecture Areas shall be made available, in the second one Architecture Areas and Business Functions, in the third on f.e. only Business Functions shall be made available.
    If I understand well your question. I suggest to take a look in
    Repository=>Administration=>Objects Permission Profile
    You can specify objects to show, mask, deactivate at model level.
    You can specifiy your own metadata.
    But I'm not sure you can mask, deactivate functions following diagram selection. It seem to specific.
    Message was edited by: Benoit Le Nabec

  • How to create a textfile dynamically(with in the loop) with given data?

    Hi all,
    Can anyone Please guide me how to create a text file in the given path dynamically? (with in the loop) with given data.
    For example:
    <%
    String data1="name";
    String data2="address";
    for(int i=0;i<10;i++)
    create the textfile at c:/test/sample.txt//name of the each file created being "sample.txt"
    //contents of text file will be
    data1+i; //to get name1,name2.....
    data2+i// to get add1,add2........
    delete(sample.txt) //to enable to create another file in the loop with same name
    %>

    The code which Ashokan mentioned is not is not creating a file.
    i used code given below to create and write into it.
    But, not is writing into it. I don't konw, where i am going worng !
    Code
    String sample2="C:/Ash/sample2.txt";     
                                                                                    FileWriter fw = new FileWriter(sample2,true);
                                            BufferedWriter bw=new BufferedWriter(fw);
                                            bw.write("EMP ID");     
                                            bw.newLine();
    Please help
    Regards
    aSh

  • How to create a Document Set in SharePoint 2013 using JavaScript Client Side Object Model (JSOM)?

    Hi,
    The requirement is to create ""Document Sets in Bulk" using JSOM. I am using the following posts:-
    http://blogs.msdn.com/b/mittals/archive/2013/04/03/how-to-create-a-document-set-in-sharepoint-2013-using-javascript-client-side-object-model-jsom.aspx
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/1904cddb-850c-4425-8205-998bfaad07d7/create-document-set-using-ecma-script
    But, when I am executing the code, I am getting error "Cannot read property 'DocumentSet' of undefined "..Please find
    below my code. I am using Content editor web part and attached my JS file with that :-
    <div>
    <label>Enter the DocumentSet Name <input type="text" id="txtGetDocumentSetName" name="DocumentSetname"/> </label> </br>
    <input type="button" id="btncreate" name="bcreateDocumentSet" value="Create Document Set" onclick="javascript:CreateDocumentSet()"/>
    </div>
    <script type="text/javascript" src="//ajax.aspnetcdn.com/ajax/jQuery/jquery-1.7.2.min.js"> </script>
    <script type="text/javascript">
       SP.SOD.executeFunc('sp.js','SP.ClientContext','SP.DocumentSet','SP.DocumentManagement.js',CreateDocumentSet);
    // This function is called on click of the “Create Document Set” button. 
    var ctx;
    var parentFolder;
    var newDocSetName;
    var docsetContentType;
    function CreateDocumentSet() {
        alert("In ClientContext");
        var ctx = SP.ClientContext.get_current(); 
        newDocSetName = $('#txtGetDocumentSetName').val(); 
        var docSetContentTypeID = "0x0120D520";
        alert("docSetContentTypeID:=" + docSetContentTypeID);
        var web = ctx.get_web(); 
        var list = web.get_lists().getByTitle('Current Documents'); 
        ctx.load(list);
        alert("List Loaded !!");
        parentFolder = list.get_rootFolder(); 
        ctx.load(parentFolder);
        docsetContentType = web.get_contentTypes().getById(docSetContentTypeID); 
        ctx.load(docsetContentType);
        alert("docsetContentType Loaded !!");
        ctx.executeQueryAsync(onRequestSuccess, onRequestFail);
    function onRequestSuccess() {       
        alert("In Success");
        SP.DocumentSet.DocumentSet.create(ctx, parentFolder, newDocSetName, docsetContentType.get_id());
        alert('Document Set creation successful');
    // This function runs if the executeQueryAsync call fails.
    function onRequestFail(sender, args) {
        alert("Document Set creation failed" + + args.get_message());
    Please help !!
    Vipul Jain

    Hello,
    I have already tried your solution, however in that case I get the error - "UncaughtSys.ArgumentNullException: Sys.ArgumentNullException:
    Value cannot be null.Parameter name: context"...
    Also, I tried removing SP.SOD.executeFunc
    from my code, but no success :(
    Kindly suggest !!!
    Vipul Jain

  • How to set the Model Class for a newly created Model Node ?

    Hello All,
      I am trying to map a Model node from SourceA to DestinationB.
      To do so, I created a model node for Destination B in the interface controller (set the isInputElement to true). However why I try to map the node, I get an error saying that "Both context nodes have to be bound to a model class". Upon a closer look, I realised that the model node that I created in DestinationB has no entries under the properties.
      Does anyone knows/advise how I can add the model class entry to the model node that I have created as I am not able to do so. Or otherwise, is there a way to map a model node to another model node across different components ? Thank you very much.
    from
    Kwok Wei
    from
    Kwok Wei

    Hello Pascal
      The instructioons that you gave are for mapping the model between the view controller and the component controller within the same component is that right ?
      I am tryng to map a model node in the component controller of SourceA to another model node that belongs to another Component. I do believe that in this case I will need to create a model node in the interface controller of DestinationB and map that to the component controller of SourceA. However, by creating my own model node, how do I change the property modelClass in the context ?
      Thanks !
    from
    Kwok Wei

Maybe you are looking for

  • UCCX 8.5: CSQ Name Displayed in CAD Integrated Broswer?

    Cisco Forum: Can UCCX 8.5 for the Cisco Agent Desktop (CAD) provide the CSQ Name in the Integrated Broswer portion of the CAD?  That is, the CAD can be used to pop a web link to agents on incoming calls.  While the CAD can show the CSQ Name by defaul

  • Client details in SRM

    Hi All, I have some Questions on SAP SRM 1) What are all the Client independent settings of SRM. 2) And Is it possible to have Different org Structures in Different Clients. 3) Is it possible to have Different Client have different Technical Scenario

  • FR error:  *Error: invalid report object*

    Hi All, When we run the report we are getting error "*Error: invalid report object*. It is for one specific entity at the base level for some user's. Other user's can able to view the data at that leve. All the user's have same level of access. can s

  • Mac pro 8 core, flashing cursor please help

    I have a 8 core mac pro, and now when I go to start the system, all I get is a blinking cursor on the upper left hand side. It happened after I took out my 2 nd HD which was just storage and a partition of bootcamp. My main OS X 10.5.4 never left the

  • Mac OS X Mountain Lion and Numbers color issue

    I updated to Mac OS X Mountain Lion and now my Numbers file has a pink background color instead of white with black text. How do I fix it?