Creating Tree Model in JDeveloper 11.1.2

hi!
I tried the steps written in blog below but it didn't work. The output was 'no data to display'. Can anyone suggest me where I can find full procedure according to JDeveloper 11.1.2 for creating our own Tree model.
[http://www.yonaweb.be/creating_your_own_treemodel_adf_11g_0]
Thanks in advance!!
Edited by: 886029 on Sep 22, 2011 4:51 AM

You can check the tree demos here:
http://www.oracle.com/technetwork/developer-tools/adf/documentation/adf-faces-rc-demo-083799.html
for examples of beans with tree model.
Of course if you are just accessing a database, then using ADF BC or JPA/EJB will get you there without any code needed.

Similar Messages

  • 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

  • Bette way to referenced tree model nodes from UI to perform actions on them

    A singleton facade is built.
    Its init() method loads several "tree model configs", each of them referenced by a name.
    This singleton creates a Project instance for a given "tree model config" calling the facade method -> createProject(String pjrName, String modelConfigName)
    When the Project is built a new Model instance is set ( remember the model instance is a tree holding nodes )
    The new Project instance built is added to a List that the facade has and then it's returned to the UI part that called ->createProject(prjName,modelconfigName)
    Given the Project instance the UI has to build a JTree representation of the model that the project references and the UI will have button actions that should call methods of the Nodes of the model referenced by the Project.
    Doing it this way the UI will be able to reference objects directly without going through the facade.
    Maybe I should return to the UI something like a ProjectKey instance instead of letting have the UI the Project instance ?
    It should be better if I process the possible node actions behind the Facade and not the UI, but how can I do it ?
    Having a ProjectKey in my UI I could ask the facade a model tree representation but not having the real nodes, otherwise having some NodeKey instances ?

    Sounds like you want to represent a tree structure, without a reference to the real tree.
    I'll take it further: maybe you don't want the UI to know there's a real tree data-structure with nodes and pointers to children, because maybe you build the tree on the fly from a database.
    So use the Builder pattern instead of committing to a specific data structure.
    Google results for Builder pattern: http://www.google.com/search?hl=en&q=builder+pattern&btnG=Google+Search
    Your UI should know how to construct nodes and children graphically, when told. This means it should have methods like addNode, but related to the domain: addSubProject maybe.
    A Project object is the Director, knowing which part goes where, but it doesn't know the real end result (a JPanel or HTML). So it has a method buildProject(Builder e) or exportProject(Exporter e), where all logic of assembling the parts is.
    When you have that, write a class JTreeProjectExporter implements Exporter.
    Hope this helps.

  • Tree Model Implementation

    Hi All,
    I'm need to create a JATO tree implementation and need some advice. I
    want to modify the JATO sample tree implementation so that:
    1) The model is cached within the user's session.
    2) The model is created on demand. i.e. The data associated with the
    branches are only retrieved when the branches are opened.
    In the sample application E0115TreeView (view) creates a
    SimpleTreeModelImpl (model) each time it is instantiated and
    SimpleTreeModelImpl (model) creates dummy data each time it is
    instantiated.
    1) Is there a standard JATO technique for associating a model with a
    view (unlike the sample)? Does this involve the ModelTypeMapImpl class?
    My tree data is stored in LDAP, so I can't use a standard JATO database
    Model classes.
    2) The comment in the SimpleTreeModelImpl class definition indicates
    that it is normal practice to store the model in the user's session. Is
    there a standard JATO technique for doing this?
    3) What would be the best way to extend the sample so that I can create
    the model on-demand?
    Regards,
    Dennis Parrott.
    [Non-text portions of this message have been removed]

    Thanks Todd,
    That makes perfect sense.
    Regards,
    Dennis parrott.
    Todd Fast wrote:
    Hi Dennis--
    I have now added a SimpleTreeModel interface (which extends TreeModel) andhave added an
    mapping in ModelTypeMapImpl static initializer. i.e. To registerSimpleTreeModelImpl with the
    ModelManager.This is fine, but you can so without the additional interface if you want.
    You don't need to register the model in the ModelTypeMap, and you can
    instead just pass the implementation class to ModelManager.
    In the tree view constructor instead of creating the SimpleTreeModelImpleach time I use the
    ModelManager to retrieve the model, indicating that the model should bestored in the sesssion:
    public Treeview(View parent, String name) {
    super(parent, name);
    RequestContext requestContext = getRequestContext();
    ModelManager modelManager = requestContext.getModelManager();
    Class clazz = SimpleTreeModel.class;
    SimpleTreeModel simpleTreeModel =
    (SimpleTreeModel)modelManager.getModel( clazz,clazz.getName(), true, true );
    setPrimaryModel( simpleTreeModel );
    registerChildren();
    }This looks good, EXCEPT for the fact that you shouldn't be able to get the
    RequestContext at this point via the class's getRequestContext() method (it
    isn't set until after the constructor). However, you can use the static
    method RequestManager.getRequestContext() instead.
    The final bit I need to implement is the model creation on-demand.Currently the entire model
    is constructed on the first access and stored in the session. However,when model is large then
    this has a performance impact on constructing it for the first time.Instead I would like to
    construct peices of the model as the user accesses them. Any ideas?This is really a function of your model implementation. Nodes that are not
    needed in a particular rendering of a TreeModel are never accessed by the
    framework in that rendering, so you need to implement your model to lazily
    fetch sub-trees of the underlying data structure only as needed. Depending
    on the technology you are using, this may or may not be difficult.
    I suspect that right now you are fetching the entire tree data structure
    when the model is created, and this is the root of the problem. You need to
    fetch all nodes that are children of the root on the first request, then
    fetch child nodes of the next node the user expands on the next request, ad
    infinitum. Otherwise, you will have to settle for a one-time performance
    hit per session caused by retrieving the entire tree data structure at once.
    If you are using TreeModelBase as your superclass and just implementing the
    abstract methods therein, then the implementation of the firstChild() method
    is your opportunity to fetch the tree data lazily. This method will be
    called on a node to "step down" one level in the tree, and it will only be
    called for the nodes that are expanded. You should implement this method to
    figure out what node the model is on at the moment, then use that
    information to determine if you've already looked up that node's childre in
    the backend system, or if you need to go and fetch ONLY the current node's
    direct children. As the user descends through the tree, the tree will be
    fleshed out and cached lazily, one level at a time, via this mechanism.
    Does this make any sense?
    Todd
    To download the latest version of S1AF (JATO), please visit one of thefollowing locations:
    >
    Framework + IDE plugin for Sun ONE Studio 4 Update 1, Community Edition:
    http://wwws.sun.com/software/download/products/Appl_Frmwk_2.0_CE.html
    Framework + IDE pluign for Sun ONE Studio 4 Update 1, Enterprise Edition:
    http://wwws.sun.com/software/download/products/Appl_Frmwk_2.0_EE.html
    Previous versions of JATO:
    http://www.sun.com/software/download/developer/5102.html
    [Non-text portions of this message have been removed]

  • No option to create new workspace in JDeveloper; turning BPEL Designer "on"

    I'm trying to do some BPEL work on Linux, using JDeveloper Studio 10.1.3.4.
    A couple of issues:
    1) although the BPEL Designer shows up as a component in the "About", and BPEL Process Modeler shows up as a loaded extension in the same place, BPEL Process Project is a grayed-out option in New Projects. This may simply be due to the fact that BPEL Designer apparently needs to be turned "on", and I've yet to figure out how to do that on Linux (since the documentation is mostly for Windows).
    So if this problem is solved by turning the JDeveloper BPEL Designer "on", I sure wouldn't mind knowing how to do it on Linux. It's easy enough to start the BPEL Process Manager - I have that running right now - but I see no shell script anywhere in the SOA Suite installation that remotely looks like it might start BPEL Designer.
    2) Many of the tutorials say that one should create a workspace in JDeveloper. According to them this is available as an option under File > New. Well, in Linux JDeveloper Studio 10.1.3.4 it's not available at all. It doesn't even exist as a disabled option. I find this curious, and somewhat disturbing.
    Any ideas as to why something so central doesn't show up?
    Regards,
    Arved

    OK, good to know, John. Eventually a person figures it out one way or the other. I realize all of this stuff exists in documentation someplace, but there's only so many hours in the day. And if you're using JDeveloper 10.1.3, with JDeveloper 11 already available, you don't necessarily expect a lot of the articles you run across to be so old that they still refer to workspaces. I'm not saying that these are necessarily Oracle articles.
    As an aside I've found Oracle documentation to be pretty good. I use Oracle software on Windows, Mac OS X and Linux. For ESB and BPEL on Linux the main problem with the docs is that they are incomplete. It's disconcerting to see continual references to having to turn BPEL Designer on, in Windows, and have no instructions concerning that for Linux, as one example. As it happens, doing a "startall" for opmnctl does everything I need, so if there's a separate BPEL Designer started up by that (as opposed to the BPEL Process Manager) I guess that's where it gets fired up. That may also be covered in documentation someplace, for Linux, but I haven't found it.
    Arved

  • JSP ADF Tree Binding in JDeveloper 10g

    I am attempting to create a JSP hierarchical tree structure in JDeveloper 10g. I can successfully create the tree structure for two levels only. I need to be able to create a tree 5 or more levels deep. I have created an ADF Master Detail structure using the sample OE schema for three levels and to the best of my knowledge, I have set up the rules correctly using the Tree Binding Editor accessed by a creating a new binding under Create Binding > Input > Tree for the UIModel of the test web application I created. However, in the JSP page, I can only access the first two levels. The code I'm using is as follows:
    <c:forEach var="masterRow" items="${bindings.CustomerOrdersTree.rootNodeBinding.children}">
    <c:out value="${masterRow.CustomerId}"/> -
    <c:out value="${masterRow.CustFirstName}"/>
    <c:out value="${masterRow.CustLastName}"/><br>
    <c:forEach var="ordersChildRow" items="${masterRow.children}">
    <c:out value="${ordersChildRow.OrderId}"/><br>
    <c:forEach var="Row2" items="${ordersChildRow.children}">
    </c:forEach>
    </c:forEach>
    </c:forEach>
    The first two levels display fine, but the third level is not displaying. What syntax should I be using to traverse further levels of the tree binding? Is it even possible? Thanks.
    Note: I didn't connect any event handlers for collapsing or expanding data. I'm just trying to display everything right now.

    I have the nodeExpanded attribute on the second level, set up exactly as the first level. I have a toggleSelection method on the second level (View Object) as well. I've stepped through this method and the arguments are passed correctly and the transient attribute is updated correctly. I'm calling this method through a second DataAction like treeHandler, and this works as far as calling the correct method with the correct argument values.
    The breakdown occurs back on the JSP. Even though the transient attibute gets populated accurately according to the toggleSelection method, when accessing that attribute on the JSP, it returns a null value. I can access all the other attributes from the same View Object, except for the transient attribute. I'm not sure what else to try.
    I'm starting to doubt this is even the best solution for a tree structure. With the way Oracle's example is set up, you would have to nest so many if-then structures in order to keep track of all the nodeExpanded attributes and which data to display or not, and I anticipate view state issues and caching problems.

  • Column selection with column tree model

    Hello!
    I created a column tree model. I would like to be able to select a column when i click on its header. How can I do that? There is no problem to select one item. I try to select all the items of a column but if do that this is the lines which are selected. The item_selection parameter is set to 'X'.
    Thanks in advance,

    Hi,
    I am not sure if I understood your problem right. But just in case, if you are referring to this...
    You say you need a check box to select your nodes. So you would have to add your item names in a separate column and then add the check box in a separate column using ADD_COLUMN method. You would have to use treemcitac structure and make use of ADD_ITEMS to add them.
    Once you add the column for check box, code your logic and build your tree hierarchy with all the correct node keys. For example, the root node will have node_key = 1 and parent_key = 0. The node that comes under the root node in the first hierarchy level will have node_key = 2 and parent_key = 1. Code your logic so that you build your tree hierarchy.
    Build the tree structure using treemcnota as you have done. Add the nodes built using treemcnota using ADD_NODES.
    According to your requirement,
    COL1                                                                           COL2 (for checkbox)  } -> Build using treemcitac
    Preimport (Root)  -> Root Node
    Request Checks (Node_1)  -> parent_key = Preimport
    Check Req Status (Item_1) -> parent_key = Request Checks (Node_1)
    Check Req Scope (Item_2)
    Check Req Componenets (Item_3)
    Object List Checks (Node_2)
    Check obj type (Item_1)
    check deletions (Item_2)
    Object Checks (Node_3)
    "Build the tree nodes using treemcnota and add these nodes using ADD_NODES
    Again, I am not sure if your problem is this. Hope this might be helpful.

  • 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( )

  • Issue while creating Data Model in BI Publisher and logging into xmlpserver

    Hi All,
    We are facing an issue in OBIEE 11.1.1.5.
    If we are logging with Non Admin Id (other than weblogic) and select New Data Model, a blank screen is coming. Where as, if we use Admin Id, we are getting screen as usual for creating data model. There were some blogs mentioning to change Priviledges for  SOAP access, but that approach is also not working.
    Further, we are also not able to open xmlpserver with Non Admin Id.
    Any help or pointers would be great.
    Regards,

    how about pasting the content of your data template here, so that forum members can see what could be the problem.

  • 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

  • Program for creating a model is locked by User

    Hi Guys,
    We have created a process chain to create the Integration Model and to activate the Integration Model using this prg RIMODGEN. So, This prg we have created variants for different location wise. This process chain contains 13 processes For each location, which is running in parallel. Some time we are getting the error message " Program for creating a model is locked by User
    Regards

    Dear  Pullaiah,
    Locking happens if there is any overlap of models or duplicate  scheduling of jobs with same variant.                                                                               
    See include LCIFIF01                                                                               
    CALL FUNCTION 'ENQUEUE_ECIF_IMOD'                                    
      EXPORTING                                                          
        mode_cif_imod  = 'E'                                             
        modelname      = i_modid                                         
        logsys         = i_logsys                                        
        apoapp         = i_appl                                          
      EXCEPTIONS                                                         
        foreign_lock   = 1                                               
        system_failure = 2                                               
        OTHERS         = 3.                                                                               
    So this means for you, you get the lockentry if the modelname, logsys and apoapp is the same. So please check again your variants if there is one with the same integrationmodels.            
    This can be the only reason we you get here this entry in your joblog.
    Regards,
    Tibor

  • How to create tree in frames?

    I got this example from this is site http://www.irian.at/myfaces/tree.jsp.source
    <%@ page import="org.apache.myfaces.custom.tree.DefaultMutableTreeNode,
                     org.apache.myfaces.custom.tree.model.DefaultTreeModel"%>
    <%@ page session="true" contentType="text/html;charset=utf-8"%>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
    <%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t"%>
    <html>
    <!--
    * Licensed to the Apache Software Foundation (ASF) under one
    * or more contributor license agreements.  See the NOTICE file
    * distributed with this work for additional information
    * regarding copyright ownership.  The ASF licenses this file
    * to you under the Apache License, Version 2.0 (the
    * "License"); you may not use this file except in compliance
    * with the License.  You may obtain a copy of the License at
    *   http://www.apache.org/licenses/LICENSE-2.0
    * Unless required by applicable law or agreed to in writing,
    * software distributed under the License is distributed on an
    * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
    * KIND, either express or implied.  See the License for the
    * specific language governing permissions and limitations
    * under the License.
    //-->
    <%@include file="inc/head.inc" %>
    <body>
    <%
       if (pageContext.getAttribute("treeModel", PageContext.SESSION_SCOPE) == null) {
          DefaultMutableTreeNode root = new DefaultMutableTreeNode("XY");
          DefaultMutableTreeNode a = new DefaultMutableTreeNode("A");
          root.insert(a);
          DefaultMutableTreeNode b = new DefaultMutableTreeNode("B");
          root.insert(b);
          DefaultMutableTreeNode c = new DefaultMutableTreeNode("C");
          root.insert(c);
          DefaultMutableTreeNode node = new DefaultMutableTreeNode("a1");
          a.insert(node);
          node = new DefaultMutableTreeNode("a2 ");
          a.insert(node);
          node = new DefaultMutableTreeNode("b ");
          b.insert(node);
          a = node;
          node = new DefaultMutableTreeNode("x1");
          a.insert(node);
          node = new DefaultMutableTreeNode("x2");
          a.insert(node);
          pageContext.setAttribute("treeModel", new DefaultTreeModel(root), PageContext.SESSION_SCOPE);
    %>
    <f:view>
        <h:form>
            <t:tree id="tree" value="#{treeModel}"
                styleClass="tree"
                nodeClass="treenode"
                selectedNodeClass="treenodeSelected"
                expandRoot="true">
            </t:tree>
        </h:form>
        <jsp:include page="inc/mbean_source.jsp"/>       
    </f:view>
    <%@include file="inc/page_footer.jsp" %>
    </body>
    </html>what i want is backing bean, web.xml, face-config.xml and remaining files. All are telling about this site but full program is not there. if any one have worked out full example please post here.
    regards
    hc827

    I got this example from this is site http://www.irian.at/myfaces/tree.jsp.source
    <%@ page import="org.apache.myfaces.custom.tree.DefaultMutableTreeNode,
                     org.apache.myfaces.custom.tree.model.DefaultTreeModel"%>
    <%@ page session="true" contentType="text/html;charset=utf-8"%>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
    <%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t"%>
    <html>
    <!--
    * Licensed to the Apache Software Foundation (ASF) under one
    * or more contributor license agreements.  See the NOTICE file
    * distributed with this work for additional information
    * regarding copyright ownership.  The ASF licenses this file
    * to you under the Apache License, Version 2.0 (the
    * "License"); you may not use this file except in compliance
    * with the License.  You may obtain a copy of the License at
    *   http://www.apache.org/licenses/LICENSE-2.0
    * Unless required by applicable law or agreed to in writing,
    * software distributed under the License is distributed on an
    * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
    * KIND, either express or implied.  See the License for the
    * specific language governing permissions and limitations
    * under the License.
    //-->
    <%@include file="inc/head.inc" %>
    <body>
    <%
       if (pageContext.getAttribute("treeModel", PageContext.SESSION_SCOPE) == null) {
          DefaultMutableTreeNode root = new DefaultMutableTreeNode("XY");
          DefaultMutableTreeNode a = new DefaultMutableTreeNode("A");
          root.insert(a);
          DefaultMutableTreeNode b = new DefaultMutableTreeNode("B");
          root.insert(b);
          DefaultMutableTreeNode c = new DefaultMutableTreeNode("C");
          root.insert(c);
          DefaultMutableTreeNode node = new DefaultMutableTreeNode("a1");
          a.insert(node);
          node = new DefaultMutableTreeNode("a2 ");
          a.insert(node);
          node = new DefaultMutableTreeNode("b ");
          b.insert(node);
          a = node;
          node = new DefaultMutableTreeNode("x1");
          a.insert(node);
          node = new DefaultMutableTreeNode("x2");
          a.insert(node);
          pageContext.setAttribute("treeModel", new DefaultTreeModel(root), PageContext.SESSION_SCOPE);
    %>
    <f:view>
        <h:form>
            <t:tree id="tree" value="#{treeModel}"
                styleClass="tree"
                nodeClass="treenode"
                selectedNodeClass="treenodeSelected"
                expandRoot="true">
            </t:tree>
        </h:form>
        <jsp:include page="inc/mbean_source.jsp"/>       
    </f:view>
    <%@include file="inc/page_footer.jsp" %>
    </body>
    </html>what i want is backing bean, web.xml, face-config.xml and remaining files. All are telling about this site but full program is not there. if any one have worked out full example please post here.
    regards
    hc827

  • How to create tree by database table

    hello sir ,
    my table is as follows,
    NAME LINK ID PID ROLLID
    User mgt. f?p=131:1: 1 - 10 ////root node///
    district 10 1 1 child
    Roles 16 14 4 child
    Users 11 10 1 child
    ROLLID is given from another table whis is (ROLES). i making tree by the combinations of id , pid, & roll id. by the roll id i can manage the tree to do not display specific nodes to specific users.
    ROLE table as :
    ROLE_ID NAME DESCRIPTION
    1 Administrator This is administrator
    2 Assistant Director -
    3 Assistant Statistical Officer -
    4 Data Entry Operator -
    but i think it is very complicated process . give me solution about it
    also i have to give my images to each node. how can i do that?

    You already have a thread going about this: Re: how to create tree by database table .
    Scott

  • 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

  • Issue while creating a model

    Hi,
    I am creating an model expression to calculate value at leaf level for one of the member.
    my expresssion is like this
    type_calcparent = type_postcogs + type_postrev + type_-1
    Model is not accepting "type_-1" value and taking type_ and -1 as different values thus giving error saying "type_" value do not exists in the dimension.
    Also type_-1 exists in dimension.
    Any solution to this problem.
    Thanks in advance.
    Thanks
    Brijesh

    Brijesh,
    When using dimension values containing characters that have special meaning (calc operators, spaces, etc.) you will need to refer to these dimension values using quoted dimension values. Your calculation need to be written like this
    type_calcparent = type_postcogs + type_postrev + 'type_-1'
    Note: Most likely the dimension value will be in capitals, since quoted dimension values are used the value needs to be an exact match, so most likely it would need to be
    type_calcparent = type_postcogs + type_postrev + 'TYPE_-1'
    Best practice is to avoid these kind of dimension values.
    Regards,
    Frank

Maybe you are looking for