Pass user selected variable to Entity implementation class

Guys,
I need to pass the user selected variable to Entity class. and looking for the best way to do this ......
If user selected process1 or process2 then I need to call stored procedure right before the commit. So i need to pass the user selected process to entity class file.
I am thinking about having a transient attribute on entity and set the value on front end..... so that value will be pass to the entity class file and in beforeCommit method i can check the value of transient variable and then call stored procedure
is this a good approach or any other suggestions are greatly appreciated....
thank you
-Raj

Thank you Timo and Jobinesh....
Good suggestion Jobinesh... will start the implementation
Thank you
-Raj

Similar Messages

  • Accessing Managed Bean Variables in Entity Impl Class

    How can I access managed bean variables in the entity Impl class .
    While inserting a new record in DB , i want to set few entity properties values . The values of those properties are available in the managed bean .
    How can i access those values from Managed Bean and set them the entity Impl class to override the create method.
    Or is there any better recommended approaches ?
    Jdev - 11.1.1.5

    >
    While inserting a new record in DB , i want to set few entity properties values .
    >
    you can user CreateWithparams
    http://www.oracle.com/technetwork/developer-tools/adf/learnmore/13-create-with-params-169140.pdf
    http://andrejusb.blogspot.com/2011/02/createwithparams-operation-for-oracle.html

  • MapViewer: how to manage user selections in business components Java class

    Hi list,
    I'm a GIS developer with experience on Mapserver and Mapguide. Buit I'm totally new on Oracle Mapviewer and I'm doing a feasibility study on a project where I basically have a very simple GIS use case, but I don't know if it is possible to manage by use Oracle ADF Java API and Oracle Mapviewer.
    I would like to use JDeveloper / ADF Business Components / ADF Faces.
    This is the use case:
    - Mapviewer should display a polygon layer from Oracle Spatial
    - Mapviewer should display a polygon layer from WFS
    - User should be able to select a polygon on Oracle Spatial layer and another polygon in WFS layer
    - ADF Face map control should:
    a) hilglight these two polygon
    b) execute my buiseness component Java function passing the user selection (id?... coordinates?... or anything useful to get these two polygons in the business Java function) as parameter.
    Is it possible?...
    Any suggestions (or samples) for point b)?...
    Thanks in advance for any help

    Hi Arnd,
    Thanks for answer.
    Can you adreess me to some ADF project that include ADF Geographic Map control?
    I've carefully studied what explained in manuls contained in JDeveloper Help. I've made something, but I have some issue I can't solve.
    Here you are in details what I've made:
    1) I've installed Mapviewer Quick Starter Kit
    2) I've configured themes and base map by use on MapBuilder
    3) I've built an ADF application with separated business and model-view-controller projects
    4) I've created entities and views in ADF business project
    5) I've created a JSF page in model-view-controller project
    6) I've put inside page an ADF Geographic Map assigning my base map and his related toolbar.
    Up to now it worked fine. My problems started at this point, on the attempt to add themes to be exposed to user interaction.
    PROBLEM 1
    I've seen that there are basically two options to add theme for user interaction:
    a) add a predefined themes
    b) add a color/point/graph bindable themes
    Option b) seems not fit for my needs.
    Color theme is only for regions and forces me to set a range of colors (I want to set exatctly two different color for two different table attribute value).
    Lines seem not covered from any of them.
    So the solution should be option a), predefined themes. But predefined theme seems not selectable and I don't know how to attach a selection listener.
    Please note (about selection listener) that in JDeveloper Help, book "Web User Intercace Developer Guide", "Using ADF Geographic Component" there is a code sample, but the explaination on how to enter the backing bean method is truncated (it says "For example," and stop, nothing else).
    My questions are: predefined theme can be selectable? And how can I attach the selection listener?.
    PROBLEM 2
    Up to now I've made no test on WFS themes, but of course, also these themes should be exposed to user interaction in the same way of predefined layers.
    Is it possible?...
    PROBLEM 3
    Legends activated by ADF Map Toolbar seem not working for predefied themes, they display nothing.
    Is it possible to fix or workaround in some way?...
    PROBLEM 4
    Are there any way to print maps?...
    Best regards
    Francesco

  • Not able to pass values to variables in extended Tree class

    Hi,
    I have a as class that extends from Tree, additionally this
    custom class defines
    new class level variables as follows:
    public class MyTree extends Tree {
    public var arrayColl:ArrayCollection;
    and i call this tree from mxml as follows:
    <customTree:MyTree
    arrayColl={list}
    xmlns:customTree="../../.*"/>
    Though my 'list' collections is not null, when i place an
    alert in the constructor of extended tree class
    it shows as null.
    Please advice.
    Thanks,
    Lucky

    below is the canvas:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Canvas xmlns:mx="
    http://www.adobe.com/2006/mxml">
    <mx:Script>
    <![CDATA[
    import mx.collections.IViewCursor;
    import mx.collections.ArrayCollection;
    import com.citi.ascript.TreeData;
    import mx.controls.Alert;
    import com.citi.ascript.CitiTree;
    public var availableTreeDataColl:ArrayCollection;
    public var selectedTreeDataColl:ArrayCollection;
    public var treeData:TreeData;
    public var srcTree:CitiTree;
    public var availableTreeDataArray:Array = [{a:1},
    {b:2},
    {c:3}
    public function formTreeData():void {
    var tempColl:ArrayCollection = new
    ArrayCollection(availableTreeDataArray);
    availableTreeDataColl = new ArrayCollection();
    for (var i:int=0; i<tempColl.length; i++) {
    var tempTreeData:Object = tempColl
    treeData = new TreeData();
    treeData.a = tempTreeData.a;
    treeData.b = tempTreeData.b;
    treeData.c = tempTreeData.c;
    availableTreeDataColl.addItem(treeData);
    ]]>
    </mx:Script>
    <mx:VBox>
    <mx:Label text="Drag &amp; Drop the analysis sections
    that you would like to include in the report" width="450"
    height="20"/>
    <mx:HBox id="treeContainer"
    creationComplete="formTreeData();">
    <customTree:MyTree treeList={availableTreeDataColl} //
    here collection becomes null.
    </customTree:MyTree>
    </mx:HBox>
    </mx:VBox>
    </mx:Canvas>
    The collection of TreeData is iterated in the customTree to
    form xml which will act as dataprovider for tree.
    and this canvas is added as a child for a panel in my main
    application.
    Hope this gives an idea.
    Thanks,
    Lucky

  • Getting the Entity Implementation class on Table Selection Event...

    Hi to all !. I made an ADF application where I have two entities... "User" and "Products"... One user have many products... I would like to know what code to use in order that, when the user of my application selects a row, I can get the Java Class Implementation of my Entity Object "User" so that I can access his products !... Hope I can get help... Thankx 1

    Hello User,
    I think you're using business components, Am I right? This link could help you to understand the concepts:
    http://st-curriculum.oracle.com/obe/jdev/obe11jdev/ps1/adfbc_new_features/adfbc.html
    Regards,

  • BPS User Exit Variable based on Planning Package Selection

    Hi,
    I'm implementing a SAP BW-BPS planning layout to be integrated into the CRM we user interface.
    Most of the characteristic selections come from the CRM fields that need to be filled by the user when creates a trade promotion.
    The charcteristic selections work (as standard) just if in the planning level I flag "Selection in Package", then in package these selections are dinamically defined from what the user select in the CRM fields at runtime.
    My problem is that I have to build a BPS User Exit variable to filter, in the planning level, the proper Planning Area based on the CRM Sales Organization value.
    The characteristic CRM Sales Organization belongs to whose chararcteristic the value is determined dinamically in the planning package.
    Is it possible for a BPS user exit variable, set in the planning level, to catch the value of a characteristic selection made at planning package?
    Many thanks for your help.
    Alessandro

    Hi Indu,
    Many thanks for your answer.
    I have already took a look at the document posted by you but I didn't find the solution to my problem.
    This because i have to create a user exit variable that need to get the value of the characteristic selection in package.
    I mean in the planning level I will have the user exit variable that restrict the planning area and, his function module, need to read, at runtime, what is the value of the characteristic CRM Sales Organization restricted in package by CRM.
    So I don't have any idea to which BPS internal table I have referred to in my funcion module to catch the value of the CRM Sales Organization dinamically filtered by CRM.
    Many thanks,
    Alessandro

  • How to pass subclass to variable of super class ?

    class /EVUIT/EXCH_PRD_GUI definition
    public section.
      methods CONSTRUCTOR
        importing
          value(I_APPLICATION) type ref to /UIT/EXCH_PRD_APP optional
          value(I_REPID) like SY-REPID .
    class /UIT/EXCH_PRD_VERT_NN_MODEL definition
      public
      inheriting from /EVUIT/EXCH_PRD_APP
      create public .
    DATA: l_vert_nn_model type ref to /uit/exch_prd_vert_nn_model.
    DATA: l_gui type ref to /uit/exch_prd_gui_vbeleg.
       CREATE OBJECT l_vert_nn_model
            EXPORTING
              I_ALV_RECORDS = gt_alv_records[].
    CREATE OBJECT l_gui
       EXPORTING
         I_APPLICATION = l_vert_nn_model
         I_REPID = sy-repid .{color}
    Problem i am facing is for l_gui the parameter i_application is of type super class of l_vert_nn_model.
    Any suggestions, how can i pass this subclass object to the parameter which is of type super class?

    Hello Trivenn
    On SAP basis release 7.00 the following coding works:
    *& Report  ZUS_OO_DUMMY
    REPORT  zus_oo_dummy.
    *       CLASS lcl_local DEFINITION
    CLASS lcl_local DEFINITION.
      PUBLIC SECTION.
        METHODS:
          constructor
            IMPORTING
              value(io_instance)  TYPE REF TO zcl_edi_uk_svcs_out. " super class
      PRIVATE SECTION.
        data: mo_instance         type ref to object.
    ENDCLASS.                    "lcl_local DEFINITION
    *       CLASS lcl_local IMPLEMENTATION
    CLASS lcl_local IMPLEMENTATION.
      METHOD constructor.
        mo_instance ?= io_instance.
      ENDMETHOD.                    "constructor
    ENDCLASS.                    "lcl_local IMPLEMENTATION
    DATA: go_super    TYPE REF TO zcl_edi_uk_svcs_out,
          go_sub      TYPE REF TO zcl_edi_uk_svcs_out_customer,
          go_local    type ref to lcl_local.
    START-OF-SELECTION.
      CREATE OBJECT go_super.
      CREATE OBJECT go_sub.
      create object go_local
        exporting
          io_instance = go_sub.
      BREAK-POINT.
    END-OF-SELECTION.
    Regards
      Uwe

  • How to bind a user selected value to a view object bind variable?

    Hi
    I have two pages in ADF BC application. In the first page ,i will give a drop down menu to user which displays all the table names in my databse.
    when the user selects a table and goes to the second page..he should be given a menu or a check list of all the columns in the user selected table....
    to display the columns i have used the query
    Select COLUMN_NAME from user_tab_columns where table_name = : table_name in the view object.
    now how to bind the user selected table value in the first page to the table_name bind variable in view object ?
    thanks
    swathi.

    Hi,
    depends on how the select box is implemented. With ADF and ADF Faces, the default value selection is the list index. In a value change listener you could look up the selected value from the underlying iterator. Store this value e.g. in a session attribute and point the NDValue of the ExecuteWithParams operation to #{sessionScope.your_attribute}
    Frank

  • User variables on Entity problem

    Hi,
    I need to set up 2 user variables for entity dimension. When i used to have one a user could simply choose his value for the variable.
    When i added another variable for entity and user want to open a form which uses this variable he must first choose the value from preferences.
    This is where the problem comes in. He selects the values for both of them and when click on save then an error: 'Error on the page' (in the explorer) appears and it does not save the values.
    I thought it is because of IE. I tried it in IE7, IE8 and IE6 as well as with Mozilla. The same over and over again. But when trying this as admin I get not problem and setting the values is without any problem.
    Please help
    thank you very much

    Hi John,
    Thank you very much for your advice. The log does not say anything special. Just that user logs in but no other action (my changing values for user variables) because i suppose the save button is not working.
    But yes, if i go through workspace everything is working fine. But when going directly to planning (issue above always appears). Can you tell me why?
    thanks again

  • How to select several values from a user exit variable in a planning folder

    Hello,
    I have created a user exit variable for limiting the values only to which the user need to access.
    For a simulation part, it is then necessary for him to select several values from these values (not only one, and not all)
    But It seems in this case the user has only two possibilities :
    - keep all the values without any restriction
    - restrain the selection to only one value.
    It seems possible for the user to access to a multiple choice window, but this possibility doesn't seems to work : in all tests we did, only the first value was taken into account by BPS.
    If this method is not good do you know an other manner to permit the user to choice several values amongst a set of pre-selected  (because the original set is too important) values ?
    Thanks for your help.

    Hi Mayank,
    Thanks for your response, but I don't think it corresponds to my problem.
    I my case, I use a user exit variable to filter some data. It seems BPS offers the possibility to the user to select several values amongts the pre-selected values presented by the user exit variable, but it doesn't work. We can use a popup in which we enters the required values, but in final, only the first value is taken into account.
    I don't know if it is due to a BPS bug or if it is not a good solution in regard to BPS philosophy. In this case, the concerned caracteristic isn't in the header but in lead columns.
    I must present a solution to my client next monday, so I have not enough time to open an OSS message.
    An alternate solution should be interesting too.
    My need is to present to a user a selection of values amongst all values from an infoobject (the user exit variable seemed to be a good solution) and the user must have the possibility to select some values amongst these as filter.
    Regards

  • User exit variable I_STEP=1 does not show default value WebI selection scr

    Hello,
    We have a BW query with a user exit variable. We have written user exit code under I_STEP = 1 so that the default value for the field is displayed on the selection screen to the user. Works very well on the BW side.
    We based a universe on top of the query and then created a WebI report.
    When the WebI report is executed the default value is NOT seen on the selection screen,
    Note:
    1. If the user exit variable is optional and we execute the report, the default value is NOT seen on the selection screen. However if the report is executed without entering any value for the field the logic under I_STEP = 1 is picked up and the report gets the correct output
    1. If the user exit variable is mandatoryand we execute the report, the default value is NOT seen on the selection screen. The user now has to enter the value for the field.
    The scheduled reports will work in case of optional user exit variable.
    However this amounts to loss of functionality.
    Is this a known bug?
    Is there a way to display default values based on user exit variables on the WebI selection screen?
    Kindly advice. Btw we are on XI 3.1 SP3
    Rgds
    Edited by: Anup Deshmukh on Jun 29, 2010 11:13 PM

    OSS Note 1285993 - "Support of Customer Exit Variables from BEx query into WebIntelligence via OLAP universe"  deals with this issue and has deemed it out of scope for XI 3.1 SP3.
    Rgds

  • Passing Selection Variables via Replacement Path

    I need a query(main) with list of Debits and Credits. I am pulling list of credits(side) from a seperate query for a specific selection and a condition in main query via replacement path, both on same ODS infoprovider. But in the side query, I cant put any selections or restrictions as they are dependent on main query result.
    The side query itself when running is taking more than 5 mins due to large number of records on ODS.
    My question is Can I pass selection variables from main query to side query?

    It's always nice to see someone resolve their own problem. 
    It's even nicer if they explain what they did/changed/learned to solve it so that the rest of the community can benefit.

  • User-defined variable in selection variant - doesn't work?

    Hello,
    Anyone had any experience of using user-defined variables (type B) in a selection variant? I can't get this to work in 4.7 or ECC 6.0. Seems like a bug - there's no way to specify the name of the variable. The theory behind their use is fine, but I wonder if anyone has successfully used them?
    Thanks,
    Chris.

    In an ECC 5 system, I can get to these showing if I'm in a report selection screen and I use the "Goto > User variables" (or Ctrl-F6) option... but note that it will only show the menu option if there are report parameters that have a PID on them and where the PID is defined in table TUVID (see note 144459).  That said, personally I've only used the "T" option and maintained system wide values in table TVARVC.
    Jonathan

  • User-specific Selection Variables in Variants

    Hi,
    I am triing to follow the tutorial in the help.sap.com concerning the variants.
    http://help.sap.com/saphelp_47x200/helpdata/en/c0/980386e58611d194cc00a0c94260a5/frameset.htm
    I would like to create a User-specific Variables for a variant.
    I created set/get param for my report, I also created entries in the user master record. But: In the variants maintenance tool (SE38). First I edit the attributes of my variables and choose the selection variable option for some fields. Second I highlight in green the user specific column stoplight. But clicking F4 doesnt propose any value. Then saving doesnt work neither.
    Thank you,
    Younes

    Umar,
    When I click on the button save a modal popup it says "Variables not supplied with values. Save anyway?". I dont know how to supply the variables with values.
    With the Function module VARI_USER_VARS_GET I am not able to Read existing variable values. Also in the selection screen of my report the menu  Goto -> User variables is not enabled. Maybe I am missing something? Could you help me.
    Thanks,
    Younes

  • Echo a variable in a form based on user selection

    Ok I am very very new to java to the point were I only know how to use pre-made javascripts in my php code so be gentle. :)
    First, here is part of a form I have:
    <select name = "pulmonologist" >
    <option selected="" value="">---Select---
    <option value="none">None</option>
    <?php          
    while ($row2 = mysql_fetch_assoc ($results2)) {  
            ?><option value = "<?php echo $row2['staff_name'];?>"><?php echo $row2['staff_name'];?></option>
    <?php }
    ?>
    </select>Ok now I want to echo the value that the user selects on the SAME page (i.e. before the submit button is pressed) (so I can't do it with php, I need javascript) like this:
    <input type="submit" value = "Contact <?php echo $pulmonologist;?>" />Can you tell me how to do this? Thanks!

    This is a Java forum, not a Javascript forum. Java is not Javascript.

Maybe you are looking for