How to Automate the Query Search Upon Return to the Calling Form?

Greetings Ya’ll Gurus,
Could you please share with me how to make the Query Search executed automatically each time, when database table is updated, upon return to the “Calling Form” (i.e. FormA in this posting) from the “Called Form” (i.e. FormB from here on)?
I have FormA call_form to FormB. FormB may return to FormA. FormA allows users to enter the Query parameters and perform query Search to the database table with a list of search results afterward; whereas FormB allows users to add or delete the same database table records. Both form images are as follows:
FormA:
!http://dot.state.ak.us/nreg/jtomasic/FormA_DWR_SEL.GIF!
FormA call_form to FormB by clicking PB “Daily Work Report” (see circled PB "Daily Work Report" in the above image.)
FormB Image (FormB allows users to add and delete database records):
!http://dot.state.ak.us/nreg/jtomasic/FormB_DWR.GIF!
FormB EXIT_FORM and returns to FormA (see circled PB "DWR Selection" in above image).
Currently, our users must press the PB “Search” on FormA each time to refresh the Query “Search” results after returning to FormA, and they request to have the "Search" done automatically/programmatically upon return to FormA each time when the database table is updated.
If you have programming code on this and are willing to share or if you have any suggestion or thoughts on this, it would be most greatly appreciated.
Thanks a lot & Happy Holidays!

Thanks so much Andreas, and yes, your link for calling a form and passing a context is very helpful. I believe, your suggested use of the global variable for the saved database table will work for the automation of the Query Search. I am, however, not sure how to make the code and the trigger to automatically perform Query PB "Search". The code for our current "WHEN-BUTTON-PRESSED" Trigger for the PB-Search of FormA is as following:
DECLARE
     alert_button     NUMBER;
     alert_id               ALERT;
  MY_WHERE VARCHAR2(2500);
  MY_DIST_ID         DIST.DIST_ID%TYPE     := :BLK_UPDATE.DIST_ID;
  MY_ORG_ID          DWR.ORG_ID%TYPE       := :BLK_UPDATE.ORG_ID;
  MY_ACTY_ID         DWR.ACTY_ID%TYPE      := :BLK_UPDATE.ACTY_ID;
  MY_ACTY_WORK_ID    DWR.ACTY_WORK_ID%TYPE := :BLK_UPDATE.ACTY_WORK_ID;
  MY_CNTY_ID         DWR.CNTY_ID%TYPE      := :BLK_UPDATE.CNTY_ID;
  MY_ASSET_GRP_ID    DWR.ASSET_GRP_ID%TYPE := :BLK_UPDATE.ASSET_GRP_ID;
  MY_ASSET_ID        DWR.ASSET_ID%TYPE     := :BLK_UPDATE.ASSET_ID;
  MY_RTE             DWR.RTE%TYPE          := :BLK_UPDATE.RTE;
  MY_BEG_MP          DWR.BEG_MP%TYPE       := :BLK_UPDATE.BEG_MP;
  MY_END_MP          DWR.END_MP%TYPE       := :BLK_UPDATE.END_MP;
  MY_FROM_DATE       DWR.DWR_DATE%TYPE     := :BLK_CONTROL.FROM_DATE;
  MY_TO_DATE         DWR.DWR_DATE%TYPE     := :BLK_CONTROL.TO_DATE;
  MY_FLAG_OFFSYS     VARCHAR2(11)          := :BLK_UPDATE.FLAG_OFFSYS;
  MY_FLAG_COMMENTS   VARCHAR2(11)          := :BLK_UPDATE.FLAG_COMMENTS;
  MY_SPECIAL_EVENT_SEQ_NO SPECIAL_EVENT.SPECIAL_EVENT_SEQ_NO%TYPE  := :BLK_UPDATE.SPECIAL_EVENT_DESCR;
  MY_FLAG_ACCDT      VARCHAR2(11)          := :BLK_UPDATE.FLAG_ACCDT;
BEGIN
:blk_control.dummy_flag := 1 ;
:BLK_CONTROL.DUMMY_ERR_FLAG := 'N';
VALIDATION_SELECTION;     -- Program Unit VALIDATES DWR SELECTION PARAMETERS PRIOR TO
                                                -- PERFORMING THE SEARCH AND POPULATING THE DISPLAY BLOCK
if :blk_control.dummy_flag = 1 then
  IF :BLK_CONTROL.DUMMY_ERR_FLAG = 'N' THEN
    MY_WHERE := BUILD_WHERE_CLAUSE(MY_DIST_ID,
                                   MY_ORG_ID,
                                   MY_ACTY_ID,
                                   MY_ACTY_WORK_ID,
                                   MY_CNTY_ID,
                                   MY_ASSET_GRP_ID,
                                   MY_ASSET_ID,
                                   MY_RTE,
                                   MY_BEG_MP,
                                   MY_END_MP,
                                   MY_FROM_DATE,
                                   MY_TO_DATE,
                                   MY_FLAG_OFFSYS,
                                   MY_SPECIAL_EVENT_SEQ_NO,
                                   MY_FLAG_ACCDT,
                                   MY_FLAG_COMMENTS);
    SET_BLOCK_PROPERTY('BLK_DISPLAY', DEFAULT_WHERE, MY_WHERE);
    GO_BLOCK('BLK_DISPLAY');
    CLEAR_BLOCK(NO_VALIDATE);
    EXECUTE_QUERY(ALL_RECORDS);
    IF :BLK_DISPLAY.DWR_SEQ_NO IS NOT NULL THEN
               SET_ITEM_ON_OR_OFF('BLK_CONTROL.PB_PRINT', TRUE);
    ELSE
               SET_ITEM_ON_OR_OFF('BLK_CONTROL.PB_PRINT', FALSE);
               alert_id := FIND_ALERT('no_data_query');
               IF ID_NULL(alert_id) THEN
                    error_msg(1000);
               ELSE
                    set_alert_message(alert_id, 1040);
                    alert_button := SHOW_ALERT(alert_id);
               END IF;
          END IF;
          GO_BLOCK('BLK_UPDATE');
          GO_ITEM('BLK_CONTROL.PB_SEARCH');
     END IF;
end if;
END;My questions are:
After initializing, set and/or reset the global variable for the saved database table,
do I copy the above code (i.e. the "entire" code in the "WHEN-BUTTON-PRESSED" Trigger for the PB-Search) to the WHEN-NEW-FORM-INSTANCE-trigger, or other trigger(s), of FormA to automate the Query Search whenever there is a successful database commit/save? Or
is there a simple way to activate the code in the "WHEN-BUTTON-PRESSED" Trigger for the PB-Search of FormA? Or
is there a simple way to activate the EXECUTE_QUERY(ALL_RECORDS) command in the WHEN-NEW-FORM-INSTANCE-trigger or other trigger(s) of FormA ?
Thanks and always.

Similar Messages

  • I have an IPAD 2 that I use to view an IP camera over a Wifi network.  The Ipad is in a vehicle that leaves the Wifi range and then returns to the range.  Upon returning to the range, the Ipad has trouble connecting to the network. (30 seconds)

    I have an Ipad 2 that I use to view an IP camera over a Wifi network.  The Ipad is in a vehicle that leaves the Wifi range and then returns to the range.  Upon returning to the range, the Ipad has trouble connecting to the network. (30 seconds)  The Ipad will eventually connect to the network, but by this time the driver is frustrated.  I have moved the antenna to within 20' of where the vehicle comes to a stop.  My Iphone does not have a problem connecting or reconnecting when used side by side with the Ipad.  Both the Ipad and Iphone have Otter box covers.  Has anyone run into this problem or have any suggestions?

    30 seconds to reconnect to a WiFi network is not unusual, especially in an environment where other radio signals on similar frequencies are present.  Sorry about that.
    You might get better times by letting the WiFi base station pick another channel.  But you might not.

  • How do I count the number of records returned in the CMIS query

    How do I count the number of records returned in the query CMIS?
    SELECT COUNT(*) FROM ora:t:IDC:GlobalProfile WHERE ora:p:xRegionDefinition = \'RD_PROJETOS_EXCLUSIVOS\''}
    Euler Homero

    Hi Euler,
    interestingly enough, the reference guide for CMIS ( http://wiki.alfresco.com/wiki/CMIS_Query_Language ) that I found does not mention the COUNT function at all. On the other hand it states that: "The SELECT clause identifies which virtual columns to return in the result set. It can be either a comma-separated list of one or more queryNames of properties that are defined by queryable object types or * for all virtual columns."
    There are, however, some other posts like e.g. http://alfrescoshare.wordpress.com/2010/01/20/count-the-total-number-of-documents-in-alfresco-using-sql/ which state that they could make it working.
    Having asked in the WebCenter Portal forum, I assume that your content repository is WebCenter Content. The CMIS doc for the Content is available here: http://docs.oracle.com/cd/E23943_01/doc.1111/e15813.pdf (no COUNT there either). It does, however, mention explicitly that "CMIS queries return a Result Set where each Entry object will contain only the properties that were specified in the query.". This means your could rather investigate the Result Set. Note that there are also other means than CMIS how to get the requested result set (e.g. calling a search service directly via so-called RIDC).
    In the given context I am also interested what your use case is. OOTB CMIS in WebCenter Portal is used, for instance, in Content Presenter, where it is content rather than "parameters" what's displayed.

  • In elements 11 how do I make a finished movie return to the start menu?

    In Elements 11 how do I make a finished movie return to the start menu?

    Maud23
    I just got through a run through of your issue using Premiere Elements 8.0/8.0.1 and Premiere Elements 11 on Windows 7 64 bit and my TV DVD player.
    Whether it was Premiere Elements 8.0/8.0.1 or Premiere Elements 11 with or without menu markers on the project's Timeline, the DVD-VIDEO on DVD disc produced played back the same on my TV DVD Player.
    Results...
    No disc menus and with or without scene markers on the Timeline
    Timeline - color matte - jpg 1, jpg 2, jpg3, jpg 4, jp5
    Hitting Play, played back was from the color matte to the jp5 and then back to the DVD player logo, not the color matte.
    If I applied a disc menu (just main menu page, no scene markers on the Timeline)
    Timeline - color matte - jpg1, jpg2, jpg3, jpg4, jp5
    The main menu would automatically appear. When I hit Play (only option since no scene markers/no Scene Selection button on the main menu), the playback would start at the color matte, continue to jpg5, and then return to the main menu page, not the DVD player logo nor the color matte.
    Again, it did not matter if the DVD-VIDEO described above was created in version 8.0/8.0.1 or 11, same results.
    I did not explore fully TV DVD settings to determine if answers could be found on the TV DVD player side of things. I have not found them.
    Could you elaborate on what you wrote
    At the start I chose to use a single slide from the Elements 11 menu selection.
    Are you saying that whatever you did there was consistent with you getting what you wanted when you did that but used version 8.0/8.0.1 instead of 11? From what you wrote, I am wondering if what you did was to apply just the main menu of a disc menu to the project to get what you wanted just like I did in my road testing of the issue tonight.
    We will be watching for further details.
    Thank you.
    ATR

  • Is there any way to search for a term using the Firefox search field, and have the results automatically open in a new tab?

    Is there any way to search for a term using the Firefox search field, and have the results automatically open in a new tab? When there was support for Google Toolbar, I was able to do this; now, whenever I want to search for something, I have to open a new tab to do it, and cut-and-paste my search into the search field in the new tab. I used to be able to highlight, drag, and drop something into the search field and have it automatically open in a new tab. This is enough for me to switch to Chrome . . .

    Set a preference to have searches from the Search Bar (upper right) automatically open all searches in a new tab
    #type '''about:config''' in the URL/Location/Address bar and press the Enter key
    #if you see a warning, accept it (promise to be careful)
    #Filter = '''browser.search.openintab'''
    #in the lower panel, double click the item (or right-click and choose "Toggle") to change the value to "true"
    #close the about:config tab and test
    #See:
    #*For help with opening/using about:config, also see: http://kb.mozillazine.org/About:config
    #*Also see: http://kb.mozillazine.org/About:config_entries (click on "Browser", scroll down to browser.search.openintab)
    '''Search Bar''': http://support.mozilla.com/en-US/kb/Search+bar
    '''If this reply solves your problem, please click "Solved It" next to this reply when <u>signed-in</u> to the forum.'''
    About Google toolbar............
    Google decided that they will no longer produce the Google Toolbar for Firefox 5 and newer version. It is best to move on to other alternatives than to try any "hacks" to the toolbar that may or may not perform in the future. Future versions of Google toolbar will only work with IE7-9. Google Toolbar is not available on any other browser, even Google's own browser.
    *http://googletoolbarhelp.blogspot.com/2011/07/update-on-google-toolbar-for-firefox.html
    *https://support.mozilla.com/en-US/kb/google-toolbar-not-compatible-firefox?s=google+toolbar&r=0&as=s
    *http://www.google.com/support/toolbar/bin/answer.py?answer=1342452&topic=15356%29
    *Google Toolbar 8 FAQ (IE only): https://www.google.com/support/toolbar/bin/answer.py?hl=en&answer=1111588
    '''''To access your Google Bookmarks visit''''' www.google.com/bookmarks.
    Alternatives:
    *http://kb.mozillazine.org/Using_Google_Toolbar_features_without_toolbars
    *https://addons.mozilla.org/en-US/firefox/addon/googlebar-lite/
    *https://addons.mozilla.org/en-US/firefox/addon/gbookmarks-google-bookmarks-fo/

  • How to find out query name using Elements of the query builder.

    Hi SDNers,
    how to find out query name using Elements of the query .
    thanks,
    satyaa

    Hi,
    For having a look at the relation between BEx tables,check the link below:
    http://wiki.sdn.sap.com/wiki/display/BI/ExploretherelationbetweenBEx+Tables
    -Vikram

  • How to get the query design element meaning with the technical name ?

    In BI 7.0 query designer, we got error msg in Transport Connection like:
    Object 41PPHH3DICYQ56L2XJGXDRSMT is already being
    edited by user_id
    Choose 'Display object' or 'Cancel'.
    How to check what design element is for 41PPHH3DICYQ56L2XJGXDRSMT?  And what could cause the above error?
    We will give you reward points!

    You can collect the query and its elements in the transport connection. The under the technical name you will find this and the element.
    Hope this helps.
    Kumar

  • Every time I move emails from the inbox to another mailbox, then click on any mailbox, and then go back to the inbox, the moved messages have returned to the inbox

    Every time I move emails from the inbox to another mailbox, then click on any mailbox (the emails are there fine), and then go back to the inbox, the moved messages have returned to the inbox. I have moved them out of the inbox to other mailboxes again and again, but then they keep showing up in the inbox again as soon as I click on any mailbox other than the inbox. Very frustrating.
    This has only happened since I installed Mavericks on both my Macbook Pro and my iMac. It happens on both of them.
    Any ideas how to fix it?
    peter

    This may be one of the known issues with Gmail and it's IMAP settings working with Maverick's Mail.
    It all comes down to if you have the ALL MAIL folder visible or not via IMAP.
    If you do not, then you get the behavior you are describing.
    If you do have ALL MAIL visible, then there isn't a problem.
    Odd, I know.
    Anyway, check out this article on Wired which describes the problem and work around. You may have to click on the NEXT button at the top of the window to advance to the proper gallery image that describes this issue:
    http://www.wired.com/gadgetlab/2013/10/mavericks-issues-and-fixes/#slideid-23460 1

  • TS3899 Having trouble accessing my email account thru the mail app, after entering the account information in the settings page, hotmail returns with the error message " The user name or password for Hotmail is incorrect

    Having trouble accessing my email account thru the mail app, after entering the account information in the settings page, hotmail returns with the error message " The user name or password for Hotmail is incorrect". Help

    Hotmail is having problems:
    http://bostinno.streetwise.co/2013/08/15/hotmail-outage-hotmail-is-down-for-user s-still-photos/
    http://www.engadget.com/2013/08/14/outlook-outage/
    http://www.infoworld.com/d/applications/microsofts-skydrive-outlookcom-are-down- some-users-224940
    http://mashable.com/2013/08/14/outlook-down/
    http://techcrunch.com/2013/08/14/microsoft-acknowledges-outlook-com-messenger-sk ydrive-outages/

  • I bought a used PowerMacPC G5. I can burn and read DVDs, but I can't read or burn CDs. The CDs are not even recognized. After the drive searches for a while, the CD is ejected without any error messages. The CDs work okay on my iMac.

    I bought a used PowerMacPC G5. I can burn and read DVDs, but I can't read or burn CDs. The CDs are not even recognized. After the drive searches for a while, the CD is ejected without any error messages. The CDs work okay on my iMac.
    I am running Mac OSX 10.4.11. According to the System profiler the CD/DVD drive is a "PioneerDVD-RWDVR-112D." When I compare the information under this heading, the only unusual difference from my iMac is that the G5 reads "Burn Support: Yes (Unsupported)." My iMac reads "Burn Support: Yes (Apple Shipping Drive)."
    Under the System Preferences the options are set to "Ask what to do" when a blank CD or DVD is inserted. Music CD set to open iTunes, Picture CD set to open iPhoto, Video DVD set to open DVD player.
    Do you have any suggestions?
    Thanks, Jack

    Hi Jack, great help so far!
    Internal...
    http://eshop.macsales.com/static_pages/Framework.cfm?page=superdrive/sdl_powerma c_g5.html
    External be sure it's Firewire & not Bus powered...
    http://eshop.macsales.com/shop/firewire/optical-drives/

  • The "Clear Search History" feature in the upper right drop-down menu no longer works in Firefox 4.

    The "Clear Search History" feature in the upper right drop-down menu that shows search terms no longer seems to work in Firefox 4.

    It is possible that there is a problem with the file that stores the "Saved Form" data.<br />
    Rename or delete formhistory.sqlite (plus formhistory.sqlite-journal and formhistory.sqlite.corrupt and formhistory.dat, if they exist) in the [http://kb.mozillazine.org/Profile_folder_-_Firefox Profile Folder] in case there is a problem with the file that stores the "Saved Form" data.<br />
    This will remove all saved form data, so you may want to rename formhistory.sqlite to formhistory.sqlite.sav or move the file to another folder in case you need to recover some saved data.
    You may also need to delete search.sqlite and search.json in the [http://kb.mozillazine.org/Profile_folder_-_Firefox Firefox Profile Folder]

  • Error :cannot show the value of the filter.The Field may not be filterable or the number of items returned exceeds the list view threshold enforced by administrator

    Issue : In sharepoint 2013, I am experiening below error while using filter in the list view due to the number of items in this list exceeds the list view threshold, which is 10000 items. Tasks that cause excessive server load (such as those
    involving all list items) are currently prohibited.
    Error :cannot show the value of the filter.The Field may not be filterable or the number of items returned exceeds the list view threshold enforced by administrator
    Could you please suggest a way to avoid this issue apart from incrementing the list view threshold limit .
    Prashanth

    Reorganizing content, or creating more specific views. sharepoint is warning you that the content is structured in such a way that it can cause performance issues, which should be addressed in some way.
    Kind regards,
    Margriet Bruggeman
    Lois & Clark IT Services
    web site: http://www.loisandclark.eu
    blog: http://www.sharepointdragons.com

  • Sometimes when using the Google search engine, after using the Back button in the Firefox 4.0.1 browser, I am no longer able to click in the Google search box.

    Sometimes when using the Google search engine, after using the Back button in the Firefox 4.0.1 browser, I am no longer able to click in the Google search box.
    This problems has been occurring on two different machines over the last two days.

    I think this may not be a browser problem but rather a Google problem.
    I am getting the same problem with the Google Chrome browser.

  • I had reset my iPhone and my Dictaphone refuse to start. I sea a microphone picture but when I push the 3 horizontal bars or the red buttom, they return to the main menu...

    I had reset my iPhone and my Dictaphone refuse to start. I sea a microphone picture but when I push the 3 horizontal bars or the red buttom, they return to the main menu...

    rstevenson wrote:
    If i factory reset my iPhone will it relock to O2?
    I've had my iPhone 3G for a couple of years and when out of contract i asked O2 to unlock it, which they did. I've used a Three sim card and it works okay. I've now decided to sell it but before I send it to the buyer i want to factory reset the phone. Will it remain available to use on any network once i've reset it, because i've advertised it as an unlocked phone?
    If it was officially unlocked by O2 it will remain unlocked if reset or updated.
    Also, just as a side note if you can help. Its running iOS 3.1.3. Once factory reset and connected to iTunes will it force an iOS 4 update or can you choose not to update the OS?
    If you restore it in iTunes it will be updated to the current release, 4.3.1. There are ways around this; Google is your friend.

  • The query contains a formula with the operator SUMCT

    I m trying to get query ready for Webi, getting the error as 'The query contains a formula with the operator %RT. Therefore, the query cannot be released for OLE DB for OLAP'
    I have not used any kind of s %GT, %RT, %CT, SUMGT, SUMRT, SUMCT and LEAF, also i have suppressed results / over results from the query, over to it, i have removed the calculate results as 'summation' feature and set to 'not defined' for all of my key figures.
    Still getting the error...
    Please suggest.
    Niraj

    hi,
    Ensure that all Link IDs are visible in the lsdal.ini file  located in the \Windows\system directory of the PAS Server as those are then available to all users. The lsdal.ini file may not be correctly updated if: - You have created the BI Link IDs while using PAS in Client Server Mode - You have enabled multi user access for remote desktop. In this case an additional lsdal.ini file may appear in the user specific Windows directory of someone who may have remotely connected to the system to create the Link ID. That additional lsdal.ini file will only be valid for that specific user.
    Also try adding  "ODBOSECURITY=0" entry to the end of the c:\windows\lsserver.ini file on the server.
    hope it helps
    regards
    laksh

Maybe you are looking for

  • SCSM 2012 UR3 - "The Full adapter threw an exception" error when viewing "Deleted Items" view

    Has anyone expereinced the "The Full adapter threw an exception" eror in the SCSM 2012 console?  We get the error in both our dev and production environments when trying to view the "Deleted Items" view in the console (even after using powershell to

  • PROGRAM FOR INTERACTIVE ALV REPORT

    Hi frens,   this is my 3rd query to this forum. the response of this forum is excellent.now my question is : whats the source code(or program) for Interactive ABAP List Viewer(ALV)  reports connecting KNA1 as basic list and VBAK, VBAP as the seconday

  • HT1923 my iphone4s is not connected to my computer after installing itunes...

    my iphone4s is not connected to my computer after installing itunes... if i uninstall itunes and connect my phone then computer is detecting my phone.... how to solve this plz help me....

  • Street validations in transaction code FPP1

    Hi, Please guide how can we make validation for street field in transaction code fpp1. We have maintained the check in the 'city active' field in customization(spro). After that it validates the street. But if we enter a street name which is not exis

  • Cluster & Oracle Fail Safe

    Hi all! I need to make one instance of Oracle 8 available 24/24 7/7, so I'm searching for a "newbie" guide to configure both Windows Advanced Server and Oracle Fail Safe. Anyone can help me? Any suggests will be appreciated! Thank you very much!