The combination of report with javascript

Hi guys,
I want to use report combined with javascript as follows:
<APPLET NAME="ASMGridAppAssembly" ...
PARAM NAME="QueryTemplate" VALUE="..../Reports/PTSD/AsmNCMFRXQuery">
<PARAM NAME="DisplayTemplate" VALUE=".../Reports/AsmGrid">
<param name="Param.1" value=>
<param name="Param.2" value=>
</APPLET>
document.ASMGridAppAssembly.getQueryObject().setParam(3,Param3);
document.ASMGridAppAssembly.getQueryObject().setParam(4,Param4);
Can I achieve this?
Thanks,
Tony.
Edited by: Tony Hu on Aug 8, 2008 7:07 PM

Mike - Huh?  If javascript is called to an active applet on the page that received Param.1 and Param.2 through param overrides in the html (like shown in Tony's post) they will absolutely override any static ones that are in the query template itself.
Tony - you need to instruct the applet to run the query with your 2 new parameters, so add this line after setting param 3 and 4:
document.ASMGridAppAssembly.updateGrid(true);
Regards,
Jeremy

Similar Messages

  • Incomplete download of OBIEE report with Javascript

    Hi,
    When I try to download a report ( containing Javascript code ) to excel, it does not do a complete download. The resulting excel sheet only contains a part of the result fetched by the report.
    I when I try to do the same activity with a report that does not contain javascript, the complete result set is downloaded to excel.
    Any help in this matter would be much appreciated.
    Denu

    Hi Joe,
    I found out that this behavior is occuring in all my reports that have a hyperlink specified in the 'fx' whether the report contains javascript or not.
    To cite an example
    A report has only 6 columns. Out of which the first column contains a list of order numbers. These order numbers have hyperlinks on them
    the following is the code in 'fx' section of the order column
    ''||CAST("Item Loc Order Revisions"."Order #" as char)||''
    where I am using the session variable NQ_SESSION.RMS_URL.
    On the dashboard, I have enabled the download link for this report.
    When I try to download an excel format of this report, the resulting excel only has one record. While the report actually has 3 records.
    I have tried with IE version 7, Mozilla firefox and Google Chrome. All of them provide the same results.
    When I remove the hyperlink from the column, save the report, and try downloading it from the dashboard, I am able to see all the 3 records in the excel.
    Thanks
    Denu
    Edited by: user10874114 on Dec 15, 2009 9:15 AM

  • Updateable report with javascript calculation

    Hi all,
    I have an updateable report where the user fills in one column. I then need a simple multiplication based on the user filled in column and another column to populate into the final column.
    I have managed to do this using the following javascript in the page header
    <script language="JavaScript" type="text/javascript">
    <!--
    function calcit(pThis)
    var vRow = pThis.id.substr(pThis.id.indexOf('_')+1);
    html_GetElement('f03_'+vRow).value = html_GetElement('f02_'+vRow).value * html_GetElement('f01_'+vRow).value;
    //-->
    </script>Column f01 is a value in a table based on the SQL to create the report (AQLSCORE)
    Column f02 is what the user fills in (AQLERRORS)
    Column f03 is where the calculation is populated (AQLTOTAL)
    With AQLERRORS element attribute = onchange="calcit(this);"
    The problem I am having with the above is that it only works when f03 is a text field (i.e. the user can change the value) I would like the column to be non-editable (the user should not be able to change this field). If I make the column Display as text (saves state) the calculation returns a NaN error.
    When I change the calculation from a * to a + the value returned is 1undefined showing that the value from f01 is undefined
    Demo app
    http://apex.oracle.com/pls/apex/f?p=15328
    username: demo
    password: demo
    There are 2 pages one where the calculation is working but with AQLSCORE as a text field and another where it is returning NaN but with AQLSCORE as Display as text (Saves state)
    Any ideas how I can perform the calculation and protect the AQLSCORE column from the user
    Kind regards,
    Alex
    Edited by: user10942729 on 30-Jul-2010 08:12

    Thank you for your response.
    I have corrected the code as you suggested however it still causes the same error.
    I have very limited knowledge of java and html (probably not a good start I realise) but it seems that the javascript cannot see(??) the value in the AQLScore (f01) column when it is Display as Text(saves state)
    If I change the calculation to just make the value = the AQLScore (f01) without the parseInt syntax 'undefined' is returned. With the parseInt 'NaN' is returned.
    I will keep looking for an answer
    Cheers,
    Alex

  • How the data is fetched from the cube for reporting - with and without BIA

    hi all,
    I need to understand the below scenario:(as to how the data is fetched from the cube for reporting)
    I have a query, on a multiprovider connected to cubes say A and B. A is on BIA index, B is not. There are no aggregates created on both the cubes.
    CASE 1: I have taken RSRT stats with BIA on, in aggregation layer it says
    Basic InfoProvider     *****Table type      ***** Viewed at      ***** Records, Selected     *****Records, Transported
    Cube A     ***** blank ***** 0.624305      ***** 8,087,502      ***** 2,011
    Cube B     ***** E ***** 42.002653 ***** 1,669,126      ***** 6
    Cube B     ***** F ***** 98.696442 ***** 2,426,006 ***** 6
    CASE 2:I have taken the RSRT stats, disabling the BIA index, in aggregation layer it says:
    Basic InfoProvider     *****Table Type     *****Viewed at     *****Records, Selected     *****Records, Transported
    Cube B     *****E     *****46.620825     ****1,669,126****     6
    Cube B     *****F     ****106.148337****     2,426,030*****     6
    Cube A     *****E     *****61.939073     *****3,794,113     *****3,499
    Cube A     *****F     ****90.721171****     4,293,420     *****5,584
    now my question is why is here a huge difference in the number of records transported for cube A when compared to case 1. The input criteria for both the cases are the same and the result output is matching. There is no change in the number of records selected for cube A in both cases.It is 8,087,502 in both cases.
    Can someone pls clarify on this difference in records being selected.

    Hi,
    yes, Vitaliy could be guess right. Please check if FEMS compression is enabled (note 1308274).
    What you can do to get more details about the selection is to activate the execurtion plan SQL/BWA queries in data manager. You can also activate the trace functions for BWA in RSRT. So you need to know how both queries select its data.
    Regards,
    Jens

  • Export Interactive reporting with javascript

    Hi,
    i have some problem when i try to export in excel my report created with Interactive Reporting.
    I use the javascript code inside the button and at onClick event i succeded only the file conversion in mhtml format.
    The next step is conversion from mhtml in xls format, but i think that the instance JooleObject don't.
    Below the code that i use:
    //**********Create the FileSystemObject
    var objFSO = new JOOLEObject("Scripting.FileSystemObject");
    var strMhtmlFile = "C:\\pippo.mhtml";
    var strExcelFile = "C:\\pippo.xls";
    //************Create the JOOLE Object for Opening Excel File
    var objExcel = new JOOLEObject("Excel.Application");
    //**********If Files Already Exist - Delete Them
    if (objFSO.FileExists(strMhtmlFile))
    objFSO.DeleteFile (strMhtmlFile);
    if (objFSO.FileExists(strExcelFile))
    objFSO.DeleteFile (strExcelFile);
    //**********Export to MHTML Format
    ActiveDocument.Sections["PDC_FIN"].Export(strMhtmlFile,bqExportFormatOfficeMHTML,true);
    //**********Make Excel Invisible
    objExcel.Visible = false;
    //**********Open MHTML File in EXCEL
    objExcel.Workbooks.Open(strMhtmlFile);
    //**********Save As Copy of MHTML File into .XLS
    objExcel.ActiveWorkbook.SaveCopyAs("C:\\pippo.xls");
    //**********Close EXCEL
    objExcel.Quit();
    Have you any suggestion? There are some libraries that i must import?
    I use Interactive Reporting Studio 11.1.1.3
    Thank you in advance.
    Flavio

    Hi,
    thank you for response.
    I use IR Studio (Desktop) and public the report in the workspace when the report is complete.
    Your suggestion work
    var strMhtmlFile = "C:\\pippo.xls";
    ActiveDocument.Sections["PDC_FIN"].Export(strMhtmlFile,bqExportFormatOfficeMHTML,true);but the problem is that when export the report directly in xls format, the formatting of the report is lose. For this reason i export befor in mhtml and after Open/SaveAS the report in xls format for mantaining the formatting.
    I think that the istruction
    //**********Open MHTML File in EXCEL
    objExcel.Workbooks.Open(strMhtmlFile);
    //**********Save As Copy of MHTML File into .XLS
    objExcel.ActiveWorkbook.SaveCopyAs("C:\\pippo.xls");
    on the objExcel variable (instance of JOOLEObject) don't work.
    I speak with my develop team and decide if adopt your solution.
    Thank you so much.
    Flavio

  • Is there a way to hide and show the whole 3D viewer with javascript?

    I'm trying to set up a pdf so that the person who's reading it can use a button to switch between a picture of the product and a 3D model of the same. The idea is that the two ways of illustrating the product can be in the same space, so that there's still room to put enough text on the front page. I have spent about three hours trying to figure this out.
    Even if I hide the model withtin the 3D viewer and make the background transparent, the 3D viewer is still there, intercepting mouse clicks and showing the toolbar.
    I've tried modfiying the Annot3D, by moving it off the page, because the javascript reference says that the "rect" property of Annot3D can be written, but the viewer just stays in the same location.
    Is there any way to get the whole thing to go away with one button click and come back with another?
    Thank you for your help and patience,
    Daniel,
    PS - In the past I've placed product drawings and pictures in the same place by putting them on separate layers, but I can't figure out how to get the 3D display attached to a layer.

    One way you could get the same effect is to use separate pages. Disable the mouse scroll for switching pages and instead use buttons to go from one page to the other.  The user will get the impression that the annotation has appeared and disappeared.
    Another hack is to use the product information as the icon on the annotation, so just disable it when you want to show the product information and make sure it lines up with an overlay of surrounding product information.

  • Setting the layer color property with javascript

    Is it possible to set a layer's color in the layers palette using javascript?
    By default everything shows up with no layer color but if you right click (ctrl-click) on a layer you have the option to change the color to Red, Orange, Yellow, etc.
    My question is can I do this with a script?
    I can lock a layer, change it's visibility and opacity, but I can't seem to find any reference to that particular property.
    Any help is appreciated.
    Thanks,
    Zara

    This will set the active layers colour....
    layerColour("Violet");
    function layerColour(colour) {
        switch (colour.toLocaleLowerCase()){
            case 'red': colour = 'Rd  '; break;
            case 'orange' : colour = 'Orng'; break;
            case 'yellow' : colour = 'Ylw '; break;
            case 'yellow' : colour = 'Ylw '; break;
            case 'green' : colour = 'Grn '; break;
            case 'blue' : colour = 'Bl  '; break;
            case 'violet' : colour = 'Vlt '; break;
            case 'gray' : colour = 'Gry '; break;
            case 'none' : colour = 'None'; break;
            default : colour = 'None'; break;
        var desc = new ActionDescriptor();
            var ref = new ActionReference();
            ref.putEnumerated( charIDToTypeID('Lyr '), charIDToTypeID('Ordn'), charIDToTypeID('Trgt') );
        desc.putReference( charIDToTypeID('null'), ref );
            var desc2 = new ActionDescriptor();
            desc2.putEnumerated( charIDToTypeID('Clr '), charIDToTypeID('Clr '), charIDToTypeID(colour) );
        desc.putObject( charIDToTypeID('T   '), charIDToTypeID('Lyr '), desc2 );
        executeAction( charIDToTypeID('setd'), desc, DialogModes.NO );

  • How can i get the h:selectOneRadio value with javascript

    Hi all.
    I have this code
    <h:selectOneRadio id="color" style="font-family: Arial;font-weight:lighter;font-size: 12px" onclick="showColor()" >
    <f:selectItem itemLabel="RED" itemValue="1" />
    <f:selectItem itemLabel="BLUE" itemValue="2" />
    </h:selectOneRadio>
    And javascript function is
    function showColor()
    var tipoRelacion = document.getElementById("form:color").value;
    alert("color" + tipoRelacion);
    And what i get is that color is undefined. How can i get the value of the selected radio?
    Thanks a lot

    you just need to pass this while calling javascript function
    check this-
    <h:selectOneRadio id="color" style="font-family: Arial;font-weight:lighter;font-size: 12px" onclick="showColor(this)" >
    <f:selectItem itemLabel="RED" itemValue="1" />
    <f:selectItem itemLabel="BLUE" itemValue="2" />
    </h:selectOneRadio>
    And javascript function is
    function showColor(obj)
    var val = obj.value
    alert("color" +val);
    }

  • Combining two reports with headings and body into one

    I currently have two seperate XML reports for Oracle projects. One report prints out all the Labor information. One prints out Expense information. The users want those two reports married into one. So if there was Labor data in the XML that would report would print first, break to a new page and Expense data in the XML the second report would print.
    I have that working. Now what I need to find out how is how not to print anything if, for example, the XML had no Labor data. The way I have it configured now, even if no Labor data it is still printing the headings for the Labor.
    Any suggestions?
    Thanks,
    Nancy

    Thanks Vetsrini,
    The report has parameters of project number and draft invoice number. The XML has always had both labor and expense on it.I orginally created 2 templates. One that only picked up labor and one that only picked up expense.
    Now they want to just run one report and if both labor and expense print both out on same report, but seperating them.
    BI Publisher 5.6.3
    27459.xml is an example of xml that has no labor on it. just expense. so would just want the expense to print but the labor headers are showing up.
    27267_Invoice1_Labor2.xml is an example of xml that has both labor and expense.
    I you can look at that would be great.
    How do I paste? Can I just email you?
    Thanks!

  • Can you tell within the form with javascript if the file has reader rights.

    Hi
    I have an issue where I need to know at runtime if the current file has reader rights so that a link will directed them to one place or another.
    I was hoping with javascript I could check if the form has reader rights
    or
    the file name will be different for the version with reader rights so the other option is with javascript can it tell me filename of itself.
    Thanks
    Brad

    Hi,
    there is indeed a method to check usage rights.
    Here is a folder level script to check those rights.
    You should be able to use this also in a script in your form.
    LiveCycle Blog: Dateien auf Verwendungsrechte hin überprüfen//Check files for Usage Rights
    Hope this helps.

  • Combining relation facts with dimensions from an Essbase cube

    Hi!
    I am having trouble combining relational measures (from EBS) with dimensions from an Essbase cube. The dimensions that we want to use for reporting (drilling etc) are in an Essbase cube and the facts are in EBS.
    I have managed to import both the EBS tables and the cube into OBIEE (11.1.15) and I have created a business model on the cube. For the cube I converted the accounts dimension to a value based dimension, other than that it was basically just drag and drop.
    In this business model I created a new logical table with an LTS consisting of three tables from the relational database.
    The relational data has an account key that conforms to the member key of the accounts dimension in the Essbase cube. So in the accounts dimension (in the BMM layer) I mapped the relational column to correct column (that is already mapped to the cube) - this column now has two sources; the relational table and the cube. This account key is also available in the LTS of my fact table.
    The content levels for the LTS in the fact table have all been set to detail level for the accounts dimension.
    So far I am able to report on the data from the fact table (only relational data) and I can combine this report with account key from the account dimension (because this column is mapped to the relational source as well as the cube). But if expand the report with a column (from the accounts dimension) that is mapped only to the cube (the alias column that contains the description of the accounts key), I get an error (NQSError 14025 - see below).
    Seeing as how I have modeled that the facts are connected to the dimension through the common accounts key, I cannot understand why OBIEE doesn't seem to understand which other columns - from the same dimension - to fetch.
    If this had been in a relational database I could have done this very easily with SQL; something along the lines of select * from relational_fact, dim_accounts where relational_fact.account_key=dim_accounts.account_key.
    Error message:
    [nQSError: 14025] No fact table exists at the requested level of detail
    Edit:
    Regards
    Mogens
    Edited by: user13050224 on Jun 19, 2012 6:40 AM

    Avneet gave you the beginnings of one way, but left out that a couple of things. First, you would want to do the export of level zero only. Second, the export needs to be in column format and third, you need to make sure the load rule you use is set to be additive otherwise the last row will overwrite the previouse values.
    A couple of other wats I can think of doing this
    Create a replicated partition that maps the 3 non used dimensiosn to null (Pick the member at the top of the dimension in your mapping area)
    Create a report script to extract the data putting the three dimensions in the page so they don't show up.
    Use the custom defined function jexport in a calc script to get what you want

  • XML Publisher Report with PL/SQL

    Hi
    Like to know how to develop the XML Publisher Report with PL/SQL, i did the following
    1. created a pkg like as below
    CREATE OR REPLACE PACKAGE BODY APPS.TEST_XMLTAG_PKG AS
    PROCEDURE main (errbuf OUT VARCHAR2,
    retcode OUT NUMBER
    ) IS
    BEGIN
    DECLARE
    ctx DBMS_XMLGEN.ctxHandle;
    xml CLOB;
    BEGIN
    ctx := dbms_xmlgen.newcontext('select * from scott.emp');
    dbms_xmlgen.setrowtag(ctx, 'MY-ROW-START-HERE');
    xml := dbms_xmlgen.getxml(ctx);
    dbms_output.put_line(xml);
    Fnd_file.put_line (fnd_file.LOG, XML);
    END;
    END;
    END TEST_XMLTAG_PKG;
    this pkg produces the output with xml tag in the view log.
    I have registered the conc program & xml rtf but it does not produce the output in PDF, , I am not able to get the xml tag when i click the Diagnostics --> View XML.
    can you please let me know the next steps involved.
    Regards
    Yram

    I think the problem is because there is no begin and end tag. save the xml from the logfile and open with xml editor or IE.. then you will see the problem.
    add Begin and end tag...then you should be fine.. i.e
    fnd_file.put_line(fnd_file.output,'<EMP_DATA>'); -- begin Tag
    tx := dbms_xmlgen.newcontext('select * from scott.emp');
    dbms_xmlgen.setrowtag(ctx, 'MY-ROW-START-HERE');
    xml := dbms_xmlgen.getxml(ctx);
    dbms_output.put_line(xml);
    Fnd_file.put_line (fnd_file.LOG, XML);
    fnd_file.put_line(fnd_file.output,'</EMP_DATA>'); -- End Tag
    Hope this helps..>Good Luck
    Ravi

  • Daily Production Report with Variance or receipt of Production

    Hi All..
    my one of the clients want the Daily Production Report with Variance or receipt of Product?
    Please let me know what does it mean and how can I fetch this report
    Thanks
    Rahul

    Hi Rahul,
    Try This
    Daily Receipt From Production report
    SELECT T1.[BaseRef] as 'Production Order No', T0.[DocNum] as 'Receipt No', T0.[DocDate] as 'Receipt Date', T0.[CardCode] as'Customer/Vendore Code', T0.[CardName], T2.[ItemCode], T2.[ItemName], T1.[Quantity] as 'Receipt Qty', T1.[OpenQty] as 'Open Qty against Pro Order' FROM OIGN T0  INNER JOIN IGN1 T1 ON T0.DocEntry = T1.DocEntry INNER JOIN OITM T2 ON T1.ItemCode = T2.ItemCode WHERE T0.[DocDate] >=[%0] and  T0.[DocDate] <=[%1] and
    T1.[BaseRef] IS NOT NULL
    Summary Report For Production Order
    SELECT T0.[DocNum] as 'Production Order No', T0.[PostDate], T0.[DueDate], T0.[RlsDate], T0.[CloseDate], T2.[ItemCode], T2.[ItemName], T3.[CardCode], T3.[CardName], T0.[PlannedQty], T0.[CmpltQty], T0.[RjctQty] , (T0.[PlannedQty]-T0.[CmpltQty]-T0.[RjctQty] ) as 'Open Qty' FROM OWOR T0  INNER JOIN WOR1 T1 ON T0.DocEntry = T1.DocEntry LEFT OUTER JOIN OITM T2 ON T1.ItemCode = T2.ItemCode LEFT OUTER JOIN OCRD T3 ON T0.CardCode = T3.CardCode WHERE T0.[PostDate] >=[%0] and  T0.[PostDate] <=[%1]
    Thanks,
    Srujal Patel

  • Report with multiple Detail Area

    Hi All,
    Please see the Report pointed to the link below:
    [Report with multiple Detail Area|http://us.share.geocities.com/felix5ac/fairway.jpg]
    Some Explanations:
    ========================
    (1) The line with "ABCDEFGH..." is variable data coming from the database in the Detail Area
    (2) The lines with "WBLNX'" "123, 123.12", 
                             "WBLNX'"
       are variable data associated with the same Heading: "ABCDEFGH..."
    (2b) There can be multiple lines of data in the detail area (i.e. 1 or more "ABCDEFGH..." and the associated WBLNX and numbers...)
    (3) Item Code Descriptions ==> is a Header Info
    (4) ARL ... and FPHI... ==> are variable data and lines in these area can be 1 line; it can be 4 lines; it can be 10 lines...
    (5) Lines FROM "Artwork Procedures..." to the the end of the page are static.
    QUESTION:
    ===================
    How do I best design these Report with the multiple detail areas? Again, please see link of the Report above...
    Thanks and Best regards,
    Felix

    Hi Felix
    You can place the less detailed fields in the regular sections of the report and wherever you require multiple lines you can use the subreports.
    Hope this helps.
    Regards
    Nikhil

  • How to call discoverer report with parameters over http link?

    Hi!
    I'm using oracle application server 9.0.4 (incl. discoverer).
    I have an oracle portal report where I want to call a discoverer report for each line over a http link. It is always the same discoverer report - with each line I want to pass parameters to my discoverer report.
    How can I pass parameters to the report? Is there another way rather than using GET parameters?
    Thanks
    Markus

    Hi Markus
    You need to determine whether you can in fact call a Discoverer report using a URL before linking it in Portal. You need to run the report in Viewer first and then see copy the URL from the address line of the browser. Then you open another browser and paste the URL. You may well be prompted for a username and password but hopefully the correct report with the right parameters will then execute.
    Assuming this works you then paste the same URL link into Portal and you should be able to get the report to run.
    Best wishes
    Michael

Maybe you are looking for

  • Anyone know how to remove a pesky "Authentication Required" box?

    I visited (shame on me!!) a tasteful but adult-oriented art photo site and by mistake clicked on a content link which required a "member subscription" to view. My system attempted to use iTunes to open the file, and it threw an "Authentication Requir

  • Hi there, can anybody help me: can icloud store my ibooks?

    Hi there, can anybody help me: Can iCloud store my iBooks?

  • Pinch to zoom not working in Illustrator CS6

    After replacing a lot of the hardware in my MacBook Pro and re-installing CS6, I've found that pinch-to-zoom no longer works in Illustrator. It's functioning fine in InDesign and PhotoShop though. Am I missing some preference option to enable multi-t

  • Pearl 8110 Camera

    Hello All, I am unable to Zoom-in and Zoom-out using trackball.  Trackball rolls leaving no effect on the zoom. Please advice.

  • HTTP Accept: header in HTTPService

    I have been trying to find a way to override the HTTP Accept: header passed by the HTTPService object. As far as I can tell, it always returns the following header "Accept: text/html, application/xml, image/png, text/plain, */*" regardless of whether