Query object in main page available to iframe?

Hello, everyone.
What is the best way to make a query object in a document available to an iframe (with a .cfm file as the source of the iframe) in that document?
Thanks,
^_^

>> So, which is best, Application scope, or Session scope?
If the data is user specific, then probably the session scope. Performance-wise, either one should be fine.
>> And will a simple CFSET SESSION.VariableName = CFQUERYOBJECT work?  I didn't think a simple variable could contain a complex object?
What makes a variable simple or complex is its content. 
<cfset session.key = 1 /> Creates a simple variable
<cfset session.key = structNew() /> Creates a complex variable
Yes, session.key = queryObject will work just find.

Similar Messages

  • How to filter View Objects on Main Page - Unbounded Task Flow

    Hi All,
    Version: 11.1.1.4
    I have a scenario where I am trying to filter the Employee information by EmployeeID and show their related Items. I can do this if I encapsulate Employee and / or Items in bounded task flows and expose their view Criteria in methods that I am setting on the App Module. I could also add the bind variable to the View Object queries. The problem I am having is that I want to display a pop up based on the item they select. My issue is that I can't seem to figure out how to either grab the item row selected and pass it to the pop up (Can't create a control flow from a page fragment to a page - which as far as I can understand the pop up in the task flow has to be a page and not a page fragment) or drop the employee view object and item view object on the main page and have them be filtered.
    So basically two issues:
    1. If I use the Employee and Item bounded task flows and place them as regions on the main page then I am having difficulties passing the row selection (item selected) and pass it to my pop up window (another task flow).
    2. If I place the employee and item view objects on my main page the original methods I am using to filter the data are not getting called at all. I have tried placing them in the adf-config task flow prior to my main page view and going into my main page page def and adding them as method calls in the binding.
    I am sure I am doing something wrong or maybe even creating an invalid approach, but I should be able to filter my employee and item data on load within my unbounded task flow or use the data within my bounded task flows and generate a popup with data I am collecting from my item row.
    As always greatly appreciate the feedback....still really ignorant with ADF.
    --S                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    I figured out the issue Shay. I didn't have my pageFlowScope value set on the task-flow-call. So I had the parameter name and value set on the input of my downstream bounded task flow, but when I add the control to call the task flow I didn't have the task-flow call value set. That piece was not intuitive to me. It makes sense that it would have to know how to pass the value.....just wasn't sure where it should be set.
    --S                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Report Row With Detail (IFRAME) - How to reload Main Page within iFrame

    Hi,
    Based on Carl's example - Report Row With Detail (IFRAME), i.e:
    http://htmldb.oracle.com/pls/otn/f?p=11933:17
    Within my scenario, I have a button within the iframe section of my report that calls a pl/sql process that performs some database processing.
    What I basically need is a means of performing a page refresh of the main page, when this button within the iframe is pressed. In Carl's example, that would be page 17.
    As mentioned, I call a PL/SQL process within the iframe, but unsure how to then refresh the main page - parent page.
    Any help would be appreciated.
    Thanks.
    Tony.

    Tony,
    you could insert the following script to the region footer of a region located on your "iframe"-page.
    <script>
    parent.location.reload();
    </script>
    But this is dangerous because everytime the parent is being reloaded, the iframe is loaded, too. Risk of loop...
    A possible solution is to conditionally display a html region (with the script) on your iframe-page basing on a request. You could post the request as a result after your plsql processing in a branch.
    Regards,
    Jens

  • Unable to get AM object of an External LOV Region in CO of the Main Page.

    Hi ,
    I have a requirment to add dynamic where clause to a LOV VO.
    LOV field details:
    =======
    External LOV region is attached to the field.
    No Controller
    External Region Lov region has one AM attached.
    The LOV AM is not extended in the Main Page AM.
    Can anyone please suggest how to access the LOV AM in the Main page Controller...so that I can access the VO attached to the AM and set the where clause as required.
    Below are the solutions i have tried to implement. But was unsuccessful
    1. LovAMImpl XxLovAM = (LovAMImpl )pageContext.getRootApplicationModule().findApplicationModule("LovAM");
    2. Extended the Main Page AM (root application module) and extended the LovAM .
    3.OAWebBean regionbean = webBean.findChildRecursive("LovRN");
    LovAMImpl xxLovAM = (LovAMImpl)pageContext.getApplicationModule(regionbean);
    In all the above mentioned solutions, Lov AM object was null.
    It will be a great help if anyone can suggest any solution for the same.
    Thanks and Regards,
    Raja

    Hi Raja,
    Try this code. Recently i had the same requirement. I was able to achieve it through this piece of code.
    OAApplicationModule oam =
    (OAApplicationModule)am.findApplicationModule("XxVacancyLovsAM");
    if (oam != null) {
    } else {
    oam =
    (OAApplicationModule)am.createApplicationModule("XxVacancyLovsAM",
    "oracle.apps.irc.lov.server.VacancyLovsAM");
    OAViewObject IrcVacancyOrganizationLovVO =
    (OAViewObject)oam.findViewObject("IrcVacancyOrganizationLovVO");
    if (IrcVacancyOrganizationLovVO != null) {           
    IrcVacancyOrganizationLovVO.setWhereClause();
    Write this before Super in Process request.
    Regards,
    Pradeep

  • Iframe page refreshing main page

    Hi,
    I have a form on page one, and also an iframe containing a form on page 2. I'd like to be able to edit the data on the form inside the iframe, and then upon submitting it, have the main page refreshed. Some of the data displayed on the form on the main page is affected by entering data on the iframe page, so this is the reason for it. One possibility I thought of was branch on the iframe page to the main page, and then having some way that the main page could detect that it was loaded in a frame and "break out" of the frame automagically. I hope this makes sense.
    Thanks,
    Mike

    Hello,
    Yes the function should be on your main page.
    As for content it depends what you want to do the easiest would probably be just to force a a whole page refresh which is as easy as just callling parent.doSubmit(); from the iframe page and making sure the parent page has an uncodtional branch to itself.
    A more complicated example is something more along the line of this example.
    http://apex.oracle.com/pls/otn/f?p=11933:17
    Click the show detail link which opens an iframe then click the RowCallBack() button which calls this javascript.
    function RowCallBack(){
    var lRow =parent.g_LastRowOpened;
    var lCells = parent.g_LastRowOpened.cells;
    for (var i=0;i<lCells.length;i++){lCells[i].style.background = '#CCCCCC'}
    Carl

  • Dynamically changed view within a IFrame object in HTML page is not visible in UI Automation tree

    Hi, 
    I have a webpage where are are some links in the top of the page. Then there is a IFrame. When the web page is hit, it opens with a default page in the IFrame. Clicking on each link will load a page in the IFrame alone. 
    The UI Automation tree detects the controls in the IFrame when application is opened in a new IE page.
    I tried to navigate to a new page by clicking on a link and iframe was loaded with the  new page.
    Then navigating to the iframe in the UI Automation tree i was just able to see a ControlType.Custom control and not able to navigate beyond further.
    Note: I just work on the client side and don't have access to the server or the application code. 
    Any help would be greatly appreciated.

    Adobe Bugbase: Bug 3823839 Incorrect functionality of embed tag in html loader for adobe air development

  • Maximum Query Objects within a report...

    Hello Everyone,
    We have done several reports that contained one or two data model query objects, however, we are presented with the following task:
    We have to output the following:
    a) a single PDF document, approx. 200 pages generated from a web (url) request.
    -----> piece of cake, we do this for smaller reports now.
    b) this document will have about 50 sources, e.g. 50 queries necessary to run it.
    Question 1: is it possible to to have one "master" report that calls a bunch of other oracle reports AND maintains one page number sequence for the whole thing being output to the resultant PDF?
    Question 2: if we can NOT get sequential page numbers via the method above, what is the maximum number of
    ----> data model query objects
    ----> data model user parameters
    per report.
    Question 3: is it possible to have multiple modules for a single report call that would maintain page numbers across module outputs? Further, would parameters supplied to this big call make it to the proper modules-- module1 needs parms 1,2 and 3... module2 needs parms 4,5, and 6... module3 needs parms 5,6 and 7 for example.
    Any insight available would be greatly appreciated,

    Question 1: is it possible to to have one "master" report that calls a bunch of other oracle reports AND maintains one page number sequence for the whole thing being output to the resultant PDF?It's possible to have one master report that calls other reports, but it's not possible to do this and have one single PDF file produced.
    Question 2: if we can NOT get sequential page numbers via the method above, what is the maximum number of
    ----> data model query objects
    ----> data model user parameters
    per report.There aren't any published maximums for this (and you should be okay with 50 queries - although I can't vouch for the performance of this!)
    Question 3: is it possible to have multiple modules for a single report call that would maintain page numbers across module outputs? Further, would parameters supplied to this big call make it to the proper modules-- module1 needs parms 1,2 and 3... module2 needs parms 4,5, and 6... module3 needs parms 5,6 and 7 for example.Not sure that I understand the question.
    Just one more thing to think about - if you're running this on the web you should probably run it on a schedule and serve up a cached version 'on demand' - this way the users aren't waiting for this mammoth report to complete.
    Hope this helps,
    Danny

  • Problem with return a ColdFusion query object from a Java class

    Hi!
    I need to return a ColdFusion query object from a Java class
    using a JDBC result set ( java.sql.ResultSet);
    I have tried to pass my JDBC result set in to the constructor
    of the coldfusion.sql.QueryTable class with this code:
    ColdFusion code
    <cfset pra = createObject("java","QueryUtil").init()>
    <cfset newQuery = CreateObject("java",
    "coldfusion.sql.QueryTable")>
    <cfset newQuery.init( pra.getColdFusionQuery () ) >
    My java class execute a query to db and return QueryTable
    Java code (QueryUtil.java)
    import coldfusion.sql.QueryTable; // (CFusion.jar for class
    QueryTable)
    import com.allaire.cfx //(cfx.jar for class Query used from
    QueryTable)
    public class QueryUtil
    public static coldfusion.sql.QueryTable
    getColdFusionQuery(java.sql.ResultSet rs)
    return new coldfusion.sql.QueryTable(rs);
    but when i run cfm page and coldfusion server tries to
    execute : "<cfset pra =
    createObject("java","QueryUtil").init()>" this error appears:
    Object Instantiation Exception.
    An exception occurred when instantiating a java object. The
    cause of this exception was that: coldfusion/sql/QueryTable.
    If i try to execute QueryUtil.java with Eclipse all it works.
    Also I have tried to return java.sql.ResultSet directly to
    coldfusion.sql.QueryTable.init () with failure.
    Do you know some other solution?

    ok
    i print all my code
    pratica.java execute a query to db and return a querytable
    java class
    import java.util.*;
    import java.sql.*;
    import coldfusion.sql.*;
    public class Pratica {
    private HashMap my;
    private String URI,LOGIN,PWD,DRIVER;
    private Connection conn=null;
    //funzione init
    //riceve due strutture converite in hashmap
    // globals
    // dbprop
    public Pratica(HashMap globals,HashMap dbprop) {
    my = new HashMap();
    my.put("GLOBALS",globals);
    my.put("DBPROP",dbprop);
    URI = "jdbc:sqlserver://it-bra-s0016;databaseName=nmobl";
    LOGIN = "usr_dev";
    PWD = "developer";
    DRIVER = "com.microsoft.sqlserver.jdbc.SQLServerDriver";
    try{
    // Carico il driver JDBC per la connessione con il database
    MySQL
    Class.forName(DRIVER);
    /* Connessione alla base di dati */
    conn=DriverManager.getConnection(URI,LOGIN,PWD);
    if(conn!=null) System.out.println("Connection Successful!");
    } catch (ClassNotFoundException e) {
    // Could not find the database driver
    System.out.print("\ndriver non trovato "+e.getMessage());
    System.out.flush();
    catch (SQLException e) {
    // Could not connect to the database
    System.out.print("\nConnessione fallita "+e.getMessage());
    System.out.flush();
    //funzione search
    //riceve un hash map con i filtri di ricerca
    public QueryTable search(/*HashMap arg*/) {
    ResultSet rs=null;
    Statement stmt=null;
    QueryTable ret=null;
    String query="SELECT * FROM TAN100pratiche";
    try{
    stmt = conn.createStatement();// Creo lo Statement per
    l'esecuzione della query
    rs=stmt.executeQuery(query);
    // while (rs.next()) {
    // System.out.println(rs.getString("descrizione"));
    catch (Exception e) {
    e.printStackTrace();
    try {
    ret = Pratica.RsToQueryTable(rs);
    } catch (SQLException e) {
    e.printStackTrace();
    this.close();
    return(ret);
    // ret=this.RsToQuery(rs);
    // this.close(); //chiude le connessioni,recordset e
    statament
    //retstruct CF vede HashMap come struct
    //METODO DI TEST
    public HashMap retstruct(){
    return(my);
    //conversione resultset to querytable
    private static QueryTable RsToQueryTable(ResultSet rs)
    throws SQLException{
    return new QueryTable(rs);
    //chiura resultset statament e connessione
    private void close(){
    try{
    conn.close();
    conn=null;
    catch (Exception e) {
    e.printStackTrace();
    coldfusion code
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01
    Transitional//EN">
    <html>
    <head>
    <title>Test JDBC CFML Using CFScript</title>
    </head>
    <body>
    <cftry>
    <cfset glb_map =
    createObject("java","java.util.HashMap")>
    <cfset dbprop_map =
    createObject("java","java.util.HashMap")>
    <cfset glb_map.init(glb)> <!---are passed from
    another page--->
    <cfset dbprop_map.init(glb["DBPROP"])>
    <cfset pra =
    createObject("java","Pratica").init(glb_map,dbprop_map)>
    <cfset ourQuery
    =createObject("java","coldfusion.sql.QueryTable").init(pra.search())>
    <cfcatch>
    <h2>Error - info below</h2>
    <cfdump var="#cfcatch#"><cfabort>
    </cfcatch>
    </cftry>
    <h2>Success - statement dumped below</h2>
    <cfdump var="#ourQuery#">
    </body>
    </html>
    error at line <cfset pra =
    createObject("java","Pratica").init(glb_map,dbprop_map)>
    An exception occurred when instantiating a java object. The
    cause of this exception was that: coldfusion/sql/QueryTable.
    -----------------------------------------------------------------------

  • How do you fire a button click event on apex page from fancybox iframe that was created by page

    I am trying to fire off the button click event from fancybox iframe. The apex page has a button that launches a fancybox iframe which is loaded with an APEX form. On close of that fancy box, I am trying to fire a click event on the parent page which will refresh a div with html that is created with plsql. The button on the page works as expected when clicked from the page. It will show a debug alert message to prove it was called and then load the div with the correct data. I am unable to fire off this button click from the fancybox iframe when it closes.
    A couple of points:
    I using Plug-in: Execute PL/SQL Code and Return Content ("PLUGIN_MULEDEV.SERVER_REGION_REFRESH") to place the create fancybox statement. It is used to populate a div using plsql.
    The name of the button on the main page is P2020_REFRESH_SECTION_BUILDER_BTN.
    The click dynamic action on the button is calling the plugin to replace the html in the div.
    The data in the form in the fancybox is being saved to the database. On close of the fancybox box I want to refresh the div so the new record is included in the div html.
    Can anyone help. Here is the fancybox code:
      function customProcessOnReadyState4(){
        for (var i=0;i<11;i++){
          $( "#tabs"+i ).tabs();
          $("#createNewExerciseLink"+i).fancybox({
              ''width''         : ''60%'',
              ''height''        : ''70%'',
              ''autoScale''     : true,
              ''transitionIn''  : 200,
              ''transitionOut'' : 200,
              ''type''          : ''iframe'',
              ''onClosed''         : function() {
                                         window.parent.$(''#P2020_REFRESH_SECTION_BUILDER_BTN'').click();
    Here are the dynamic actions assigned to the button:
    5 - Execute JavaScript Code
    alert("Starting refresh");
    10 - Execute PL/SQL Code and Return Content [Plug-in]
    begin
      SCTUI.create_sct_tabs2(:P2020_CREATE_SECTION_LOV, '1');
    end;

    user setActionListener...
    <af:setActionListener from="#{bindings.XXX.inputValue" to="#{backingbean.variable}"
                  <af:inputText value="#{bindings.Email.inputValue}"
                                label="#{bindings.Email.hints.label}"
                                binding="#{backingBeanScope.backing_ShuttlePage.it2}"
                                id="it2">
                    <f:validator binding="#{bindings.Email.validator}"/>
                  </af:inputText>
                  <af:commandButton text="commandButton 2"
                                    binding="#{backingBeanScope.backing_ShuttlePage.cb2}"
                                    id="cb2" action="passing">
                    <af:setActionListener from="#{bindings.Email.inputValue}"
                                          to="#{processScope.detail}"/>
                  </af:commandButton>next jsf page:
                <af:outputText value="#{processScope.detail}"
                               binding="#{backingBeanScope.backing_ProcessScope.ot1}"
                               id="ot1"/>setPropertyListener also should work
    <af:setPropertyListener from="#{bindings.Email.inputValue}" to="#{processScope.detail}" type="action"/>

  • VC++ WebBrowser call Javascript function in a frame of the main page

    I can successfully call JS function in the main page from VC++, but when I call the JS function in frame, GetIDsOfNames() return DISP_E_UNKNOWNNAME. The question can be describe as below:
    main page is INDEX.HTM, loaded in webbrowser control, src:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <title>Sample</title>    
        <script type="text/javascript">
    function FuncMain()
    alert("Main Page Function Called!");
        </script>
    </head>
    <body>
    <div>
      <div id="div_test1">
        <iframe id="page_test1" width="100%" height="100%" src="test1.htm" frameborder="0" scrolling="no"></iframe>
      </div>
      <div id="div_test2">
        <iframe id="page_test2" width="100%" height="100%" src="test2.htm" frameborder="0" scrolling="no"></iframe>
      </div>
    </div>
    </body>
    </html>
    test1.htm src:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <body>
    <div>Test1 frame page</div>
    </body>
    </html>
    test2.htm src:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <script type="text/javascript">
         function showAlert(x)
    alert(x);
     function callVC()
    window.external.VCFuncTest();
        </script>
    </head>
    <body>
    <div>Test2 frame page</div>
    <div id="test_btn" style="background-color:red;width:100px;height:100px;cursor:pointer;" onclick="callVC();">Test</div>
    </body>
    </html>
    in VC++:
    VC++ code can call JS functions by CWebPage class, I found it here:  http://www.codeproject.com/Articles/2352/JavaScript-call-from-C
    in my VC project, webPage.CallJScript(_T("FuncMain")) succeeded!
    webPage.CallJScript(_T("page_test2.showAlert") failed,  the GetIDsOfNames() return DISP_E_UNKNOWNNAME. BTW, webPage.CallJScript(_T("showAlert")
    also failed! Same error.
    any help?
    Best Regards!

    Thanks for your reply Viorel_.
    i know i can define a function in the main page: 
    function showAlert_Main(x)
            document.frames('page_test2').showAlert(x);
    then, webPage.CallJScript(_T("showAlert_Main"))
    succeeds.
    but this function is just an empty shell doing nothing, and i know there must have a way to call showAlert(x) directly.

  • How can I use a cfwindow with a form in it to update the main page?

    This seems simple enough but I can't figure it out. My main
    page calls a query to get a list of departments. I have put this
    list in a table inside a cfdiv tag. I have an add department link
    on my page. When the user clicks on this link, I want a popup
    window (cfwindow) to display containing a form to add a department.
    Then when the user submits the form, the form should disappear and
    the main page should show the updated list of departments.
    I can't get the form to close without getting an error
    stating that there already is a window with that name and the new
    data doesn't display unless I refresh my screen.
    Here's my departments.cfm page:
    <html>
    <head>
    </head>
    <cfinvoke component="department"
    method="list"
    returnvariable="departments">
    </cfinvoke>
    <body>
    <cfwindow name="deptWindow" title="Department Window"
    draggable="true" resizable="false"
    initshow="false" height="400" width="600" x=200 y=100>
    <cfform action="processDepartment.cfm"
    onsubmit="ColdFusion.Window.hide('deptWindow')">
    Department:
    <cfinput type="text" name="deptname">
    <cfinput type="submit" name="submit">
    </cfform>
    </cfwindow>
    <a href="#"
    onClick="ColdFusion.Window.show('deptWindow')">Add
    Department</a>
    <cfdiv>
    <table>
    <tr>
    <th>Department</th>
    <th>Action</th>
    </tr>
    <cfoutput query="departments">
    <tr>
    <td>#deptname#</td>
    <td><a href="##"
    onClick="ColdFusion.Window.show('deptWindow')">Edit</a></td>
    </tr>
    </cfoutput>
    </table>
    </cfdiv>
    </body>
    </html>
    Here's my department.cfc page:
    <cfcomponent output="false">
    <cfset THIS.dsn="cf8test">
    <cffunction name="list" access="remote" output="false"
    returntype="Query">
    <cfquery name="departments" datasource="#THIS.dsn#">
    SELECT department_id, deptname
    FROM departments
    ORDER by deptname
    </cfquery>
    <cfreturn departments />
    </cffunction>
    <cffunction name="add" access="public" output="false"
    returntype="Boolean">
    <cfargument name="deptname" required="true"
    type="string">
    <cfquery datasource="#THIS.dsn#">
    INSERT INTO departments(deptname)
    VALUES (<cfqueryparam value="#Trim(ARGUMENTS.deptname)#"
    cfsqltype="cf_sql_varchar">)
    </cfquery>
    <cfreturn true />
    </cffunction>
    </cfcomponent>
    And finally, here's my processDepartment.cfm page:
    <!--- Form Field Validation --->
    <cfparam name="FORM.deptname" type="string">
    <cfif IsDefined("FORM.id")>
    <cfset method="update">
    <cfelse>
    <cfset method="add">
    </cfif>
    <cfinvoke component="department"
    method="#method#">
    <cfif IsDefined("FORM.id")>
    <cfinvokeargument name="id"
    value="#FORM.id#">
    </cfif>
    <cfinvokeargument name="deptname"
    value="#Trim(FORM.deptname)#">
    </cfinvoke>
    <!--- When done go back to the Departments listing --->
    <cflocation url="/departments.cfm">

    Hi Jeff,
    One way to do it is to write a JavaScript function that binds
    to your CFC. The CFC should both insert the user values, and then
    select all of the departments from the department table, and then
    return the query set to the page. I wrote sort of a test page which
    gets the state from the States table according to the state
    abbreviation that the user types in from a CFWindow. The table
    never gets updated, however, the result comes back from the CFC
    through AJAX, then updates the main page. You can use this same
    idea but you'll have to update your CFC a little bit. However, the
    idea is the same.
    Here's the code for my get State application. Especially
    notice the following three lines of code in the JavaScript function
    called getStates:
    var d = new getStates2(); //this is the name of your CFC
    d.setForm('form1'); //not sure if you need this, but I found
    it somewhere
    var stateName = d.getAllStates(); //the name of the function
    inside your CFC
    Anyway here's the code in full:
    <style>
    .stateClass {
    font-family: arial;
    font-weight: bold;
    font-size: 12pt;
    padding-top: 10px;
    </style>
    <cfajaxproxy cfc="getStates2">
    <script language="javascript">
    function enter_pressed(e){
    var keycode;
    if (window.event) keycode = window.event.keyCode;
    else if (e) keycode = e.which;
    else return false;
    return (keycode == 13);
    function getStates()
    if(document.form1.theState.value == '') {
    alert('Please make sure the textbox is not empty.');
    return false;
    var d = new getStates2();
    d.setForm('form1');
    var stateName = d.getAllStates();
    ColdFusion.Window.hide('stateWin');
    if (stateName == '')
    document.getElementById('stateDiv').innerHTML = 'No such
    state';
    else
    document.getElementById('stateDiv').innerHTML = 'The state
    is ' + stateName;
    </script>
    <cfwindow name="stateWin" x="100" y="100" width="400"
    height="200">
    <form name="form1" method="post" onsubmit="return
    false;">
    <input name="theState" type="text" size="5"
    onKeyPress="if(enter_pressed(event)){ getStates() }"
    />
    <input type="button" value="get state"
    onClick="getStates()">
    </form>
    </cfwindow>
    <div id="stateDiv" class="stateClass">
    </div>
    <a
    href="javascript:ColdFusion.Window.show('stateWin')">find a
    state</a>

  • How can I get the "pageContext" object in jsp page?

    Hi everyone:
    I want to get struts's DataSource object in jsp page.So I should get the PageContext object in jsp page.My code is:
    ///////////////////datatest.jsp///////////////////////////////////
         DataSource ds=(DataSource)pageContext.getAttribute(Action.DATA_SOURCE_KEY);
         conn=ds.getConnection();
              stm=conn.createStatement();
              rs=stm.executeQuery(insertsql);
    Is right?But I get the "NullPointerException" error in Tomcat.The connection pool in struts-config.xml is:
    <data-sources>
    <data-source key="mydatasource">
    <set-property property="autoCommit"
    value="false"/>
    <set-property property="description"
    value="MyWebSite Data Source Configuration"/>
    <set-property property="driverClass"
    value="org.gjt.mm.mysql.Driver"/>
    <set-property property="maxCount"
    value="4"/>
    <set-property property="minCount"
    value="2"/>
    <set-property property="password"
    value="qijiashe"/>
    <set-property property="url"
    value="jdbc:mysql://localhost:3306/myweb"/>
    <set-property property="user"
    value="lyo"/>
    </data-source>
    </data-sources>
    I can query the database in servlet.
    I think the method that I get the context is not right.Had someone get the pagecontext in jsp page?help :(

    Sorry I forgot that I had change the code:
    DataSource ds=(DataSource)pageContext.getAttribute(Action.DATA_SOURCE_KEY);
         conn=ds.getConnection();
              stm=conn.createStatement();
              rs=stm.executeQuery(insertsql);
    to the code:
    DataSource ds=(DataSource)pageContext.getAttribute("mydatasource");
         conn=ds.getConnection();
              stm=conn.createStatement();
              rs=stm.executeQuery(insertsql);
    mydatasource is the struts datasource in "struts-config.xml". I couldn't work

  • Error : WIS 00001 - Some objects are no longer available in the universe.

    Hi ,
    I have performed some manual actions in OLAP universe i.e move and rename of objects. Object works fine when i drop them in "Result Objects" pane.If the same object i drop in "Query filters" and if i select filter option -'value(s) from list' i get the below error:
    Error - "Some objects are no longer available in the universe. See your Business objects administrator. (WIS-00001)".
    Is it something to do with manual action performed in universe? Please help me ....
    Regards,
    Pallavi

    Hi,
    For the objects which you are getting error, do the following in designer
    1.select the objects -> go to properties ->check for LOV options i.e if it is disabled then you want get those values so click on edit -> it goes to lov query panel -> run the query and check the lov's for the object-> check export with unv-> save the object n unv & Export the unv->then try it in your report creation.
    Cheers,
    Suresh Aluri.

  • OAF Personalization : print output of a query on a OAF page

    I have a requirement in OAF form.
    Wanted to check if it is possible
    I needed to print a value on the form which would be a query output.
    Basically in my requisiiton workflow i have changed teh approver.
    Based on that the OAF page doesnt reflect the change. I need to change the OAF page but just by personlization. Want to check if this is possible.
    In short, I want to write a query and get an output and print that on the screen of a OAF page.

    user8655468 wrote:
    I would like to display a label on my report but has to appear only on the last page of the report in the margin areaCreate a fixed frame at the bottom of margin area and inside the frame put your label.
    set the frame print object on: Last page
    Hope this works..

  • Search criterias in one page, the query results in another page?

    Hi, can I put search criterias in one page, and get query results in another page?
    Need help
    Thanks in advance
    karman

    If you meant a situation like: Page 1 has some items and page 2 has a report which refers page 1 itemsThen your report _query would fetch proper results provided the page 1 item values are available in the session_.
    That is, after submitting their values(using page submit,dynamic action,ajax etx) to session state , their values would be available in any page (anywhere in that session ) , until the page cache for the item page(page 1) is cleared.

Maybe you are looking for