Distinguish between Query mode and Entered Mode

Hello All,
Could you please tell me how can i say that if the form is in "Query Mode" or in "Entered Mode". I can proceed with my logic, based on this.
Ex: If form is in Query Mode, i will check the count of records in database, and try updating them
If form is in Entered Mode, i will check the count of records in database, and throw an error message saying that, data already exists in data base and you cannot create records.
Please reply me...
Thanks in advance
Aush

Oracle forms by default also provide this functionality. For e.g by pressing F11 it goes in enter query mode, ctrl+F11 it goes in query mode. By default, a form opens in query mode but we can change this behaviour. Also F11 key etc can be changed by editing the entry in fmrweb.res file.
But, if are interested in knowing the form mode programmatically, then you can use system.mode variable
For e.g, do something like
If :system.mode = 'ENTER-QUERY' then
<do something>
end if;
Hope this helps.

Similar Messages

  • Distinguish between pure AS3 and Flex project

    Hey,
    how can I distinguish if I am compiling currently an AS3 or a Flex project (mxml vs. pure as)?
    I acutally want to look something up in the "evaluate" method of a GenerativeFirstPassEvaluator before doing the processing. So I need to know it there.
    Any help is much appreciated.
    Best,
    Joa

    MXML is converted to AS3 code as part of the compilation process, then the AS3 is compiled normally like the rest of the project. I don’t think that GFPE is run over anything but an AS3 tree. There
    may be a way to figure out where the original source came from, e.g. .mxml or .as file, but you’d have to interactively debug and scan the data structures — I don’t know off hand.
     - Jono
    From: Joa Ebert <[email protected]>
    Reply-To: <[email protected]>
    Date: Mon, 31 Mar 2008 05:40:13 -0700
    To: <[email protected]>
    Subject: Distinguish between pure AS3 and Flex project
    A new discussion was started by Joa Ebert in
    Developers --
      Distinguish between pure AS3 and Flex project
    Hey,
    how can I distinguish if I am compiling currently an AS3 or a Flex project (mxml vs. pure as)?
    I acutally want to look something up in the "evaluate" method of a GenerativeFirstPassEvaluator before doing the processing. So I need to know it there.
    Any help is much appreciated.
    Best,
    Joa
    View/reply at Distinguish between pure AS3 and Flex project
    <http://www.adobeforums.com/webx?13@@.59b4da24>
    Replies by email are OK.
    Use the unsubscribe
    <http://www.adobeforums.com/webx?280@@.59b4da24!folder=.3c060fa3>  form to cancel your email subscription.

  • Distinguishing between bookmark page and ordinary jsp

    If I bookmark a page in my project and close the browser , and again on restarting the browser
    viewing the same bookmark page without logging in,
    All the links should work.
    It is working , but problem arises here
    how to
    distinguish between bookmark page and ordinary jsp
    which is viewed with login

    The problem is not the bookmark.
    Review your JSP, you may find it does not check the session id.
    In this case, everyone can access the page without login.

  • How can I distinguish between the first and the rest in Smartforms??

    I have made an Invoice in Smartform. I have to take three copies of that. In the first copy it will be printed "ORGINAL INVOICE" and in the next copies it will print "Duplicate copy".  How can I distinguish between the first and the rest in Smartforms??
    Regards,
    Subhasish

    >
    Subhasish Ganguly wrote:
    > I have made an Invoice in Smartform. I have to take three copies of that. In the first copy it will be printed "ORGINAL INVOICE" and in the next copies it will print "Duplicate copy".  How can I distinguish between the first and the rest in Smartforms??
    Hello Vamshi,
    As per the OP's requirement he has to print 3 copies of the invoice. Which according to my understanding should be printed at the same time ? May be i am wrong in interpreting this.
    You must be knowing you can control the print params of the SmartForms in CONTROL_PARAMETERS where you set the NO_DIALOG & in the OUTPUT_OPTIONS pass the number of copies.
    I think the solution you have proposed the "Original Copy" will be printed only once. (Correct me if i am wrong)
    Every time the user prints the invoice again he will be getting a "Duplicate Copy". If this is what the OP wants the logic is perfect
    Cheers,
    SUhas

  • Distinguish between 'Edit Page' and 'Customize'

    I have a portlet/provider that needs to be able to distinguish between 'Edit Page' and 'Customize (Page)' (top level). In both cases you can add portlets, but I want to implement different logic for both instances.
    Thanks,
    Jan
    null

    Okay, so here goes!
    Oracle Portal stores the way a portlet instance is shown/put on a page in the db-column 'wwpob_portlet_instance$.include'.
    In the portlet 'register' call you can find out what the originating action was for this portlet to be placed on the specific page. At this stage only two possible values are interesting:
    3: WWPOB_API_PAGE.PORTLET_CUSTOM; The originating action was [Customize Page - Add Portlet]
    1: WWPOB_API_PAGE.PORTLET_BASE_SHOWN; The originating action was [Edit Page - Add Portlet]
    For now this gives me a hook to process the two originating actions differently.
    Please let me know if you know of any other (less hacked) way to do this.
    Thx,
    Jan.

  • Relation between Query Object and InfoObject

    Someone know the sap bw 3.5 table with the association between Query Object and InfoObjects/Calculated Variables used in?
    Thanks a lot!
    Emiliano

    Can you explain what you mean with try rsrt->query name?
    There are no interesting tables with RSRT prefix name.
    Thanks
    Emiliano

  • Distinguish between Office x64 and Office x86 versions in SCCM 2012 R2 Inventory

    I need to distinguish between SCCM clients who have Office 2010 x64 and those who have Office 2010 x86 version.
    I have tried creating a collection with query-based-membership looking at all computers with ARP64 Display name like Office 2010.
    I have also tried creating a report with the same query basics.  The query shows different machine lists than the collection looking for the same information.  Also, I am looking for the WinWord.exe path, which for x64 version of Office on Win
    7 x64 should be "c:\Program Files\Microsoft Office\Office 14".  However, I find that file in the "c:\program files (x86)\Microsoft Office\Office 14".  So the query returns the machine as having Office x64, but the Office EXEs
    are all in the c:\program files (x86)\ folders instead.
    Should I trust the report for the inventory?  I have done a spot-check on some computers (18 of 222), and it's not always true that they have x64 version of Office installed.
    What's a girl to do?
    thanks,
    Azin
    azwright

    I suggest you create a compliance base line and deploy it to the collections. The compliance will check whether the clients are running Office x64. If not, it will report as non-compliant, then you can create Collection based on this info.
    http://gallery.technet.microsoft.com/scriptcenter/Create-Non-compliant-eb023e3c
    Juke Chou
    TechNet Community Support

  • Distinguish between Document Libraries and Subsite

    Hello Team,
    When I create a Subsite or create a document Library, How can I access the Document library through the network Share
    If I add documents to a Document Library:
    Does it create a static link or a dynamic link
    How can I access the Document library through the network Share
    If I create a folder structure and add document to the folders to subsite
    Does it create a static link or a dynamic link
    How can I access the folders in a subsite through the network Share
    How can I distinguish between a sharepoint site or document library by just looking through a URL

    Following links explain how a Document library can be accessed using Network Share/Windows explorer.
    https://hubone.zendesk.com/hc/en-us/articles/200167580-SharePoint-Using-Explorer-View-or-Mapped-Network-Drives
    https://social.technet.microsoft.com/Forums/sharepoint/en-US/b3425c4b-6558-4b51-882d-f9603c36f214/accessing-sharepoint-documents-from-windows-explorer-on-the-server?forum=sharepointgenerallegacy
    The Url of a Document library will conatin "Forms" in it. Example:
    http://yoursite/MyDocs/Forms/AllItems.aspx
    Blog | SharePoint Learnings CodePlex Tools |
    Export Version History To Excel |
    Autocomplete Lookup Field

  • A way to distinguish between 'Parent' keys and 'Referential' keys

    Hi,
    We use referencial keys to specify the FK to a parent table and also link to other tables... I need to write a script that needs to distinguish between a 'Parent' key and and a 'Referential' keys. In the database they both look the same, as they are both foreign keys...
    What's the easiest way to determine whether a FK is a link to a parent table or a link to an unrelated table..
    I hope this question makes sense...
    EDIT:
    Here's an example of the tables, and a better explanation
    CREATE TABLE PARENT_TABLE(
    par_id number PRIMARY key,
    par_name varchar2(200)
    create TABLE RELATED_TABLE(
    rel_id number PRIMARY key,
    rel_name varchar2(200)
    create TABLE CHILD_TABLE(
    kid_id PRIMARY key,
    kid_name varchar2(200),
    par_id,
    rel_id,
    CONSTRAINT kid_par_fk FOREIGN KEY(par_id) REFERENCES PARENT_TABLE(par_id),
    CONSTRAINT kid_rel_fk FOREIGN KEY (rel_id) REFERENCES RELATED_TABLE(rel_id)
    )Ok, as you can see the child table has 2 references but no way to tell which one is the parent table.. In our database we have this hirearchy of parent-child tables (where it's one-to-many relationships) where we consider a table a parent of other.. And also we have a ton of other foreign keys that link to related tables (many-to-many) relationships...
    Now i need a clean way of distinguishing between PARENT and RELATED table.. A more elegegant solution to a keeping a hierarchy table of parent, child tables.. I'm sure others have this kind of structure..
    let me know if there is more clarification needed.. Sorry for the confusion..
    Edited by: wonderboy87 on 23-Jan-2011 4:07 PM
    Edited by: wonderboy87 on 23-Jan-2011 5:59 PM
    Edited by: wonderboy87 on 23-Jan-2011 6:00 PM

    wonderboy87 wrote:
    Yes sorry.. I can see how consufing this is. Here goes;
    CREATE TABLE PARENT_TABLE(
    par_id number PRIMARY key,
    par_name varchar2(200)
    create TABLE RELATED_TABLE(
    rel_id number PRIMARY key,
    rel_name varchar2(200)
    create TABLE CHILD_TABLE(
    kid_id PRIMARY key,
    kid_name varchar2(200),
    par_id,
    rel_id,
    CONSTRAINT kid_par_fk FOREIGN KEY(par_id) REFERENCES PARENT_TABLE(par_id),
    CONSTRAINT kid_rel_fk FOREIGN KEY (rel_id) REFERENCES RELATED_TABLE(rel_id)
    )Ok, as you can see the child table has 2 references but no way to tell which one is the parent table.. You are right. There is no way to tell which one is the "parent". It's only your own business rules and usage that make one of the FK relationships to a "parent" while the other is to .. what, an "uncle"? ;-) Oracle has no way of knowing what your business rules and usage are.
    In our database we have this hirearchy of parent-child tables (where it's one-to-many relationships) where we consider a table a parent of other.. And also we have a ton of other foreign keys that link to related tables (many-to-many) relationships...
    Now i need a clean way of distinguishing between PARENT and RELATED table.. A more elegegant solution to a keeping a hierarchy table of parent, child tables.. I'm sure others have this kind of structure..
    let me know if there is more clarification needed.. Sorry for the confusion..
    Edited by: wonderboy87 on 23-Jan-2011 6:00 PM

  • How can I have Facetime callers distinguish between my Ipad and my MacBook Pro?

    I'm wondering how does one set things up so that a Facetime caller can distinguish between calling me on my iPad versus calling me on my MacBook Pro? I have family calling me and it is popping up on the MacBook when, ideally, the call would come through to my Ipad when I'm traveling?

    Hello Mac_ThePI,
    In FaceTime's preferences, you can choose what Apple IDs and/or phone numbers you can be reached at. You might choose to make the phone number or certain Apple IDs the only checked option(s) on your iPad, and others on your Mac.
    iOS and OS X: Link your phone number and Apple ID for use with FaceTime and iMessage
    http://support.apple.com/kb/HT5538
    Cheers,
    Allen

  • Distinguish between Journal Listing and Order Listing

    Hi Guys
    Is there a way to distinguish whether it can come into an activity journal and not in an ERP or Transfer order?  Is there config that tells it to come into an activity journal only.  Or only into an order.
    Help Needed.

    Hi,
    It depends on the determination procedure you assign to your application, either Order or Activity Journal.
    Check the below path in IMG,
    CRM -> Master Data -> Listing -> Listing Setting for Applications ->
    1) Order Management
    2) Activity Journal

  • How can we distinguish between post, parked and rejected invoice in SAP

    Hi Guys,
    Is there any way by which we can distinguish post, parked and rejected invoice. I mean to say any field gets updated after doing any of these activity...
    Help from you all will be highly appreciated...
    Thanks in advance,
    Vikash

    Hi,
    If BKPF-Bstat is space then its a normal document and if it is A then its clearing..
    A     Clearing Document
    B     Reset clearing document
    D     Recurring entry document
    M     Sample document
    S     Noted items
    V     Parked document
    W     Parked document with change of document ID
    Z     Parked document which was deleted
    I hope this helps.
    Regards
    Ravinagh Boni

  • Will iTunes Match distinguish between purchased content and content added by CD?

    Once iTunes Match is up and running I want to put the content on my iPod Classic into the cloud.  I understand there will be a fee for doing this; but, on the iPod there are some items that have been purchased through iTunes, as well as CD content that I own.  Will iTunes Match be able to distinguish the difference?

    Everything anyone here knows or can say about iTunes Match can be found here:
    http://www.apple.com/icloud/features/
    Beyond that, we'll have to wait for additional details from Apple.
    Regards.

  • Distinguishing between empty string and null values

    hi all,
    I am using an ODBC connection to connect my java app to database using JDBCODBC driver. I have 2 columns 'aColumn' and 'bColumn' in my table, both allow null values. I have one row in it, which has null value in aColumn and empty string in bColumn. I retrieve this row's data and assign it to 2 columns : 'aColumnVar' and 'bColumnVar' respectively. I find out that both 'aColumnVar' and 'bColumnVar' variables has null values (although bColumnVar should has an empty string as its value). Now my ODBC connection Data Source has the option "Use ANSI nulls, paddings, and warnings" ON. I turn it off and try again. This time both 'aColumnVar' and 'bColumnVar' variables has empty string as values (although aColumnVar should has null as its value).
    How can I make sure that i can get the data exactly as it is in the database in my variables?
    Thanks

    there is a wasNull() method on ResultSet. After you
    have obtained the value of a column e.g. by calling a
    method like getString you can call wasNull and if it
    returns true then the value on the database is null.
    Check the java docs, it might explain it better
    http://java.sun.com/j2se/1.4.1/docs/api/java/sql/Result
    et.html#wasNull()I am using MS SQL Server 7.0 under Windows NT 4.0 with JDK 1.2. My ODBC connection Data Source has to have the option "Use ANSI nulls, paddings, and warnings" ON.
    I try the wasNull() method but it is doing the same thing i.e. telling me that a column is null when in database it is null (right); and a column is null when in database it is an empty string (wrong). I suspect it is something to do with the JDBC-ODBC driver I am using.

  • OWB-Import does not distinguish between nls_length_semantics char and byte.

    We have a 10g-DB with UTF8 charset and nls_length_semantics=char and we've created an OWB warehouse module for 10g with several tables in it. After deploy operation for a table the column length attributs are looking nice. But if we re-import this table the varchar fields have the threefold length!
    This makes life hard for us, because sometimes it's necessary to reconcile discrepancies in development cycle and some tables have about 150 columns.
    Does anybody have suggestions?
    The OWB version is 10.1.0.3.0.
    Regards
    Ralf

    Ralf,
    Oracle stores the length of VARCHAR columns in two ways in its metadata. One is the length as required by the application, and the other is the length required to store UTF data.
    One UTF character can take upto 3 characters of storage. When OWB reads in the definition from data dictionary, it uses the actual characters allocated to the column, and thus u see a three fold increase in VARCHAR columns.
    Try this for your table
    select
    column_name, data_length, char_length
    from
    user_tab_columns
    where
    table_name='nameOfTable'
    And that is how Oracle designed the database, but unfortunately OWB does not have that twin way of seeing things.
    - Jojo

Maybe you are looking for

  • Client login to OS/X server doesn't work after upgrade to 10.9.3

    I have been running a Mountian Lion Server with open directory to handle several Mac's at home. After upgrading from 10.8.x to 10.9.3 a few days ago login from the client computer with 10.9.3 does't work. If I turn off Wi-fi, login works, and I can a

  • When is it gonna be in other stores?

    Does anyone know when the Nano is going to be available to buy at other stores? Cause all the stores I've checked in my area don't have it yet.

  • Bapi or FM for J1ID tcode

    Hai friends,        Is there any BAPI or FM for tcode J1ID       thanks in advance, Regards Janani.S

  • Needed areport for a material with its length & width

    Hi friends i need a report in which i am to show material , plant , storage location , batch no , & material length & material width ( its charcteristics are defined by using a class ) , i have found table AUSP in which field ATFLV field is populated

  • How to export a complex Keynote to high quality video for DVD?

    I have had dozens of attempts to turn a complex Keynote into a high quality video. Either they turn out disappointiingly way low res or they are very choppy with half the transitions gone or they Cannot make the video at all HELP. I need to turn this