Duplicate column ids in reports on the same page, how can I reference them?

I have 4 reports on the same page.
I have added a checkbox column to each one.
On clicking I want to populate a collection with the value of the id of the corresponding row and then have a button acting on the whole list.
My code to get the id of the item that contains the value I want is this
id = 'f02_' + $(this.triggeringElement ).attr('id').substr(4,4);
But there is an f02_0001 for each report, and the code just finds the first one, rather than the one in the context of the report being clicked.
<input name="f02" id="f02_0001" type="hidden" value="2072"/>
<input name="f02" id="f02_0001" type="hidden" value="2052"/>
etc etc.
All that is ever picked up is 2072
They have different table ids but I don't know how to reference the correct ones in my code
I'm sure it must be something simple, can anyone help
Cheers
Mark

It looks like this:
I want to click on the check box and get the corresponding value for f02_000X (or could I refer to the class name if I gave it a class)
There are several tables with the same format as below so it needs to work out the table id in the reference.
<table id="report_R1641794306363434600" cellspacing="0" cellpadding="0" border="0" summary="">
<tbody>
<tr>
<td></td>
</tr>
<tr>
<th id="BOX"></th>
<th id="Name"> </th>
</tr>
<tr>
<td colspan="11">
<table width="100%" cellspacing="0" cellpadding="1" summary="" style="border-bottom:1px #959562 dotted;">
<tbody>
<tr>
<td valign="top" nowrap="nowrap" style="padding:1px;"></td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td headers="BOX">
<label class="hideMeButHearMe" for="f01_0001"> </label>
<input id="f01_0001_01" class="boxhop" type="checkbox" onclick="if (this.checked) {apex.jQuery('#f01_0001').val('Y');} else {apex.jQuery('#f01_0001').val('');}" value="Y" name="f01_NOSUBMIT">
<input id="f01_0001" class="boxhop" type="hidden" value="" name="f01">
</td>
<td headers="Name">
Administrator
<input id="f02_0001" type="hidden" value="2072" name="f02">
</td>
</tr>
<tr>
<td colspan="11">
<table width="100%" cellspacing="0" cellpadding="1" summary="" style="border-bottom:1px #959562 dotted;">
</td>
</tr>
<tr>
<td headers="BOX">
<td headers="Name">
Angela Murray
<input id="f02_0002" type="hidden" value="2082" name="f02">
</td>
</tr>
<tr>
</tbody>
</table>

Similar Messages

  • I have 3 iPads ( iPad 2 ) all come up with the same username, how can I seperate them ?

    I have 3 iPads in the family, all are coming up with the same user name and password, how can I seperate them

    You are using the same Apple ID on all of them. If you want to share purchases, there is nothing that you can do about that. You have to use the same username and password in order to share purchased content.
    Your option is to create a new Apple ID for two of the devices and lose the purchased content on those two devices.

  • Downloading TV shows from itunes - episodes appearing seperately not all under the same series despite all the information being the same.  How can I get them to appear under the same series

    Just that
    I have many series - NCIS, West Wing etc where some episodes appear under the series and some appear on their own.
    I have checked the info anf they appear to be identical.
    How do I get them to group together corectly?

    After a couple of days, I'm noticing that the repeat(ing) offenders have more than 10 episodes, and seem to keep repeating them every time I sync.
    They only show once in my phone and in the iTunes Podcasts, but through iTunes and looking at what's in my phone is when I see the repeats.
    Even after I've marked a podcast as played, and deleted it from within my phone, as well as telling iTunes to delete the played episodes, it still shows multiples of the played episodes.
    There doesn't seem to be any rhyme or reason to it either. They aren't the newest ones either.

  • Filtering a Report on the active record of another Report on the same page

    Hello,
    I have a Form and Report on the same page in an APEX app. The interactive report is used for sorting/filtering etc. and the Form is used to present the data for one record at a time, as well as allow updates in selected fields. This was done using the wizards, the little 'edit' button is clicked to change the form to the selected record.
    I also have (or want to have) a second non-interactive report on the page, which displays some records based on the record of the main report that is currently selected and appearing in the form.
    I tried doing a simple 'SELECT fields WHERE link field is equal to main report', but it always says no data found.
    Basically, I need to be able to have a query for the second report that says 'SELECT these fields WHERE the site is equal to the site currently being displayed in the form'.
    When the little pencil/paper 'edit' button is clicked on a report, does this set some ActiveRow or something like this that I can use to filter the second report?
    As you can tell from this post, I am in my database skill infancy, and any literature/pointers on how to achieve this (outside of MS ACCESS...) would be appreciated.

    Okay, I have somewhat got my head around Column Links, and have put the key link field into the URL:
    The value is P4_MDF, and in this URL example it has taken the value of 'WLAH01'
    f?p=880:4:3924084145794812::NO::P4_MDF,P4_ESA_CODE,P4_SITE_NAME:WLAH01%2CWLAH%2CWYRALLAH
    Now I just need to work out how to use this value in the URL to filter the classic report.
    I have used this query:
    SELECT *
    FROM
    "MACHINE_INFO"
    WHERE CCP = :P4_MDF
    As CCP in the report im trying to filter is the same as MDF in the IR that I am clicking the Column Link
    This is the Debug for the 2nd 'filtered' report (which filters everything)
    0.09: show report
    0.09: determine column headings
    0.09: parse query as: EXPAT
    0.09: binding: ":P4_MDF"="P4_MDF" value="WLAH01"
    0.09: print column headings
    0.09: rows loop: 15 row(s)
    I'm slowly getting the hang of this, any assistance would be great!

  • Parameters and report on the same page

    I am new to HTML_DB. I would appreciate your help with the following:
    I have html page with items(parameters) and report on the same screen.
    Items are:
    Customer: Select list with Submit
    Invoice No.: Select list - Populated invoices numbers for the selected customer
    Department: Select List
    Prod Month: Date Picker
    Button: Report View.
    Users can select any of the above parameter to create a report. The problem is when I don't select any customer and just select the department or prod month and click on a Report View button, I get SQL error in the Invoice Number item.
    It seems when the page refreshes to create a report Invoice Number items sql query is executing but when it does not find the customer name, it’s giving the error.
    If I select a customer name, the page gets refreshed and the report is generated. I don’t want to create a report when they select a customer. I want them to select the parameters and click on the Report View button to create the report on the same page.
    Thank you.
    Regards,
    Rek

    Sounds like you are building the query string and submitting that and the fact that they leave something out messes up that string...<br><br>If that's the case, you can add validations to the page to make sure they enter in all the appropriate information.<br><br>
    chet

  • Form and report on the same page...

    Hi,
    I want to have a form and report on the same page... as soon as user enters the information and submit the form via button then the report should be able to display the addition...
    may I know how to accomplish this...
    Thanks in advance

    Hi
    Can you try like this
    1.First create an empty page and add a html region and template as form region and add the necessary fields to insert into table
    2. create a another region with type as "SQL Query" and template as report region and add the necessary fields for the reports.
    Once u entered the details into form region and created process and insert into table and then automatically the report region query will fetch the recently added row and displays in the report.
    Hopes this might helps you.
    Thanks & Regards
    Srikkanth.M

  • Parameter screen and report in the same page?????

    Hi Gurus...
    Here is what i am trying to do ..I am trying to show the customization screen and the report in the same page
    1.the user selects some data from the lov ..
    2.Based on the lov selected field the below report should change ..
    like if the user selects PA in the lov the bottom should show all the data in PA ..
    This is possible in pl/sql calling htp calls ,But is there any way to do this in portal ????
    Thanks in advance
    Sing

    Hi,
    Sorry I forgot to give you some sample code of the dynamic page.
    <HTML>
    <HEAD>
    <TITLE>Example</TITLE>
    </HEAD>
    <BODY>
    <H1>Example of A Dynamic Page</H1>
    <ORACLE>
    begin
    report1.show_parms;
    end;
    </ORACLE>
    </BODY>
    </HTML>
    In the above code this dynamic page is calling the customization form of a report called report1.
    Thanks,
    Sharmila

  • Reports on the same page as FORM

    Hi,
    We have a SEARCH Form and when user inputs search criteria, then we want to call a report on the same page, just below the search button. We tried many things but the report does not show up on the same page, it navigates to next page.
    Please help..
    Thanks
    Kumar.
    null

    Right now passing parameters between portlets is not supported. It will be done in a future release.
    Regards,
    Sunil.
    null

  • How to do a partial refresh of a form and report on the same page?

    Hi all,
    im trying to make a page where you have a report on top and when you click the link instead going to the form page, the form page is on the bottom of the report. lets say im trying to send an id from the report to the item below so that i could fetch the rest of the item. however when i pass,other items would still refer to this one as null.
    if im not mistaken this could be done with submit,but i want it to be partial refresh..
    i tried steps here but this only worked when the lower part is a also a report:
    https://forums.oracle.com/thread/2345863
    i also tried this,but this actually submits a page..
    Grassroots Oracle: Apex Tutorial - Form &amp; Report sharing the same page
    would it be possible to get a form and report in one page as partial refresh?
    Message was edited by: T101_cyberdyne

    If so, you need to create a dynamic action with a javascript action to set the id of the report row in the id form field, and a subsequent pl/sql action to fetch the record based on the id. You can use this record to set the other form field items.
    For the example in the above link the code looks as follows.
    the javascript action:
    var empno = $(this.triggeringElement).find('td[headers="EMPNO"]').text()
    $s('P26_EMPNO',empno)
    the PL/SQL action:
    declare
    cursor c_emp is
    select * from emp
    where empno = :p26_EMPNO;
    BEGIN
    for r_emp in c_emp loop
      APEX_UTIL.SET_SESSION_STATE('P26_ENAME',r_emp.ename);
      APEX_UTIL.SET_SESSION_STATE('P26_JOB',r_emp.job);
      APEX_UTIL.SET_SESSION_STATE('P26_MGR',r_emp.mgr);
      APEX_UTIL.SET_SESSION_STATE('P26_HIREDATE',to_char(r_emp.hiredate,'dd-mon-yyyy'));
      APEX_UTIL.SET_SESSION_STATE('P26_SAL',r_emp.sal);
      APEX_UTIL.SET_SESSION_STATE('P26_COMM',r_emp.comm);
      APEX_UTIL.SET_SESSION_STATE('P26_DEPTNO',r_emp.deptno);
      APEX_UTIL.SET_SESSION_STATE('P26_ORDNO',r_emp.ordno);
    end loop;
    END;
    Hi Vincent,
    Yes! im looking for something similar. This looks interesting. I did look into apex_util.set_session_state yesterday but didnt know how to apply. perhaps i was doing it wrong.
    Question though, so basically first use the javascript to send the EMPNO from top report to the EMPNO in the form fields below.
    Then based on the EMPNO received in the form, do a loop to get the rest and put it into session. Correct?
    if i'm not mistaken i did something similar,but when i tried to set session for the rest,it refers to to the p26_EMPNO still as null..does the javascript sets the id of report to the id of the form or does it just send over?
    i'll try it out.
    Thanks.

  • How do I duplicate or copy a table onto the same page?

    In Pages, how do I duplicate or copy a table onto the same page?

    option drag duplicates anything or copy and paste
    Peter

  • I was backing up my iPhone and importing photos onto iPhoto at the same time , then suddenly it says no more space available (i had 48GB before i do this and now i have 18GB) i can't find the back up or the photo anywhere , how can i delete them ?

    i was backing up my iPhone and importing photos onto iPhoto at the same time , then suddenly it says no more space available (i had 48GB before i do this and now i have 18GB) i can't find the back up or the photo anywhere , how can i delete them ? i dont need the pictures or the back ups , i want to delete them but they are not there

    Empty the Trash if you haven't already done so. If you use iPhoto, empty its internal Trash first:
    iPhoto ▹ Empty Trash
    Do the same in other applications, such as Aperture, that have an internal Trash feature. Then reboot. That will temporarily free up some space.
    According to Apple documentation, you need at least 9 GB of available space on the startup volume (as shown in the Finder Info window) for normal operation. You also need enough space left over to allow for growth of the data. There is little or no performance advantage to having more available space than the minimum Apple recommends. Available storage space that you'll never use is wasted space.
    When Time Machine backs up a portable Mac, some of the free space will be used to make local snapshots, which are backup copies of recently deleted files. The space occupied by local snapshots is reported as available by the Finder, and should be considered as such. In the Storage display of System Information, local snapshots are shown asBackups. The snapshots are automatically deleted when they expire or when free space falls below a certain level. You ordinarily don't need to, and should not, delete local snapshots yourself. If you followed bad advice to disable local snapshots by running a shell command, you may have ended up with a lot of data in the Other category. Reboot and it should go away.
    See this support article for some simple ways to free up storage space.
    You can more effectively use a tool such as OmniDiskSweeper (ODS) to explore the volume and find out what's taking up the space. You can also delete files with it, but don't do that unless you're sure that you know what you're deleting and that all data is safely backed up. That means you have multiple backups, not just one.
    Deleting files inside an iPhoto or Aperture library will corrupt the library. Any changes to a photo library must be made from within the application that created it. The same goes for Mail files.
    Proceed further only if the problem isn't solved by the above steps.
    ODS can't see the whole filesystem when you run it just by double-clicking; it only sees files that you have permission to read. To see everything, you have to run it as root.
    Back up all data now.
    If you have more than one user account, make sure you're logged in as an administrator. The administrator account is the one that was created automatically when you first set up the computer.
    Install ODS in the Applications folder as usual. Quit it if it's running.
    Triple-click anywhere in the line of text below on this page to select it, then copy the selected text to the Clipboard by pressing the key combination command-C:
    sudo /Applications/OmniDiskSweeper.app/Contents/MacOS/OmniDiskSweeper
    Launch the built-in Terminal application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid.
    Paste into the Terminal window (command-V). You'll be prompted for your login password, which won't be displayed when you type it. You may get a one-time warning to be careful. If you see a message that your username "is not in the sudoers file," then you're not logged in as an administrator.
    The application window will open, eventually showing all files in all folders, sorted by size with the largest at the top. It may take a few minutes for ODS to finish scanning.
    I don't recommend that you make a habit of doing this. Don't delete anything while running ODS as root. If something needs to be deleted, make sure you know what it is and how it got there, and then delete it by other, safer, means. When in doubt, leave it alone or ask for guidance.
    When you're done with ODS, quit it and also quit Terminal.

  • When I connect my ipod to my computer it opens my documents and won't show up in my itunes and I have unistalled then reinstalled itunes and reset my ipod twice and it stills does the same thing how can I make it so that it shows up in my itunes?

    When I connect my ipod to my computer it opens my documents and won't show up in my itunes and I have unistalled then reinstalled itunes and reset my ipod twice and it stills does the same thing how can I make it so that it shows up in my itunes?

    Try
    iOS: Device not recognized in iTunes for Windows
    I would start with              
    Removing and Reinstalling iTunes, QuickTime, and other software components for Windows XP
    or              
    Removing and reinstalling iTunes and other software components for Windows Vista, Windows 7, or Windows 8
    Before you reinstall the Apple software, also remove iCloud vi Control Panel Remove programs. The reinstall the Apple programs
    New cable and different USB port?
    Runs this and see if the results help with determine the cause
    iTunes for Windows: Device Sync Tests
    Try on another computer to help determine if computer or iPod problem

  • My daughter and I each have iTunes libraries on the same computer, how can I move some songs from one library to the other?

    My daughter and I each have iTunes libraries on the same computer, how can songs from one library be moved to the other?

    So, if she purchased a song from iTunes in her library, I will also have to purchase the same song to add to my library?

  • If I have two Game Center accounts on the same email how can I delete one

    If I have two Game Center accounts on the same email how can I delete one

    already i edeit the 2 other account 
    but when my friend was search by email address they still can found 3 account ! This is not a good thing .
    i know you will tell me know sorry we cant delete ur account !
    i dont need to delete my account i need to delete my other 2 account !!
    what the hell ppl can search by email and found 3 account on the same email address
    this servicse was not good if they will keep that
    i think other ppl have 30 account on the same email so he need to edit all of them and put massage i change my account !

  • I get a download error on the creative cloud desktop app.  When I click reload applications it remains the same.  How can I get this message to be removed?

    I get a download error on the creative cloud desktop app.  When I click reload applications it remains the same.  How can I get this message to be removed?

    Hi Bericala,
    Same issue has been discussed in the below mentioned link.
    1) Creative Cloud "Download Error" message
    2) Creative Cloud - Download error - stubborn error
    Let me know if it helps.
    P.S - If this or any other response helps answer your question, please take a moment to mark the response as helpful or correct to make it easier for future users to find the solution to the same issue
    Thanks,
    Eshant Jindal

Maybe you are looking for