POST built-in and form status

Hello friends at www.oracle.com ,
while analyzing and testing a Forms program here, I saw that, before POSTing data, the value of :SYSTEM.form_status was CHANGED (that is, database contents were changed at Forms) and, after POSTing, :SYSTEM.form_status became QUERY.
But, if POST built-in doesn't perform a database commit - so I suppose POSTed data isn't viewable to other users yet -, why does the form changes its status, if we do not have a real commit? Can't this lead the user to think data was saved (when, in fact, it's not, because POSTed data aren't committed)?
I read about POST built-in at online help, but it's still not much clear for me, so I ask your help to understand it better.
Hope I was clear - if not, please ask me.
Best regards,
Franklin Goncalves Jr.

Sincere thanks for your answers. I really didn't know that POST built-in would fire triggers involved with database transactions, such as POST-COMMIT.
Isn't it better for data integrity that Forms and database be synchronized with the state of each other - that is, Forms should state its data is really committed at database? While I don't see a special reason for using POST, I'll still think POST is not so useful and avoid using it.
In some Forms programs I used a global variable, like :GLOBAL.key_commit_pressed, to determine if KEY-COMMIT was pressed (if user has committed data, that's obvious) while user is working. It doesn't seem to be a bad idea, although I still ask myself if it's really the best one.
But the most important question I have, is to know if POST built-in validates data with database - that is, integrity constraints, database triggers, and so on. I think it might fire, although I still believe the use of POST built-in can confuse both user and developer anytime.
Best regards,
Franklin Goncalves Jr.

Similar Messages

  • Change form status

    HI all
    I have a database block with some text items
    i have a button on my form
    on the button i have an Update statement
    Upon entering the values on the form i click the button
    the update statement is triggered on some condition (in this case i dont want the values on the form to be saved i just want the update to fire (i hAve a commit in the button click trigger )
    I tried to clear the block before performing an update but still i am unable to change the form status to query so that the form values will not be committed
    Please help me
    thanks
    Manda

    Fire the update state and issue a "forms_ddl('COMMIT');" this will only commit the already posted forms changes (see POST built-in) and all your pl/sql DML statements.
    For the records in your block you can issue a SET_RECORD_PROPERTY built-in and reset the corresponding records to query state.
    Greetings
    Christian

  • POST built in - Umm, this is the worst and doesn't work as intended..

    Win XP, oracle 10gR2
    POST really likes to save my changes.
    I post a block, and then goto my next form.. and I use another session with another login to view the data and it has already been comitted.
    This may have worked back in Client Server as intended , but it is surely lacking on the web forms.
    My form forms coworker said I'll just go busting my brains out trying to get it work, and he never got it work either, and said post doesn't do what you think it is supposed to do.
    He thinks we had problems with it even back on Client Server.
    Can anyone else confirm?

    Hello,
    Very easy to test.
    Create a basic form on the emp table, do some changes
    then post.
    Open another session with Sql*Plus or Sql Developer,
    then check if you see the changes or not.
    FrancoisI'll change my story to posting with "multiple forms" doesn't work.
    Form A - I make changes and POST.
    I call form B (the select form)
    I then call form C (edit screen) and make a change.
    I exit_form C, and say "NO" to forms asking me if I want to save changes.
    I exit_form B (no prompt, no base table block).
    In form A, I exit_form, and say "NO" to forms asking me if I want to save changes.
    I reenter the form A, and the value is changed to the new value.
    I just watched the column, and when I called form C - that's when the commit was performed. I see no commit's that were executed when calling for C.
    I am trying to avoid a frm-40403 (calling form has unapplied changes).
    Post isn't cutting it, so I plan to check the form_status and prompt the user if they want to commit (yes/no/cancel).."No" will cause an frm-40403 if they try to save in the form C. Of course if they say "yes" to commit, it will not have the problem in form C.
    I just checked, and I don't think I have any commits in Form C - if I did - I wouldn't get an FRM-40403 when I try to save in Form C.

  • Detect uncommitted yet posted data in my forms session?

    In our application it is common practice to use the Forms POST built-in.
    Since we have our own exit-function with the application-wide look and feel we would like to catch the alert-box asking whether to save any changes.
    Is there a way to either adapt the alert-box to our own look and feel or an attribute that could be utilised in order to detect uncommitted data?
    We would rather not want to omit the POST logic nor log any footstep of the user.
    Any hint would be appreciated.

    Use parameters , set their values to 'false' for example before posting changes , and then check the status of all of the blocks in your form. Change the value of a particular parameter to true if the status of a certain block is CHANGED. To prevent from being confused name your parameters according to the block name.
    And in your exit functionality test if one of the parameters is 'true' and you show your alert.

  • Pre-insert trigger is not firing after post built-in

    Hi,
    I have a 10g form in which Post built-in is used in When-button-pressed Trigger. After the post command I am checking some condition,by using the same record which I have posted.But it is not working.
    I have also put the message in the pre-insert trigger but the message is not displaying.
    But the same form iis working fine in form 6i, as I have migrated the forms from form 6i to 10g.

    Yes, In that block there are other items also. I have made the required property no for all the items.
    what exactly we have is
    (if x=y then)on some condition check
    POST;
    After that, form have a select statement in which it is selecting the same row which is being posted above.
    if the select statement gives count of row zero
    raise form_trigger_failure is fired.
    and in the pre-insert trigger form is assigning a value to a block item.

  • What the difference between Canvas,View and Form

    hi
    What the difference between canvas and view and form
    why asking becoz i find form builder reference
    built in like FIND_CANVAS
    FIND_VIEW
    FIND_FORM
    What the difference between these 3
    thanks in advance
    prasanth a.s.

    Asuri - with all these questions you are posting it looks like you are sitting and exam or an interview. The best advice I can give you is the skill of being able to research answers yourself.
    I would encourage you to get familiar with the online help and the various documents on OTN - this will give you knowledge; not just answers.
    Regards
    Grant Ronald
    Forms Product Management

  • Posting of IR and GR

    Dear Expert,
    I would like to understand the posting of GR and IR in PO.
    Sample as follows:
    PO amount  = MYR 4680   (1 pc)
    GR amount  = MYR 4680   (1 pc)
    Double entry upon posting:
    Dr. Exp Ac1     MYR 4680
    Cr GR/IR Ac    MYR 4680
    IR amount    = MYR 4320 ( less due to discount given) (1 pc)
    Double entry upon posting:
    Dr. GR/IR Ac     MYR 4680
    Cr  Vendor       MYR 4320
    Cr  Exp Ac1     MYR  360
    In term of Finance,  the entry are tally. However when I view in PO History tab in the PO itself, there is balance of MYR 360. So do at the Status tab of the PO.
    In this case, may I know is this the correct posting? Or is there any other way to perform the GR? In order to close this PO, do we need to do force closing by ticking the Final Invoice indicator?
    Kindly advise.
    Thank you.

    In simple step, the correct process is what ever the GR amount is posted for the PO, you should post Invoice amount as same as GR amount.
    In your case, if you find the IR amount is different than GR amount, then you should cancel the GR, then again post the GR after changing the price.
    Suppose, you have created a PO with amount 4680, then you have posted GR with amount 4680. But you've got invoice for amount 4320. Now you should cancel the GR and then change the PO amount as 4320 and then again do GR with amount 4320, then do invoice for amount 4320.
    Then check your PO history. It will be shown as balanced.

  • Order and item status in sales order

    We had multiple items in the sales order
    for one of the item, the quantity was 5, but user cretaed a delivery of 8. but she only post goods issue for 5.
    the delivery and order was open
    at this stage the archival of delivery took place.
    we changed the status in tables vbuk and vbup to complete.
    but in the display of status in sales order, it still shows being processed.
    What can we do now to set the order status and item status to COMPLETE.
    Thank you for your reply

    Hi,
    This order status will not be complete unless the delivered quantity is equal to the order quantity. You have 2 options. 1. Change the order quantity to 8 and delliver the rest 3 and the order status will be set to COMPLETE. 2. Otherwise, reverse the PGI in VL09n and delete the delivery and create the delivery again for 5 qty. This will set the order status as COMPLETE.
    Regards,
    Raghav

  • Default value in dropdown field for FPM form in HCM Processes and forms

    Hi Experts,
    I am developing HCM Processes and forms using FPM forms and I had a dropdown list contains ten values. So, every time while opening the form first time, my dropdown field should be defaulted with fifth value from the list. How can we achieve this in dropdown field related to FPM Form.
    Please guide me.
    Regards,
    Nayani.

    You would have to assign the default value to one your custom generic services.
    Regards.
    PS: There are posts which talk about generic services , make yourself comfortable with the concept of generic services.

  • Using READ_IMAGE_FILE BUILT-IN IN Forms causes a loss in the  resolution

    Hi All
    Oracle Developer suite 10g, database 11 gr2, windows Platform
    I'm using READ_IMAGE_FILE BUILT-IN in forms builder to read an image and get a good background for the form, but the image displays in the form with a resolution that is less than the actual image resolution.
    Please help

    Francois,
    Sorry, because I don't have any background about java,
    This is the java console output after saving a new record :
    Oracle JInitiator: Version 1.3.1.22
    Using JRE version 1.3.1.22-internal Java HotSpot(TM) Client VM
    User home directory = C:\Documents and Settings\it maniger
    Proxy Configuration: Browser Proxy Configuration
    JAR cache enabled
    Location: C:\Documents and Settings\it maniger\Oracle Jar Cache
    Maximum size: 50 MB
    Compression level: 0
    Loading http://itmanage:8889/forms/java/frmall_jinit.jar from JAR cache
    Loading http://itmanage:8889/forms/java/myappicons.jar from JAR cache
    Loading http://itmanage:8889/forms/java/frmwebutil.jar from JAR cache
    Loading http://itmanage:8889/forms/java/jacob.jar from JAR cache
    Loading http://itmanage:8889/forms/java/handleimage.jar from JAR cache
    Loading http://itmanage:8889/forms/java/classes12.jar from JAR cache
    proxyHost=null
    proxyPort=0
    connectMode=HTTP, native.
    إصدار بريمج Forms هو : 10.1.2.0
    Lecture.bLog=true
    Lecture.bLog=true
    InitConn=jdbc:oracle:thin:@zogotoun-jnq4h6:1521:XE
    InitUser=tutoforms
    InitPwd=tuto
    Clear imge
    Searching JAR for file:///f:\femtosoft\fmst\mainmenu.jpg
    Unable to find file:///f:\femtosoft\fmst\mainmenu.jpg in JAR
    Searching docbase for file:///f:\femtosoft\fmst\mainmenu.jpg
    Constructed URL: file:/f:/femtosoft/fmst/mainmenu.jpg
    Image found in DOCBASE: file:/f:/femtosoft/fmst/mainmenu.jpg
    Start Ecriture()
    Ecriture() : Connect to database
    Ecriture() : error connecting to the database java.security.AccessControlException: access denied (java.net.SocketPermission zogotoun-jnq4h6 resolve)
    Ecriture() : execute query=UPDATE PHOTOS set PHOTO_JAVA = ? where IDENTIFIANT=5
    java.lang.NullPointerException
    Mostafa

  • Workflow could not start in HCM process and Forms

    Hi All
    It would be really helpful if you can suggest possible solution regarding case management case in HCM forms and process.
    I have set up a simple custom HCM process and Form regarding Infotype 2 updation. I have checked the process and form consistency and it seems fine. Now when I run the process from HRASR_DT it generates a process number but it also gives an error workflow could not start.I get following error (SWIA log - Step history)
    Executing flow work item - Transaction brackets of the workflow has been damaged
    Exception occurred - Error when starting work item 000000007031
    PROCESS_NODE - Error when processing node '0000000014' (ParForEach index 000000)
    CREATE - Error when creating a component of type 'Step'
    CREATE_WIM_HANDLE - Error when creating a work item
    CREATE_VIA_WFM - Exit CL_HRASR00_POBJ_WF_EXIT triggered exeception for event CREATED and (target) status
    EVENT_RAISED - Error updating the process object
    Executing flow work item - Exit CL_HRASR00_POBJ_WF_EXIT triggered exeception for event STATE_CHG and (target) status READY->ERROR
    EVENT_RAISED - Error updating the process object
    Executing flow work item - Transaction brackets of the workflow has been damaged
    Executing flow work item - Work item 000000007031: Object FLOWITEM method EXECUTE cannot be executed
    Executing flow work item - Error when processing node '0000000014' (ParForEach index 000000)
    I have searched few SAP notes such as 1384961 which talks about same error but it is implemented in our system (EA-HR 604 , Patch 27, )
    Appreciate any help.
    Thanks
    Umang

    Hi Swati
    One of the similar (not exact) issues were resolved by correcting the event linkage....please refer thread:
    http://scn.sap.com/message/14848795#14848795
    Not sure of the details of the the resolution, maybe Ragavendran Kanagaraj can throw more light.
    Just some high level checks (if not done already):
    Check event linkage errors in SWEQADM if anything is related to your WF
    Check in SWEL if it's showing any more details (not sure if it will)
    Any warnings in syntax check of WF template (PFTC) or WF definition (SWDD)
    Any error sin binding
    regards,
    Modak

  • Exit CL_HRASR00_POBJ_WF_EXIT triggered exeception for event STATE_CHG and (target) status READY- ERROR EVENT_RAISED - Error updating the process object

    Hi All
    I have set up a simple custom HCM process and Form regarding Infotype TO CREATE AND CHANGE POSITION. I have checked the process and form consistency and it seems fine. Now when I run the process from HRASR_DT it generates a process number but it also gives an error workflow could not start.I get following error (SWIA log - Step history)
    Executing flow work item - Transaction brackets of the workflow has been damaged
    Exception occurred - Error when starting work item 000000007031
    PROCESS_NODE - Error when processing node '0000000014' (ParForEach index 000000)
    CREATE - Error when creating a component of type 'Step'
    CREATE_WIM_HANDLE - Error when creating a work item
    CREATE_VIA_WFM - Exit CL_HRASR00_POBJ_WF_EXIT triggered exeception for event CREATED and (target) status
    EVENT_RAISED - Error updating the process object
    Executing flow work item - Exit CL_HRASR00_POBJ_WF_EXIT triggered exeception for event STATE_CHG and (target) status READY->ERROR
    EVENT_RAISED - Error updating the process object
    Executing flow work item - Transaction brackets of the workflow has been damaged
    Executing flow work item - Work item 000000007031: Object FLOWITEM method EXECUTE cannot be executed
    Executing flow work item - Error when processing node '0000000014' (ParForEach index 000000)
    Points to be noted:
    1) I have searched few SAP notes such as 1384961(Notes for 6.0.4) but our system is in higher level patch 6.0.5
    2) WF-BATCH have SAP_NEW and SAP_ALL authorization.
    Appreciate your valuable suggestions.
    Thanks
    Ragav

    Hi Ragav
    did you try to debug this? maybe something is missing in config of P&F?
    Since you are on 605, the following note would be there in your system....use it to debug:
    1422496 - Debugging background workflow tasks in HCM P&F
    This will help you find the root cause.
    regards,
    modak

  • HCM Process and Forms Workflow

    Experts,
    I started a sime Forms and process scenario. Forms and workflow were developed and thw work item goes to dump when testing.
    It is the new server, I configured everything in SWU3. Agent also Workflow_Initiator.
    Error Details :
    No errors occurred -> Details in long text
    No errors occurred -> Details in long text
    Error when starting work item 000000852098
    Error when processing node '0000000010' (ParForEach index 000000)
    Error when creating a component of type 'Step'
    Error when creating a work item
    Exit CL_HRASR00_POBJ_WF_EXIT triggered exeception for event BEF_CREAT and (target) status : Excep
    Error when reading the process object: GUID is initial
    Work item 000000852098: Object FLOWITEM method EXECUTE cannot be executed
    Error when processing node '0000000050' (ParForEach index 000000)
    Error when creating a work item
    Exit CL_HRASR00_POBJ_WF_EXIT triggered exeception for event BEF_CREAT and
    Error when reading the process object: GUID is initial
    Work item 000000852098: Object FLOWITEM method EXECUTE cannot be executed
    Error when processing node '0000000010' (ParForEach index 000000)
    Error when processing node '0000000010' (ParForEach index 000000)
    Thanks,
    Helps will be highly appreciated.

    Hi,
    Thanks for the reply swaminathan. I did swu_obuf. No result.
    Also i found there is nothing in workflow container in the log. But I passed some static data's to the container using binding.
    WF container                    Task container
    Zform_1                             Form_scenario
    Here the zform_1 passed to task container using binding.
    But in log there is no data in task container. What could be the issue?
    Also this is the new server and this is the first workflow. I configured SWU3 and I developped one test workflow(User decision and Mail step) and its working fine.
    Any configuration issue?
    Thanks.

  • How to read a file as an input stream after it's posted in an HTML form ?

    Hello,
    I want to read client file after it's posted in an HTML form. But, I don't want to upload it to filesystem or database. I want to read posted file as an input stream. How can I do that ?
    thanks in advance...

    A couple of things. If you have a FILE field in your form, the enctype of the form must be multipart/form-data. Check this link
    http://www.htmlhelp.com/reference/html40/forms/form.html
    Also, when a file is uploaded you cannot use the regular methods to get at the name/value pairs or the file itself. You'll have to use a utility like MultiPartRequest or write your own based on the RFC for Multipart requests.
    http://www.servlets.com/cos/javadoc/com/oreilly/servlet/MultipartRequest.html
    You will need some temporary file system to store this and then delete it when you are done with it.
    hth

  • Tomact examples and form base authentication

    I am looking at the tomcat examples web.xml security constrains and login info settings:
    <security-constraint>
    <display-name>Example Security Constraint</display-name>
    <web-resource-collection>
    <web-resource-name>Protected Area</web-resource-name>
         <!-- Define the context-relative URL(s) to be protected -->
    <url-pattern>/jsp/security/protected/*</url-pattern>
         <!-- If you list http methods, only those methods are protected -->
         <http-method>DELETE</http-method>
    <http-method>GET</http-method>
    <http-method>POST</http-method>
         <http-method>PUT</http-method>
    </web-resource-collection>
    <auth-constraint>
    <!-- Anyone with one of the listed roles may access this area -->
    <role-name>tomcat</role-name>
         <role-name>role1</role-name>
    </auth-constraint>
    </security-constraint>
    <!-- Default login configuration uses form-based authentication -->
    <login-config>
    <auth-method>FORM</auth-method>
    <realm-name>Example Form-Based Authentication Area</realm-name>
    <form-login-config>
    <form-login-page>/jsp/security/protected/login.jsp</form-login-page>
    <form-error-page>/jsp/security/protected/error.jsp</form-error-page>
    </form-login-config>
    </login-config>
    As we can see form-login page and form-error page uri match url-pattern settings.
    url-pattern: /jsp/security/protected/*
    form-login page: /jsp/security/protected/login.jsp
    form-error page: /jsp/security/protected/error.jsp
    There is no binding of unauthenticated user to ether one of specified roles
    Question: What place in the servlet spec allows serving secured resource for a user without appropriate role association?

    Kinda then beat the the whole idea of authentication then, if you allow a user in that is not assigned to a security role? Anyway, I think you are looking to send the user to another page if they are not in a role but have an id, correct? Well, first it has to be a page outside the secure directory/ies. The error it generates is a 403. So add to your web.xml:
        <error-page>
           <error-code>403</error-code>
           <location>/403.jsp</location>
        </error-page>Anytime a user who is not a member of the allowed roles attempts a login, they will be redirected to this page.
    Ross

Maybe you are looking for

  • Send text mail as an attachment

    This is the code i'm using for send mail with text file as attachment public class SendMailAttachment{ public static void main(String args[]) throws Exception{ try{ String host ="mail.akebonosoft.com"; String from = "[email protected]" ; String to ="

  • Send Smartform Email via Action Profile

    Hello, We have an Action Profile with a few actisn athat a workign perfectly.  I have added a new action to send  smartform via email when the the transaction is saved. The Action profile is set upfor object type BUS2000115(Quotation) with the contex

  • Status

    Dear experts, After create cancel invoice under what circumstances the accounting document for both invoice and cancel invoice is 'not cleared'? Thanks.

  • FlatFile to produce multiple xml Files

    Hi - my requirement is I need to convert the below FF to xml format producing unique ID record and multiple Question and Answer Record under it. Output should be of this format :For 5 different IDs, 5 seperate xml's should be produced <ID> 000000001

  • Help needed- newbie trying to setup xerces XML pasrer

    Hello all, I am new to Java and XML. I am trying to write a simple java program that will use the xerces parser and will read the XML file. I have installed xerces 2.8.0 and put in on a specific location on my hard drive. I also added the xercesImpl.