Userid in forms after query

I have a form that allows a supervisor to do an automatic query in a form by selecting a "job number". Once the supervisor selects that number, the fields of the form are populated with the existing data in the database. I currently have a trigger that timestamps the form when other users update one of the fields. However, I do not want the trigger to timestamp when the supervisor makes changes to the data. I am trying to work into the trigger a filter that will not timestamp when the supervisorss name is the userid. However, because of the autoquery feature, this does not work. It seems the form is pulling out the null value that already exists in the table for that row of data. Any suggestions on how I can get this to work keep the current userid of the supervisor accessing the form while still populating the other fields with the data from the database? At that point, I think my trigger will work based on the user's login.

I used this in the default value of the form for a field, but it did not work once I did the autoquery. Should I write a procedure or trigger to place the user login into the form after the autoquery or is there an easier way to do it?

Similar Messages

  • Quote Form: Repeatively Query gives Error:ORA-06502: PLSQL numeric or value

    Hi,
    I am trying to query the sales order form (in Order Management) with the order number.
    Steps to Reporduce:
    Without closing the sales order form, query the same/different order number repetively again and again (upto 30 times) in sales order form and i am getting the following error. It might be due to the form buffer error i think, but i want to know how to resolve this issue.
    ORA-06502 : PLSQL : numeric or value error
    I have suggested the workaround as closing the form after querying every 15 times, but the customer needs a permanent fix by querying continously without closing the form, they want to query the record. Please suggest how to resolve this issue.
    Thanks

    The errors comes when in variable or fields data is coming more than the maximum length it.
    e.g
    declare
    vcheck varchar2(1) := 'ABC'; ---Errorplz share your code where you feel the problem might occurring usually POST-QUERY trigger.
    Baig,
    http://baigsorcl.blogspot.com

  • Combo Box in Portal Form resets after query

    Hello all,
    I have a portal form based on Stored Procedure. In it I have a Location combo box and Query button in addition to few text items. Users can select location from the drop down list and hit Query button to view the values in for the text items. The query part is working fine. But after query the Location resets to Null (as the LOV which feeds the combo box can have Null). We would like to keep the location they chose to query up even after the query results. Any help is appreciated.
    The Location item is in the parameters of the Stored Procedure. Initially it was IN, later I changed to IN OUT but there is no change in functionality.
    I also removed the ability to accept NULL for the LOV which feeds Location Combo box but now it is displaying the first location on the list after the query, which is even worse.
    Thanks in advance,
    Manohar

    You're catching Exceptions in empty catch() blocks. There might have been an exception, but you won't know if the catch block doesn't do anything.
    Try something like this:
    catch(SQLException e){
        System.err.println( "Problem with db query"+e.getMessage() );
        e.printStackTrace( System.err );
    }in order to see what's going wrong with your code.

  • Exiting form after being in query mode

    Hi guys,
    Having an issue with some forms after migrating from forms version 6i to 10g. Learning as I go along.
    Forms which startup in query-mode seem to have an issue when closing - all have two blocks - one block is utilised through user query and the other (like a child) displays the query results and can be updated from here. If the user does not enter a query they can cancel it using exit_form which works fine.
    After a query has been completed the system mode returns to 'normal' mode (which I can see through debugging by entering messages/pauses throughout the code). However when exiting the application breaks with error FRM-92100. I have had this problem before with regards to exiting forms but I got round this by having an open window (acting as a parent or root window) in the background which is not closable. Been tweaking the form all afternoon including using exit_form(no_validate) and other changes. By commenting out enter_query and execute_query commands the form closes as normal without issue which means it is related to query mode or something along these lines.
    If anyone has any ideas or pointers on how to move forward with this it would be much appreciated.
    Cheers,
    Robin

    Guys,
    Thanks for the replies.
    The form currently uses exit_form twice in order to close the query mode and I receive a message "query cancelled" to confirm this.
    I have also tried - and retried for the benefit of confirming this - the code you have mentioned u3 - using it in the when-window-closed trigger. I chose <option> to be no_validate.
    The main app is opened from a webpage. Forms are opened from a menu which is attached to all forms. The code that opens the forms is open_form (i.e. not call_form or new_form) for modal reasons.
    The application is disconnected straight after exit_form is used - its as if coming out of query-mode to normal causes this as I said before closes gracefully when I remove the enter_query command.
    As for the error message itself here is a fuller picture:
    FRM-92100: Your connection to the server was interrupted. This may be the result of a network error, or a failure on the Server. You will need to reestablish your session.
    Details...
    java.lang.NullPointerException
    at oracle.forms.handler.TextComponentItem.selectionChanged(Unknown Source)
    at oracle.ewt.lwAWT.lwText.LWTextComponent._fireSelectionChanged(Unknown Source)
    at oracle.ewt.lwAWT.lwText.LWTextComponent.select(Unknown Source)
    at oracle.ewt.lwAWT.lwText.LWTextField._selectAll(Unknown Source)
    at oracle.ewt.lwAWT.lwText.LWTextField.processFocusEvent(Unknown Source)
    ...AND SO ON!
    Hope this gives a better picture of what's going on :)
    Robin
    update - There is a 'dirty' workaround to this problem - if i minimize the window (change its state in any way) after the mode is back from query-mode to normal THEN close the window it closes gracefully.
    Edited by: Robin84 on Sep 10, 2008 10:03 AM

  • Conditionally disabling record updation after query

    Dear members
    I've a single record block and I wanna conditionaly disable records updation after query has fetched data. Problem is that if I disable the record updation in Post-Query trigger then it checks the condition for the very first fetched record and it the condition is true, then Updation is disabled for all the fetched records, even if the next records dont meet the condition. I'm using forms-10g. Can u give a better solution??? thanx.

    you have to use SET_ITEM_INSTANCE_PROPERTY to modify only one record:
    BEGIN
        IF ... <your_condition> THEN
            SET_ITEM_INSTANCE_PROPERTY('YOUR_BLOCK.YOUR_ITEM1', UPDATE_ALLOWED, PROPERTY_FALSE);
        ELSE
            SET_ITEM_INSTANCE_PROPERTY('YOUR_BLOCK.YOUR_ITEM1', UPDATE_ALLOWED, PROPERTY_TRUE);
        END IF;
    END;

  • Developering ADF form in query mode (Oracle forms simulation)

    Hi,
    we have a requirement for developing the existing Oracle form using Oracle ADF. The existing Oracle form displays the form in query mode by default. We can enter the search criteria in any of the text fields and then execute query to get the results. If the user does not enter any search criteria, then the form loads specific record based on default criteria into the form. Could you please help developing similar form using ADF.
    At present I created the view object with one bind variable and dragged the view as ADF form to the jspx page. Then I am launching the form in query mode (executing the find method on the view object using operation binding at the time of loading the page). After entering the query criteria in the form, If I click on a button I am executing a method in the managed bean. In the managed bean I am executing the "Execute" operation on the view and it is working fine.
    But my problem is if the user does not enter the search criteria I have to pass default parameters to the view object and return the default record in the form.
    Can you please help in resolving the issue.
    Thanks and Regards,
    S R Prasad

    Hi Frank,
    Thank you for providing information. I created the query panel with the table by dragging all the named criteria. But this is not the look we are expecting for this form. As we have to deveop ADF form with the same behavior as oracle forms, the user must be in a position to edit the data in the same field as that of query field.
    As an example, we have to design a form for Dept table. We have to display all the columns of the dept view in the form at the time of launching the form in query mode. Once the user enters any search criteria in the form, we have to perform search and display the record(s) matching the query criteria in the same columns displayed in the form. User should not see any changes in the form layout.
    If the user does not enter any data in the form, then we have to display the record(s) in the form with the specific department id(This department id can be calculated based on the data in another table).
    Can you please help us in resolving the issue.
    Thanks and Regards,
    S R Prasad

  • Go_item(:detail.item) after query(F7) in master, frm-40737

    Dear friends,
    I have a master block and a detail block. When the master block ist queried, I want to go to a disticnt item in detail block, if there are records. Therefore I tried to put code in the post_query of the detail_block, which caused error frm-40737:
    if :evm_jn_lief_artikel_lagort.lagort_id is null then
    go_item('evm_a_liefrant.liefrant_uk');
    else
    go_item('lieferschein.belegnr')
    end if;
    error message says, that I cannot call the restricted procedure go_item in post_query.
    okay, but where can I put this code that it is called automatically after query?
    Thanks
    Silke

    Thank you I tried it, principally it works, but there is a problem left. This is my code in key_exeqry of detail:
    execute_query;
    message('execute_query, lagort_id: ' || :evm_jn_lief_artikel_lagort.lagort_id);
    message('execute_query, lagort_id: ' || :evm_jn_lief_artikel_lagort.lagort_id);
    if :evm_jn_lief_artikel_lagort.lagort_id is null then
         -- keine Artikel am lagerort
         go_item('evm_a_liefrant.liefrant_uk');
         message('evm_a_liefrant.liefrant_uk');
         message('evm_a_liefrant.liefrant_uk');
    else
         go_item('lieferschein.belegnr');
         message('lieferschein.belegnr');
         message('lieferschein.belegnr');
    end if;     
    When t´here are records in the detail block else is choosen, but forms doesn't go the item!
    The 'old' item (from where F8 was pressed) stays activated.

  • Purchase Order form in Query only mode for some users

    Hi All,
    I want to make the Purchase Orders form as query only for a single user. I tried by giving 'Query_only=Yes' in the parameters section. I am getting 'FRM-04151: You cannot query records here' message more than 10 time. I know we get this message and this is applicable to all the users. But this message is comming more than 10 times.
    Is there anyway that I can restrict the Query only mode to a single user and please suggest about the message also.
    Thanks in Advance,
    Naresh

    Naresh,
    Since you want to achieve this for one user only, I would suggest you create a new function/menu/responsibility and assign this responsibility to the user.
    Note: 400380.1 - How To Create a QUERY-ONLY FORM
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=400380.1
    For the FRM error, please review the following document.
    Note: 116074.1 - ACCESS LEVEL - REVIEW ONLY - PO
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=116074.1
    Regards,
    Hussein

  • Purchase Orders form in Query Only mode for a single user

    Hi All,
    I want to make the Purchase Orders form as query only for a single user. I tried by giving 'Query_only=Yes' in the parameters section. I am getting 'FRM-04151: You cannot query records here' message more than 10 time. I know we get this message and this is applicable to all the users. But this message is comming more than 10 times.
    Is there anyway that I can restrict the Query only mode to a single user and please suggest about the message also.
    Thanks in Advance,
    Naresh

    Please post this question here: OA Framework
    There are so many special conditions and restrictions for E-Biz Suite that this forum is not the right place to ask these questions. The Apps forum at this location is the right place.

  • How to put the form in Query mode

    Hello
    Please let me know how to put the form or block in Query mode , so that when i run the form it should be in Query mode . I have seen properties of SET_FORM_PROPERTY and SET_BLOCK_PROPERTY but cannot find one
    Thanks

    QUERY mode? Did you mean, that you can only QUERY without changing data.
    This is the QUERY-ONLY-mode, which can be started e.g. call_form
    this is the help for that topic:
    PROCEDURE CALL_FORM
    (formmodule_name VARCHAR2,
    display NUMBER,
    switch_menu NUMBER,
    query_mode NUMBER,
    data_mode NUMBER,
    paramlist_name VARCHAR2);
    query_mode     
    NO_QUERY_ONLY (The default.) Form Builder will run the indicated form in normal mode, allowing the end user to perform inserts, updates, and deletes from within the called form.
    QUERY_ONLY Form Builder will run the indicated form in query-only mode, allowing the end user to query, but not to insert, update, or delete records.

  • Open form in query mode

    I want to be able to open a form in query mode - is there any way to set this?
    I am using Designer and Headstart.
    Thanks

    Hi Cathy,
    You can do this. See the help topic: About the startup query mode of generated forms.
    Rgds
    Susan
    Oracle Designer Product Management

  • Can You Disable A PDF Form After X (days or openes)?

    Is there any way to disable a PDF form after X # of days or X # of openes? Here's my situation:
    I have a time sensitive document that needs to be filled it out and printed within 72 hours from receipt. After 72 hours the form is no longer valid and must be locked and disabled (meaning you can open it and see the contents anymore). Is there any simple solution?
    * FYI, seems purchasing DRM is a bit too expensive for this application.
    I have Adobe LiveCycle Designer and Acrobat Pro X.
    Thanks for any help!

    DRM - digital rights management. Controversial and complicated subject.
    If you just want a password you can set that with Acrobat, but it has no expiry system. Expiry is a pretty complex area, for instance, it cannot trust the clock in the user's own computer, because they could change it to fool you. And if you count opens or whatever they can just start with a fresh copy. Adobe's DRM runs on a server 24/7, so that checks can be made whether to open or not.

  • Can't Edit a form after converting it to reader extended

    I am struggling with an issue when creating a form. I create the form in Word, convert and edit in Acrobat Pro, then save a version as "reader extended" so that our users can fill it out. However, there were some errors in the form after I saved it as "reader extended". I tried to save a copy but it says I can't "edit form"...What do I do?
    here are some screen shots:

    so i have a pdf file I'm working on as  "test.pdf"   I save a version as "test_fill_in.pdf" with reader extended and then distributed.
    I was advised some of the form functions and fields were not correct so I needed to edit the  test_fill_in.pdf.
    To edit I did the following:
    Opened the "test_fill_in.pdf" in acrobat
    Save a copy as "test_fill_in_1.pdf"
    Received "You cannot edit this file as a form" message
    what am i doing wrong?
    I've had to recreate this form from scratch sooo many times!!

  • I can't print my PDF form after it is filled out.  Only the form prints not the text that I put in

    I can't print my PDF form after filling it out.  Only the form prints and not the text I put in.

    That's a limitation of Apple's AirPrint framework that Adobe Reader depends on.  We are considering an alternate solution that may resolve this issue though.
    Thanks for your feedback.
    -Gaurav

  • Linux VM KVP IP can't be shown on Hyper-V Manager after querying its KVP/IP information on Hyper-V host several times

    Hello
    [Sorry for asking the same question in the wrong place/forum of "Hyper-V"]
    I am using a CentOS 6.5 VM (Linux kernel 2.6.32-431) and (generation 2) CentOS 7 VM (Linux
    kernel 3.10.0-123) with Hyper-V KVP daemon installed,
    and I periodically query its IP (via using WMI or Powershell to query its KVP information) to manage it.
    However, after querying its IP (KVP) for several times, its IP can’t
    be queried or shown on Hyper-V Manager anymore (Windows VM is ok without this problem).
    And here is the vmIntegrationService status of my CentOS 7 VM for the references.
    PS C:\Users\Administrator> (Get-VM -name G2_CentOS7).vmIntegrationService
    VMName     Name                    Enabled PrimaryStatusDescription SecondaryStatusDescription
    G2_CentOS7 Time Synchronization    True    OK
    G2_CentOS7 Heartbeat               True    OK
    G2_CentOS7 Key-Value Pair Exchange True    OK                       The protocol version of the component installed ...
    G2_CentOS7 Shutdown                True    OK
    G2_CentOS7 VSS                     True    No Contact
    G2_CentOS7 Guest Service Interface False   OK
    I attached a simple KVP query Powershell script as
    the follows, and this problem can be reproduced in couple minutes if you run two instances with this script at the same time.
    $VMName = $args[0]
    write-host "$VMName"
    filter Import-CimXml
    $CimXml = [Xml]$_
    $CimObj = New-Object -TypeName System.Object
    foreach ($CimProperty in $CimXml.SelectNodes("/INSTANCE/PROPERTY"))
    if ($CimProperty.Name -eq "Name" -or $CimProperty.Name -eq "Data")
    $CimObj | Add-Member -MemberType NoteProperty -Name $CimProperty.NAME -Value $CimProperty.VALUE
    $CimObj
    $CimObj = $null
    for ($i=1 ; $i -le 10000 ; $i++) {
    $a = Get-Date
    write-host "$i - Time: " $a.ToLocalTime()
    $vm = Get-WmiObject -Namespace root\virtualization\v2 -Query "Select * From Msvm_ComputerSystem Where ElementName='$VMName'"
    $vm.ElementName
    $vmkvp = Get-WmiObject -Namespace root\virtualization\v2 -Query "Associators of {$vm} Where AssocClass=Msvm_SystemDevice ResultClass=Msvm_KvpExchangeComponent"
    $vmkvp.GuestIntrinsicExchangeItems | Import-CimXml
    Actually, if your CentOS VM (has LIS) installed with KVP daemon running well,
    my test script will show more than 4 keys (include NetworkAddressIPv4 or NetworkAddressIPv6 keys).
    However, while the KVP daemon becomes problematic, it will only show a few keys
    (ex. 4~6 keys) and at this moment, Hyper-V Manager also can't show IP address of it anymore and you may need to reboot the CentOS VM to recover it.
    For example (KVP in 252 time is good, but KVP in 253 and 254 times become problematic)
    252 - Time:  8/26/2014 7:19:42 PM
    G2_CentOS7
    localhost                                                   FullyQualifiedDomainName
    3.1                                                         IntegrationServicesVersion
    10.1.145.190;192.168.122.1                                  NetworkAddressIPv4
    fe80::215:5dff:fe91:b902                                    NetworkAddressIPv6
    3.10.0-123.el7.x86_64                                       OSBuildNumber
    0                                                           OSDistributionData
    0                                                           OSDistributionName
    199168                                                      OSKernelVersion
    7                                                           OSMajorVersion
                                                                OSMinorVersion
    CentOS Linux                                                OSName
    129                                                         OSPlatformId
    3.10.0                                                      OSVersion
    x86_64                                                      ProcessorArchitecture
    253 - Time:  8/26/2014 7:19:42 PM
    G2_CentOS7
    localhost                                                   FullyQualifiedDomainName
    3.1                                                         IntegrationServicesVersion
    10.1.145.190;192.168.122.1                                  NetworkAddressIPv4
    0                                                           OSDistributionData
    0                                                           OSDistributionName
    199168                                                      OSKernelVersion
    129                                                         OSPlatformId
    254 - Time:  8/26/2014 7:19:44 PM
    G2_CentOS7
    0                                                           OSDistributionData
    0                                                           OSDistributionName
    199168                                                      OSKernelVersion
    129                                                         OSPlatformId
    I
    found the following patches and gave them a try, but the
    problem still remains after applying these patches and the (generation 2) Ubuntu 14.04 with Linux kernel 3.13 also has this problem.
     - Patch "Drivers:
    hv: util: Fix a bug in the KVP code" has been added to the 3.14-stable tree
     - Drivers: hv: vmbus: Fix a bug in the channel callback dispatch code
    But (generation 1) Ubuntu 14.04 VM with Linux kernel 3.17 doesn't encounter this problem after querying its KVP/IP information on Hyper-V host several times.
    Does anyone know what changes between Linux kernel 3.13 and 3.17 fix this issue?
    Thanks,
    Paul

    Hi Dexuan and Mike,
    Thanks for your help!
    I did the patch with rpmbuild on CentOS 6.5 (with kernel 2.6.32-431).
    However, the second patch cannot patch on CentOS6.5 since there is no target_cpu in such version.
    So we are patching that with the following similar patch but this issue still occurs. (also replace ko in initrd)
    https://lists.ubuntu.com/archives/kernel-team/2014-August/047725.html
    Can you tell me if any patch I could miss or any suggestion?
    Thanks for your time.

Maybe you are looking for

  • APEX_ITEM select_list is not working

    Hi, I am using the below query in my sql select statement . select htmldb_item.HIDDEN(1,ID) HIDDEN, APEX_ITEM.SELECT_LIST(49,DECODE("VERSION",NULL,'-Select-',"VERSION"),decode(get_lov_values(PROD_LEVEL_1),null,'not available',get_lov_values(PROD_LEVE

  • 10.1.0.4 listener process spawns a new listener process

    Hi Last week we had a problem with the listener on one of our 10.1.0.4 databases. the TNS connections were timing out, and no one was able to connect ( unless as a local connection from the DB server ). When I did ps -ef | grep -i listener I saw TWO

  • Modifying / Moving objects in Web Dynpro Layout

    Hi. Can someone tell me if it is possible to edit buttons or other objects from Web Dynpro layout? If it is possible, how can I do this? When I say edit, I mean move button/object to certain location or make size bigger. I know I can do this in Adobe

  • How to Start Central Management Server

    Dear Experts, I have stopped the CMS through the CCM.After Stoping the CMS ,i couldnt able to login to BO tools and  CCM also. Can you tell me how to solve this? For this only Solution is again creating another SIA or any other way?

  • Face recognition to log in WITHOUT typed password option?

    I'm wondering if there's a way to completely disable type-written passwords for accounts in Windows 7.  I want to have everyone who uses the machine log in solely through facial recognition, and not even have the OPTION of ever physically typing a pa