Refresh SQL Report Apex 4

Hello everyone,
On one of my pages i have 2 reports. An interactive Report and a SQL Report.(APEX 4.0)
I don't know why Apex doesn't support 2 Interactive Reports on the same page.
I need to refresh this reports on certain moments.Using a Dynamic Action i managed to refresh the Interactive Report, but not the SQL Report.
I notice that in the SQL Report i have no "Enable Partial Page Refresh" checkbox...Is there any way to refresh a SQL Report via Dynamic Actions ?
Thank you!
Kind Regards,
Cearnau Dan

Hi Cearnau,
Try this:
Report Footer:
<script type="text/javascript">
    // Set report id
    $s('P1_REPORT_ID','#REGION_STATIC_ID#'.substr(1));
    // old version
    // $x('P1_REPORT_ID').value = '#REGION_STATIC_ID#'.substr(1);
</script>
HTML Header:
<script type="text/javascript">
function fnc_updateReport(){
    // Report refresh
   $a_report($x('P1_REPORT_ID').value,'1','10','100');
</script>Of course updating the Report with a dynamic action would work as well! :)
Edited by: Tobias Arnhold on Oct 18, 2010 4:47 PM

Similar Messages

  • Refresh SQL Report (Submit Page Item)

    I want to add a search field in a SQL Report. I have something like this
    SELECT * FROM emp
    WHERE  emp_no  LIKE  :P1_SEARCH || '%'I want to do the search asynchronous, on keypress. The problem is that a SQL Report doesn't have a "Submit Items:" atribute like a interactive report.
    So after i refresh the report:
    $a_report($x('P1_REPORT_ID').value,'1','10','100');The report is refreshing (the circle icon on top of the screen) but nothing changes cause the :P1_SEARCH doesn't submits.
    How could i submit a page item from JS ?
    King Regards,
    Cearnau Dan
    PS: I'm using APEX 4 and using dynamic actions it's the same like the Javascript call.(still doesn't submits the :P1_SEARCH item)

    Hi Dan,
    I would suggest not to use the undocumented
    $a_report($x('P1_REPORT_ID').value,'1','10','100');It's very likely that it will be changed in APEX 4.1
    Dan.Cearnau wrote:
    PS: I'm using APEX 4 and using dynamic actions it's the same like the Javascript call.(still doesn't submits the :P1_SEARCH item)That's true, but have a look at Anthony's blog posting http://anthonyrayner.blogspot.com/2010/07/report-filtering-with-apex-40-dynamic.html which explains a workaround to pass the new values for a classic report as well.
    Regards
    Patrick
    My Blog: http://www.inside-oracle-apex.com
    APEX 4.0 Plug-Ins: http://apex.oracle.com/plugins
    Twitter: http://www.twitter.com/patrickwolf

  • Refreshing sql report region based on values from another region - 4.0

    Greetings All,
    I have a page with two regions, say region 1 and region 2. I have a before header process that fetches values from db based on criteria entered from another page. Region 2 is a sql report region with bind variables from region 1. When this page is rendered region 1 renders properly however sql report region always returns no records. What am i missing here?
    I would like to have the region 2 render a report based on the values from region 1. Region 2 has a sql query that looks something like
    select
    colum 1,
    column 2,
    column 3
    from table t1
    where t1.c1 = :p10_item1
    and t1.c2 = :p10_item2Using apex 4.0
    thanks
    Seetharaman

    If these items hidden, try making them display only .
    Also what happens when you move the items from region 1 to region 2.
    From my experience items do not have much of a dependency on the region they are attached to other than cases when the region is not rendered(when its condition fails) and then the item values become null(bcoz they themselves are not rendered).

  • Refresh PL/SQL Report Region (not Page) using Select List value

    Hi,
    I've got a report region based on a 'PL/SQL function body returning a SQL query'which gets generated on selecting a value from a Select list item, The Select List action is 'Redirect and Set value' but this causes the whole page to refresh rather than just the report region. I've tried to refresh the report only using a dynamic action on the Select List item (Action now reset to  'None') but now the report is not appearing on choosing from the List. Can anyone suggest a solution that will allow me to refresh this report without refreshing the page? I am using APEX 4.2.2 and the report syntax is as follows:
    DECLARE
      v_statement VARCHAR2(500);
    BEGIN
      SELECT query_text
        INTO v_statement
       FROM sql_queries
       WHERE query_id = :P2_QUERY ;
       RETURN v_statement ;
    END ;
    where P2_QUERY is Select List Item,
    regards,
    Kevin.

    KevinFitz wrote:
    The report region being displayed is conditional on P2_QUERY item being NOT NULL. I assume the region not appearing is because the Action for the Select List Item is set to None and so P2_QUERY is always NULL.
    No, the region is not appearing because it is conditional on P2_QUERY being NOT NULL. This means that the report region never exists on the page shown in the browser, so it can't be dynamically refreshed. (Dynamic refresh doesn't evaluate region conditions, and it only re-renders the report content, not the entire region.)
    Remove the condition on the report region, check the refresh is working, then reconsider exactly what the requirements here are. If you want the region to appear only when P2_QUERY has a value, and you want it to be refreshed without submitting and re-rendering the page, then the region needs to be hidden rather than conditionally rendered, and shown via a dynamic action when P2_QUERY gets a value.
    I tried adding an additional Set Value True Action for the DA event but got an error as listed above,
    All irrelevant if Page Items to Submit on the region is used properly.

  • SQL Report Region Refresh

    Application Express 4.0.2.00.09
    Oracle 11 XE
    How do I setup a Dynamic Action to refresh my region every X number of seconds? I can refresh the region easy enough on events, but I can't seem to figure out the timing thing. Maybe I just need some sleep...
    Austin

    Joe -
    Interestingly enough, I have not yet found a good way to alter the Report Region title with the last update time. I would think there is a way to do it, but I do not currenlty have that knowledge, nor the time to thoroughly investigate how to do it. I do have a bit to share about the mechanics of the refresh discussed earlier in this thread.
    Consider this code, place in the footer of a SQL Report Region:
    <script type="text/javascript">
    <!--
      var d = new Date();
      document.write("Last Updated: " + d);
      setInterval("jQuery('#INTRADAY_IRR').trigger('apexrefresh');", 2000);
    -->This will place the date as a footer to the SQL report. The javascript will then refresh the report every two seconds. (or whatever timeframe you specify) Now, in my SQL for my report, I added an additional column that is the current time. My SQL would look something like:
    SELECT foo,
            bar,
            to_char(sysdate, 'HH24:MI:SS') update_time
    FROM dualThis SQL will show when the data was last fetched from the database, while the footer of the region shows the time when the region was loaded by the browser.
    If you run the page with these, or similar, parameters, you will notice that the update_time column in the report changes with each refresh, however, the region footer does not change. This is because the script isn't called everytime the data is refreshed. This would indicate that using the methodology mentioned previously in this thread, the entire region is not refreshed but simply the dataset and the report itself. This would mean that you would have a quite difficult time updating the region title from the SQL code alone... I'm not saying it is impossible, I just don't know how to do it...
    Having said that- I do have a work around.
    Consider this as the region title:
    <div id="MyUpdatedReport" ></div>Now consider this code in the region header:
    <script type="text/javascript">
    function getUpdatedDate() {
      var d = new Date();
      document.getElementById('MyUpdatedReport').innerHTML="Region Title - Last Updated: " + d;
      t=setTimeout('getUpdatedDate()',2000);
    </script>And this in the region footer:
    <script type="text/javascript">
    <!--
      setInterval("jQuery('#INTRADAY_IRR').trigger('apexrefresh');", 2000);
      getUpdatedDate();
    -->
    </script>We create a DIV tag as our header. Then we have a function in the header that updates our div tag every two seconds. In the footer, we tell APEX to refresh the data every two seconds, and we tell our function to begin working. Effectively, you have a timestamp indicating when, theoretically, the data should have been refreshed. Now, this timestamp in the Region Title is NOT the true update time, but, theoretically it should be close. You should probably test this to see if you want to use it. Personally, I don't like this solution and I don't think I would ever implement it in any sort of production application. However, in an application that is just for me, I might hack something like this up.
    The key part of this work around would be to keep your times synchronized. It would be of no benefit if APEX was refreshing the data every 60 seconds but the title was refreshing every 6 seconds. Yikes, that could confuse a few people.
    I hope this has been a help.
    Austin

  • Partially refresh the sql report region by clicking the region selector tab

    Hi,
    In my page i have a region display selector tab. This region selector tab contain show all,booking,service,.. etc. when i click the booking tab,sql report region will appear. My intention is when i click the booking tab i want to refresh that region partially to display the record according to sql query in that region source of report region.
    how to do this?
    skud.

    KevinFitz wrote:
    The report region being displayed is conditional on P2_QUERY item being NOT NULL. I assume the region not appearing is because the Action for the Select List Item is set to None and so P2_QUERY is always NULL.
    No, the region is not appearing because it is conditional on P2_QUERY being NOT NULL. This means that the report region never exists on the page shown in the browser, so it can't be dynamically refreshed. (Dynamic refresh doesn't evaluate region conditions, and it only re-renders the report content, not the entire region.)
    Remove the condition on the report region, check the refresh is working, then reconsider exactly what the requirements here are. If you want the region to appear only when P2_QUERY has a value, and you want it to be refreshed without submitting and re-rendering the page, then the region needs to be hidden rather than conditionally rendered, and shown via a dynamic action when P2_QUERY gets a value.
    I tried adding an additional Set Value True Action for the DA event but got an error as listed above,
    All irrelevant if Page Items to Submit on the region is used properly.

  • Create Simple Printable SQL Reports in APEX 3.2 Without a Print Server

    Oracle Apex 3.2
    Oracle 11g
    OHS
    I thought I'd post an answer on how to get a printable SQL report in Oracle Apex without having to configure a print server. I'm sure that similar things have been posted in various other places, but I found the documentation for using custom row templates (to create a printable report) to be incomplete at best. For my needs, I was not looking for an awe inspiring report printout, but rather simple directory information printouts. For example, if you wanted a printable report to look like this:
    =================================
    CURRENT ACTIVE EMPLOYEES REPORT
    =================================
    First Name: Bob                  Employee ID: 0000000000
    Last Name: Swarts              Company Credit Card Number: 0000-0000-0000-0000
    Middle Initial: F                  Social Security Number: 000-00-0000
    First Name: Sue                  Employee ID: 1111111111
    Last Name: Johnson           Company Credit Card Number: 1111-1111-1111-1111
    Middle Initial: G                 Social Security Number: 111-11-1111
    etc.....In MS Access, doing this is very easy. From what I understand, this is also very easy to do this using PDF software with a print server. However, if you are like me, you don't want to waste time and money by obtaining and configuring a print server (even if it is free). However, never fear because you can create simple reports like this with relatively minimalistic effort; and you can do so without having to configure a print server.
    1.) Create a new page
    2.) Create a new sql query report region on the page
    3.) Make your query just as you would normally.
    For this example the query would be:
    select first_name, employee_id, last_name, company_credit_card_number, middle_initial, social_security_number from employee_table4.) Go to "Shared Components"
    5.) Under "User Interface" click on "Templates"
    6.) Click on the "Create" button
    7.) Select "Report"
    8.) Select "From Scratch"
    9.) For the "Template Class," choose one of the "custom" classes. For the "Template Type," choose "Named Column"
    10.) Click the "Create" button
    11.) Now that you created a custom row template, go back to "Shared Components" and then to "Templates"
    12.) Find your custom template and click on it
    CUSTOM TEMPLATE HOW TO
    1.) In the "Row Template 1" textbox, you are going to create some custom css that will display the data on the page. The css to make the report look like the report above would be:
    <div style = text-align: justify">
    <table>
    <tr>
    <td style = "width: 200px"><b>First Name: #1#</b></td>
    <td style = "width: 225px">&nbsp</td>
    <td style = "width: 215px"><b>Employee Id: #2#</b></td>
    <tr>
    <td style = "width: 200px">Last Name: #3#</td>
    <td style = "width: 225px">&nbsp</td>
    <td style = "width: 215px">Company Credit Card Number: #4#</td>
    <tr>
    <td style = "width: 200px">MI: #5#</td>
    <td style = "width: 225px">&nbsp</td>
    <td style = "width: 215px">Social Security Number: <b>#6#</b></td>
    </tr>
    </table>
    <p style = "page-break-after: always">----------------------------------------------------------------</p>
    </div>
    {code}
    As you probably figured out, the numbers between the two pound signs ("#") are substitution strings for the variables in your select query in the SQL report.  As you have also probably noticed, the "page-break-after: always" line will always make it so that only one report is shown on a page.  To fix this, we will need to use logic and row template 2.
    2.)  For the "Row Template 1 Condition," select "Use Based on PL/SQL Expression" from the select list.
    3.)  In the textbox for the row template 1 expression enter in the following:  {code}substr('#rownum#',-1) = 0 or substr('#rownum#',-1) = 5{code}
    ***** This condition will make sure that this template is applied when the last digit in the row number is either a "0" or a "5."  So, only 5 reports will be displayed per page.
    4.)  Now go down to "Row Template 2" and enter in the following in the textbox:
    {code}
    <div style = text-align: justify">
    <table>
    <tr>
    <td style = "width: 200px"><b>First Name: #1#</b></td>
    <td style = "width: 225px">&nbsp</td>
    <td style = "width: 215px"><b>Employee Id: #2#</b></td>
    <tr>
    <td style = "width: 200px">Last Name: #3#</td>
    <td style = "width: 225px">&nbsp</td>
    <td style = "width: 215px">Company Credit Card Number: #4#</td>
    <tr>
    <td style = "width: 200px">MI: #5#</td>
    <td style = "width: 225px">&nbsp</td>
    <td style = "width: 215px">Social Security Number: <b>#6#</b></td>
    </tr>
    </table>
    <p>----------------------------------------------------------------</p>
    </div>look familiar? that is because it exactly the same code as above, except without the page-break-after piece.
    5.) For the "Row Template 2 Condition," select "Use Based on PL/SQL Expression" from the select list.
    6.) In the textbox for the row template 2 expression enter in the following: substr('#rownum#',-1) != 0 or substr('#rownum#',-1) != 5***** This condition will make sure that this template is applied when the last digit in the row number IS NOT a "0" or a "5."
    7.) Scroll down to column headings and enter this in the textbox for the "Column Heading Template": OMIT
    8.) Click the "Apply Changes" button
    9.) Now go back to your application and the page you want to apply the custom report to
    10.) On the report, click on the report tab
    11.) Scroll down to "Layout and Pagination"
    12.) Click on the "Report Template" select list
    13.) Select your custom template
    14.) Click the "Apply Changes" button and run the page
    Try printing the report, if it does not print correctly, try it in Opera, Safari, Internet Explorer, Firefox, and Google Chrome. Please note that it is my understanding that only Firefox does not understand the css "page-break-after: always"
    If needed, add some css to the page to hide tabs and other items when you print.
    ~Andrew Schulltz

    DOH. Too much copy/paste.
    In my code, I was setting an application variable to contain the email address I was retrieving from AD. Once commented out, it worked fine.
              IF l_attr_name = 'mail' THEN
                 APEX_UTIL.SET_SESSION_STATE('F111_USER_EMAIL',l_vals(i));
              END IF;

  • Oracle APEX PL/SQL reports

    Hello
    I was wondering if someone can help me with the syntax error, or if someone can give an example how to implement dynamic query based on a select list item.
    Last night I was looking how to implement simple PL/SQL report using Oracle Apex source region, but every time I try to run the page I'm getting an error "Flow=128 page=10 ORA-20001: wwv_flow_flash_chart.func_ret_sql_qry_err"
    IF I put the same query into SQL developer and replace :P10_STATUS into string 'open', query returns correct results.
    It works fine for single table, but not for inner joint.
    Any help would be appreciated.
    ======================================================
    declare
    v_return varchar2(3000);
    begin
    IF :P10_STATUS is not null THEN
    v_return := 'select p.priority, p.status, i.departments
    from help_details p, help_department i
    where status = :P10_STATUS';
    END IF;
    return v_return;
    END;
    =========================================================

    Hi ATD,
    Thanks for the suggestions.
    Now i have replaced the code as
    Declare
    v_return varchar2(3000);
    begin
         :P1_ITEM1:=:P1_DEPTLOV;
    IF :P1_DEPTLOV IS NOT NULL
    THEN
    v_return:='select dname,deptno from dept ';
    return v_return;
    ELSE
    V_RETURN:='SELECT ename,deptno FROM EMP ';
    return v_return;
    END IF;
    plsql reportEdit      
    report error:
    ORA-20001: Error fetching column value: ORA-01403: no data found
    DEPTNO     Ename
    and in case i change
    select dname from dept ; for select dname ,deptno from dept ;
    then i m able to see only the col deptno , but in query i never used dept...
    I am unable to get where is the mistake ..
    Kindly to a favour by using the above link & checking the application .
    Regards,
    Nandini Thakur.
    Edited by: Nandini thakur on Nov 25, 2010 3:59 AM

  • APEX 3.0: Create SQL Report Wizard raises a Javascript error

    Hi,
    in the "Create SQL Report Wizard" (Create Page/Report/SQL Report) when you click onto the "Generic Columns" radio group the following JavaScript error is displayed.
    disItem.style has no properties
    disableItems("html_RadioValue('P4795_GENERIC_COLS')=='N'", "P4795_MAX_COLUMNS", undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined)
    Patrick
    Check out my APEX-blog: http://inside-apex.blogspot.com
    Check out the ApexLib Framework: http://apexlib.sourceforge.net

    Sharon,
    sorry was not clear enough. It's just a Javascript error which shows up, it doesn't stop me to create the report. I just noticed that there seems to be a functionality which isn't completely implemented.
    I'm using FF 2.0 with the Firebug plugin, that's why I immediately see if an error occurs on a page.
    Reproduced the same behavior on apex.oracle.com
    1) Create Page
    2) Report
    3) SQL Report
    4) Press Next
    5) Press Next
    6) Click on "Generic columns" radio option
    7) In FF go to Tools/Error Console => you should see the error (maybe you have to filter for Errors)
    Patrick
    Check out my APEX-blog: http://inside-apex.blogspot.com
    Check out the ApexLib Framework: http://apexlib.sourceforge.net

  • SQL REPORTING 2008, 2012 - WHEN I CHANGE A PARAMETER WE HAVE ALWAYS A SCREEN REFRESH (POSTBACK)

    hi,
    my name is Pedro Mesquita, from Portugal Europe.
    i have this problem with my client and it seems it is common to all other projects : i have a report with parameters depending on each other (but curiously this happens also with reports without depending parameters and the order for which thay are created
    counts!) and when the user changes one parameter the screen (sql reporting front-end) does a postback and refreshs! is this by design by microsoft ?! the client wants to keep the previous rendered report to help him build the new one.
    how can i avoid this?
    microsoft help please?
    best regards
    Pedro Mesquita

    Oh Microsoft.....
    This means that we must build our front-end to control this "feature"....
    AJAX would solve this....
    Thank you.
    Best Regards,
    Pedro
    Pedro Mesquita

  • 3.1EA2: Automatic refreshing of report brings SQL Dev to front

    Hallo Forum,
    today I stumbled upon some strage behaviour of SQL Developer 3.1.06.44.
    I have created a report which is actually just a select count(*) from... with some parameter. When I call the report I'm asked for the parameter and presented the result.
    So far so good. But when I now set the auto refresh to 30s, SQL Developer jumps to front every 30s or at least tries to do so indicating that by blinking task bar icon.
    I think the application should not push around the input focus while refreshing a report. If it's in the background it should stay there and silently refresh its window.
    I use SQL Dev 64bit und Windows 7 64bit with JDK 1.6.0_29 and am connecting to Oracle 11.2.0.2.0 64bit on Windows 2008R2 64bit.
    Edited by: dhalek on 28.11.2011 03:03

    Thank you, Phil.
    This worked for me in my quick test case.
    Great help, as DBA group wants to allow NON-privileged users (like Developers and QA) to execute ADDM on demand.
    Here is my observation for RAC database with two instances.
    I have followed your instructions:
    "Performance / Automatic Database Diagnostic Monitor -> Run ADDM"
    Then
    - Uncheck box "By Creating New Snapshot" (this box was checked by default)
    - Provide new "Task Name" (let's say "vr1")
    - Select "Start Snapshot" (this is where my first confusion is: each screen shot # is shown twice, may be because i have two instances of RAC)
    - Select "End Snapshot" (the same way: each SNAP_ID is shown twice)
    - and finally APPLY button is pressed
    This creates 3 reports:
    vr1
    vr1$1 (for instance_id=1)
    vr1$2 (for instance_id=2_
    So, my question is: this expected and normal behavior of the tool?
    What if my RAC database has 8 instances? Then I would generate 9 separate ADDM reports?
    Is this correct observation?
    Thank you,
    vr

  • Apex 4.2 dynamic action to refresh a report region on a different page

    Hi,
    I open up a pop up window from a report region. When the user is done in the pop-up window and closes it, can I trigger a refresh on the report region using dynamic actions without actually reloading the whole page? I know I can use dynamic action on a page to refresh the report region on the same page.
    Thanks,
    Sinan

    Sinan,
    So long as the region to be refreshed is still loaded, you can do this. I don't know how you are loading your pop-up or unloading it but, the principle should be the same as what I provide below.
    Assume that you have set the static ID for your report to MY_REPORT. (Be sure you have checked "Allow Partial Page Refresh" in the Report Attributes).
    $('#confirmBox').find('div#userConfirmationMessage').html( '<span class="userInputRequest">Would you to Refresh your Report?</span>' );
    $('#confirmBox').dialog(
        autoOpen: true,
        modal: true,
        title: 'Refresh Conformation',
        buttons:
            'No': function ()
                $(this).dialog('close');
            'Yes': function ()
                $(this).dialog('close');
                 $('#MY_REPORT').trigger('apexrefresh');
    -Joe

  • Resizing the SQL report in APEX

    Hi,
    I am using SQL Report, it has just 2 columns and three buttons.
    But the report size width is full, extends fulls screen.
    I am using Theme 9, Underlined
    Template: Reports Region Alternative 1
    I verified another application which I have done some months back, a report there has the same settings, but the display is perfect, it just occupies 40% of the screen, unlike the current report which is 100% wide :-|
    Please let me know what changes can be done.

    Hi,
    The right solution for this problem was, I resized the report region:
    Edit Region->Attributes->Region Attributes->style="width:400px"
    This resolved the issue.
    Thanks for all your suggestions.

  • SQL Report Region

    Hi,
    I am using apex 4.0.1 and I have a page with several SQL Report regions. The user can edit the data in the report regions by clicking a column that uses a href link to open a DML page in a modal window. The user can then amend some data in the modal window, press save which closes the modal window and uses the partial page refresh process to refresh the SQL report region. (Using apex.event.trigger('#SOME_REGION'),'apexrefresh')).
    If I navigate through the report to show rows 31-45 and then click on a href to edit a record. On pressing save, the report is refreshed but the rows displayed goes back to 1-15.
    How can I get the report to stay showing the rows 31-45?
    Cheers
    Paul.

    I believe this answers my question
    http://monkeyonoracle.blogspot.com/2010/11/refresh-report-region-and-pagination.html
    Edited by: pjturley on Jan 10, 2012 1:14 PM

  • $a_report to refresh a report but it is not picking up the bind variable

    Hi
    APEX          -     Application Express 4.1.0
    Browsers     -     All
    Database     -     11g2
    I have a tree region on a page. When a user clicks a leaf of the tree I want to be able to use the ID to refresh a report in a different region on the same page
    Code for when the user clicks the leaf
    $('div.tree li a').click( function() {
    node_id = $(this).parents('li:first').attr('id');
    if (node_id.substr(0,node_id.indexOf('|')) == 'Y')
    $s('P4_SELECTED_VALUE',node_id.substr(node_id.indexOf('|')+1));
    alert('Value Set: ' + $v('P4_SELECTED_VALUE'));
    //$a_report('28576803999973770','1','20','20');
    $a_report($v('P4_REPORT_ID'),'1','20','20');
    SQL Statement
    SELECT *
    FROM PRODS p WHERE PROD_CODE = :P4_SELECTED_VALUE
    The problem I have is that when the report is run (I know it is refreshing) the P4_SELECTED_VALUE bind variable is set to NULL.
    The alert pop contains the correct value and when I make the P4_SELECTED_VALUE visible it also contains the value?
    Any help is much appreciated
    Rob

    Rob,
    You need to insert P4_SELECTED_VALUE value into APEX session before refreshing the report.
    Add following JS function in your page
    //insert value into session using JS
    function fnSetSessionState(pItem, pValue) {
        var vAjaxDummy = new htmldb_Get(null, $v('pFlowId'), null, 0);
        vAjaxDummy.add(pItem, pValue);
        var vDummy = vAjaxDummy.get();
        vAjaxDummy = null;
    }and your code..
    $('div.tree li a').click( function() {
    node_id = $(this).parents('li:first').attr('id');
    if (node_id.substr(0,node_id.indexOf('|')) == 'Y')
    $s('P4_SELECTED_VALUE',node_id.substr(node_id.indexOf('|')+1));
    alert('Value Set: ' + $v('P4_SELECTED_VALUE'));
    fnSetSessionState('P4_SELECTED_VALUE',$v('P4_SELECTED_VALUE'));
    //$a_report('28576803999973770','1','20','20');
    $a_report($v('P4_REPORT_ID'),'1','20','20');
    });This is how I used to do in version 3.2 or before. But now I prefer to use Declarative dynamic actions..
    Regards,
    Hari

Maybe you are looking for

  • Directory problem with tomcat

    Hi, i face a problem when trying to deploy my apps in tomcat4. Because my URL that point to my servlet is very long e.g.: http://222.222.222.222/abc/def/ghi/jkl/myServlet because of some constraint i need to put the myServlet in /jkl folder instead o

  • Multiple target files - Idoc to File scenario - Simple question

    Hi,    I have a simple IDOC to File scenario. However at the occurence of a node say node A I need to generate a file For example if the input IDOC has 3 Nodes for Node A I need to have 3 different files one for each node. Any help is appreicated. Th

  • How to embed video files

    Hello  there, I want to embed video files to my web page.I am having .mts, .mov and .mpg files. Please help me....How can i embed all these files. Thanks in advance.

  • Having Problem with Code Snippet on Button

    I have imported a psd template into Flash to link my buttons to a webpage, not sure which to use AS2 or AS3 , so I locked all the other layers on the template. right clicked on the actual button I wanted [linked] > Covert To Symbol > Gave Instance Na

  • Clustered Reports 9i Servers

    Hi, Trying to setup two reports 9i servers in a cluster (NodeA.repserv and NodeB.repserv) but having some problems getting them to sync. The servers are installed on seperate mid-tiers on the same subnet. Having problems with one server creating a jo