What exactly is happening in the code mentioned?????

Hi all,
I want to know the working of the below code:
The below code is the WHEN_BUTTON_PRESSED Trigger for the ENTER_QUERY (Push Button):
DECLARE
  IT_ID1 ITEM;
  IT_ID2 ITEM;
  IT_ID3 ITEM;
BEGIN
  IT_ID1 := FIND_ITEM('BUTTON.EN_QUERY');
  IT_ID2 := FIND_ITEM('BUTTON.CA_QUERY');
  IT_ID3 := FIND_ITEM('BUTTON.EX_QUERY');
  SET_ITEM_PROPERTY(IT_ID3,ENABLED,PROPERTY_TRUE);
  if :system.mode<>'ENTER-QUERY' THEN
   set_item_property (it_id1,label,'CANCEL QUERY');
   GO_BLOCK(GET_APPLICATION_PROPERTY(CURRENT_FORM_NAME));
   CLEAR_BLOCK(NO_VALIDATE);
   ENTER_QUERY;
  set_item_property (it_id1,label,'ENTER QUERY');
  ELSE
  EXIT_FORM;
  END IF;
END;
Can You please tell me what exactly is happening in the above code?
I want to know the working of it. Help me plz.
Thank You.
Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
Oracle Forms 6i.

what does if :system.mode<>'ENTER-QUERY' THEN mean??
SYSTEM.MODE indicates whether the form is in Normal, Enter Query, or Fetch Processing mode. The value is always a character string.
and what does GO_BLOCK(GET_APPLICATION_PROPERTY(CURRENT_FORM_NAME)); do?
GET_APPLICATION_PROPERTY Returns information about the current Oracle Forms application. CURRENT_FORM_NAME Returns the name of the current form as indicated by the form module Name property.
GO_BLOCK navigates to an indicated block. If the target block is non-enterable, an error occurs.
As per the code, After i press the button, the label ENTER QUERY should become CANCEL QUERY, (that is when system is in ENTER_QUERY mode) .
So when in the system is in ENTER_QUERY mode, it must display CANCEL QUERY, Right??
in your post, you also said..
The below code is the WHEN_BUTTON_PRESSED Trigger for the ENTER_QUERY (Push Button):
We see 3 button in your code. How can we know which one is ENTER_QUERY button. Your code says...
ENTER_QUERY;
  set_item_property (it_id1,label,'ENTER QUERY');
So, it says.. BUTTON.EN_QUERY label will be ENTER QUERY
Then why the code, (if :system.mode<>'ENTER-QUERY' THEN set_item_property (it_id1,label,'CANCEL QUERY');) ?? which says if system mode is not equal to ENTER_QUERY,
then it tells to display CANCEL QUERY.
it says.. BUTTON.EN_QUERY label will be CANCEL QUERY

Similar Messages

  • What Exactly Is Happening During the 2?21/2014 Azure Update

    Can anyone tell me what will happen during the upcoming maintenance window on 2/21/14 for the Azure environment?

    hi,
    What is your meaning?
    Did you want to know maintenance scheduled? I suggest you could note the azure team blog via this link (
    http://blogs.msdn.com/b/windowsazure/ )
    and pay attention to the azure dashboard form
    http://www.microsoft.com/windowsazure/status/ .
    Regards,
    Will
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • What will happen with the code?

    What will happen with the code below?
    for (i=0; i<=10000; i++)
    Object[] obj = new Object[5];
    In every loop, a new Array of Object wll be created. Will the Array of Object created in the
    current loop( for example, i=2001), eliminate the Array of Object created in previous loop
    (for example, i=2000 or 1999)? How the memory is allocated in every loop?
    Thanks.

    Each time through the loop, an array of five Object references is created. A reference to this array is assigned to the reference variable obj, causing the previously allocated array to be unreachable (except the first time through the loop, if obj was originally null). The garbage collector will collect these unreachable arrays if the memory gets low.

  • What exactly is new in the ne iPad OS?

    What exactly is new in the ne iPad OS? I downloaded it and don't see anything new.

    You need to install it, as well as download it. Then the new features will be as shown here:
    http://www.apple.com/ipad/ios4/

  • What exactly is "other" in the AppleTV capacity bar

    Hi all,
    If I click on the AppleTV device in itunes, I notice it has the following categories in the capacity bar:
    * video
    * audio
    * photos
    * other
    * free space
    What exactly is included in the "other" category? I assume that podcasts may be in there. The reason I ask is that my "other" category seems to be growing (currently 4.56Gb out of 32.85Gb capacity, which is significant). Is there anything I can do to control the size of this?
    Many thanks in advance.

    Likely the case. You have to remember podcasts are provided by 3rd parties and by there very nature some podcasts are amateur productions or are not necessarily aimed at itunes specifically. There is a chance that some podcasts, whilst playing just fine, don't actually meet the specs from the tv prospective and as such even when completely downloaded don't properly get moved to the appropriate category.
    I've just downloaded the 'Hidden Universe' podcasts, I watched the 'other' category increase in size as more of the podcast downloaded, once complete the 'other' reset to its original value and 'video' increased appropriately.

  • What exactly is consists of the "other" category in the capacity bar at the bottom of the sync window?

    What exactly is consists of the "other" category in the capacity bar at the bottom of the sync window?

    Not actually, his statement is to not worry about what is in Other. That is opposite from iOS, if you have 8GB of other you most likely have corrupted files on your iPhone and you need to Restore to eliminate them.

  • What exactly is happening/​failing when "GPIB Interfaces sequential​ly verified" FAILS?

    I have an AT-GPIB/TNT+ card installed in my computer. It fails the "GPIB Interfaces sequentially verified" portion of the Wizard program. I am able to communicate (IBIC) with my instruments, so it appears that all is working well. I do have older non-compliant GPIB interfaces so the "Scan for Instruments" does not work. What exactly is failing in the Wizard and what can I do? I have windows 95.0.

    Janet,
    Typically when the installations fails the sequential verification, it is due to either a resource conflict or a device being connected to the board during the test. You can click on the failed interface to get a brief explination of what may have caused the error.
    There are instances reported using the AT-GPIB/TNT+ board and Win 98 inwhich this error was reported even though there were no problems with the board's setup. Since you are communicating properly with the board through IBIC your board is functioning properly, and I would not be concerned with the error message.
    As for your instrument, this is likely due to your instruments non-compliance to 488.2 standards. Whenever the Measurement & Automation Explorer does a "Scan for Instruments", it sends out the stri
    ng "*idn?" (which is an IEEE 488.2 identification query string) to all of the devices on the bus. If you have older, non-IEEE 488.2 compliant instruments on your GPIB, then they will not recognize this string as a valid command. This will cause "Scan for Instruments" to fail.
    Best Regards,
    Chris D

  • What happened to the code reference panel from CS5?

    I have been watching a CS5 Flash ActionScript tutorial, but I am using Flash CC. In the tutorial, there is a code reference panel to the left of the actions panel that has a list of all the possible code pieces, and when hovering over any of them, it shows a tooltip describing the code piece. Did they remove this panel in later versions of Flash, and if so, is there any way to bring it back? It would be extremely useful as a tool to learn ActionScript.
    The following is a picture to show what I am referring to.

    There's a chance you might find it in the exchange but I believe ultimately the packaged documentation is no longer the desired route to obtain help.
    If you hit Help->Flash Help you'll be instantly directed online. I think that shows you that they want you to view the most up to date documentation for the product possible.
    While the methods/properties/etc are missing from the left menu, you can always contextually see them by default when you type a period next to an objects name. If I make a Sprite and type the name followed by a period I am greeted by a contextually specific list of properties and methods for the object I'm referring to:
    If I don't know what the property or method does, I can accept it, select it and hit F1 to be taken directly to the documentation for it:
    This shows the emphasis on using the online documentation.
    If you haven't already, check out these resources for learning ActionScript:
    http://tv.adobe.com/videos/actionscript/
    http://www.adobe.com/devnet/actionscript/learning.html

  • What EXACTLY is happening when a signed applet loads in a page?

    I'd like to know what happens when a signed applet is loaded in a page with the Java Plug-in. What methods are called, in which order, what happens when the user denies the applet, etc.
    Any links to resources are also welcome.
    Thanks!!

    Hi there,
    Please go thru the following links. I think they are self explanatory and does not need more elaboraion. These links expalin how the Signed Applet is loaded and how does the Class Loader and Code Verifier make it possible for the applet to work within it's security restriction.
    Here are the links:
    1.http://java.sun.com/j2se/1.4.2/docs/guide/plugin/developer_guide/rsa_how.html
    2. http://ntrg.cs.tcd.ie/undergrad/4ba2.96/group2/applets.html
    For more information about policy files you can check the following link:
    http://www.interex.org/pubcontent/enterprise/jan01/14chew.html

  • How to create an audit trail file and what is it ( pls see the code)

    All my System.out.println statements , should be printed in an audit file , instead of printing to a console .
    How and where in the program , i should create a file and how should i write System.out.println statements output to it .
    Pls help me with the code .
    //Start the main method
         public static void main(String[] args){
              if(!(args.length == 3 || args.length == 4))
                   System.out.println("Usage: java Load_data @baseyr @rateyr @caseID [@infile]");
                   System.exit(1);
              String baseYr = args[0];
              String rateYr = args[1];
              String param3 = args[2];
              System.out.println("The base year is :"+baseYr);
              System.out.println("The rate year is :"+rateYr);
              if(param3.compareToIgnoreCase("max") == 0)
                   caseID=25;
                   System.out.println("The CaseID begins at :"+caseID);
              else if(param3.compareToIgnoreCase("one") == 0)
                   System.out.println("Warning : I am assuming the CaseID as 1");
                   //caseID=1;
              inFile = (args.length == 4) ? args[3] : "C\\UDS_YYYY.txt";     
            System.out.println("The Input file we are using is :"+inFile);
              goodOutFile = "C:/Documents and Settings/Desktop/Program/GOOD_LOAD.txt";
              badOutFile = "C:/Documents and Settings/Desktop/Program/BAD_LOAD.txt";
              inFormat = "C:/Documents and Settings/Desktop/Program/FORMAT.csv";
    //Here I call the Load_data method.
              new Load_data();
              System.out.println("The number of records written to good O/P FIle :" +goodRecord);
              System.out.println("The number of records written to bad O/P FIle :" +badRecord);
              System.out.println("")
    }

    1sai wrote:
    However, a better choice would be to use log4j which support rolling log files and more control over what output goes where in what format.
    Can U pls explain this ,or where i can learn abt this .
    Thank UTry clicking on the link BigDaddyLoveHandles provided you in the previous reply.
    Your hands must get tired with your hiney sitting on them all day, huh?

  • What should be happening in the 10 day training pe...

    Now on day 5 of the 10 day training period, nothing has happened with the connection since day 2, when it dropped from ~5.5 mb to 2.5 mb.
    I was told I would get a connection speed between 7.5 mb and 17.5 mb (which reflects what other people in my block get).
    I am not aware of the connection being lost at any time in the training period (the only restarts have been from manually resetting the home hub) and the current uptime is about 48 hours.
    Am I really to expect the connection to improve by another 5 mb in the next five days?
    I have no idea how the connection is running, due to having HH4 and no access to statistics.

    Thanks
    13:17:44, 10 Mar.
    ( 100.830000) DSL noise margin: 6.00 dB upstream, 6.10 dB downstream
    13:17:43, 10 Mar.
    ( 99.800000) DSL line rate: 531 Kbps upstream, 2584 Kbps downstream
    1. Best Effort Test:  -provides background information.
    Download  Speed
    2.3 Mbps
    0 Mbps
    4 Mbps
    Max Achievable Speed
     Download speedachieved during the test was - 2.3 Mbps
     For your connection, the acceptable range of speeds is 1.2 Mbps-4 Mbps.
     IP Profile for your line is - 2.28 Mbps
    2. Upstream Test:  -provides background information.
    Upload Speed
    0.43 Mbps
    0 Mbps
    0.83 Mbps
    Max Achievable Speed
    Upload speed achieved during the test was - 0.43Mbps
     Additional Information:
     Upstream Rate IP profile on your line is - 0.83 Mbps

  • What can i do if the code of itunes card is damage

    when my son scratch the card to view the code he damage the first leters of the  code..  is possible to obtain the code   using  the card number
    Thanks

    See this support article:
    http://support.apple.com/kb/TS1292
    If you can't get to work after perusing that page, contact the iTunes Store Support; instructions are at the bottom of that article.
    Regards.
    Forum Tip: Since you're new here, you've probably not discovered the Search feature available on every Communities page, but next time, it might save you time (and everyone else from having to answer the same question multiple times) if you search a couple of ways for a topic, both in the relevant forums and in the Apple Knowledge Base, before you post a question.

  • What Exactly should be in the Capture Scratch Folder ?

    I apologize for the moronic question, but.....
    I recently installed a second internal Hard Drive in my computer which
    I was planning to reassign the scratch disc folder to, so that my external
    hard drive which holds all the media / video, would not have to do double
    duty in holding all the render files, etc. as well as the media.
    But in going to do this, I realize I have almost 200gb of video ( in the
    form of quicktime movie files ) already there. So if I move that folder,
    I am not really solving anything, as a large portion of the media is
    already in it.
    Can I with relative painless-ness, set up a new scratch disc on the internal
    drive, or will this just create an avanlanche of media not found headaches
    and the like.
    Again, I apologize for what is clearly something I just did not set-up
    properly 3 years ago. I do not use this program that regularly or else
    there is a chance I might understand it better.
    Thanks for any and all help / suggestions,
    Sterne
    FCP 5.1.4 Older G5 computer.

    I may not be understanding you correctly, but I think you will be ok with what you are doing:
    Main hard drive with the OS and all your applications.
    Second internal hard drive you are adding will contain all the scratch disks and project files.
    For example, on this I have a folder entitled "FCP Docs on HD6" which contain all my scratch disks of Audio Render Files/Autosave Vault/Capture Scratch/Render Files/Thumbnail Cache Files/Waveform Cache Files that I set under FCP preferences. I also have another folder on this hard drive that I have labeled for a client--ex. Smith Project--and in here I keep all the other items for this project--the FCP project itself, any jpegs I'm using, any clips I've made self-contained to do smoothcam on, etc.
    On your external hard drive you can keep what you have done before and not transfer them over to the new FCP Docs folder. The old project will still access those capture scratches from that external drive. (However, if you have now assigned those scratch folders to your new internal drive, when you open this old project and work on it, the NEW captures/renders/etc will be on the NEW scratch disks while what you have done in the past will still remain in the old.) You just have to remember when you are cleaning out your project or saving it to archive that some of your files are on your external.
    You can have different scratch disks on separate hard drives, it just gets confusing if you have too many. FCP will use the scratch disks you LAST assigned. I repeat it gets confusing, just like this explanation probably is
    Sharon
    Message was edited by: SSteele

  • What is happening in the code

    What is happening here:
    Class.forName("com.mysql.jdbc.Driver").newInstance();
    I use it and it works fine but I have no idea what is going on there?

    Class.forName() loads the given class. In itself, that isn't interesting. The beef lies in that loading a class executes any static blocks in that class.
    If you had the source to com.mysql.jdbc.Driver, it would probably start something like:
    public class Driver
        static {
            Driver driver_object = new Driver();
            java.sql.DriverManager.registerDriver(driver_object);
    }The static block does the actual work of registering the driver. Class.forName() is really just a bit of a hack to get that static block executed.
    The newInstance() call is customary because there is an old rumor that some buggy JDBC driver somewhere is missing the static block, and has the registerDriver() call in a Driver() object constructor instead. A belt and suspenders kind of thing.

  • Exact things happen in the implementation time.

    Dear Cons
    We know the configuration. consultants prepares their CV as if they know end to end implimentation. In real time 60% don't know the exact scenario occured in implimetnation. so my question is from particularly while doing initial entry of stock what will happen for excisable material. how we will upload it. pl. help.

    Hi,
    For RG1 and RG23 A Part I and RG23 C Part I
    Go to SE16, here enter Table Name - J_2IRG1BAL and Click on "Create" button in initial screen, it will give the maintenance screen. Here mainatin following;
    For each of these materials, you have maintained the material form in table J_2IRG1BAL as below. Do not make any entries in fields that are not listed below:
    EXGRP - Materialu2019s excise group
    DATUM - Date from which RG1 report is required, normally the date of going live
    MATNR - Material
    FORM - Enter P (Packed) or L (Loose). Do not leave this field blank.
    WERKS - Leave this field blank.
    OP FN UOM, OP BN UOM, CB FN UOM - Leave these fields blank. All quantities in this table are updated in the base unit of measure of the material
    USNAM - User ID of the person filling out the table.
    CPUDT - Date of entry
    CPUTM - Time of entry
    Note: - This is to be done before J1I5, J2I5.
    The same option can be used for creating entries in RG 23A or RG 23C Part I registers. While creating entries in the register, system will pick up only those material documents for which Part I posting has not been done yet.
    Also refer link;
    [Update of Registers RG 1 and RG 23 (Part I)|http://help.sap.com/saphelp_erp60_sp/helpdata/en/1e/f4a1a011d811d4b5af006094b9ec21/content.htm]
    For RG23 A Part II, RG23 C Part II and PLA
    Go to SE16, here enter Table Name - J_2IACCBAL and Click on "Create" button in initial screen, it will give the maintenance screen. And maintain following;
    Excise Group
    Data element for Register names
    Date
    Plant
    Basic duty      (OP BAL)
    Basic duty      (CL BAL)
    Basic duty      (EXAMT)
    Extract Indicator
    User name
    Entry Date
    Entered at
    Note: -
    1. Enter OP BAL, CL BAL and EXAMT all as same as opening balance. For e.g. opening balance for RG23ABED is 1400 then this value is to be entered in all the 3 fields.
    2. You have to enter separate line items for all the accounts;
    RG23ABED
    RG23ASED
    RG23AAED
    RG23CBED
    RG23CSED
    RG23CAED
    PLABED
    PLASED
    PLAAED
    PLACESS
    RG23AECS
    RG23CECS
    PLAECS
    RG23AAT1
    RG23CAT1
    PLAAT1
    3. Enter Date is one day before of the opening. For e.g. if opening date is 01.04.2008 then enter it in 31.03.2008
    Then go for J2I5 - Extract and J2I6 - Print Utility

Maybe you are looking for

  • How can I copy an existing project?

    I am using RoboHelp 9 on a virtual server.  I copied the entire folder of original project. Named New Folder the name of 2nd project. Can;t find copied project when I view open projects in robohelp. I am very new to this but I desparately need to cop

  • Slideshow Reverse then Stop or Pause

    Not sure how to enable an action that both Reverses the motion of the timeline .. then stops at a certain point without having a hard stop on the timeline itself but instead on the action of the button that is being clicked.. I'm not a developer. I'v

  • PSE 6.0 problem

    When i open up Adobe Photoshop elements 6.0 I get an error message from the Microsoft Visual Studio Just in time debugger that say there is a problem and wont let me continue. So i uninstalled Visual Studio but it still pops up with an error. I was w

  • I am updating an iPhone 4 on an iMac, it is not my phone but another one.  Is there a way to restore that phones date from iTunes back-up?

    I am updating an iPhone 4 on an iMac, it is not my phone but another one.  Is there a way to restore that phones date from iTunes back-up?

  • Can't access my MHNDHD network drive

    I havent used this network drive in a while, however since I'm off for the holiday break I wanted to backup a couple computers. When I went to reconnect teh ethernet cable adn recycle power to it the power light came on, then the status light went bl