Is it possible to embed query data in javascript at page generate time?

I have a tabular form and I'd like to add a text field onclick event that uses a query column value in the javascript code. Note: I don't want to refer to an html element value. In PL/SQL Server Pages code I'd just put
<%= cursorname.columnname %>
in the javascript. Can the same be done in ApEx and what would be the syntax?
I wouldn't mind generating the whole javascript in the query but how would I refer to it in the "Element Attributes" field of the Column Attributes?

I'll try... so I have a page region that is a tabular form a.k.a. "SQL Query (updateable report)". In the select statement it's based on there are two columns: FOO_ID and FOO_NAME. In "Report Attributes" of the region, FOO_ID is defined as not shown but FOO_NAME is shown and also editable.
If I click the edit icon of FOO_NAME, it takes me to "Column Attributes" where there's a field "Element Attributes" where I can put a javascript event handler like
onclick="alert('foo');"
and so the FOO_NAME text field on every row of the report shows the alert when the user clicks on it. Now, I'd like the alert to show the value of FOO_ID for that row instead of static text. (Of course I eventually want it to do something useful but this is the simple example.)
A little more searching turned up this apparently related old thread:
Column value substitution in tabular form element attributes

Similar Messages

  • How can Javascript in BW web template access query data

    Hi All,
    I want to access the BW query data from within Javascript within the BW Web template. Can you kindly share ideas how I can make my Javascript reach the query results returned by the dataprovider query in the BW template.
    Your help is highly appreciated.
    Thanks
    Karen

    Hi
    The question is not using BW queries in Web templates I use them all the time. Within a BW web template I have Java script I want to access the BW query data from Javascript. The question is how to access query data within JavaScript.
    Regards
    Karen

  • Embed Input schedule in a web page in BPC NW 7.0 SP 04

    Hi All,
    Is it possible to embed an Input Schedule in Web Page?
    I've created a .htm file of the input schedule by saving it as 'web ready' file. However, when I preview the web page, html for the input schedule is displayed.
    If embedding is not supported, then is it possible to provide a 'link' for the input schedule in the web page. When the user clicks on the link, BPC for excel should be launched and selected schedule should open.
    Thanks in advance.
    Regards,
    Meera

    Thanks all for the response.
    We have lot of workbook logic and macros involved in our input schedule. My understanding is that we cannot replicate the same in Live Reports. Hence the thought to integrate the input schedules to a portal.
    Is this funtionality available in NW 7.5? or in any future release?
    Appreciate your inputs.
    Regards,
    Meera

  • Use evdre to query data from a SQL View

    Hi all
    I believe that it is possible to use evdre to query data from a SQL View. If this is possible then how does one go about setting it up in the evdre options (assuming that the view has already been created)?
    Regards,
    Byron

    Byron,  perhaps this is no longer supported, it might be worth opening up a case at service.sap.com on this.  However, I did find the following on Page 11 of the "Usages and Considerations of EVDRE" pdf file.  This doc is imbedded in the helpfile for BPC 7 SP5 (which was released in August of 2009, well after note 1315011 was last updated.
    It looks like you are limited to one custom view per application, since you have to name the view in a parameter at the APPLICATION level.  Go into BPC Administration, login to the application related to the custom view, choose "Set Application Parameters" and enter the name of the view to the Application Parameter called "EVDRE_QUERYVIEWNAME"  If it is not listed, go ahead and create it at the bottom of the Application parameter screen.
    Also:  I interpreted the following info from Page 10 of the same doc:
    In your EVDRE, set the following options:
    QueryEngine: MANUAL
    QueryType:  enter either NEXJ  OR TUPLE  see below:
    NEXJ  - Use two-dimensional queries using the nonemptycrossjoin function
    TUPLE  - Use two-dimensional queries using tuples"
    And I'm assuming you'd enter a Y for the following two parameters:
    QueryViewName
    "..to enforce the query engine to use a used-defined SQL view of the fact tables, when trying to read the values using SQL queries. This option is typically used in conjunction with the SQLOnly option (see below). "
    Option SQLOnly
    "..to enforce the query engine to only execute SQL queries, when reading data. This can be achieved using this option."

  • Is it possible to display a date as (DD-MON-YYYY) in excel output using excel template in xml publisher

    Is it possible to display a date as (DD-MON-YYYY) in excel output using excel template in xml publisher where date should be displayed as date only not string.

    I've tried to use hierarchy node variables, but it seems like you can't specify a attribute of the hierarchy such as level.  So with the WBS hierarchy, if you create a hierarchy node variable, you specify the WBS value to select (If I understand this correctly).  I wish I could instead specify "give me all the WBS nodes that happen to have the value of the level attribute greater or equal to 3.  If I understand Juergens post, he is saying make security access so that only certain WBS levels can be returned in the query.  I suppose we can try that, but that would then preclude getting the level 1 and 2 in the future if the authorization is global.

  • Is it possible to save / extract data from a MS SQL database 2008 using lookout 6.2?

    Is it possible to save / extract data from a MS SQL database 2008 using lookout 6.2?
      Now a days we are saving / extracting data in a excel spreadsheet, but we would like to do that using a database because it is better.

    You can use ODBC connection to work with SQL Server database.
    Use SQLExec object to execute the SQL statement. Here is a KB about the SQL statement.
    http://digital.ni.com/public.nsf/allkb/4ADEEA04CD24AE0B862565E20002A16F?OpenDocument
    To write data to spreadsheet is more straightforward because Lookout has built-in spreadsheet object. But you need to write SQL statement by yourself to interact with other database.
    To read the data back is the same way. Just use "select" SQL statement to query. You can use Datatable object to query.
    The "Data Source" can be "DSN = data source name;". The data source name is configured in Control Panel->Administrative Tools->Data Sources(ODBC).
    Ryan Shi
    National Instruments

  • HT5361 Is it possible to embed raw latex into a mail message to display an equation?

    Hi,
    Is it possible to embed raw latex (or any other meta data format like HTML) into a mail message? I would really like to be able to send equations directly without converting them to PDF or GIF first.
    Thanks,
    Joe

    I just borrowed a quadratic equation from the MathML Wikipedia site and grafted it into an HTML document. It imaged fine in Safari 7. It should be noted that neither the latest Google Chrome or FIrefox rendered the same content accurately.
    Laying out your entire email message (including MathML) in HTML can be tedious. Once it is displayed in the browser, each use of the command+I will put the browser content in a new Mail compose window. So, you cannot add an equation to existing Mail composition. Select, copy and paste (or paste and match style) will not work either.
    Depending on the importance you place on email equations, at one time, Design Science (MathType) claimed compatibility with Apple Mail (4.5) where you could input your equation in MathType and it could then be placed within the email. The mail recipient would not need a copy of MathType installed for this to work. MathType even allows you to key your equation in with LaTeX syntax to generate the equation.
    You could check with them about functionality (or restrictions) with Mail 6 and 7 on OS X, as it might provide a more productive way to achieve your goals.

  • Query data from MS SQL db through Oracle ? By using JAVA ?

    Hi folks,
    I would like to sync our one table in oracle db with table in different system, stored in MS SQL database.
    What would be the easiest option for connection from Oracle to MS SQL db to be able to query data from MS SQL through some Oracle package?
    If possible, I would like to keep all "tricky steps" within Oracle database. I heard about option with Java, but so far we have no experience with java in Oracle.
    Our database: Oracle 11g Database Standard Edition One
    Many thanks,
    Tomas

    C:\Users\tomeo>dg4pwd HELIOS
    ORACLE Gateway Password Utility
    Constructing password file for Gateway SID HELIOS
    For user account SYSTEM
    OPW-00001: Unable to open password-file (RC=0)
    C:\Users\tomeo>

  • With clause in SQL query data model

    Hello!
    isn't it possible to use the with clause in sql query data models?
    for example following query:
    WITH
    a_test as (
    select dummy from dual
    select *
    from a_test
    brings up a "XML Parsing Error: no element found"-error...
    BR Paul

    I tried a slightly different query (see below) and the query worked fine and retrieved data.. I did not get any errors.
    WITH
    a_test as (
    select 'dummy' from dual
    select *
    from a_test
    This works as well.. retrieving the value of the parameter
    WITH
    a_test as (
    select :Test_ID from dual
    select *
    from a_test
    thanks,
    BIPuser

  • Multiple PS Query Data Sources in RTF Template

    Is it possible to use two PS Queries as Data Sources on an RTF template in XML Publisher?
    There is a field in the main Data Source (PS Query) that needs to join to some other tables. This slows down the query considerably even after tweaking the join and tuning, etc. Instead of doing the join in the main PS Query Data Source, can we do any of these?
    1. Do a select statement inside an RTF template Form Field?
    2. Use two PS Queries on the same RTF template?
    3. Import a sub template that uses its own PS Query Data Source for the field?
    Hope this makes sense. Thank you.

    You can have multiple data models and then use the 'concatenated SQL data source' to generate a single xml file that includes data based on both queries. You can not do a select statement inside a RTF template.
    Within the RTF template you can write logic to join the two data sets... see this blog post:http://blogs.oracle.com/xmlpublisher/entry/formatting_concatenated_dataso
    Thanks,
    Bipuser

  • Querying Data from 3rd Party System

    We would like to query data from a 3rd party (non-SAP) system.  Our BW is an MSSQL DB and the 3rd party is also an MSSQL DB.  We do not want to physically load the data from the external system we just want to use the BW query tools to display the data.
    Is this possible?  I thought this is what a Remote Cube would be used for but SAP's instructions on Remote Cubes are vague and confusing.
           1.      In BW, create a source system for the external system that you want to use.
           2.      Define the required InfoObjects.
           3.      Load the master data:
    ·        Create a master data InfoSource for each characteristic
    ·        Load texts and attributes
           4.      Define the RemoteCube
           5.      Define the queries based on the RemoteCube

    Hi Jon,
    SAP RemoteCube is an InfoProvider. This is a special RemoteCube that allows
    you to define queries with direct access to transaction data in other SAP systems. SAP RemoteCubes are defined on the basis of an InfoSource with flexible updating, and assume the characteristics and key figures of the InfoSource.
    Use/Data Flow
    Unlike with other RemoteCubes, it is not necessary to program extractors. The
    same extractors are used to select data in the source system that are also used when replicating data into the BW. When executing a query, each navigation step sends a request to the extractors for the assigned source systems. In addition, characteristics selection and selection criteria for these characteristics are transformed to fields in the transfer structure, in accordance with the transfer rules. They are transferred to the  extractor in this form. The delivered datasets run through the transfer rules in BW and are filtered once again in the query.
    In your case Remote cube can be an option .
    Cheers
    Raja

  • Printing Query data to MsWord Template.

    Dear all,
    I have some requirement, I want to print my query data on MS word or Open Office template from java or oracle packages. Using oracle version Oracle Developer Suite 10g 10.1.2.0.2 and Oracle 10g R2.
    Is there any way?
    Best regards,

    You have different possibility...
    First.. you can have a template of open office stored in BLOB and then you can unzip the sxw file on the database with java stored procedure.. and
    you can modify the xml file inside the sxw file with your data from query..
    Second you can use FOP libraries from apache community to write the data in word file... or you can use OLE to do it..
    Thirs.. you can use Open Office as server listener and using UNO libraries you can doo everything with it..
    Just look at the oppen office api ... http://api.openoffice.org/
    Edited by: Peterv6i on Apr 23, 2009 10:34 AM
    Edited by: Peterv6i on Apr 23, 2009 10:35 AM

  • Not able insert ,query data from forms

    hi,
    I am not able to insert data or query data from forms(10g devsuite).getting error frm-40505,frm 40508 .i am able to insert and select record from sql plus.the block ihave created is control block .it is connected to the table using the properties.
    should i do anything to insert record.please help

    the block ihave created is control block .it is connected to the table using the properties.A Control Block, by definition, is a non-database block. This means the block is not directly connected to a table so you have to manually display data in the block and any DML you want to perform on data in this block you must do manually as well.
    There are four database objects you can base your database block on; 1) a Table, 2) a View, 3) From Clause Query (basically an In-line View), and 4) a database stored procedure. I recommend you use one of these four methods rather than manually display your data.
    Craig...

  • Is that possible to display the user selection data in the printable page?

    Hi All,
    I'm going to add a printablepage button on my page.
    Here comes a questions.
    Is that possible to display the user selection data in the printable page?
    For example,
    I have a table in the page,with 10 records.User select 5 of them.Can I display these 5 records in the printable page?
    Please help.

    Hi Yannick,
    Thanks a lot for the information. It worked.
    The portlet data can be accessible using bindings, but parameter name can be different.
    Meanwhile I have got one more scenario, where the Portlet and Task Flow placed in different pages of WCP Application. On change of data in the Portlet the application should navigate to another page where the Task Flow placed and displays selected data.
    Basically I can not use any button for navigation. The navigation should happen once I do some action in Portlet.
    Is this possible? If yes can you please let me know the steps?
    Thanks in advance!
    Somnath
    Edited by: Somnath Basak on Dec 20, 2011 9:41 AM

  • Is it possible to extract essbase data as a web service

    Hi All,
    I would like to know if it is possible to extract essbase data as a web service. What are the things to look for to achieve this functionality. Also request you to help me with a simple example.
    Thanks for your help in advance.
    Thanks,
    Praveen

    1)http://docs.oracle.com/cd/E26232_01/doc.11122/aps_admin.pdf
    2)http://code.google.com/p/essbase-plsql-interface/downloads/list?deleted=1&ts=1331485947
    3)http://essbase.ru/archives/category/performance/essbase-api/xmla

Maybe you are looking for

  • How do I get a virus off of my Mac?

    I watched a movie on a website awhile ago, and I think I may have clicked the wrong download button.  After I watched it there were a few pop ups here and there but they were not very big and I didn't really mind but recently when I click out of the

  • ICal & Backup 3, Regardless of recovery date - still the same files?

    I don't understand what is going on - and I may seem to have found a bug that crashes Back-up 3.1 My wife deleted my personal calendar in iCal. So - I went back into Backup and recovered all the data files from the day prior. Then the day prior to th

  • Purchase Price Variance - Exchange

    Hi, When we do IR for a PO, there is an entry in the accounting document for the Purchase Price Variance -Exchange. How is this entry computed or during what cases is this entry added in the accounting doc ? The IR done is with reference to a PO in a

  • System.exit(0) closing both JFrames

    hey, ive got a problem with a JFrame Ive got 1 JFrame that currently holds a JMenuBar, 2 JMenus and in the 1st JMenu there are 4 JMenuItems. One of the JMenuItems uses an ActionListener to lauch another JFrame, but when the 2nd JFrame is finished (an

  • One data source and assign multiple data target in BI?

    Hi all, Is it  possible is to assign one data source to multiple data targets in BI? Not like  in BW 3.X ; one data source can assign only one Info source. I am bit confused about it, let me know about this ? Regards. hari