Add dynamic buttons to each line of the report and bind the data line to this line-specific buttons

I have a page with a form in the upper part and a report at the bottom that is bound to a table. I need to add a pair of buttons for each row in the table and add dynamic actions for these buttons. I need to submit the data corresponding to the line to a REST service and update the table/line. I know that it is possible to add ajax call and refresh the table after receipt of the response. But I don't know how can I dynamically include a pair of buttons on each line and access the data corresponding to the record when a particular button is clicked. I was not able to find such a feature using the help page. Can you please let me know if this is possible. Thanks in advance.

Here is the representation of how I need to the page to look like.

Col 1

Col 2

Col 3

data 1

data 21

data 31

Button 1

Button 2

data 2

data 22

data 32

Button 1

Button 2

data 3

data 23

data 33

Button 1

Button 2

data 4

data 24

data 34

Button 1

Button 2

I should be able to access the data 1, data21, data button 31 11 and button21 etc.

Select data1,

data2,

data3,

......,

Button1 null,

Button2 null,

ROWID r_id

Of...

If you change the column for button1 and navigate to the area of column formatting you can create your button here, in several different ways.  You will need to play with the way you prefer.  See below:

or or you could use and apply css of your theme.

You create also two buttons in a single column.  From here you can reference columns in your selection by using the format #COLUNMNAME # (as I did with R_ID).

Then, you will need something similar for all columns that you want to be able to recover when you click the buttons.  See below:

-It would be Data1 column

#DATA1 #.

You would do this for each column that you want to access click the button as shown above.  You can skip this step and use jquery to iterate through the DOM using the. closest() and. find() and give each column a separate class.  Is your preference.

You then create a dynamic action, when it is clicked on .button1.  Now that you have this object, you can get the id of the trigger object that would be your r_id and from here you can access all your individual data points (all this in a JavaScript in the dynamic action) and assign to items hidden on your page.  The next step in this dynamic action, you could run pl/sql and transmit the page elements.

Hope that all of the senses.

David

Post edited by: DLittle

As a bit of clarification: the r_id column does not have to be rowid, but it must be unique for each return line.  You can use your primary key or rownum.  Just what works for your scenario.

Tags: Database

Similar Questions

  • LabVIEW allows to read an Excel file to a control and add a checkbox for each line

    As say the topic, I need to use labview to read an excel file and show it in a control, such as mclb; I should add a checkbox for each line then allow me to choose the line I want. What should I do? Thank you very much.

    guiming wrote:

    I can read an Excel file to a spreadsheet, but I have no idea how to do to add a checkbox for each line.

    Sometimes, all you need to do is Google. https://decibel.NI.com/content/docs/doc-25000

    http://www.labviewing.com/check-box-in-multicolumn-ListBox/

  • How to add a pop-up window to set the date and time in a field

    How to add a pop-up window to set the date and time in a field? I know how to add the date. I create the field time with JavaScript event initialize like this:

    this.rawValue = num2date(date(), DateFmt(4));
    

    What I should change the script and the motive to do it properly.

    I changed the Format of data (object > link tab) date time but nothing happen. I want to set up a pop-up window as for the setting of date but with addition of time setting.

    Is this possible? Or that the date fixed like that? Should I get hour hand?

    Hello

    I don't think you will get both in the calendar popup. Basically, the popup calendar is the default behavior. It may be possible to develop a custom component, but it would take a bit of scripting and would probably not be worth the effort.

    I'd get the user to time manually entry in a separate field.

    Good luck

    Niall

  • Select the element on a form as a table with a different dynamic LOV on each line

    I would use a tabular form when one of the columns is a Select based dynamic LOV, and where this is dynamic LOV refers to a column on the values in each row.

    So if the tabular presentation was a list of teams and the column selection LOV was the current head of the team, I would like to than this selection list to be filled only with the members of this team (different for each line). As the list of the members of the team is in a different table (all_players or something) I won't fill the LOV with a query with a where clause clause that only selected records of players from team-membership equal to the id of the current team tabular form. Thus, on each line the content of this list would be different.

    -Justin

    This is explained here:

    http://HTMLDB.Oracle.com/pls/OTN/f?p=31517:176

    Denes Kubicek
    -------------------------------------------------------------------
    http://deneskubicek.blogspot.com/
    http://www.Opal-consulting.de/training
    http://Apex.Oracle.com/pls/OTN/f?p=31517:1
    -------------------------------------------------------------------

  • How can I add a transition between each item in the items 11 first?

    Greetings-

    Folks, I'm looking for a feature that even the old Windows Movie Maker used to have cheese.  I'm trying to figure out how to get first elements 11 to add a transition between each clip, by any means of quick shortcut.  I think it's rude and unhelpful that I need to manually drag a transition between each element.  If I import 200 short films that I took with my point and shoot camera, it'll take me more than one hour alone just to put transitions in place.

    Is it possible to select a transition and have Premiere Elements add it between each clip?  I have stumbled upon the fact that you can click on a transition and make the "Default", but were not able to understand what this does for me.

    Any help is appreciated.

    Thank you.

    Andy

    As I showed you in my book, you can select all the clips you want a transition between, right-click on the group, and select apply the default Transition, and it will be applied between all the clamps.

    You can define a transition to the default by right clicking on it in the Panel of Transitions.

  • Report Script - can add you text to each line?

    I have a Script to report in Essbase works well and give me all the data I need, but I want that each row to be preceded by a text. Is there a simple way to force the text at the beginning of each line of output?

    I think that one of the easier ways to make entangled be if you have a member of the page that has a unique value (as the whole report is real). Put it in the lines and make a name change on this issue. There is another way to do it with the evolution of a number of characters about something else, but it's more painful

  • How can I create a chart that creates new series each year when the data are not collected on a daily basis?

    I collect numbers "occasionally" of my solar system and to create a standardized chart that shows that the generation on an annual basis, so I can compare fall in the fall of each year, etc..

    Because the information is not strictly 'daily' (just whenever I get to it), I don't know how it normalize for several years.

    For example, if I had

    Date - Kw/day

    15/01/10 - 14

    03/04/10 - 18

    18/04/10 - 17

    01/06/10 - 19

    21/09/10 - 15

    03/12/10 - 9

    07/02/11 - 13

    02/05/11 - 16

    17/08/11 - 18

    01/11/11 - 12

    02/11/11 - 12

    05/01/12 - 9

    04/06/12 - 12

    and so on.

    What I'd like to see is a line graph for each year from January to December with these datapoints on it. I have much more "incremental data" that I presented above, but it's on "random dates" during the last 8 years, and I'm just trying to see how each year compared to other years.

    To be at the front, I tried to understand how this in Excel as well, but he could not understand where the other.

    DRM for any tips/tricks/tips!

    Steve

    This might work for you...

    I placed your data in a table named "Data."

    Create a second (in this example, titled 'Table 1')

    In the table 'Table 1' months are in the first column and the first row (which is a header row) contains the years - add columns to add new year:

    B2 = if (SUMIFS (data: $B, data: $A, "> =" & (B$ 1, $A2, 1), DATE data: $A, "<" & EOMONTH(A1,0) will GET (DATE B$ 1, $A2, 1, 0) "" "") > 0, SUMIFS (data: $B, given: $A, "> =" & (B$ 1, $A2, 1), DATE data: $A, "<" & EOMONTH(A1,0) will GET (DATE B$ 1, $A2, 1, 0) "" ""), "")

    It's abbreviation dethrone select cell B2 and type (or copy and paste it here) the formula:

    = IF (SUMIFS (data: $B, data: $A, "> =" & (B$ 1, $A2, 1), DATE data: $A, "<" & EOMONTH(A1,0) will GET (DATE B$ 1, $A2, 1, 0) "" "") > 0, SUMIFS (data: $B, given: $A, "> =" & (B$ 1, $A2, 1), DATE data: $A, "<" & EOMONTH(A1,0) will GET (DATE B$ 1, $A2, 1, 0) "" ""), "")

    Select copy of cell B2

    Select the cells B2 at the end of F13, dough

    now select cells A2 through F13 and add a graphic (the XY scatter diagram)

    Add new year add one (or more) new columns for "table 1", then add the year to the top:

    Now alone, click the chart to activate the chart.  then click on the button 'change data references '.

    now, drag the data reference control handle to the right to add the new year to the table:

    You can add several years to the time, so you don't have to it very often

  • Add hard drive VCSA 5.5 to the data store

    I do the jump for especially vsphere client of web & VCSA 5.5 to change settings on a virtual machine on a host in a data center. The host has 2 data warehouses. The virtual machine has 1 hard disk assigned to datastore1. I go to add HDD to VM but can't find where datastore2 go through them.

    Non-Web client Vsphere 5.1 has allowed the addition of material. The wizard showed a location-> specify a cluster datastore or datstore. And then go to datastore2.

    If you have any information leading to the resolution of this problem, I got thank you.

    PatrickAZ

    Patrick,

    First, to add a new disk to a computer virtual, the data store where you create the disc must be visible to the ESXi host where VM works... If this is the case, follow the procedure in documentation ESXi: Add a new hard drive in a VM in the Web Client vSphere

  • Dynamic action does not not with the Date

    Hi all

    In my form, I created a dynamic action to be pulled on losefocus on the date of the birth column. The action returns the age in the age column. It only works if I use the date of birth hard-coded as follows:

    SELECT
    SYSDATE - AGE TO_DATE('01-JAN-2007','DD-MON-YYYY')
    OF THE DOUBLE

    It does not work if I use the actual date of entry as follows:

    SELECT
    SYSDATE - AGE TO_DATE(:P2_DOB,'DD-MON-YYYY')
    OF THE DOUBLE

    My version of the apex is 4.02 and database 11g.

    Could someone point out what I'm missing.

    Thank you
    Zahid

    Hi Zahid,

    When you want to use the values of the element of the page in a dynamic action of pl/sql, you must go to the section "Articles to submit the Page.

    brgds,
    Peter

    -----
    Blog: http://www.oracle-and-apex.com
    ApexLib: http://apexlib.oracleapex.info
    BuilderPlugin: http://builderplugin.oracleapex.info
    Work: http://www.click-click.at

  • How to display each month between the date range

    I want a query that gives me the number of months between two dates given for example, if I going January 1, 2009 and April 1, 2009 then I should get on February 1, 2009 and March 1, 2009 in my trips

    Thank you very much

    Srix wrote:
    Thanks for the request

    It is not working do not when the effective date is differs from that in a year i.e start date January 1, 2009 and end date February 1, 2009, that it does not give u then required result

    I don't know what you mean? The dates are in the same year.

  • All of a sudden I can't type data on registered forms. The purple bar above shows "Please fill out the following form. "You can save the data entered in this for."

    All of a sudden, I can't type data on registered forms. The purple bar above shows "Please fill out the following form. You can save the data entered in the form.

    Program used to complete the form (I guess they are in PDF format)? OPERATING SYSTEM? Versions of both? Forms were filled before you save them?

  • Is it possible to add a description for each slide in the slide show as a slide to separate before each photo?

    I am trying to create a descriptive slideshow with explanatory text before each slide.

    Can you suggest the smart way to do it quickly?

    Hi graceplight,

    It is not possible to add descriptions to individual slides in Lightroom.

    Please take a look at the article, it may be useful: https://helpx.adobe.com/lightroom/help/playing-exporting-slide-shows.html

    Please let us know if it helps.

    Kind regards

    Tanuj Sandal

  • Add dynamic html - InnerHTML as implementation of the components of the Adf.

    Hello

    I need to view the html code on the jsff page which is backing bean.

    I need to display html code on page jsff dynamics. I'll put the html code in a requestMap attribute that must be added and displayed on the jsff page.

    For example,.
    BackingBean
    requestMap.put ('DetailText', ' < p > This is sample text for description < /p > < img src=\"test.png\" > "");

    JSFF Page
    < af:panelGroupLayout layout = "vertical" >
    < af:outputText value = "#{requestScope.DetailText}" / >
    < / af:panelGroupLayout >


    Above code is the hardcoded value display / plain html code.

    I need to do something like innerHTML style in the components of the adf.

    Is it possible to apply this? help you enjoy!

    Hello

    This would require JavaScript and the access to the HTML code that is generated in the user interface. For example usually the content of a component is represented by an element with the ID of the componentId::content HTML. In this way it can be found on the DOM using findElementById. However, this isn't really a future prove way and fights the idea of development based on the JSF components when you make a hypothesis on the output stream. So was wondering if using f: verbatim for the included HTML help

    Frank

  • BB10 - problems w / dynamic populating list of images with the data of WebSQL

    Hi all

    So I'm having a few problems with the definition of the element's onclick attribute when dynamic filling an image list.

    function listAllRooms() {}

    ...

    DB.transaction (function (tx) {}
    tx.executeSql ("SELECT * FROM ROOMS, [], {}, function (tx, results)")

    for (i = 0; i< len;="">
    elName var = results.rows.item (i) .name,
    elID = results.rows.item (i) user.user;

    Item = document.createElement('div');
    item.setAttribute('data-bb-type','item');
    item.setAttribute ("data-bb-title', elName");
    item.innerHTML = 'Description here.';
    item.setAttribute ('data-bb-img', ' foo.png');

    Item.onclick = function() {bb.pushScreen ('showRoom.html', 'Show-Room', {id: elID}) ;};}

    Items.push (Item);
    }

    document.getElementById('rooms-list').refresh (items);
    (}, null);

    });
    }

    My problem is the bold red line. What happens is that each item links to the last point (last row of the table). I know it has something to do with the callbacks and synchronization but cannot for the life of understand me.

    My apologies for the ugly code and thanks in advance for the help.

    Karel

    In fact, I managed to make it work this way:

    item = document.createElement('div');
    item.setAttribute('data-bb-type','item');
    item.setAttribute('data-bb-title', elName);
    item.setAttribute('data-id', elID);
    item.innerHTML = "Description here.";
    item.setAttribute('data-bb-img','img/icons/item-dark.png');
    item.setAttribute('onclick', "bb.pushScreen('show.html', 'show', {type: 'item', id: " + elID + "})");
    

    Thanks for all your help!

  • Impossible to change the Data Execution Prevention for a specific program

    Original title: Data Execution Prevention

    Hi, can't seem to be able to change my Data Execution Prevention for one of the programs that I'm running. I followed the instructions from microsoft, but nothing happens. Can someone help? Thank you.

    Hello

    EricLaw IEInternals - a peek at Internet Explorer from inside. -Understanding DEP/NX
    http://blogs.msdn.com/ieinternals/archive/2009/10/10/understanding-data-execution-prevention-crashes-in-IE8.aspx

    The problem might actually be an addon or another program causing the problem and you
    must verify that 1.

    What antivirus/antispyware/security products do you have on the machine? Be one you have
    EVER had on this machine, including those you have uninstalled (they leave leftovers behind which)
    may cause strange problems).

    Start - all programs - Accessores - system tools - IE with no Addons - does this work better?

    IE - Tools - Internet Options - Advanced - tab click on restore, and then click Reset - apply / OK

    IE - Tools - Internet Options - Security - reset all Zones by default level - apply / OK

    not better?

    Close IE and try again IE or IE with no Addons

    IE - tools - manage Addons (for sure disable SSV2 if she's here, is no longer necessary, but)
    Java always install it and it causes problems - you never update Java to go back in and turn it off again.)
    Search for other possible problems.

    Windows Defender - tools - software explore - look for problems with programs that do not look
    right. Allowed are usually OK and "unauthorized" are not always bad. If a doubt
    program to ask about it here.

    Could be a free - BHOremover - BHO - standalone program, needs no installation, download and
    run - not all are bad but some can cause your question. (Toolbars are BHO)
    http://securityxploded.com/bhoremover.php

    Startup programs
    http://www.Vistax64.com/tutorials/79612-startup-programs-enable-disable.html

    Also get Malwarebytes - free - use as scanner only. If you ever think malware and which would be
    stands with Prevx running except for a cookie of occasional low level (not a big deal), the update
    and then execute it as a scanner.

    http://www.Malwarebytes.org/

    I would add prevx so.

    Prevx - home - free small, fast, exceptional protection CLOUD, working with other security
    programs. It is a single scanner, VERY EFFICIENT, if it finds something come back here
    or use Google to see how to remove.
    http://www.prevx.com/

    PCmag - Prevx - Editor's choice
    http://www.PCMag.com/Article2/0, 2817,2346862,00.asp

    -------------------------------------------------------------------

    Do yourself a big favor and work through 1 above.

    Data execution prevention Internet Explorer Windows 7 included - several methods here difficult
    http://HubPages.com/hub/data-execution-prevention-Internet-Explorer

    Feature Data Execution Prevention, or DEP in Windows Vista & Windows 7 - see also the links to the
    at the bottom of this page.
    http://www.WinVistaClub.com/F33.html

    How control DEP but I don't recommend turning it off and certainly not to let power off.

    How to enable DEP on or off for a program of Vista (and Windows 7)
    http://www.Vistax64.com/tutorials/65790-DEP-turn-off-programs.html

    How to enable or disable DEP in Vista (and Windows 7)
    http://www.Vistax64.com/tutorials/120778-DEP-enable-disable.html

    ====================================

    If nothing else works you can try this however I would use as a last resort.

    IE - Tools - Options - Advanced Options - Internet Security Section - clear the check box enable memory
    Protection to mitigate the attacks online - APPLY - OK close and restart IE

    Hope this helps. |

    Rob Brown - MS MVP - Windows Desktop Experience: Bike - Mark Twain said it right.

Maybe you are looking for

  • Satellite L30 does not start after the upgrade to 2 GB of memory

    I bought 2 GB Crucial memory for my L30. After removing the 512 MB module and adding two modules of 1 GB the L30 wouldn't start. With only 1 GB start ok ok, with the other boot only 1 GB. Either 1 GB modules and module of 512 MB with start ok. The tw

  • Satellite M70: Memory 533 MHz with 667 Mhz compatibality?

    HelloI bought the new Satellite M70 (PSM70) 1.7 Ghz (400FSB) with the construction of memory DDR2 PC2 512 MB 533 MHz, if I DDR2 1 G 667 Mhz added to it? the Mhz will be a problem? and why the standard memory 533 Mhz and 400 Mhz processor speed? Kind

  • need help choosing a graphics card

    Hi I have a pavilion A1240N hp Specifications of the PC: sound Windows 8 with a processor dual core AMD Athlon 64 X 2 4200 +, 2000 Mhz, 2 logical processors I have upgraded to 4 GB of ram motherboard model: A8M2N - LA and all I want now is what can I

  • SCREEN LOCK error 'search your client machine. Please wait... »

    This error is locked my routers configuration screen. "Looking for your client machine. Please wait... If you have not clicked on the Wi - Fi Protected Setup button on your client machine, do it now. » Y at - it a fix for this problem without restori

  • The computer seems to be configured correctly, the device or resource (DNS server) does not

    When I tried to fix this using other threads, none worked any other suggestions? Original title: your computer seems to be configured correctly, but the device or resource (DNS server) is not responding. I tried all of the solutions none works