Automatically run query when open webpage

Hi experts,
I am newbie in Jdeveloper. I created the webpage following the "Search" tutorial. But now I need to run the query when I open the page, no need to input parameter and click on "Go" button.
Thanks in advance
Best Regards
Hieu

Hi,
In controller write the code
import oracle.apps.fnd.framework.OAApplicationModule;
public void processRequest(OAPageContext pageContext, OAWebBean webBean)
super.processRequest(pageContext, webBean);
OAApplicationModule am = pageContext.getApplicationModule(webBean);
am.invokeMethod("callAM");
In AM create new method
public void callAM() {
NewVOImpl vo = getNewVO1();
vo.executeQuery();
Thanks
Jegan

Similar Messages

  • Refresh query when opening workbook is ticked automatically

    Prior to Upgrade, the bex properties settings for "Refresh query when
    opening workbook" was unticked(deactivated) and now after upgrade to BI
    7.0 the bex properties "Refresh query when opening the workbook" is
    ticked(activated).
    Again, This has happened only to a particular strand.
    Can anybody guide me on this. As a result of the above, all the work books are now refreshing automatically. This has affected hunderds of workbooks and we need to restore this back. Please help.

    Hi Dave,
    That is a local workbook setting.  The setting is stored in the workbook on the sheet named SAPBEXqueries (see earlier postings on how to make this worksheet visible).
    If there is only one query in the workbook, then look at at cell U4.  This cell will read TRUE if the setting is check (do refresh on open) and will read FALSE if the setting is not checked (do not refresh on open).
    One way to be sure that this setting is not altered would be to create a subroutine for the Workbook_BeforeClose event.  The user then can make any selection they like, but you will over-ride it when they close the workbook.
    Hope this helps.
    - Pete

  • "Automatically play movies when opened" preference broken

    I recently upgraded from QT player to QT Pro 7.5. It all works just fine, but the Preferences setting "Automatically play movies when opened" appears to have broken in the process. Movies and audio all open properly, but I must click the "Play" button to start them. This is somewhat annoying - when I double click those files I just want them to play.
    I have tried unsetting/resetting this preference to no effect. Suggestions?

    Try this:
    Close Quicktime.
    Go to Home/Library/Preferences and delete the file com.apple.quicktimeplayer.plist
    Open Quicktime and reset your preferences.
    Does it work now?

  • How can I automatically run animations when the slide is invoked?

    Hi All
    My question is (hopefully) simple,  I have a number of Microsoft Powerpoint presentations that I want to import into Adobe Captivate 6. I want the  slides to automatically run their animations when the slide is invoked either by clicking on the Table of Contents  or by clicking on the Playback Control Panel. In other words, I want the slides to play their animations as soon as they are opened up rather than the viewer having to click on each side to make the animation work. Many thanks in advance for your time and efforts.
    Moon_dogworth

    Hi there,
    Welcome to Adobe Forums
    I apologize but I did not quite understand what exactly you are trying to achieve. If you want certain transition on the slide when the TOC is clicked or the slide is entered then you can choose the transition under the Properties panel on the right side.
    See picture:
    Hope this helps!
    Thanks!

  • Run function when open layout

    Hi,
       I need to run a function when open a layout, I follow the "How to Run Planning Sequences on Save and Other Events" paper, but fail.
       After get into debug, I notice that in the following code
    IF lr_lay->is_ready_for( cl_upwb_bsp_appl=>ce_get_data ) = cb_true.
          CONCATENATE l_id '_before' INTO l_id_seq.
    ENDIF.
    The if statement is not satisfy, therefore "CONCATENATE l_id '_before' INTO l_id_seq." statement never executed.
    Anybody know how to fix it?
    Thanks!

    I understand is that when open the layout, the function should run according to the how to paper, but it not run.in debug, I find out that "IF lr_lay->is_ready_for( cl_upwb_bsp_appl=>ce_get_data ) = cb_true."
    is false, therefore,the statement "CONCATENATE l_id '_before' INTO l_id_seq." is not run, therefore,the function is not run. However  since the code is standard from the how to paper, I can not find the reason.

  • Run vi when opened

    Hello,
    I'm trying to get the subVI to run when the front panel is opened.  It works manually (when the "Vi Properties/Executon/Run when opened" is enabled) but never does when I try to open it from another VI.  I have uploaded the little program which I was playing with.  If you guys can help me it would be great
    The program opens another VI (with name given by the user) from the same folder...
    Attachments:
    Openvi.vi ‏17 KB

    hello,
    i think that you just have to insert the "invoke node" and select "run vi".
    See the attached picture.
    Software developer
    www.mcm-electronics.com
    PS: Don't forget to rate a good anwser ; )
    Currently using Labview 2011
    PORTUGAL
    Attachments:
    runvi.PNG ‏8 KB

  • Crystal Report Instance - running query when viewing?

    Hi
    Why would a Crystal Report that was scheduled and completed success fully try to run the query again when I click on the instance?  Isn't it just suppose to render the report when one clicks on the instance?
    Thanks
    Kim

    i think its as i told you before, its something related with the parameters, you can have multiple instances with different parameter values.
    and there is many other technical issues, i dunn know if you read about it or not you can revise back the Crystal Report user guide
    you can get it from here
    http://help.sap.com/content/bobj/overview/index.htm
    good luck

  • Problem refreshing query when opening workbook in VBA

    I have a report menu in a workbook not containing any queries - only the description, technical name and additional information about the reports.
    I use Run ("SAPBEX.XLA!SAPBEXreadWorkbook"), <TECHNICAL_NAME> to open the respective workbooks, which works fine.
    However, if I try to refresh the query, BEx displays a message saying:
    "Can only refresh this query agains a server of release 2.0 or higher: <QUERY DESTINATION RANGE>"
    We're using BW 3.5!
    After that, BEx is a complete mess:
    - Open workbook dialog is from a previous version (without History, Favorites, Roles buttons)
    - All workbooks are displayed, but if I try to open one, BEx claims that "The workbook does not exist in the document store". Then why display it, dear SAP programmers?
    Now, if I disconnect and reconnect, the query can be refreshed as if I had opened the workbook directly instead of using VBA.
    Our users like the idea of a report menu, so any help would be appreciated!

    Changed the error handling as follows, dropped the SAPBEXinitConnection function, which is completely redundant:
    Sub OpenWBTechName()
    On Error GoTo ErrorHandler
        Run ("SAPBEX.XLA!SAPBEXreadWorkbook"), <TECHNAME>
    Exit Sub
    ErrorHandler:
        If Err.Number = 1004 Then ExtraInfo = "Start BEx Analyzer!"
        res = MsgBox("Sorry, could not open requested report!" & vbCrLf & vbCrLf & ExtraInfo, vbExclamation + vbOKOnly, "Open SAP/BW workbook report: ERROR!")
    End Sub

  • Quicktime X: automatically play movies when opened?

    Anyone know if there is a way to have QUicktime X automatically start playing a movie when the file is opened? This is a menu option in Quicktime 7 but I can't seem to find it for X.
    Thank you

    http://web.me.com/celebi23/QuickTimeXScripts/Main.html
    Or download this set of AppleScripts that add some "preferences" to QuickTime X.

  • My husband downloaded a newer version of Firefox on my computer and now it does not automatically go online when opened. How do I remedy this?

    I always click "work offline" when I exit anything that I do online. Firefox always opened in the online mode before, but since the newer version was downloaded I now have to manually put it online every time I open it. Even when I click a link in an email.

    Found this item it may help
    OK, I have fixed it here. Here's what I did:
    quit iTunes
    trashed ~/Library/Preferences/com.apple.iTunes.plist
    started iTunes, and authorised my account
    Worked straight away after that !

  • Is there a way to automate "show all" when opening Finder

    Is there a way to do this? When i open finder, it just want it to show all the folders. I have to click top right, "show all" all the time most of the day.
    It would be nice just to have it a default

    Finder > Preferences > General tab > New Finder windows show:  All my files.
    Regards,
    Captfred

  • How to stop automatic date changes when opening an old document?

    I use Pages to create my invoices. The problem I'm having is this:  when there is a question about an invoice and I need to reopen it the date changes from the original date (which I need) to today's date.  I understand why it does this, and I want it to do this when I create the thing, but is there a way to keep it from happening from saved documents?
    As a follow up question:  it must be very simple to find the date the document was created.  Could someone please tell me where to find this?
    Thanks in advance

    You likely put a date stamp on your invoice via the menu hiearchy, Insert > Date & Time. Highlight the date string, then from a right-mouse button menu, choose Edit Date & Time... You will see another pop-up that gives you some control over your newly inserted Date & Time.

  • Query form when opening the application (update state)

    How do I set a form to auto query when opening it?
    I read some things about, but did not find a good answer. I made a button which updates selected values in two LOV's. For that button to appear, i need to press the Query button. Else it is not visible.
    Any id how I can get the form to open in a state, that the update button becomes visible?
    THANKS!

    I was able to do this with Javascript. In your first lOV, add the following code in the OnChange event:
    javascript:for (var i=0; i < document.forms[0].elements.length; i++)
    if (document.forms[0].elements.name.substring(document.forms[0].elements[i].name.indexOf('DEFAULT.')+8,document.forms[0].elements[i].name.lastIndexOf('.01')) == "QUERY_TOP")
    do_event(this.form, document.forms[0].elements[i].name, 1, 'ON_CLICK', '');

  • Auto refresh when opening a workbook

    Hi
    When I open a workbook, I would like the query to auto refresh. In that way the planning user will see the latest planning values and not the ones saved in the workbook.
    Is there any functionality for running the planning function refresh automatically when the workbook is opened?
    Kind regards
    Erik

    Hi Erik,
    Once you open the workbook, just right click on result area and select properties.
    In that select the Interaction tab and then check Refresh query when opening workbook.
    Then dont forget to save the work book.
    Regards,
    anil

  • Numbers operating slow especially when opening

    It seems that since the last update my Numbers software is operating very slowly.
    Is anyone else experiencing this problem ?

    No problems here.
    Does it run slowly when opening legacy (Numbers 2) documents?  Or when you create new documents too?
    It's possibly a bad installation.  You could try going to LaunchPad and deleting Numbers 3 (the icon with four columns), then redownloading it from the Mac App Store.
    SG

Maybe you are looking for

  • Error while creating an admnistrative profile

    Hello All, I am setting up the SAP etweaver Mobile 7.1, in a process i have come across a scenarion where i will have to set up the admnistrative profile for my user. I have followed the following steps Procedure Log on to the NetWeaver AS and start

  • CRM tables for service

    Hi All , I am in a project to perform "SHARED SERVICE CENTER" a report to generate Average age of service requests .So I need to know the respective tables in CRM to built an extractor .So can any one help me in getting the tables relared to service

  • Portal language is coming different

    Hi, We have backend sap system with german language when we logged into portal we are getting german language, but we need english for that we are doing personalization and changing language to english.  For that partucular session i am getting engli

  • Thank you Leonie and All!!

    Oh, man. I could not be more grateful for your help and that of everyone on the list. Thanks for getting me most of the way out of a very bid ditch!!

  • How to burn an imovie to a dvd?

    I created a slide movie in imovie. It is listed as a project in the project library. I shared it to the media browser. Now, I can't figure out how to burn it to a dvd that will play on a tv.