Reset report pagination using javascript / ajax ?

Hiho,
i have a page where i pull a ppr report from a different page using htmldb_get like described in Carls excellent examples. The first page also contains a textfield to set a where condition in the report, for examle to search a streetname..
Now i need a way to reset the pagination of the report using javascript.
Example:
I search for street_name_1 and the report returns 100 rows, 10 rows on each page. Now i use the pagination links to switch throught report pages to page 5.
Now i search for street_name_2 and the report returns 5 rows, so this would only be one page in the report. But the report pagination still is on page 5, so no results are shown. And no pagination buttons either.
What can i do to reset the pagination before i pull the report without submitting the page?
Thanks for help,
DIrk

I have similar problem with AJAX report pagination. When I click the pagination for next set of rows, it gives "undefined" error. I'm trying to call "get.clear('RP');" in the javascript function as susggested in above url, but doen't work. any examples are appreciated.
thanks,
Surya

Similar Messages

  • Retrieving and Resetting textEdit Content Using JavaScript

    I need to retrieve the content within a textEdit box using JavaScript, and then append a String to that content, and re-enter that content as the inner content of a textEdit box.  Does anyone know how to do this? 
    I tried using jsObjectNeeded for textEdit, but it is an invalid parameter for that object.  I also tried grabbing the ID in a round-about way in JavaScript using _1texteditor or _1htmlbeditor, but I get an "Object Expected" error everytime.
    Here is the item I am working with, and within my JS method, I need to grab the text inside, append a string to it, and reset that new content as the text within the edit box.
    <hbj:textEdit id="summaryBox"
       text="Add summary here."
       wrapping="SOFT"
       tooltip="Add summary here."
       rows="5"
       cols="70">
    This is the content inside the box.
    </hbj:textEdit>
    Thanks in advance for your help...

    Thank you for your help, guys, but neither suggestion solved my problem and I solved it on my own.  You have to find the parameter ID through a line of Java, like Damian had mentioned about an ID, but I was looking for the value within the textEdit, not the ID. 
    In the JavaScript method, you set a variable to the Java variable, which found the parameter ID.
    Then, using that JS variable, you do:
    var blah = <%=javaParameterId%>;
    var funcName = htmlb_formid+"_getHtmlbElementId";
    func = window[funcName];
    var textEditField = eval(htmlb_formid + "." + blah);
    var wordsWithTexEdit = textEditField.value;
    Thanks anyways...

  • Reset form using javascript

    Hello,
    I am using jdev 11.1.1.6
    I want to know how to reset the form using javascript.
    For instance...<af:resetActionListener/> does it in jsff
    I need similar implementation

    One solution could be calling a backing bean method from client and reset the form in the backing bean method.
    var customEvent = new AdfCustomEvent(evt.getSource(),"resetFormEvent",null, true);
    customEvent.preventUserInput();
    customEvent.queue(true);

  • Set value of a display only item using javascript

    I was trying to find an answer in the forum but my searches gave me no results. How do
    I set a value of a display only item using javascript (ajax)?
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://htmldb.oracle.com/pls/otn/f?p=31517:1
    -------------------------------------------------------------------

    Vikas,
    Thanks for a fast responding. The type is Saves State. However, I tried to set the value
    of a display only item using:
    <script>
      function f_setDisplayOnly ()
        {$x('P80_X').parentNode.childNodes[4].nodeValue = 1;
    </script>without a result (or error). What am I doing wrong?
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://htmldb.oracle.com/pls/otn/f?p=31517:1
    -------------------------------------------------------------------

  • Custom JSP, Javascript (Ajax) request.url

    Hi,
    Im very new to java. Maybee Im not in the right forum :-/ could be a tomcat question.
    I create a custom jsp for teaming and trying to load some information from database.
    Using javascript(Ajax) request.url to call "get.jsp" to load from db.
    PHP Code:
      var url="companyDetails.jsp?companyId=" +tmp
                       http.open("GET", url, true);
                       http.onreadystatechange = callBack; 
    On my development machine everything right. But on teaming prod we get a 404.
    Placing the *.jsp files in the clustom_jsp folder.
    Q1: Maybee I tried wrong URL ?
    Q2: May I have to use webServices like SOA ?.
    In this case Is the Ajax call = a WebService ?
    Q4: Or I have to auth over url at server level.
    Thanks
    *T

    Originally Posted by tbrinkmann
    re...
    are there some teaming, vibe jsp, java application programmer in case of custom application programming in the forum ?
    Ore only admins and users ?
    Thanks
    *T
    Maybe you will get better answers here: Kablink Vibe
    Thomas

  • Child Report Window Size XI 3.0 SP2 Using Javascript

    Hi All,
    I have to admit this is not my area  . I'm trying to get a new webi report in a sizeable window using javascript. I want to achieve this by selecting an open doc link from an existing webi report.
    We have been trying with the code below but get the 404 Missing Page error.
    We have been trying to get this to work on Edge. Do I need to install any SDK on to the system to get this to work?  Can anyone let me know the steps, please.
    Thanks...
    Mark
    Code:
    "<a href=__\"javascript:window.open('../../opendoc/openDocument.jsp?iDocID=Aa252KU2ReBDm4TkGkVTOLM&sIDType=CUID&sType=wid&sReportPart=UIREF%3ARID%3D1005%3ABID%3D1008&mode=Part&sRefresh=N&sWindow=New','SAMPLE ','width=350,height=250') \" title=\"\" target=\"_self\" nav=\"doc\">"[Actual].[Kpi Group]"</a>"

    Thanks for the response Guys.
    I have done a bit more digging and I think that you can only create a link referencing Java script in a  crystal report, not Webi?
    One way I thought of getting round this is to create a copy of opendocument.jp and add my Java script, in there, to resize my child window.
    Any comments or experiences to share?
    All the Best,
    Mark.

  • Using Javascript in a report region

    I have a text box that I need to populate with an amount for billing. There is also a field that shows the amount due. If the amount due is equal to the amount being paid, I want my user to click on the amount due, and it automatically populates the amount being paid. I am using the javascript:setValue('destination','origination'); command, but the problem is that I am unable to choose the text field in the javascript. I have tried using #value# aliasing, and htmldb_application.g_f0x and just f0x... nothing seems to properly alias the text box within the tabular form. Any ideas?
    Thanks,
    Scott

    Scott,
    I know a way to do this, but it is not an easy implementation and it is quite hard to explain. Carl is an Oracle guy so he may know of a better solution, but here is what I came up with on my own:
    First let's be familiar with the htmldb_item syntax (found in the html db documentation):
    HTMLDB_ITEM.TEXT(
    p_idx IN NUMBER, -- unique id
    p_value IN VARCHAR2 DEFAULT NULL, -- value of item
    p_size IN NUMBER DEFAULT NULL, -- HTML tag attributes
    p_maxlength IN NUMBER DEFAULT NULL, -- max length
    p_attributes IN VARCHAR2 DEFAULT NULL, -- HTML elements including where you incorporate the javascript for this item
    p_item_id IN VARCHAR2 DEFAULT NULL, -- id you can specify
    p_item_label IN VARCHAR2 DEFAULT NULL) -- labe you can specify
    I would create your report region using the following sql statement:
    select order_number "Order Number",
    name "Name",
    amount_due "Amount Due",
    lpad((ROW_NUMBER() OVER (ORDER BY order_number)),4,0) "Row Num",
    htmldb_item.text(7,amount_paid,null,null,null,'f07_'||lpad((ROW_NUMBER() OVER (ORDER BY order_number)),4,0) "Amount Paid"
    from tbl_orders
    where....
    order by order_number
    --i had to use an order by to get the ROW_NUMBER() to work
    This will create on every row an item that is specific to the row number. For example:
    Row # Amount Paid text box item ID
    1 f07_0001
    2 f07_0002
    500 f07_0500
    etc.
    This will allow you to reference items based on what row they are when using javascript.
    Next you need to create a link out of the the amount_due column. Go to the Report Region, then the Report Attributes tab. Click on the edit link for the amount_due column. Go to the Column Link section.
    Make link_text = to the value of amount_due column(#amount_due# probably)
    Make the Target = URL
    Make URL = javascript: setValues('#AMOUNT_DUE#','#ROW_NUM#');
    This will send the value of amount due and the row number.
    Here's the javascript you would put in your HTML Header on you Page Attributes:
    <script language="JavaScript1.1" type="text/javascript">
    function setValues(due, rownum){
    document.getElementById('f07_'+rownum).value = due;
    </script>
    Give that a shot. I just created a page and got that to work.
    Chris

  • Fetch table value in BEX Web report using Javascripts, and assign condition

    Hi Gurus,
    I am currently using WAD 3.5. I need to change the web report to behave like below :-
    1. Default layout (Field A B C) with condition A & B activated.
    2. If the drilldown Field B and C is removed, leaving only field B alone in the report drilldown, deactivate condition A & B, Activate condition C & D.
    3. the above can be reversed where user drilldown field B & C into the layout, the condition A & B need to then be activated back.
    So I believe this can be done using Javascript. So my questions are below
    1.) How do i fetch table value for the navigationblock ? with navigationblock i am able to know what are the columns are in the drilldown (i will not display free characteristics, so ignore this part). how do i read the content of NAVIGATIONBLOCK_1 as shown in following code? using javascript.
    <P><object>
             <param name="OWNER" value="SAP_BW"/>
             <param name="CMD" value="GET_ITEM"/>
             <param name="NAME" value="NAVIGATIONBLOCK_1"/>
             <param name="ITEM_CLASS" value="CL_RSR_WWW_ITEM_NAV_BLOCK"/>
             <param name="DATA_PROVIDER" value="DATAPROVIDER_1"/>
             <param name="SHOW_FREE_CHARACTERISTICS" value=""/>
             <param name="SHOW_NAVIGATION_ICONS" value=""/>
             <param name="SHOW_FILTER_ICONS" value=""/>
             ITEM:            NAVIGATIONBLOCK_1
    </object></P>
    2.) After question 1.) is done, please advice how do i activate/deactivate the conditions? based on the fields found in above. Maybe I can use IF navigationblock_1 contain field A only, then set condition A & B , etc.
    <p><object>
             <param name="OWNER" value="SAP_BW"/>
             <param name="CMD" value="GET_ITEM"/>
             <param name="NAME" value="CONDITIONLIST_1"/>
             <param name="ITEM_CLASS" value="CL_RSR_WWW_ITEM_CONDITION"/>
             <param name="DATA_PROVIDER" value="DATAPROVIDER_1"/>
             ITEM:            CONDITIONLIST_1
    </object>
    I would appreciate if we can solve Question 1 first before proceed to 2.)
    Please advise. Thanks

    Hi JTi,
    what i have understood from your requirement is that you want to access the web item table_1 in javascript, you can get that as below:
    Add
    <span> 
    tag before your web item and set its id to table.
    <span id = "table">
    <param name="OWNER" value="SAP_BW"/>
    <param name="CMD" value="GET_ITEM"/>
    <param name="NAME" value="TABLE_1"/>
    <param name="ITEM_CLASS" value="CL_RSR_WWW_ITEM_GRID"/>
    <param name="DATA_PROVIDER" value="DATAPROVIDER_1"/>
    <param name="GENERATE_CAPTION" value=""/>
    <param name="CAPTION" value="jezel"/>
    <param name="ONLY_HIERARCHY_NAVIGATION" value="X"/>
    <param name="BLOCK_SIZE" value="0"/>
    <param name="SHOW_PAGING_AREA_BOTTOM" value=""/>
    ITEM: TABLE_1
    </span>
    In javascript access it as :
    var mytable = document.getElementsById("table");
    Hope this helps
    Thanks
    Dipika

  • How to reset report to first pagination page each time it runs?

    On a report with paging...heres the scenario:
    Go to page 2 and run a report.
    The report has 100 rows which page by 15 rows at a time.
    I go to the 3rd pagination page which has rows 45-60.
    I then navigate to page 300 in the application and do whatever.
    When I return to page 2, it is still on the 3rd pagination page.
    but I want it to return to the 1st pagination page.
    How do I make sure every query returns to its first pagination page rather to the page I was last on?
    Thanks,
    Linda

    You can also create a process on Page 2 that resets the pagination based on whether or not the current request is a next/prev page.
    Create a pagination reset process on page 2, then condition it with a PL/SQL expression of
    (:REQUEST IS NULL) OR (:REQUEST NOT LIKE 'pg_R_%')
    This is based on Vikas' recommendation at Re: How to reset pagination

  • How reset Acrobat form field using javascript API

    How reset Acrobat form field using javascript API

    There are several ways:
    resetForm(["Text1"]);
    or
    getField("Text1").value = getField("Text1").defaultValue;
    George

  • AJAX retrieval using Javascript Object Notation (JSON) - How To

    I have written up a how-to on my blog, explaining the steps involved to implement AJAX functionality using JSON for data transmission. It uses a simple example where the user makes a selection from a select list and 2 values are returned from the database into page items. I found it pretty simple to implement.
    http://anthonyrayner.blogspot.com/2007/06/ajax-retrieval-using-javascript-object.html
    Hope you like it, feedback welcome!!
    Anthony.

    Duplicate post.
    Yann C.
    France

  • How can I hide figures or characts. using javascript in wad report BI NW 7

    Hi,
    How can I hide figures or characteristics using javascript or command in wad report ( BI NW 7).
    I have read the documentation for WEB API, but it doesn't provide some info on that area.
    Thank you.
    Edited by: Sergey Antonov on Jul 29, 2011 3:08 PM

    You can use REMOVE_DRILL_DOWN in WAD to remove characteristic..to remove a keyfigure with a button you could a variable with that button, which makes an invalid selection of the keyfigure though it is 2000, e.g. set CALYEAR = 1900.
    Hope it helps,
    Christian

  • Get drill down report on click of 2d column using javascript

    Hi ,
    Am using 2d column chart in apex, the query am using is as below using query source type as : Query returning sql query
    DECLARE
    l_qry VARCHAR2(4000);
    l_ec_member varchar(4000);
    BEGIN
    l_qry := '
    select
    ''javascript:dhtml_GetReport_r5(0,0,0,''''''||''''||Source||''''||'''''',0,0,0)'' link,,
    source,
    GET_RDB_EXEC_ESC(''Closed'','''',source) Closed ,
    GET_RDB_EXEC_ESC(''WIP'','''',source) WIP
    from abc a
    where source is not null';
    etc etc
    Now am facing problem when clicked on 1st column its taking both closed and WIP and populatin drill down, but what i want is how to pass the 1st column and 2nd column value separtely in session using javascript.
    Thanks in advance

    Hi,
    Now page 900 works.
    I did set link URL target to
    javascript:void(0)link attributes
    onclick="update_queue_status(this,'#EMPNO#')"javascript
    <script type="text/javascript">
    function update_queue_status(pThis,pEmpno){
    var j=$(pThis).parents('tr:eq(0)').find('[name="f01"]').val();
    var ajaxRequest=new htmldb_Get(null,&APP_ID.,'APPLICATION_PROCESS=AP_UPD_STAT',&APP_PAGE_ID.);
    ajaxRequest.addParam('x01',j);
    ajaxRequest.addParam('x02',pEmpno);
    var ajaxResult=ajaxRequest.get();
    //alert(ajaxResult);
    </script>I did also create developer user HELPER to your workspace
    Regards,
    Jari

  • ORA-01785 error when dynamically resetting report source

    When programmatically changing the region source on a 'function body returning SQL query' report, i get the following error:
    ORA-01785: ORDER BY item must be the number of a SELECT-list expression
    if the new SQL statement has fewer columns than the one it is replacing, and the user had previously selected a sort column for a column# higher than the highest column number in the new query
    for instance if the query was SELECT * FROM EMP and the user had clicked the COMM header to sort on COMM (column number 7), then changing the region source to SELECT * FROM DEPT results in the ORA-01785 -- evidently because Apex is submitting SELECT * FROM DEPT ORDER BY 7
    is there a way to programmatically reset Apex's ORDER BY column# setting? clear cache and reset pagination don't seem to do it

    that put me on the right track
    i really didn't want to reset all user preferences, as i am making extensive use of them in this application
    however, i did find HTMLDB_UTIL.REMOVE_SORT_PREFERENCES -- which, unfortunately, removes all sort preferences, not for a specific page or region.
    i was able to find the correct preference in WWV_FLOW_PREFERENCES$, so I can user HTML_DB_UTIL.SET_PREFERENCE to reset it, but the preference_name includes the region#, which changes on import -- so i'll need to extract if at runtime using javascript, or figure out some other runtime technique for finding the correct preference_name
    hey, apex developers, how about enhancing HTMLDB_UTIL.REMOVE_SORT_PREFERENCES to allow setting/removing the sort preference for a specific page (by page number or alias) and region (by position on the page or some other reliable identifier?

  • Using jQuery Ajax Call within ApEx - How?

    Hi,
    I was just wondering if it's possible to replace Oracle ApEx way of performing ajax calls with a jQuery Ajax call instead - just curious if I can call an On Demand process using jQuery Ajax means?
    Any examples would be much appreciated as unsure how to perform the equivalent process with jQuery.
    Thanks.
    Tony.

    I guess I found the solution for region pull for IR report
    using the syntax
    gReport = new apex.worksheet.ws('');
    in the js script below.
    When I pull the IR region from page8 into page1, I found that the IR toolbar's html/Js scripts are missing in Page1
    and thats why the IR toolbar functions were not working, issuing "gReport is null or not an object" error.
    But when I added the
    gReport = new apex.worksheet.ws('');
    syntax in the JS script below, the toolbar functions work using the p_arg_value.
    <script>
    function display_report(p1) {
    $s('P1_SELECTED_NODE',p1);
    $.ajax({
    type: "POST",
    url: "wwv_flow.show",
    data: {
    p_flow_id : $v('pFlowId'),
    p_instance : $v('pInstance'),
    p_flow_step_id : "4",
    p_request : "SUBMIT",
    p_arg_name : 'P4_SELECTED_NODE',
    p_arg_value : $v('P1_SELECTED_NODE')
    dataType: "html",
    success: function(data){
    var startTag = '<apex4ajax>';
    var endTag = '</apex4ajax>';
    var start = data.indexOf(startTag);
    if (start > 0) {
    data = data.substring(start+startTag.length);
    var end = data.indexOf(endTag);
    data = data.substring(0,end);
    $("#EMP_REPORT").html(data);
    //Workaround to make the report "pagination" and "order by" work
    $x_Value('pFlowStepId', "4");
    gReport = new apex.worksheet.ws('');
    //gValid = new apex.validation.v();
    //gReport.navigate.paginate('pgR_min_row=51max_rows=50rows_fetched=50');
    //gReport.controls.reset();
    </script>

Maybe you are looking for

  • Creation of Proforma Invoices in CRM

    Hi, We are using billing plans whereby the billing requests are generated and hit the billing due list in CRM. However the billing date may be 3 months from now and we need to create and give proforma invoices to receive certain payments in advance.

  • How to achieve vietnamese language support for SAP?

    Dear all, It's easy to add languages which are natively supported by SAP like Japanese, French... I wonder what are the things to do when we need language enablement for languages like vietnamese which are not yet supported by SAP. What we want to ac

  • How can I view files in room as IVIEW (not as link)

    Hi I would like to be able documents which I attached in rooms to be displayed as iview ( not as link) can somebody tell me if this is possible? cheers Murat

  • Coverflow for video and podcasts

    Has it been discussed about implementing coverflow for video and podcasts? This would make it so much easier to navigate and also help organize the files on the itouch and iphone. How serious is apple about implementing these, Im dying to get this fo

  • Load fails!!

    Hi there! I tried loading ODS1 from ODS2 almost 3 times and it fails with the error mesasge " processing is overdue". But it has run only for 14 minutes. Thanks, Manasa.