Add dynamic buttons to each report row and bind the row data to buttons specific to that row

I have a page with a form at the top and a report at the bottom which is tied to a table. I need to add a pair of buttons for each row of the table and add dynamic actions for these buttons. I need to submit the data corresponding to the row to a REST service and refresh the table/row. I know it is possible to add ajax call and refresh the table after the response is received. But I am not sure how I can dynamically include a pair of buttons on each row and have the 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.
Below is the representation of how I need 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 data 1, data21, data 31 from button 11 and button21 etc.

select data1,
          data2,
          data3,
          null button1,
          null button2,
          rowid r_id
from .....
If you edit the column for button1 and navigate to the Column Formatting region you can create your button here, several different ways.  You will need to play around with how you prefer.  See below:
<input class="button1" type="button" id="#R_ID#" value="label for the button" /> or <button id="#R_ID#">label for button</button> or you could use <a> and apply css of your theme.
You also create both buttons in a single column.  From here you can reference any of the columns from your select by using the #COLUNMNAME# format (as I did with R_ID).
You will next need to something similar for all columns you want to be able to grab when you click the buttons.  See below:
--- This would be for data1 column
<span id="D1-#R_ID#">#DATA1#</span>
You would do these for each column that you want access to when button clicked as mentioned above.  You could bypass this step and use jquery to traverse the DOM using .closest() and .find() and give each column a distinct class.  Is is your preference.
You would then create a dynamic action triggered when .button1 is clicked.  Now that you have that object you can get the id of the triggering object which would be your r_id and from there you can access all your individual data points(all this done in a javascript in the dynamic action) and assign to hidden items on your page.  The next step of that dynamic action you could execute pl/sql and pass those in page items.
Hope that all makes sense.
David
Message was edited by: DLittle
Just as a bit of clarification:  the r_id column does not have to be rowid, but it does need to be unique for each row return.  You could use your primary key or rownum.  Whatever works for your scenario.

Similar Messages

  • I have a dynamic table that calculates the sum of all rows, no issue.  I'm struggling with pulling out a subtotal though.  I would like to have a check box in each row  that flags those rows and gives the sum of their total.  Any help would be greatly app

    I have a dynamic table that calculates the sum of all rows, no issue.  I'm struggling with pulling out a subtotal though.  I would like to have a check box in each row  that flags those rows and gives the sum of their total.  Any help would be greatly appreciated.

    Here's something I threw together rq. The script is in the change event for the checkbox in the table. (Of course, you'll have to modify it to suit the names of your fields.)
    var rows = xfa.resolveNodes("tblAmounts.Row1[*]");
    var subtotal=0;
    for (i=0; i<rows.length; i++) if (rows.item(i).cbAdd.rawValue == 1) subtotal = subtotal + rows.item(i).nfAmount.rawValue;
    nfSubtotal.rawVlaue=subtotal;

  • Add dynamic parameters for Year, From Week and To Week.

    hi all,
    my requirement is Add dynamic parameters for Year, From Week and To Week.
    can any one help how to do this one plz....
    in Answers..
    advanced Thanks..

    hi kansal,
    These requirement for the BI Publisher reports,
    1)Add dynamic parameter for year, From week and To week.
    2) Year to default to Current Year.
    that's what i have dude..
    may be we need to assign the dynamic variables for year ..
    Edited by: 932326 on Sep 4, 2012 7:16 AM

  • How do i add a bluetooth device to my mac? there is no " " button in my bluetooth preferences and turning the devices to discover mode doesn't work

    How do i add a bluetooth device to my mac?  There is no " +" button in my bluetooth preferences and turning the devices to discover mode doesn't work

    The Bluetooth setup assistant should "find" a device in range when that device is turned on. What are you trying to add?
    Wireless input devices: Bluetooth frequently asked questions ( How do I add or remove a wireless device to or from my Mac (pairing or unpairing)?)
    Barry

  • How do I create a 1d array that takes a single calculation and insert the result into the first row and then the next calculation the next time the loop passes that point and puts the results in thsecond row and so on until the loop is exited.

    The attached file is work inprogress, with some dummy data sp that I can test it out without having to connect to equipment.
    The second tab is the one that I am having the problem with. the output array from the replace element appears to be starting at the index position of 1 rather than 0 but that is ok it is still show that the new data is placed in incrementing element locations. However the main array that I am trying to build that is suppose to take each new calculation and place it in the next index(row) does not ap
    pear to be working or at least I am not getting any indication on the inidcator.
    Basically what I am attempting to do is is gather some pulses from adevice for a minute, place the results for a calculation, so that it displays then do the same again the next minute, but put these result in the next row and so on until the specifiied time has expired and the loop exits. I need to have all results displayed and keep building the array(display until, the end of the test)Eventually I will have to include a min max section that displays the min and max values calculated, but that should be easy with the min max function.Actually I thought this should have been easy but, I gues I can not see the forest through the trees. Can any one help to slear this up for me.
    Attachments:
    regulation_tester_7_loops.vi ‏244 KB

    I didn't really have time to dig in and understand your program in depth,
    but I have a few tips for you that might things a bit easier:
    - You use local variables excessively which really complicates things. Try
    not to use them and it will make your life easier.
    - If you flowchart the design (very similar to a dataflow diagram, keep in
    mind!) you want to gather data, calculate a value from that data, store the
    calculation in an array, and loop while the time is in a certain range. So
    theres really not much need for a sequence as long as you get rid of the
    local variables (sequences also complicate things)
    - You loop again if timepassed+1 is still less than some constant. Rather
    than messing with locals it seems so much easier to use a shiftregister (if
    absolutely necessary) or in this case base it upon the number of iterations
    of the loop. In this case it looks like "time passed" is the same thing as
    the number of loop iterations, but I didn't check closely. There's an i
    terminal in your whileloop to read for the number of iterations.
    - After having simplified your design by eliminating unnecessary sequence
    and local variables, you should be able to draw out the labview diagram.
    Don't try to use the "insert into array" vis since theres no need. Each
    iteration of your loop calculates a number which goes into the next position
    of the array right? Pass your result outside the loop, and enable indexing
    on the terminal so Labview automatically generates the array for you. If
    your calculation is a function of previous data, then use a shift register
    to keep previous values around.
    I wish you luck. Post again if you have any questions. Without a more
    detailed understanding of your task at hand it's kind of hard to post actual
    code suggestions for you.
    -joey
    "nelsons" wrote in message
    news:[email protected]...
    > how do I create a 1d array that takes a single calculation and insert
    > the result into the first row and then the next calculation the next
    > time the loop passes that point and puts the results in thsecond row
    > and so on until the loop is exited.
    >
    > The attached file is work inprogress, with some dummy data sp that I
    > can test it out without having to connect to equipment.
    > The second tab is the one that I am having the problem with. the
    > output array from the replace element appears to be starting at the
    > index position of 1 rather than 0 but that is ok it is still show that
    > the new data is placed in incrementing element locations. However the
    > main array that I am trying to build that is suppose to take each new
    > calculation and place it in the next index(row) does not appear to be
    > working or at least I am not getting any indication on the inidcator.
    >
    > Basically what I am attempting to do is is gather some pulses from
    > adevice for a minute, place the results for a calculation, so that it
    > displays then do the same again the next minute, but put these result
    > in the next row and so on until the specifiied time has expired and
    > the loop exits. I need to have all results displayed and keep building
    > the array(display until, the end of the test)Eventually I will have to
    > include a min max section that displays the min and max values
    > calculated, but that should be easy with the min max function.Actually
    > I thought this should have been easy but, I gues I can not see the
    > forest through the trees. Can any one help to slear this up for me.

  • I have apple iPhone 4S upgraded to iOS 6.0.1 and everything was working fine suddenly my Wifi was not connecting and found the wifi on/off button is greyed out and to enable it I tried all resets but still my problem have not solved, still wifi is off

    I have apple iPhone 4S upgraded to iOS 6.0.1 and everything was working fine suddenly my Wifi was not connecting and found the wifi on/off button is greyed out and to enable it I tried all resets but still my problem have not solved, still wifi is off

    Same here.... No fix. Replacing is the option apparently and if you're out of warranty, you're SOL. That was as per the "Genius" at Apple.

  • I have few PDf files on my computer and I want to add them to my ipod touch, please tell me the procedure on how should I do that? Secondly I want to run these Pdf files through the ibook app, as it also have the Pdf file sections

    I have few PDf files on my computer and I want to add them to my ipod touch, please tell me the procedure on how should I do that? Secondly I want to run these Pdf files through the ibook app, as it also have the Pdf file sections

    You should be able to just place them in your Books library in iTunes and check to ensure that your Book library is configured to sync to your iPod when you sync your iPod to iTunes.

  • SharePoint PPS 2013 Dashboard Designer error "Please check the data source for any unsaved changes and click on Test Data Source button"

    Hi,
    I am getting below error in SharePoint PPS 2013 Dashboard Designer. While create the Analysis Service by using "PROVIDER="MSOLAP";DATA SOURCE="http://testpivot2013:9090/Source%20Documents/TestSSource.xlsx"
    "An error occurred connecting to this data source. Please check the data source for any unsaved changes and click on Test Data Source button to confirm connection to the data source. "
    I have checked all the Sites and done all the steps also. But still getting the error.Its frustrating like anything. Everything is configured correctly but still getting this error.
    Thanks in advance.
    Poomani Sankaran

    Hi Poomani,
    Thanks for posting your issue,
    you must have to Install SQL Server 2012 ADOMD.Net  on your machine and find the browse the below mentioned URL to create SharePoint Dashboard with Analysis service step by step.
    http://www.c-sharpcorner.com/UploadFile/a9d961/create-an-analysis-service-data-source-connection-using-shar/
    I hope this is helpful to you, mark it as Helpful.
    If this works, Please mark it as Answered.
    Regards,
    Dharmendra Singh (MCPD-EA | MCTS)
    Blog : http://sharepoint-community.net/profile/DharmendraSingh

  • SharePoint 2010 Allow User to Add Comments to Files in a Library and to the Header of the Web-Page

    (1) I need to allow an end-user to be able to add comments to files either when they are added to a library or after they are added. I didn't see a Column available for adding to a Document Library for "Comments".
    (2) I need the same user to be able to add text/comments to the Header of the web-page that contains the library (above the library at the top of the screen).
    When I (the SP Admin) add the "Content Editor Web-Part" to the top of the web-page that contains the Document Library, the Toolbar disappears. The Content Editor Web-Part would be ideal to allow the end-user to add comments to the Header, but I
    really need the Toolbar available.
    Is there another Web-Part that I could use for allowing comments to be added to the Header of a web-page without disabling the Toolbar, or is there a known-fix for allowing the Toolbar to be available and functional after adding a Content Editor Web-Part?
    JCashon

    Hi,
    According to your post, my understanding is that you want to add Comments to Files in a Library and to the Header of the Web-Page.
    (1)If you use the document content type in the library, it will contain the “Comments” field automatically. When you add the document, you can enter the conments. You can also edit the “Comments” field after the document added.
    (2)If you add the add the "Content Editor Web-Part" to the AllItem.aspx Page, you can add the text to the web part as the Header.
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • Problem printing more than 255 characters in report output and in the spool

    Hi Guys,
                    I am trying to print one file in the report output and in the spool but it's priting till 255 characters only. If I try the samething while writing in application server and in peresentation server it is printing full content. I am giving the line size in the REPORT statement as more than 255 like 300 but even it is not printing. How can i print the full contents. Whether it is any basis related issue or in any settings can we do that. please advice.
    Thanks in advance.

    If it is not showing in Spool, Basis people has to do some setting in SPAD Transaction.

  • Just upgraded my iPad to IOS5 and when the download was completed, a window said that there was an error and it could not restore.  Now I have a black screen with the Apple logo and the circle lines.  None of the buttons respond. Help, please!!

    Just upgraded my iPad to IOS5 and when the download was completed, a window said that there was an error and it could not restore.  Now I have a black screen with the Apple logo and the circle lines.  None of the buttons respond. Help, please!!

    Reset the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons. Maybe this will let the iPad reboot and then you may need to restore again but see if this helps to start the iPad first.

  • When using Firefox as my browser, my "back" button no longer works? And by the way...getting help is a real pain in the butt on this site!!!!!

    When using Firefox as my browser, my "back" button no longer works? And by the way...getting help is a real pain in the butt on this site!!!!!

    see -- http://kb.mozillazine.org/Kill_application
    which explains how to completely exit (quit) your Mozilla application
    Try closing Firefox completely
    *Close Firefox properly '''File > Exit''', not with the "X" which just closes the window.
    *Use the Windows Task Manager "Processes" tab to make sure that firefox.exe is not running and also that the plugin-container.exe is not running.
    If that does not work, try restarting the system.
    If still no luck try restoring bookmarks from last backup, or better create your own .json backup and restore from that.
    *http://kb.mozillazine.org/Backing_up_and_restoring_bookmarks_-_Firefox#Creating_bookmark_backups
    *''If you had to go this far, please provide feedback if restoring bookmarks alone fixed the problem. I think I may have done that once with success, but never see that suggested -- I'd try most anything to not lose history or bookmarks. But then I could restore files from my profile and restore latest bookmarks backup from current profile.''
    The following will result in complete loss of history if it comes down to deleting places.sqlite, so rename files rather than deleting. With Firefox down.
    Of course you have backups of your profile you could replace rename and
    replace those files instead.
    Locked or damaged places.sqlite - MozillaZine Knowledge Base
    :"Toolbar buttons such as Back/Forward are disabled "
    :http://kb.mozillazine.org/Locked_or_damaged_places.sqlite

  • On firefox clickable buttons are not clickable for me eg the + to open new tab ,the sign in . register and other applications buttons on this page wont click yet the 2 blue change buttons are fine

    Question
    on firefox clickable buttons are not clickable for me eg the + to open new tab ,the sign in . register and other applications buttons on this page wont click yet the 2 blue change buttons are fine

    Top of Firefox window non-responsive, toolbars non responsive -- also see [http://kb.mozillazine.org/Problematic_extensions Problematic extensions]
    *caused by Yahoo Toolbar -- https://support.mozilla.com/questions/890908
    *caused by Babylon Toolbar -- https://support.mozilla.com/questions/890670

  • My home button is not working sometimes and at the store they dont want to take it for repair because the problem did not show up at that time

    My home button is not working sometimes and at the store they dont want to take it for repair because the problem did not show up at that time

    When normally powering the phone, there would not be a loading bar, you would just see the Apple logo. You can try a reset of the phone, hold the sleep/wake and home buttons together until you see the Apple logo and then release. The phone will reboot.
    You can take the phone to Apple, by making an appointment at the Genius Bar to have the hardware checked. Apple handles warranty and post-warranty issues, not Verizon. Have Apple look at the hardware to see if there are any problems.

  • I have a mac book pro running Lion 10.7.4 and every time I use Google Earth The computer crashes by lowering a black curtain and then asking me to hold the power button down until it closes and press the power button again to restart it. Can I fix this?

    I have a mac book pro running Lion 10.7.4 and every time I use Google Earth The computer crashes by lowering a black curtain and then asking me to hold the power button down until it closes and press the power button again to restart it. Can I fix this? It bugs me when I'm looking at real estate.

    I really don't have an answer for that one. I guess that while trying to get things working correctly, I would use the most basic monitor I had which in your case would be the Eizon using the Thunderbolt port and adaptor.
    When you boot into Safe Mode the startup is quite slow, but you should get the Apple logo and then the spinning gear below it (release the SHIFT key when it appears.) Then after a little more time you should see a gray progress bar appear below the spinning gear. When that disappears the computer will startup to a login screen.

Maybe you are looking for

  • Cannot find instructions on how to connect printer to a new wireless network.

    HP 4500 series was connected to my wireless network successfully for a year.  Upon moving and obtaining  new wireless network I cannot find instructions for changing wireless network for printer to recognize.

  • How to uninstall Photoshop Elements 8 for Mac?

    I just installed the trial copy of Photoshop Elements 8 on my MacBook Pro running OS X 10.6.1. Now I would like to uninstall it. According to the readme file which came with the product: "To uninstall Photoshop Elements 8, you MUST USE THE INSTALLER'

  • Error FND-00728 while trying to update a valuset

    We are migrating from 10.7 NCA to 11.5.2. We had a value set which was accessing a column that no longer exists in 11i. When we try to update the value set (in 11i) with the new table/column information, we get the following error - [APP:FND-728] A %

  • "Deploy" Option Missing from VS

    We just finished installing SharePoint 2013 RTM and VS 2012 for development purposes. I also installed the Preview 2 of the Office and SharePoint Dev Tools. The "Deploy" option which was previously present in Visual Studio to deploy SharePoint projec

  • WRT54G and Vista x64 drops

    To resolve this issue, disable the DHCP BROADCAST flag in Windows Vista. To do this, follow these steps: Click Start, type regedit, If you are prompted for an administrator password or for confirmation, type your password, or click Continue. Locate a