Button in Table column pass key and navigate to different (detail page)

So in the tutorials, you typically have a form w/ navigation buttons (first/previous/next/last), then you add a button w/ an action that references a Control Flow case.
Instead of a form, I'm trying to use a table with a pushbutton as a column per row to mimic that functionality. I assume I need to use a backing bean for the page, and pass in a binding, but I'm at a lost. Looking for some direction, or some sample, or any help.
Sorry for such a n00b question - searched via OTN but couldn't find what I was looking for.

Yes you can call an action that you have in the page's ADF binding from another piece of your backing bean.
This section of the Fusion Developer Guide should help - 27.4 Overriding Declarative Methods
http://download.oracle.com/docs/cd/E12839_01/web.1111/b31974/web_adv.htm#CACDJCFE

Similar Messages

  • Ok, im new to numbers but i cant work this one out. In column A is an average of hours worked. I have 4 columns. A and B have different values. Column C is an average of hours worked. When column C is less then 8 i need column D to equal column a

    Ok, im new to numbers but i cant work this one out. I have 4 columns. A and B have different values. Column C is an average of hours worked. When column C is less then 8 i need column D to equal column A. When column C is equal or greater then 8 i need column D to equal the sum of A and B.

    Hi Lucas,
    Try this:
    Formula in D2 (and Fill Down) =IF(C2<8, A2,A2+B2)
    The IF function follows the logic of if, then, else.
    IF(this is true, then do this, else do that)
    If it is raining, then stay at home, else hold a picnic .
    Regards,
    Ian.

  • Merge 2 tables based on key and dates - complex

    in powerquery - given 2 tables, both with a startdate and a key, how to merge them to get a table that includes a row for each valid key/startdate combination? (Table3 below is my desired result):
    Table1.Key
    Table1.Durablekey
    Table1.startdate
    Table1.color
    Table1.type
    Table.location
    1A
    1D
    1/1/2012
    Red
    T1
    Boston
    2A
    1D
    7/1/2012
    Red
    T1
    NY
    3A
    1D
    1/1/2013
    Blue
    T1
    LA
    4A
    2D
    1/1/2012
    Yellow
    T2
    Boston
    Table2.Key
    Table2.Durablekey
    Table2.startdate
    Table2.quality
    1B
    1D
    2/1/2012
    Great
    2B
    1D
    3/1/2012
    Good
    3B
    1D
    7/1/2012
    Poor
    4B
    1D
    2/1/2013
    Excellent
    5B
    2D
    1/1/2012
    Good
    Table 3
    Table1.Key
    Table2.Key
    START DATE
    TAble1.color
    Table1.type
    Table.location
    Table2.quality
    1A
    NA
    1/1/2012
    Red
    T1
    Boston
    NA
    1A
    1B
    2/1/2012
    Red
    T1
    Boston
    Great
    1A
    2B
    3/1/2012
    Red
    T1
    Boston
    Good
    2A
    3B
    7/1/2012
    Blue
    T1
    NY
    Poor
    3A
    3B
    1/1/2013
    Blue
    T1
    LA
    Poor
    3A
    4B
    1/1/2013
    Blue
    T1
    LA
    Excellent
    4A
    5B
    1/1/2012
    Yellow
    T2
    Boston
    Good

    Have you tried using "Merge Queries" and selecting the key and start date columns in each table?
    Ehren

  • Hide button in table column

        Hi ,
        I have added 2 buttons in one table column using layout. if the bindproperty for that column is "Approved" than that buttons set to false, if the bindproperty is "Pending" than buttons get visible. i am trying this code, but it is not going to that if condition and switch case
         oTable.addColumn(new sap.ui.table.Column({
          label: new sap.ui.commons.Label({text: "Status"}),
          template: new sap.ui.layout.HorizontalLayout({id:"HL",
            content : [
              new sap.ui.commons.Button({id:"btn1",
                text: "Assign status"
              new sap.ui.commons.Label({}),
              new sap.ui.commons.Button({id:"btn2",
                text : "Deny"
         ).bindProperty("visible","Status",function(oEvent){
          var bt = sap.ui.getCore().byId("HL");
       //   var bt1 = sap.ui.getCore().byId("btn2");
         // var bt2 = sap.ui.getCore().byId("btn3");
          if (oEvent === "Approved"){
           bt.setVisible(false);
    i am trying to use Switch case also
       /* switch(str)
                 case 'Approved' :
                  return bt.setVisible(false), bt1.setVisible(false),bt2.setVisible(false);
                 case 'SE' :
                  return bt.setVisible(true), bt1.setVisible(true),bt2.setVisible(true);
    Can anybody help me in this
    Thanks & Regards,
    Jayasree.

    Hi Robin,
      We tried that is useful, now we are doing same for Table col template.     In template I am having one button and one textview( i used horizantal layout for this).
         oTable.addColumn(new sap.ui.table.Column({
          label: new sap.ui.commons.Label({text: "Status"}),
          template: new sap.ui.layout.HorizontalLayout({id:"HL",
            content : [
              new sap.ui.commons.Button({id:"btn1",
                text: "true"
              new sap.ui.commons.Label(),
              new sap.ui.commons.TextView({id:"TV1",
                text : "True"
              new sap.ui.commons.Button({id:"btn2",
                text: "false"
              new sap.ui.commons.Label(),
              new sap.ui.commons.TextView({id:"TV2",
                text : "false"
         ).bindProperty("text","Status",function(oEvent){
          var bt1 = sap.ui.getCore().byId("btn1");
         var tv1= sap.ui.getCore().byId("TV1");
         var bt2 = sap.ui.getCore().byId("btn2");
         var tv2= sap.ui.getCore().byId("TV2");
          if (oEvent === "1"){ //true
           bt.setEnabled(true);
    tv1.setEnabled(true);
          else (oEvent === "0"){ //false
           bt.setEnabled(false);
    tv1.setEnabled(false);
    i am trying to use Switch case also
       /* switch(str)
                 case '1' :
                  return  bt.setEnabled(true),tv1.setEnabled(true);
                 case '0':
                  return  bt.setEnabled(false),tv1.setEnabled(false);
    but no use it is not able to bind text and button property at a time.

  • How to find out the table for Posting Key and A/R & A/P Document types

    hi folks,
    can you let me know which TABLE is used to Posting key and also which TABLE is used for Account Receivables and Account Payables.
    Thank you in advance.

    To find the table of posting key, select any posting key at OB41, then press F1, then click on hammer icon the table used will be displayed. For Posting Key TBSL is the table used.
    Posting Key TBSL
    Customer Master (General)  KNA1
    Customer Master (Company Code) KNB1
    Vendor Master (General) LFA1
    Vendor Master (Company Code) LFB1
    Satish
    (please close the thred if u satisfiy with the answer)

  • What is the difference between READ TABLE ITAB WITH KEY  and  TABLE KEY

    Hi Experts,
    what is the difference between
    READ TABLE <ITAB> WITH KEY <K1> = <C1>
                                                    <Kn> = <Cn> .
    and 
    READ TABLE <ITAB> WITH TABLE KEY <K1> = <C1>
                                                              <Kn> = <Cn> .
    Thanks
    Akash.

    Hi akashdeep,
    Nice question. I also tried to find out, but no much success. My opinion is that for practical purposes there is no difference.
    It may have difference in case of searching, especially sorted tables. (binary search or normal linear search).
    Case1: If our table is sorted table with defined key fields, and we give WITH TABLE KEY, then faster binary search is used.
    Case2 : If our table is sorted table with defined key fields, and we give WITH  KEY, (and no field contained in the keys), then normal linear search is used.
    regards,
    amit m.

  • Table record is not updated correctly after navigate back from detail page

    I have 2 jspx pages one (page A) has a table displaying the employee record, another one (page B) is used to update the selected employee record. On page A, when selecting a record and clicking the 'Details' button I can be navigaed to pag B on which I can modify the record information in a form component. I have one table column 'teamName' which is binding to a LOV at VO layer and on pageB I am using <af:inputComboboxListOfValues> to show a editable LOV list for this attribute, when I input a new value here and save it, I can go back to page A but the team name for this record shows empty, by querying the database I do find the record updated successfully with the changed value. And when I reloaded the page the record can show the new team name value. Why it is not updated in the employee table when immediately navigating back from page B? I have set the table iterator refresh attribut to "always" but still failed. Can anyone help on this issue? Thanks!!
    BTW, for other columns (not LOV) they are ok, the table can show the changed value correctly.
    Edited by: user774592 on Jul 14, 2011 7:56 PM
    Edited by: user774592 on Jul 14, 2011 9:59 PM

    Thanks for reply!
    I did exactly the same as what you said. I d&d the data control Commit operation on page B to generate a 'Save' commandToolbarButton with the action attribute set to 'save' which is the from outcome for navigating back to page A. Is there any business logic I need to write here? Currently I have no.
    Note: In this case I used an editable LOV, I have a requirment that besides selecting a existing value from the lov, user can also input a new value in the LOV. When going back to page A, I do find the LOV list is updated to contain the new vaule. Just the record in the table shows an empty value instead of the new value. Still do not know why.

  • When the user press the button Calculate Tax (see attached doc) and click on Tax details then this should be updated automatically. But it does not work it is empty and the user has to update manually.

    When the user press the button Calculate Tax  and click on Tax details then this should be updated automatically. But it does not work it is empty and the user has to update manually.
    All setup looks fine.
    Please let me know what can be done on this?
    Regards,
    Peu

    HarryAustralia wrote:
    I recently updated my ipad wifi only to the new ios 6.1.2 and initially I had the auto cover lock option which can be seen in the Generals tab, but then it stoped working!! Before the update, the auto cover lock worked fine. So after trying all the options, I then did a complete reset on the ipad and now its gone all together from the General tab!! I can no longer see the "auto cover lock" option.
    The iPad cover lock is for when you use a cover with magnets in it to lock and unlock the iPad when you close the cover or open it. Try running a refrigerator magnet along the sides of the iPad and see if that trips the iPad Cover Lock back into the settings.
    That is not the same thing as the iPad Auto Lock setting which allows you to set an allotted time before the iPad goes to sleep.
    You can try resetting all settings to see if the Auto Lock feature retinrs to the iPad.
    Settings>General>Reset>Reset All Settings. You will have to enter all of your device settings again.... All of the settings in the settings app will have to be re-entered. This can be a little time consuming re-entering all of the device settings again.

  • Binding for table produces list for other tables using foreign key and crea

    Using
    software Jdev 11G, WLS 11G, Oracle DB 11G, Windows Vista platform
    technology EJB 3.0, jspx, backing beans, session bean
    I cannot create a namedquery on my secondary table. The method for the column uses the entity object rather than the name and value of the column.
    For instance,
    (Coketruck) table has inventory records(Products) table
    Coketruck has one to many to the Products table
    Products has a many to one to the Coketruck
    I need to return the products from the product table based on the CokeTruck but I cannot create a namedQuery because the method in the Product table is an entity object type instead of a long that I can use to look up all the products based off the column truck_id.
    This is what I was expecting…
    Private Long truckId;
    public Long getTruckId() {
    return truckId;
    public void setTruckId (Long truckId) {
    this. truckId = truckId;
    Instead this is what I have…
    @ManyToOne
    @JoinColumn(name = "TRUCK_ID")
    private Coketruck coketruck;
    this. coketruck = coketruck
    public Coketruck getCoketruck() {
    return coketruck;
    public void set Coketruck (Coketruck coketruck) {
    this. coketruck = coketruck;
    How do I do a query on the Product table to return all the products that are in the coketruck?
    If I do the following it expects for me to pass the Entity Object which I cannot use as search criteria for my find method.
    @NamedQuery(name = "Products.findById", query = "select o from Products o where o.truckId = :truckId")
    On a different note but the same song…
    I noticed that when I look at my Session Bean Data Contols that the coketruck already has a list of the products. I have created a jsp page with a backing bean and have been able to use the namedquery on the coketruck entity to retrieve the productList. Unfortunately I need to sort the products by type and was also not able to find where to perform the work to be able to iterate through the productList to get my desired display. Therefore I started looking at doing another namedquery that would only retrieve the product_type ordering by the truckId.
    Seems I have come full circle… I don’t care what method I have to use to get the info back.
    Any help is greatly appreciated!

    user9005175 wrote:
    Hi!
    I work on an application wich uses a shopping cart stored in a database. The shopping cart uses two tables:
    CART: Holds information common for one shopping cart: the user it is connected to etc.
    - Primary key: CART_ID
    CART_ROW: One row in the cart, e.g. one new product to buy.
    - Primary key: ROW_ID
    - Foreign key: CART_ROW.CART_ID references CART.CART_ID
    From the code the rows in the cart are collected per cart, as is modelled by the foreign key. There exists one more relationship, which we use in the code, but which is not modelled by a foreign key in the database. One row can be dependent on another row, which makes the other row a parent.
    CART_ROW has a column PARENT_ID which references CART_ROW.ROW_ID.
    Should we add a foreign key for PARENT_ID? Or are there any questions to consider when it is a foreign key to the same table?
    I suggest to add foreign key it wont harm the performance (except while on insert when there would be validation for the foreign key). But it would prevent users to insert wrong/corrupt data either through code or directly by loggin in the database.
    A while ago we added indexes, both on ROW_ID and on PARENT_ID. Could the index on PARENT_ID have been harmful, since there is no foreign key?
    Index on parent_id would only be harmful if you do not make use of index after creating it (i.e. there is no query which make use of this index).
    And if you decide to have a foreign key on parent_id then I suggest to have index too on parent_id as it would be helpful atleast when you delete any record in this table.
    Best regards!

  • Select from 2 tables with common key and than left join(unique result)

    Hi,
    I have 2 tables that have a common id (Customer_id) and I have a third table which contain her key consist of 3 column ( Customer_id , rms_customer_id,billind_tree_id) and have the manager_name field
    I am using a left join because not all the customers have a manager.
    I need to take only the manager_name field from the left join but the problem is that I am not getting a unique name results because the customer_id is not the primary key(only part of )
    so I have use the following :
    left join
    ( select * from ACCOUNT_Manager am where
    rms_customer_id <= all (select rms_customer_id from ACCOUNT_Manager am2 where
    am2.customer_id = am.customer_id )) am
    on c.ID = am.CUSTOMER_ID (C is one of the first 2 tables with the ID as key)
    Is there anyway more efficient of doing it ?
    Thanks

    Please consider the following when you post a question. This would help us help you better
    1. New features keep coming in every oracle version so please provide Your Oracle DB Version to get the best possible answer.
    You can use the following query and do a copy past of the output.
    select * from v$version 2. This forum has a very good Search Feature. Please use that before posting your question. Because for most of the questions
    that are asked the answer is already there.
    3. We dont know your DB structure or How your Data is. So you need to let us know. The best way would be to give some sample data like this.
    I have the following table called sales
    with sales
    as
          select 1 sales_id, 1 prod_id, 1001 inv_num, 120 qty from dual
          union all
          select 2 sales_id, 1 prod_id, 1002 inv_num, 25 qty from dual
    select *
      from sales 4. Rather than telling what you want in words its more easier when you give your expected output.
    For example in the above sales table, I want to know the total quantity and number of invoice for each product.
    The output should look like this
    Prod_id   sum_qty   count_inv
    1         145       2 5. When ever you get an error message post the entire error message. With the Error Number, The message and the Line number.
    6. Next thing is a very important thing to remember. Please post only well formatted code. Unformatted code is very hard to read.
    Your code format gets lost when you post it in the Oracle Forum. So in order to preserve it you need to
    use the {noformat}{noformat} tags.
    The usage of the tag is like this.
    <place your code here>\
    7. If you are posting a *Performance Related Question*. Please read
       {thread:id=501834} and {thread:id=863295}.
       Following those guide will be very helpful.
    8. Please keep in mind that this is a public forum. Here No question is URGENT.
       So use of words like *URGENT* or *ASAP* (As Soon As Possible) are considered to be rude.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Radio button in table column

    Hi,
    I display a table of data. The user wants to select a row. For this, there is a column called "Select" with a radio button. The user is allowed to select only one column, but they want to do it by clicking on a radio button, not using lead selection. My problem is, that several of the radio buttons are "selected". How do I make only one radio button selectable? I want to be able to click on one radio button, and if I click on another one the first choice should be vacated.
    Or if I were to use lead selection, is there an easy way to tie the radio button with the lead selection. Like, if the user selects a row, can the radio button in this row get turned on automatically?
    I welcome any hints
    Thanks,
    Ira

    Hi Ira,
    I'm not sure I understand why you would want this as lead selection should be sufficient for most selection cases.  Still, one way you could use this is to embed an action hander to the OnLeadSelection event of the table.  Here are my thoughts:
    1. Have an attribute in the context node of type WDY_BOOLEAN or some other boolean to represent your radio button.
    2. Bind the cell editor of your colum to a radio button or check box and set the value to the context attribute.  You will also want to set the enabled setting to FALSE.
    3. Add an action to OnLeadSelect for your table
    4. Have the action handler do your button logic.
    Perhaps if you give an example of the scenario for this, I'd be able to help with the solution.
    Regards,
    Adam

  • Problem in filtering table and navigate to another jspx page

    Hi all
    i am useing Jdeveloper11.
    Consider this senario :
    run a.jspx ---- >it is a master detail.
    master in find mode - detail in grid.
    when i click create button in grid , a new page(B.jspx) will open in same window.and a new row will created in form , now user can insert value in it,but if user doesn't need this new row she/he can press rollback and return to a.jspx.
    it is ok with no peoblem .
    again run a.jspx ---> filter one column in detail grid ---- > press create button ---->b.jspx will open .
    user don't need this new row so press roll back ----> i have error now.
    depending on column filterd by user error message changed for example :
    java.lang.IndexOutOfBoundsException: Index: 1, Size: 1
    or
    Cannot create an object of type:oracle.jbo.domain.Number from type:oracle.jbo.domain.Date with value:1976-03-29
    or
    Cannot create an object of type:oracle.jbo.domain.Number from type:java.lang.String with value:????%
    or ......

    another question
    i set filterable = true for my columns , how can i get or set value of them ?

  • V _T702B link table between expnse key and expnse typ

    Hi ,
    I have a question regarding the assignment table for credit card clearing(v_t702b). We have 26 custom expnse typs that are paid by company but I see only few expense keys (around 7) supplied by credit card company like "MEALS....", "CAR.RENTAL.." etc. How do I map all the 26 expense types with only few expense keys(around 7) supplied by credit card company?
    Thanks, Patt

    Umer,
       For example, the credit card key for MEALS...., should be copied to MEALS1...., MEALS2....and MEALS3....etc and assign the custom expense type ZBRKFST to MEALS1.... and ZLUNCH to MEALS2.... and ZDINNER to MEALS3....correct? Then we should tell the credit card company about our assignment of these expense types to their keys MEALS1..., MEALS2.... and MEALS3....
    My question is how will the transaction done by traveller be known as Brkfast, Lunch or Dinner for the credit card company to assign to proper MEALS code and send it back to us? Ex: traveller swipes card at a restaurant for a meal and credit card company will assign it to which expense key MEALS1, 2 or 3? Thanks, Patt

  • I cannot get firefox to open my passwords. What do i need to do? I use the app pass key and cannot register. Does anybody know what i can do?

    I go on the loggon/registration page and i can only get to the loggon part and am not able to register. None of passwords load when i visit a frequently used website I know i am missing something but can"t figure it out.

    Do you see any passwords in the Password Manager?
    *Firefox > Preferences > Security: Passwords: "Saved Passwords" > "Show Passwords"
    In not then there may be a problem with the files that stores the passwords, see Troubleshooting in this Knowledge Base article:
    *http://kb.mozillazine.org/Password_Manager

  • Select option in select list and navigate to different page

    Hello,
    I have a tabular form.One of the item is a select list with 2 options. Selecting option one should take the user to page10(just an example) and display all the values of that particular row. Similarly selecting option 2 should take the user to page 20 and display all the values of that row.
    Can some one guide me how to do above mentioned job.
    Thanks in advance.
    Pravish

    @Avinash
      if f_cat-seltext_m = 'Select'.
        f_cat-col_pos = 1.
        f_cat-seltext_l = 'EDIT'.
        f_cat-Checkbox = 'X'.
        f_cat-EDIT = 'X'.
      endif.
    I am already passing f_cat-checkbox = 'X'.
    Thanks
    Kumar.

Maybe you are looking for