Report Data from Javascript

I have a report with SQL: select ID, Name from XXX.
My result is displayed in vertical report with 1 record at a time.
How do I get a handle to ID in javascript of what record is currently displayed? Do I need to use APEX_ITEM?
Thanks,
Arik

Hi Arik,
You can set the javascript value within the SQL statement itself. See: [http://apex.oracle.com/pls/otn/f?p=267:190]
In the region's Region Header, put:
<script type="text/javascript">
var empno;
</script>and in the region's Region Footer, put:
<a href="javascript:void(0)" onclick="javascript:alert(empno);">Click me</a>and the region's Source is:
SELECT EMPNO, ENAME || '<script type="text/javascript">empno=' || EMPNO || ';</script>' ENAME
FROM EMPThe first setting sets up a javascript variable and the source sets the variable to the current EMPNO value. The Footer setting is just to demo that this works.
Note that the report must not use Partial Page Refresh otherwise the javascript variable will not get updated.
Andy

Similar Messages

  • How to bring KSB1 report data from R/3 to BW

    Hi All,
    I need to bring the KSB1 report data from R/3 side to BW. Is there any standard extractor available for this ? How can I achieve this ?
    Will 0CO_OM_CCA_9 work in this situation or is it entirely different ?
    Actually business wants to see the actuals of Cost controlling with some of the fields which are existing in KSB1.
    regards
    Amit

    Hi,
    Check with the following DS's
    0CO_OM_WBS_1                      WBS elements: Costs
    0CO_OM_WBS_2                      WBS elements: Budget
    0CO_OM_WBS_3                      WBS elements: Overall plan
    0CO_OM_WBS_4                      WBS elements: Statistical key
    0CO_OM_WBS_5                      WBS Elements: Selections
    0CO_OM_WBS_6                      WBS Elements: Actual Costs Usi
    0CO_OM_WBS_7                      WBS Elements: Commitment Line
    0CO_OM_WBS_8                      WBS Elements: Budget Line Item
    Thanks
    Reddy

  • Passing data from JAVASCRIPT to SAP database

    Hi Experts,
    Is it possible to connect or access RFC function module through JAVASCRIPT? I want to send data from JAVASCRIPT to SAP database table.
    Is it possible to pass data from JAVASCRIPT to SAP database table?
    Thanks in advance.
    Regards,
    Arindam Samanta.

    OData services can be one option to achieve this.
    Another possibility can be use of Generic REST enablement with SAP NetWeaver Gateway.
    If you are not considering Gateway at all, then  A JSON adapter like the one mentioned in JSON Adapter for ABAP Function Modules can be handy.

  • Can Google Analytics provide reports/data from a Contact Form created in Muse?

    My Muse site will be hosted by a third party hosting service, as I am creating it for a client. My client wants to be able to see a monthly report of inquiries submitted via the contact form, which was created in Muse. Can Google Analytics provide reports/data from a Contact Form created in Muse?

    Muse makes files through interface design approach. It has actually nothing to do with the running of your site. And this forum is for Business Catalyst, Adobe's CMS. If you are not using that and a 3rd party then for tracking etc that is based on you or someone else installing the google analytics code on that website. Muse has nothing to do with that.
    Here is google's starting guide for that.
    http://www.google.com/intl/en-AU/analytics/learn/setupchecklist.html

  • Transport data from Javascript file to BSP application

    Hi,
            How can we transport data from Javascript file that is stored in MIME repository to the BSP application that uses this Javascript?
    To elaborate :
    I  have a  BSP application which calls few functions from a Javascript file that is stored in the MIME repository. Now, i need to pass one of the values that is obtained dynamically in the Javascript function to the BSP application inorder to store it in DB.. How can I do this?
    Thanks,
    Vasuki

    Hi,
    you must only identify in which variable the javascript function stores the values. So you can enrich
    your bsp application with such a function. Then you must transfer the value to a hidden input field.
    This field content can be requested via  request->get_form_field( 'name_of_the_field' ).
    On the other side, check out, if ther is a getter function in this library.
    Use firwefox with firbug plugin an set breakpoint in the javascript function to get an overview about the dom modcel.
    Best regards, Stefan

  • Access report row data from javascript

    -- I have a report. Something like this.
    Select id, name, htmldb_item.checkbox(1, '#ROWNUM#')
    from test;
    -- I can get the rownum via javascript.
    var ml = document.wwv_flow;
    var i;
    for(i = 0; i < ml.elements.length; i++){
    alert("name = " + ml.elements.name);
    alert("value = " + ml.elements[i].value);
    -- I would like to access the other items I selected in the report from javascript. ie. id and name.
    -- So knowing the rownum how do i get those values for a given row?
    Thanks
    Jon

    hi jfortney,
    i have one problem in oa framework, ie i need to get the row number by javascript but could not do . my way is
    document.getElementById('tableid').rows.length.. but there is no id for that table when i c the view source. so please suggest me some idea as to how to get the row number of a table in oa framework page.
    thanks in advance...
    prabhakaran.p

  • BI- Reports, Data from ECC6 (Call Related)

    Hi Gurus,
    I have a couple of reports to be created in BI.
    My source system is ECC6 (Call Related)
    Reports are from the following tables
    AUFK
    PMSDO
    VBAK
    VBFA
    QMEL
    JCDS
    QMEL
    I want to follow the standard extraction method.
    Anybody please help me, how do I start?
    Do i have any standart DataSources in ECC which are linked to all the above tables or I should create a view and put it in a standard datasource???
    I'm not very sure how to begin. Need your help.
    Thanks
    Aggish

    Hi Aggish,
    Check with PM data sources.......
    http://help.sap.com/saphelp_nw70/helpdata/en/f2/7a0c3c40787431e10000000a114084/frameset.htm
    hope this may help you.........
    Thanks,
    Vijay.

  • Passing data from JavaScript to Applets (Error when trying to pass data)

    Hi,
    I've wrote a small applet for lists but when I try to pass data from my
    JavaScript to my applet, I get an "Error: Object doesn't support this property or method". I get this error with a select other sites including the page I'm writing, leading me to believe I may not have installed requried files or set required options. I've included the listing of the code snippet where the error occurs.
    document.listApplet.testMethod()OR when I use:
    document.applet(listApplet).testMethod()The applet is loaded by this statement:
    <OBJECT CODE="CustomAppletList" NAME="listApplet" ID="listApplet" WIDTH="1000" HEIGHT="600"></OBJECT>and loads fine but no data is passed through it's public methods. Can anyone suggest ideas how I can successfully pass data from my JavaScripts to my applets?
    Devyn

    this should work for you. In your javascript do this.
    var myApplet=document.listApplet;
    myApplet.testMethod()
    If you need more help let me know.
    Paul

  • Access to Data from Javascript

    I have a propertie call it "country" in my "Data View" and I need access its value from javascript code to use in a IF sentence.
    I try thinks such as "xfa.node.getAttribute("country")" but doens't work.
    How can I access it?
    Thanks.

    You can try like this:-
    if(country.rawValue == "IN")
       xfa.host.messageBox ("You selected India");  // This will display a pop-up
    else
       xfa.host.messageBox ("You selected some other country");
    Chintan

  • Passing data from Javascripts to Applets

    Hi,
    I've wrote a small applet for lists but when I try to pass data from my
    JavaScript to my applet, I get an "Error: Object doesn't support this property or method". I get this error with a select other sites including the page I'm writing, leading me to believe I may not have installed requried files or set required options, though I've checked my settings . I've included the listing of the code snippet where the error occurs.
    document.listApplet.testMethod()OR when I use:
    document.applet(listApplet).testMethod()The applet is loaded by this statement:
    <OBJECT CODE="CustomAppletList" NAME="listApplet" ID="listApplet" WIDTH="1000" HEIGHT="600"></OBJECT>and loads fine but the error persists when attempting to call public method in my applet. Can anyone suggest ideas how I can successfully pass data from my JavaScripts to my applets?
    Devyn

    Hi,
    Thnx for the reply. I've tried as you suggested and modified my <OBJECT> line to:
    <OBJECT CODE="CustomAppletList.class" NAME="listApplet" ID="listApplet" WIDTH="1000" HEIGHT="600">
    <PARAM NAME="scriptable" VALUE="true"></PARAM>
    </OBJECT>But the error persists. I'm using IE6. I did not have such errors with IE5.
    I use the following code to test the applet tag I assigned at each step:
                        if (document.listApplet) {
                             document.write ("Applet Object (document.listApplet) exists.")
                        } else {
                             return
                        if (document.listApplet.object) {
                             document.write ("Applet Object (document.listApplet.object) exists.")
                        } else {
                             return
                        if (document.listApplet.object.testMethod) {
                             document.write ("Method textMethod() in applet has been validated and exists!")
                        } else {
                             document.write ("[2]")
                             return
                   document.write ("[11]")The debugging info from this code at the end of the html document I'm writing is:
    [1]Applet Object (document.viewer) exists.Applet Object (document.viewer.object) exists.[2][11]
    Devyn

  • How to retrive DesktopIntellegence report data from FRS in the form of XML?

    Hi,
    I read in the document, all the Business Objects reports either deski or webi are stored in FRS system in the form of XML
    How can I get the Business Objects reports data (Deski reports)from the File repository system (FRS) in the form of XML.
    I need this file to use in the portlets.
    Could some one please share the information.
    pforum.

    Hi Harika,
    Webservices is best way to go inorder the fetch the data from CRM system, ofcoz it comes out in XML format.
    http://esworkplace.sap.com
    You will info abt this http://www.sdn.sap.com/irj/bpx/esworkplace
    There must a suitable webservice given for each of the below. Browse through esworkplace.
    -     Customer data
    -     Product data
    -     Promotions data
    -     Campaign data
    webservice can easily be tested in WSNAVIGATOR of ESR in SE80.
    Hope the above hints gives you a way forward.
    Chees, Satish

  • How to refresh report data from bex query (BW) with parameters

    Hello,
    i hope someone can help me with my problem. I developed an desktop application, which loads (actual state) a report from the local file system. After setting the parameters, the report should be saved as a pdf file. Loading the report into the ReportDocument object and exporting the report to a pdf works fine. Setting parameters (without) a data source too. But now i can't refresh the data in the reports given by a parameter (e.g. time).
    I know there are two methods to do this. Push and pull. I want to use the pull method, cause my program should exports different reports and i think it should be easier to handle this with this method.
    On my development environment is installed:
    Crystal Reports SP 4
    MS Visual Studio 2010 (coding with C# .NET)
    .NET Framework 4
    SAP Integration Kit
    Crystal Reports for Visual Studio 2010 SP1 - SDK libraries
    Crystal Reports for Visual Studio 2010 SP1 - Runtime 32 bit
    SAP GUI 7.20 (Compilation 3)
    The bex query is enabled for external use from ole db for olap. Do i have forget something else?
    Here is a part of my code:
            public ReportDocument doPullMethod(ReportDocument crReportDocument)
                TableLogOnInfo crTableLogOnInfo = crReportDocument.Database.Tables[0].LogOnInfo;
                ConnectionInfo crConnectionInfo = crTableLogOnInfo.ConnectionInfo;
                crConnectionInfo.Password = "*******";
                crReportDocument.SetDatabaseLogon(crConnectionInfo.UserID, crConnectionInfo.Password, crConnectionInfo.ServerName, crConnectionInfo.DatabaseName);
                MessageBox.Show(crConnectionInfo.UserID + " _ " + crConnectionInfo.Password + " _ " + crConnectionInfo.ServerName + " _ " + crConnectionInfo.DatabaseName);
                for (int i = 0; i < crReportDocument.Database.Tables.Count; i++)
                //    crReportDocument.Database.Tables<i>.ApplyLogOnInfo(crTableLogOnInfo);
                    MessageBox.Show("TestConnectivity: " + crReportDocument.Database.Tables<i>.TestConnectivity());
                return crReportDocument;
    Cause i'm using only one bex query, i know that the SetDatabaseLogon()-method should bring me the same result as the ApplyLogOnInfo()-method SAP Crystal Reports .NET API Guide
    Exists an order which i have to follow? First setting parameter and then set the login informations or backwards? Cause i also get the "Failed to load database information" exception, when i set a parameter and TestConnectivity() returns false.
    Do i have to activate the data refresh manually or will be the data refreshed automatically on export?
    I searched in this forum (.NET - SAP Crystal Reports) and found only this thread which according to my problem:
    [Re: Crystal report connects to BW RFC by .NET;
    The question is assumed answered.

    Hi Robin,
    There is a SAP Integration Kit you need to allow CR to connect to SAP data sources. There isn't one for CR for VS 2010 and I don't believe there are the various extra options available in the SDK, no SDK access to the DB driver.
    Possibly, Check the other post, download and run the app Ludek suggested, it will get the connection info for your report using RAS and then plug the output code into your code and see if that works. It should show the crdb_olap dll is the database driver, assuming that is the connection method you used when designing the report.
    Pay attention to the database dll in the output from that app and verify it is on your PC in: C:\Program Files (x86)\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win32_x86
    If that doesn't work then.....
    The problem is, CR for VS 2010 ( version 13 ) is the runtime for BOE 4.0  ( version 14 ) which includes the Integration kit drivers on install. There is no standalone install of the database drivers. They are installed with CR 2011, which doesn't have a SDK included, CR for VS 2010 is also the Developer version for CR 2011.
    Because of the "custom" connection requirements there is no SDK or access to the BW datasource extra options....
    Also note that CR 2008 is not supported in VS 2010, it should work though as long as you stick to 2.0 -> 3.5 framework, no 4.0 Framework support in CR 2008 or BOE 4.0
    You may want to try the SAP Integration Kit forum to see if anyone has been able to make this work or contact your account manager to verify if there are any plans to do what you are doing....
    Don

  • Access netui pageflow data from javascript in a response.jsp

    How do I access a pageflow variable from a javascript in a response.jsp page? I understand that the follow line can be used in a response.jsp:
    <netui:label value="{pageFlow.m_applicant.createdDate}"/>, but it can not be used in a javascript of that rensponse.jsp.

    Jack,
    You can't directly bind to a pageFlow variable but you can store the
    variable in the page using the getData tag and access it via javascript as I
    have done in this example.
    <netui-data:getData resultId="myId" value="{pageFlow.theString}" />
    <script language="javascript">
    function showAlert()
    var myJpfProperty = "<%=pageContext.getAttribute(
    "myId" )%>";
    alert( "Here is the Jpf property value: " + myJpfProperty );
    </script>
    Here is some related documentation, though it doesn't show a javascript
    example
    http://edocs.bea.com/workshop/docs81/doc/en/workshop/guide/netui/howdoi/howAccessDataBindingContextsScriptletJavaScript.html
    - john
    "jackz" <[email protected]> wrote in message
    news:4074251a$[email protected]..
    How do I access a pageflow variable from a javascript in a response.jsppage? I understand that the follow line can be used in a response.jsp:
    <netui:label value="{pageFlow.m_applicant.createdDate}"/>, but it can notbe used in a javascript of that rensponse.jsp.

  • Reporting date from Credit Lines & When 3 credit bureaus update?

    We are waiting to get pre approved for a home loan. I started working on my credit 6 months ago and I estimate that after last month's payments (paid off 100% of my credit cards and making on time payments for the last 6 months), I will finally reach the threshold I need to get pre-approved. DTI is excellent and my husband's scores are great. We are just waiting for mine to gain the points needed. Anyway, I have tracked my credit lines reporting for the last 6 months and all report as follows: Auto - 30th of every monthStudent loans - 2nd of the following monthCredit card - 3rd of following monthCredit card - 10th of following month I made all my July payments and it is now August 7th. By now, Auto, Student, Credit Card 1 will have reported. When will the credit bureaus show the report? I was waiting until myfico and credit Karma sent me alerts, but I noticed there is a lag for when alert me. If I don't have to wait for their alerts, I could have the mortgage company pull my credit on the 11th to issue the pre-approval. But if there is a lag between when the credit lines report and the 3 credit bureaus actually show the update (even if they are back dating them), then I don't want to have him pull the reports too soon.  So, my question is, when the credit lines report, is that reflected on my report instantaneously and just credit Karma and myfico is lagging? Or is there a true lag from when the credit lines report and the 3 credit burearus update?

    Updates are not instantaneous.  With most lenders, they transmit the data on the statement cut date, but the CRA's do not instantly report.  Typiclly within 3 to 5 days of the statement reporting, you will see updates.  TU can be slower to update -- sometimes 7 to 10 days. You need to make sure that at least one of your credit cards is reporting a small balance.  $5 is fine.  FICO will penalize you for having all zereo balances on credit cards.  Sometimes this can be as much as 15 points off your scores for having all zero balance credit cards.

  • Populating a table with data from javascript

    I have a CFC that returns (via ajax) an array with a length anywhere from 1 to n. I need to display the contents of that array on a webpage in a table (one row per array element). Since I do not know the length of the array, what would be the best way to render the table? My first thought was to build the table inside a string variable and then use jQuery's html() method. I also considered using ColdFusion to format the table in the CFC and pass that back to the ajax call. Either way seems very tedious. Was wondering if there is a better way.

    Design Patterns can help when you are faced with a decision like this. Take the Model-View-Controller pattern, more commonly known as MVC. It tells us that the server should restrict itself to business logic, hence to business code. An example of business code is a CFC that returns data in the form of an array.
    To display the data as a table requires presentation logic and presentation tools. That responsibility usually falls on the client. The browser is typically the client equipped to render the data in visual form.
    You could, for example, get the CFC to return an array in the default JSON format. The client could then use jQuery to convert the JSON array into a table. A quick search on the web produced the following jQuery tools: datatables, jqGrid and jsonTable.

Maybe you are looking for

  • Open Item managemnt to be activated to Vendor  Recon Accounts.

    Dear all, My client now wants to activate Open item Management for Recon Accounts of VEndors.  I am getting Error Message no. FH031. Please help. regards jaya

  • Problem Processing Multiple Files in Photoshop Elements

    I have always used the process multiple files option in the File drop down menu without issue. I recently completed editing some photos as I have done before and wanted to process them into a smaller JPEG file and add my watermark. I set all the sett

  • Need more iMovie '11 project themes

    I need more iMovie '11 project themes.Anyone know where to find some? The 8 project themes that came with iMovie '11 just isn't enough for me, MacBook Pro OS X v10.7.5 thank you

  • N97 Copy & Past missing?

    How can I copy urls from the browser, or past passwords into my wlan configuration? On my N95, there was a dedicated key for copy&past but this key has been stripped by Nokia on the N97. I could live with that, if there would be a key combination equ

  • Getting portal exception error to call catalog in Portal .

    Hi I am getting below error when try to call MDM catalog in Portal . Portal runtime error An exception occurred while processing your request. Send the exception ID to your portal administrator. Exception ID 11:29_23/07/14_0238_158492050 See log file