More tha one report with row selector in the same page,

I want to have 2 reports in my page, the two reports must have a row selector.
1/ In the first report, some pl/sql is executed when the user click in a row, so I am using :
for i in 1..wwv_flow.g_f01.count loop
my pl/sql using wwv_flow.g_f01(i)
end loop;
2/ In the second report, the user will check rows in order to delete them.
HTMLDB automaticaly gives f01 to the column "row selector" for any report in the page : how can I manage this please ?
Thanks for any help!
Jina.

See
http://htmldb.oracle.com/pls/otn/f?p=24317:54
The region query is
select
htmldb_item.checkbox(1,empno,'onClick="highlight_row(this,#ROWNUM#);"') chk,
ename, job, sal, comm
from emp
The Javascript function highlight_row() is "stolen" from the page HTML DB generates when it puts the builtin row selector. Put the function in the region header. The function is
<script type="text/javascript">
function highlight_row(checkBoxElemement,currentRowNum) {
    if(checkBoxElemement.checked==true) {
        for( var j = 0; j < checkBoxElemement.parentNode.parentNode.childNodes.length; j++ ) {
            if (checkBoxElemement.parentNode.parentNode.childNodes[j].tagName=='TD') {
                if(rowActive=='Y') {
                    rowStyle[currentRowNum] = rowStyleHover[currentRowNum];
                } else {
                    rowStyle[currentRowNum] = checkBoxElemement.parentNode.parentNode.childNodes[j].style.backgroundColor;                     
                checkBoxElemement.parentNode.parentNode.childNodes[j].style.backgroundColor = '#ededd6';
        rowStyleHover[currentRowNum] =  '#ededd6';
    } else {
        for( var j = 0; j < checkBoxElemement.parentNode.parentNode.childNodes.length; j++ ) {
            if (checkBoxElemement.parentNode.parentNode.childNodes[j].tagName=='TD') {                     
                checkBoxElemement.parentNode.parentNode.childNodes[j].style.backgroundColor =  rowStyle[currentRowNum];
                rowStyleHover[currentRowNum] =  rowStyle[currentRowNum];
                document.wwv_flow.x02.checked=false;
</script>I have no idea how that Javascript works, it seems to be doing some DOM black magic, but it works! :)
Hope this helps

Similar Messages

  • 2 Classic Reports with edit fields on the same page

    Hi All, need your help.
    I am trying to have 2 classic reports on one page with edit fields like date, list values, text
    I have noticed that the element indexes are the same f01_0001 have both first elements from both reports.
    This is making my code go crazy.
    Also i have a problem with Date Picker, if i select it as a column type for a first element in second report the icon shows up in the first report.
    I think this is because of indexing, but... Classic Date Picker put the icon on second report but when i select the date, the values is populated to first column in first report
    Does anyone have a solution for this problem! (for example change the indexing for second report)
    DB is 11.2g
    Apex is 4.2.0.00.27
    Thank you,
    Andrei
    Edited by: aracila on Feb 20, 2013 9:03 AM

    Are these tabular forms, ie updteable.
    If so, you can only have one per page
    Gus

  • REPORT WITH CHANGING ITEM ON THE SAME COLUMN

    Hi to all,
    i'm trying to build a report with different item in the same column.
    Is that possible in any way using other Oracle technique?
    i'm not doing anything specific here, only i would like to know if the following possibility exist or not and how can i let apex render the htmldb_item fields 'dynamically'.
    Using this CODE inside a PL/SQL function body returning sql query I obtain the following report content. Such the code of htmldb_item.fields is written, as a field value the HTML_ITEM is not rendered, so only the description of them appear in the report.
    Does somebody know some tricks to make it work?
    Thanx a lot
    1     2     LAST_CALL     htmldb_item.date_popup (4, ROWNUM, FLD_VALUE,'dd/mon/yyyy') VALUE
    21     1     AGE     htmldb_item.text(4,FLD_VALUE,10,10) VALUE
    create or replace FUNCTION FNC_GEN_GUI_ITEM(ITEM_TYPE NUMBER) RETURN VARCHAR2 AS
    STRHTMLDITEM VARCHAR2(4000);
    BEGIN
    CASE ITEM_TYPE
    WHEN 1 THEN STRHTMLDITEM:=' htmldb_item.text(4,FLD_VALUE,10,10) VALUE ';
    WHEN 2 THEN STRHTMLDITEM:=' htmldb_item.date_popup (4, ROWNUM, FLD_VALUE,''dd/mon/yyyy'') VALUE ';
    END CASE;
    RETURN STRHTMLDITEM;
    END FNC_GEN_GUI_ITEM;
    MY TABLE AS FOLLOWS:
    CREATE TABLE "NEWPROJ"."DINFIELDGUI"
    (     "ID" NUMBER NOT NULL ENABLE,
         "FLD_TYPE" NUMBER,
         "FLD_NAME" VARCHAR2(4000 BYTE),
         "FLD_VALUE" VARCHAR2(4000 BYTE),
         CONSTRAINT "DINFIELDGUI_PK" PRIMARY KEY ("ID"));
    Message was edited by:
    Marcello Nocito

    Hi to all,
    i've solved, is very simple using decode inside the select:
    SELECT
    ID,
    FK_HTMLDB_ITEM, DECODE(FK_HTMLDB_ITEM,1,HTMLDB_ITEM.DATE_POPUP(3,rownum,VAL,'dd-mon-yyyy'),2,HTMLDB_ITEM.TEXT(3,VAL)) VALORE
    FROM TESTID
    my table is:
    CREATE TABLE "DEV"."TESTID"
    (     "ID" NUMBER NOT NULL ENABLE,
         "FK_HTMLDB_ITEM" NUMBER,
         "VAL" VARCHAR2(4000 BYTE))
    Bye Bye

  • If I have more than one I phone can I use the same apple ID for all off them?

    If I have more than one I phone can I use the same apple ID for all off them?

    Yes. You can have multiple iPhones on the same ID, up to the maximum 5 total devices. FaceTime will use the sim number for calls and you can configure each phone separately, or configure one and then back it up to iTunes and them restore the image to the others.

  • Can I have more than one version of adobe reader at the same time?

    can I have more than one version of adobe reader at the same time?

    If I may add a qualification: on a device running full Windows 8, you may have both Adobe Reader Touch and Adobe Reader (normal desktop edition). This does not apply to the primitive devices which cannot run desktop apps (running "Windows RT"), and while I may be wrong, I believe that the Surface 2 is such a device.

  • Can I pair and use more than one set of bluetooth speakers at the same time on my ipod touch 4.0

    can I pair and use more than one set of bluetooth speakers at the same time on my ipod touch 4.0 or Iphone 4s or Ipad 2?

    You can only connect to one device at a time using Bluetooth, See article below for more information.
    http://support.apple.com/kb/ht1664
    While your iOS device can maintain multiple pairing records, it can only connect to one headset or hands-free device at a time. This prevents your iOS device from sending your data to the wrong Bluetooth accessory.

  • How to export 2 different report with a link at the same time

    Hi,
    Do anybody know how to export 2 different report with a link at the same time. I currently create a report which link to another report. But when I want to export the 1st report I also want the 2nd report also be exported.
    Thank you very much.
    Best Rgds,
    SL Voon

    Export all the three components individually.
    It will generate 3 script files. Now run them from SQL>
    null

  • Interactive report with row selector?

    I've just upgraded to APEX 3.1. I've been playing with all those amazing new features of interactive report but I miss one very important for me - a row selector. I used to have the traditional reports based on updatable queries with row selector that enabled multi-row-delete operations. Is it still possible to include a row selector to IRR so as to accomplish MRD?
    Thanks,
    Zdenek

    Hi,
    this circumstance --> "missing row selector" raises another big problem.
    My Question now:
    I can't do row-specific processes now as in v3.0 where i could start a single process for every marked row.
    Is there any feature (that i don't know yet) to integrate process-buttons for every row in a report? Mean this button should start a process for the row, where the button was pressed.
    I didn't find any information about this feature.
    Thank you!

  • How to control more than one instrument via different interfaces at the same time

    Hi, I am new to Labview.  I am working in a project where I have to make a Automated testing tool . So, here is the set up -  I have a Chip on a board to which there are several instruments connected namely Agilent power supply, Agilent pattern generator, oscilloscope,Dmm and Thermotron. All these instruments will be connected to the host computer via ethernet, GPIB or RS232. I have to write a program on Labview where the program  should be able to communicate with these  instruments  at  the same time  and show the ouput  on display unit . I have to run the program once, should be able to view the ouputs. So, Is it possible to write such program in Labview??.  I have  downloaded  few instuments  drivers. Is it possible to combine those intrument drivers and construct a new VI which would be able to control all this ??   Will it be easier to program this on Labview or  I should  go for Labwindows/CVI  ??.
    Please mention some useful sites or tips (if u know) for writing program.
    Thanks in advance
    shasanka

    Hi Shasanka,
    ofcourse it's possible to control more than one instrument at a time.
    You should use the VISA routines to access all your devices. Every device get it's 'address' as 'VISA resource name'. This resource name contains information on the used bussystem and the (internal) device address (i.e. GPIB devices have an address number).
    So I suggest to read the manual and to look at the examples that come with LabView!
    And (from your question) it seems you should take the 3 or 6 hour seminar as well! (Look at www.ni.com -> academics.)
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • Can't connect more than one PC to my network at the same time.

    When trying to connect a second wireless laptop to my network, the one already connected gets disconnected. I'm using a WRT110 router(cable connection) that I bought 5 days ago, and two laptops with Win Vista. I don't have any PC wired connected.

    First thing which you need to do is upgrade the firmware of your Router. Go to website linksysbycisco.com/downloads... ......insert model no of your router in serach tab......select proper version of your router........download the firmware file......save that file on desktop..
    Follow these steps to upgrade the firmware on the device : -
    Open an Internet Explorer browser page on a computer hard wired to the router...
    In the address bar type - 192.168.1.1...Leave the Username blank & in Password use admin in lower case...
    Click on the 'Administration' tab- Then click on the 'Firmware Upgrade' sub tab- Here click on 'Browse' and browse the .bin firmware file and click on "Upgrade"...
    Wait for few seconds until it shows that "Upgrade is successful"  After the firmware upgrade, click on "Reboot" and you will be returned back to the same page OR it will say "Page cannot be displayed".
    Now reset your router :
    Press and hold the reset button for 30 seconds...Release the reset button...Unplug the power cable from your router, wait for 30 seconds and re-connect the power cable...Now re-configure your router...
    Once you configure all the settings on your router... here are some wireless settings which you can set on your Router and i think this might make your both the wireless computers go Online...
    Open an Internet Explorer browser page on your wired computer(desktop).In the address bar type - 192.168.1.1 and press Enter...Leave username blank & in password use admin in lower case...
    For Wireless Settings, please do the following : -
    Click on the Wireless tab
    - Here select manual configuration...Wireless Network mode should be mixed...
    - Provide a unique name in the Wireless Network Name (SSID) box in order to differentiate your network from your neighbours network...
    - Set the Radio Band to Standard-20MHz and change the Standard channel to 11-2.462GHz...Wireless SSID broadcast should be Enabled and then click on Save Settings...
    Please make a note of Wireless Network Name (SSID) as this is the Network Identifier...
    For Wireless Security : -
    Click on the Sub tab under Wireless > Wireless Security...
    Change the Wireless security mode to WEP, Encryption should be 64 bit.Leave the passphrase blank, don't type in anything...Under WEP Key 1 type in any 10 numbers please(numbers only and no letters eg: your 10 digit phone number) and click on save settings...
    Please make a note of WEP Key 1 as this is the Security Key for the Wireless Network...
    Click on Advanced Wireless Settings
    Change the Beacon Interval to 75 >>Change the Fragmentation Threshold to 2304, Change the RTS Threshold to 2304 >>Click on "Save Settings"...
    Now see if you can locate your Wireless Network and attempt to connect...

  • Selecting from one table and Update another in the same Page

    Could someone help me with this HTMLDB task. In my page design, I am selecting data from two tables (masters: DEPT, EMP) which I want to display on the left column of the page and at the same time a user would be able to update another table (ATTENDANCE:with many children) which would have a radiogroup on the right side for each value of the master such as employee name. The placement of data has to appear in corresponding rows on the page. For instance, employee names of the master table must appear on the same row with its corresponding child value. The page would be grouped by DEPT_NO. The user would click on the department name, a new page with the employee name would apprar. From that page, the user would then update attendance column for each employee in that department. In this operation, it is only the ATTENDANCE table that is being updated. I can send out more information about the structure of the tables if you need more information. I tried many HTMLDB options, forms, reports, etc. I have not been able to get quite right. Your help will be appreciated.

    Raju,
    Thanks for responding to my problem. I have actually tried using the example on how-to you sent me a link to but it did not help as I expected. You see, the page would be updated every meeting date for each employee. I can send you more information about the table structure if you like. However, let me see if this will help you a bit.
    Tables are: 1) Dept [dept_no (pk),dept_name] 2) EMP [emp_no (pk),emp_name, dept_no(fk)] 3) Meetings [meet_key(pk),attended, meeting_date, emp_no(fk)]
    What I want to do is create two pages, one would list the departments, when a user selects a department, the user would be linked to a meeting attandance page. The meeting attendance page would list department name once, Meeting date once, and then list employees in that department. At the right column of every employee would be a checkbox for meeting.attended for update. The meeting_date would be pre-populated so that what the user would do is just check Yes/NO. The second page is the one I'm having the most problem with.
    If I can do a fetch from dept, emp, and meetings and then do an update on the Meetings table on the same page, I think that might solve the problem. That was how I solved it in MS Access three years ago.
    Here is email address in case you want to contact me directly. [email protected]
    Thanks again for your help.

  • How to update a report  from a form on the same page when form item changes

    I have a portal form from a table and a portal SQL report with a bind variable on a page. I want the report to get updated with details based upon what was selected from a form item. The form item is a selection from a dynamic LOV. Whenever the form item gets changed, the report should get updated to reflect the change. Can this be done using a javascript ONCHANGE event?
    Oracle Portal Version is 10.1.2.2.0.

    Your applet can open an URLConnection and read directly a document from your webserver.
    public String readText() {
      java.net.HttpURLConnection conn = (java.net.HttpURLConnection)myURL.openConnection(); ...
    }So using JavaScript on your page, you might call readText() to fill that textarea.
    The interesting link you gave, handled the JavaScript/Applet interaction. Test that with just return "Hello";.
    The real programming is more interesting.

  • Accessing form field on a page with JSP code on the SAME page

    Hello people,
    This is what i want to do...
    I need a profile form for my project wherein the user can update his profile.
    it has a username field. I want the username to be changeable at any point of time.
    if the user wishes to change his username he simply goes to the Change_Profile page (the one im talking about) and changes it.
    But the username should not conflict with the username that any other member might have already chosen
    so i put a button on the form right below the field "username" for the user to check for the username's availability.
    I want the following things to happen when the user types a username and clicks on this button (which is not a submit button)
    1. I want to access my MS SQL 2000 server database and check for all usernames accepted by that form
    2. I want to compare each with this username
    3. I want to show the result to the user on the very same page+*. that is "Username available" or "Username Taken"
    4. I want to show the result using an alert message from javascript+*
    help me if u can please.

    1. Don't do SELECT * FROM users for fun unless you want to list them all to the client.
    2. Use a WHERE clause in your query and just check if it returns zero rows or not.
    3. Let the servlet with the business logic forward the request to the same page using RequestDispatcher.
    4. Let the JSP print the Javascript code to the response based on a condition.

  • How to pass a parameter from a report to multiple forms in the same page

    Hi:
    i have a report and a lot of forms in the same page. The fact is that i want to stablish a link over a filed in the report which would make some information appear in those forms so that information could be updated. For example: i have a report with company names. Over those names i want to put a link. When the link would be pressed the forms would reflect the information about that comany. Is this possible to be done? how can i do this or something similar?
    Thanks.
    Regards. Urko.

    Please see post Re: session state security
    It has been done for a single form in a page and can be extended to multiple forms as well.

  • Calling Report from a Form on the same page

    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.

    I am trying to do a similar thing... I have created a form application component and a Report application component which is called from the search form. This works fine.
    I expose the search form as a component and put it on a portal page. I do the same with the report.
    When I call the page and enter the search params in the form and call the report, the report appears in a separate non-portal window. I would like the report in the same portal page to be run in-line with the new parameters.
    Has anyone done this before?

Maybe you are looking for

  • Convert Screen(spool) to PDF file sending mail with attach file

    Hi : I'd like convert spool list to pdf and sending file... so, I read thread about spool convert to PDF before, and know how to convert Spool to PDF file and send mail with attach file. but I have a problem. my solution as: step 1. Call function: "C

  • Integration R/3 ~ APO - Order types

    Hi All, I appreciate if I can get  any input for this scenario. I have 2 sets of TL, one between Plant and DC and the second one is between Plant & customer Master. 1. After deployment run, which are the orders transferred from APO to R/3. 2.After TL

  • Need detailed info about Active,New and Change log table in BI 7.0

    Dear Experts, I am new to this technology. Can you any one explain in very detail about ACTIVE, NEW and CHANGE LOG tables workflows. And also i am requesting you all to give tips to how to study BI 7.0 Regards, Ameer.N

  • Report Top 10 and OTHERS

    Hi, I would like to report the TOP 3 and othres as table and chart on the web report. I am very glad if you advice how to do. Transaction customer1 5000 customer2 6000 customer3 3000 customer4 2000 Customer5 8000 the requirement customer5 8000 custom

  • How does VISA serial write work?

    I am using LabView 6.0 and the VISA functions to run a distributed sensor network using RS-485 from a NT 4.0 machine. In order to work properly I have to manually control the RTS line which isn't a problem using the property node. Here's what I want