[ADF-UIX] passing selected items to a custom method, how?

Hi,
ADF-UIX can be tricky, and im stuck atm building some functionality, I hope
someone here can point me in a good direction
I have a multipleSelection table filled with data from a ViewObject. I also
have 2 MessageChoice components also filled with data from 2 ViewObjects.
I made a custom method in my AppMod accepting 3 params and dragged that method
on to a DataAction. And I have a submit button calling the DataAction.
Now comes the tricky part, how can I pass the selected rows (radiobuttons) and
the selected items from my MessageChoices to my custom method.
I know I have to change something in paramNames[0].value but what exactly, specialy
the multiselect from my table.
Thanks in advance for any tips :)

"what's the application module"
JDev 10.1.3 leverages an Application Development Framework (ADF) that you can learn about here: http://download-east.oracle.com/docs/pdf/B25947_01.pdf
Specifically, you'll want to look at chapters 2, 4, & 8 in the developer's guide to understand the framework and to understand how to use application modules to call service methods from a JSF page. You can also search this forum as there are other threads discussing this topic, but I'd recommend reviewing the developer guide first.
This article I also found helpful:
http://www.oracle.com/technology/products/jdev/tips/muench/mostcommon/index.html
From my (short) experience, I've learned that you can call methods either using a bean or service methods on the Application Module. Since I am using ADF Business Components (BC), I try to implement any methods that interact with the BC's (view objects, etc.) as service methods on the Application Module (AM). If my method needs to purely implement logic related to the UI or Navigation, then I implement a method on a bean. The other case where I implement a method on a bean is if I need to do some pre-processing (i.e., gather info. about the state of the UI) prior to calling a service method on the AM (an example of this can be found in the dev guide related to the tableSelectMany component) - so there are some cases where the bean method will call a method on the AM - but again, if the method will update the model I try to use a method on the AM to accomplish this. Understanding the ADF framework is the first step (see the dev guide), and then I'd recommend looking at the SRDemo and previous posts on this forum.
Finally, one thing that is really cool - if you define a service method on your AM, it shows up in the data control pallette - you can drag and drop the method on the .jspx page and all of the bindings/wiring is done automatically for you (including handling passing of parameters.)
hope this helps.

Similar Messages

  • How to pass apex item value into custom xml for chart or guage?

    Re-opening the old thread : Re: How to pass apex item value into custom xml for chart or guage?
    Which was not answered.
    Roel - Thanks. Its working - but in a semi quotes in the custom XML
    <pointers>
    <pointer value= '&P5_RUNNING_TOTAL.'
    <label enabled="true">
    <position placement_mode="ByPoint" x="50" y="15" />
    <format>{%Value}{numDecimals:1}</format>
    <background enabled="false" />
    </label>
    </pointer>
    </pointers>This question was helpful for us to resolving one recent thread : AnyChart - set Dial axis intervals dynamically?
    (Re: AnyChart - set Dial axis intervals dynamically?
    Edited by: P.Ranish on Dec 13, 2012 6:23 AM

    P.Ranish wrote:
    Is there any update for this question ???
    Edited by: P.Ranish on Dec 13, 2012 3:36 AMNo, And there won't be in the future.
    Please stop posting followup's to old threads, if you have a real problem please search the forum first and post a new question with all information
    Roel wrote:
    Try using &P5_RUNNING_TOTAL. or #P5_RUNNING_TOTAL#Just to make it clear - this will only work if page is reloaded after setting the item values dynamically via AJAX

  • ADF UIX Passing values from one Data Control to another

    How to transfer value of any column in the selected row of the table (one data control) to the messageTextInput, based on another Data Control?
    It may be on a single UIX-page or on different pages.
    Thank you.

    HI Prithviraj,
    The problem screen shot is as follows:
    The First Applicant is coming from one sub report and the second applicant is coming from another sub report. It is working fine from Crystal reports. But in the Crystal report viewer i am unable to get the out come as 1,2,3.
    If you need any additional information please let me know.
    Thanks
    Penchal

  • ADF UIX single selection in a form

    I've in my application I've a form whit radio buttons:
    <tableSelection>
    <singleSelection model="${bindings['view']}" text="Select and " >
    <primaryClientAction>
    <firePartialAction targets="_uixState" source="View" event="select" />
    </primaryClientAction>
    </singleSelection>
    <\tableSelection>
    How to access to the current selected row fields?? For example, I do '${bindings.field1}' '${bindings.field2}' If I change the selection but I dont do submit the current selection dont change.
    Somebody can help me??

    I've in my application I've a form whit radio buttons:
    <tableSelection>
    <singleSelection model="${bindings['view']}" text="Select and " >
    <primaryClientAction>
    <firePartialAction targets="_uixState" source="View" event="select" />
    </primaryClientAction>
    </singleSelection>
    <\tableSelection>
    How to access to the current selected row fields?? For example, I do '${bindings.field1}' '${bindings.field2}' If I change the selection but I dont do submit the current selection dont change.
    Somebody can help me??

  • Trinidad Myfaces - selectManyShuttle - initially selected items?

    Hi,
    In selectManyShuttle, how can I display initially selected items. In backing bean, how should I handle it?
    Thanks in advance,
    Srihari

    Just preset the property behind its 'value' attribute in the constructor or initialization block of the backing bean.

  • Passing select-options to method of class

    Hai friends,
             Could u please tell me how to pass select-options as parameters to method of a class.

    Hi
    You have to declare the select
    options like
    <b>DATA: l_kunnr TYPE STANDARD TABLE OF wselkunnr,</b>
    see this example
    *& Report  ZCL_TEST_ANJI
    REPORT  zcl_test_anji.
    TABLES kna1.
    DATA: l_kunnr TYPE STANDARD TABLE OF wselkunnr,
          l_kna1  TYPE STANDARD TABLE OF kna1,
          l_sales TYPE STANDARD TABLE OF vbak,
          l_cust  TYPE kna1,
          l_vbak  TYPE vbak.
    DATA: obj_cust TYPE REF TO zcl_test_anji.
    SELECT-OPTIONS: s_kunnr FOR kna1-kunnr.
    Start of Selection
    START-OF-SELECTION.
      CREATE OBJECT obj_cust.
      SET HANDLER obj_cust->event_handler_1 FOR obj_cust.
      SET HANDLER obj_cust->event_handler_2 FOR obj_cust.
      l_kunnr[] = s_kunnr[].
      CALL METHOD obj_cust->zcust
        EXPORTING
          s_cust  = l_kunnr
        RECEIVING
          it_kna1 = l_kna1.
      IF NOT l_kna1[] IS INITIAL.
        LOOP AT l_kna1 INTO l_cust.
          WRITE: / l_cust-kunnr, 12 l_cust-name1,
                48 l_cust-ort01, 85 l_cust-land1,
                95 l_cust-pstlz.
          HIDE l_cust-kunnr.
        ENDLOOP.
      ENDIF.
    At line Selection
    AT LINE-SELECTION.
      CASE sy-lsind.
        WHEN 1.
          CALL METHOD obj_cust->zso
            EXPORTING
              im_kunnr = l_cust-kunnr
            RECEIVING
              it_so    = l_sales.
          IF NOT l_sales[] IS INITIAL.
            LOOP AT l_sales INTO l_vbak.
              WRITE: / l_vbak-kunnr, 12 l_vbak-vbeln,
                    24 l_vbak-vkorg, 30 l_vbak-audat,
                    43 l_vbak-netwr.
            ENDLOOP.
          ENDIF.
    ENDCASE.
    <b>Reward points if useful</b>
    Regards
    Anji

  • How to read selected item value from DropDownList?

    Hi,
    The DropDownList component has a selectedItem property that is supposed to return a ListBase.
    But what I want is just the "String" that is supposed to be the selected Item in the DropDownList.
    How can I read this value?
    thanks
    -Malena

    Thank, yes, I realized that right after I posted my question -:)
    I casted the selectedItem property to String and voila.
    Best
    -Malena

  • Custom messages in adf/uix ?

    hi, how can i display a message like , " record(s) saved successfully " in adf/uix. ??
    zaibi.

    Hi,
    Edit your answres report and the Answres---result tab--> edit anlysis properties---> select No result setting combo box and select it custom message option and give your own message...
    Ex: Please look and the link
    http://imageshare.web.id/images/j2ifl5qxgqynqs0zthe.jpg
    Thanks
    Deva

  • ADF Tree with Boolean Check Box: How to find selected items

    Hi Experts,
    ADF: 11.1.1.5.0
    WLS: 10.3.6
    I am using an ADF Tree which contains elements at two levels (say Departments and Employees). My requirement is to give provision for user to select Departments and Employees using the check boxes. User should be able to select what ever Departments he/she likes and what ever employees he/she likes. There should not be a provision to select Employee with out selecting the corresponding Department (root node in the tree).
    I am facing the below issues while trying to implement this use case:
    1. Always, only the first master record will be expanded by default (I am using "Display Row" property value as "default" and "ExpandAllEnabled" as "true"). My need is to expand all the master records by default. So that user need not explicitly expand each master record node and then select the associated child records.
    2. Currently, I am using value change listener associated to af:selectBooleanCheckBox to identify the Departments and Employee records that have been selected. Since not all departments (masters) are expanded by default, if user selects the check box of department (master) and then expands the department node, automatically all the employees of that department are selected. But, this event is not triggering the value change listener for the employee records. Because of this, after a department node is selected and then expanded, all the child elements' check boxes are selected but the events are not generated. Hence, I am not able to capture the selection of employee records.
    To summarize,
    1. Please let me know how to expand all master nodes in af:Tree by default.
    2. Please let me know the best approach to identify the selected items (both master and detail items) in the af:Tree component using af:selectBooleanCheckBox.
    Thanks in advance,
    Rathnam

    Hi,
                Can you please elaborate the solution? I have a similar problem in
    https://forums.oracle.com/thread/2579664

  • ADF/UIX logon custom screen?

    Hi,
    probably this is a pretty trivial question, but how do I make my custom logon screen for a ADF/UIX JDev 10g app?
    TIA,
    Tamas

    Tamás,
    Check this:
    http://otn.oracle.com/sample_code/products/jdev/bc4jtoystore/index.html
    Gábor

  • ADF - HELP -  Hash Map Select Items more Action Button

    Hi, I have that development a feature like with this.
    The screen it will have the searches filters and a grid with your results, each item will have a column with 2 radio buttons.
    On this screen the results are a list of suppliers with (ID SUPP, NAME, SUPP, STATUS SUPP) then will have to have more one column with 1 radio button for Free Register and other radio button for Block Register.
    And a Button that will be the action of to set the list of values on its respective field on database, certainly this action of button will be done after the user obtain results of the grid. That action on screen when user performing a search will be returned the datas (I already have it developed).
    The big question is ---> After the user do a search and to return more that one item, he will go select the list of suppliers some will have Free Register other Block Register after this action, the user will click on the button that will make to set a flag on field of database with a value defined.
    Anyboy have some idea how may to develop this??
    Studio Edition Version 11.1.1.2.0

    Free Register - > Have that to set a value like 0 on a field (FL_UPDATE) of my database
    Block Register -> Have that to set a value like 1 on a field (FL_UPDATE) of my database
    This items (Free Register and Block Register through radio button, with the property valueChangeListener I believe for to get the values them)
    And inside this method of valueChangeListener I have that define what are the values selects like Free register (0) and Block Register (1).
    After this, have that to define the action of button who be will to send this values for my database in its respectives fields, in others words I have who to make a UPDATE in this fields in accordance with what has been select in the radio buttons
    I would like to know how will to process in the ADF, thought of HashMap, any idea or example the how do I will make this process???

  • Could not find selected item matching value "New" warning message in ADF

    Hi,
    I have a selectOneChoice1 for a field which has the following fixed values in it. And while creating it, I selected the 'SelctionRequired' option so that this field will always have a value.
    New
    Pending
    Completed.
    While navigating to this page, I am trying to set the value to 'New' (Retrieved from the DB) in the backing bean. But when the page is rendered, the above field is empty with the above options in the list and jdev has the follwing error message in its log.
    WARNING: Could not find selected item matching value "New" in CoreSelectOneChoice[UIXEditableFacesBeanImpl, id=selectOneChoice1]
    Can any one help me with this issue?
    Thanks,
    Priya

    The value of a list binding is the zero-based integer position in the list that is selected, not the actual underlying value.
    The simplest way to set the value of an attribute is to use an attribute binding (which can be bound to the same attribute as the list binding). When you set the value of an attribute binding, it sets the value as you supply it. Otherwise, you'd need to set the list binding's value to the numerical "slot" number of the one you want to change the value to.

  • How can i change the color of selected item in combo box, the selected item color is same as accent color, i want to change this to custom color

    <Page
    x:Class="App1.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:App1"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
    <Grid Background="White">
    <ComboBox HorizontalAlignment="Left"
    BorderBrush="Black"
    Foreground="Black"
    Margin="80,272,0,0" VerticalAlignment="Top" Width="205" Style="{StaticResource BorderColor}">
    <ComboBoxItem Content="One" IsSelected="True"/>
    <ComboBoxItem Content="Two"/>
    <ComboBoxItem Content="Three"/>
    <ComboBoxItem Content="Four"/>
    <ComboBoxItem Content="Five"/>
    </ComboBox>
    </Grid>
    </Page>

    Hi,
    you can open the project in blend and then select the combobox for get the default style for combobox and for selected item . Please reference the
    set combobox style.
    Or see
    quickstart: Styling controls topic to deep understand it.
    Hope helpful for you.
    --Simon
    True mastery of any skill takes a lifetime.

  • JDev 10.1.2 / ADF UIX: Approach to render data in levels/groups

    Hi guys, I'm looking for ideas on how to use ADF (UIX and BO) to render (and let the user work with) a structure of 3 tables which have a parent->child->child-of-the-child relationship.
    The need is to show a table with the parent in one row and below of it all its children and below of each children its own children. Also, the lowest level rows have numeric data which have to be summarized by the parent and so on upwards; and the lowest level rows should be selectable for edition in another page, and after edition return to the table.
    Is the recommended approach to use the hGrid to do this?
    Or should I use plain JSP and customized tags to achieve this (for easiness)?
    Are there any other options?

    Solved it!! :-)
    In the UIX page I check for the proxy in the event result, if it is there I take it, otherwise I take it from bindingcontext. Is this the right way to do it? Here is the UIX code:
                            <hGrid id="pptoHGrid" alternateText="No items were found"
                                   treeData="${bindings.bindingContext['tree']}">
                              <boundAttribute name="proxy">
                                <if>
                                  <comparison type="equals">
                                    <null/>
                                    <dataObject default="${uix.eventResult.hGridProxy}"/>
                                  </comparison>
                                  <dataObject default="${bindings.bindingContext['hGridProxy']}"/>
                                  <dataObject default="${uix.eventResult.hGridProxy}"/>
                                </if>
                              </boundAttribute>Greets,
    Fernando

  • ADF-UIX- How to populate multiple input fields from an lov?

    Like in Forms Developer where using an LOV we can populate multiple tex input items on selection of a value from the LOV, is it possible for us to do the same in ADF UIX.
    Iam usiing JDeveloper 10.1.2

    Have a look at this previous post:
    Re: Can return messageLovinput more than one value?

Maybe you are looking for

  • Disk Utility Restore Process Input/Output Error

    <Image Edited by Host> My niece's MBP specs above. If I posted a picture of this poor machine, there'd be a lynch mob of passionate Apple fans arrive at my door wanting a public hanging...It's been dropped no less than a dozen times. (The ethernet po

  • IPod Touch 3rd Gen Problem.

    A little problem with my iPod Touch 3rd Gen, when i connect it up to my iTunes to try and update to the new iOS 5 it says there are no new updates? My iPod is currently running on 4.2.1,I know it is out in the U.K as my friends have been able to down

  • Issue in Extending VO

    Hi Iam trying to extend a VO when Iam editing the SQL Statement by just adding a column to it at the Attribute mapping level it is showing as transient and later it is not allowing to update the column in base table At some situation some Query Colum

  • Broken Reset Button on SG 300 Switch - Need to reset

    I can't seem to reset my switch and realized the reset button is missing/broken off.  Is there an alternate method to reset the switch to factory settings?  If not, how do I figure out the IP of the web interface, it is not the default.              

  • Results Analysis Keyu2019

    What is the significance of u2018Results Analysis Keyu2019 parameter in process order?