Loosing the record on UI upon save

Hi
i am settins some value on text UI element , but after i save the record it saves correctly in the backend however diappears in the UI level , can any body assist
Rgds

Hi Akeel,
Please check the Save button action, if you are invalidating the context node for this.
Once you call method for updating backend data in the onaction of save buton, you can try to call display method to show in the same screen with updated results.
Hope it will helps
Regards
Arun Jaiswal

Similar Messages

  • Choosing the records to save in a database based block

    Hi everybody,
    I'm working with oracle 10g forms builder, I have a database based block.. in which I'll populate a number of records retrieved from a cursor. In that block, I have a non database item which a checkbox.
    The user can select the records he wants to save by setting the checkbox to check.
    Only the selected records should be checked.
    Can anyone please help me implementing that.
    Thanking you all in advance.
    Cheers.

    Commit processing in Forms is an all or nothing process. You cannot pick and choose which records will be commited during a Commit_Form or Commit call. Based on your description, I don't see why you would need to use the checkbox to keep track of which records are new since you state that you add the records through a cursor and then to save them. Forms already keeps track of which records were queried into a block and which records are new so a simple call to Commit_Form will accomplish what you want without the need to manually keep track of which records are new.
    Hope this helps,
    Craig
    If a response is helpful or correct, please mark it accordingly.

  • I can't save the record in a new/empy table of sqlserver in the entity Framework 5.0

    Hi guys ,
    I have tried to become a database expert in Entity Framework but I can't. because I am not able to save the record in a fresh/ empty table of sql server 2008 r2 database. for that I have watched the video tutorials step by steps that how to save the record.
    I followed the tutorials step by step and at the end the result is negative.
    I tried a simple way given below. please some one help me that where and what I missing the.
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Linq;
    using System.Text;
    using System.Windows.Forms;
    using EmployeesLib;
    namespace EmpApplication
    public partial class Form1 : Form
    private EMPEntities _dbContext;
    public Form1()
    InitializeComponent();
    private void Form1_Load(object sender, EventArgs e)
    _dbContext = new EMPEntities();
    var sql = _dbContext.Employees;
    this.employeeBindingSource.DataSource = sql.ToList();
    private void employeeBindingNavigatorSaveItem_Click(object sender, EventArgs e)
    this.Validate();
    _dbContext.SaveChanges();
    I have used datagrid addid a row by Click Add button on the NavigationBindingsource entered an employee name
    and clicking the save button on the NavigationBindingSource. When I am restarting the application I nothing founding on the Datagrid I am saving before.
    below is the Connection String in the App.config file both in the project.
    APP.CONFIG connection string
        <add name="EMPEntities" connectionString="metadata=res://*/EmpModal.csdl|res://*/EmpModal.ssdl|res://*/EmpModal.msl;provider=System.Data.SqlClient;provider connection string=&quot;data source=(local);initial catalog=Inventory;integrated
    security=True;MultipleActiveResultSets=True;App=EntityFramework&quot;" providerName="System.Data.EntityClient" />

    humm, I falling the ball to the batsman(sqlserver) but it getting "NOBALL" in response(not saving). Ok it my be problem in visual studio I am struggling to remove my operating System, VS2013 and sql server, by reinstalling it might works.
    because i havent any other computer where these application are installed for the test.
    If you create and send me a small project that contain minimum of two columns of table( in sql server ) which can saving new data from datagrid so i will thankfull of you.
    it is just for confirmation that either the problem is in OS or VS.
    I doubt that any of it has anything to do with the issue. If you think it does, then you can post to the forums.
    https://social.msdn.microsoft.com/Forums/vstudio/en-US/home?forum=vssetup
    https://social.msdn.microsoft.com/Forums/sqlserver/en-US/home?category=sqlserver
    I think you are riding a bad horse (that tutorial) you are using, and you need to change horses. I think the 'modified' state is not being rasied on the entity bound to the grid when it has changed, and EF is not going save any entity that's not in a modified
    state.

  • HT3659 My Soundtrack pro looses the mic on AJAKona.  It will appear as an input only after clicking on New audio file, then ok, Recording alert appears and then I have my AJA KONA3g back as an input option. loose it again if I change track

    My Soundtrack pro looses the mic on AJAKona.  It will appear as an input only by clicking on New audio file, then ok,  and an Recording alert comes up.  But if I change track I loose the AJA again. How do I fix this?

    Finally found the answer. The recording was done at 48, the audio/MIDI settings were set to 48, but the sampling setting on the export was not, causing everything else to break down. Once all three matched the export worked and the playback audio worked without opening the clip editing screen.

  • My Ipad crashed, so I pressed both power and home button, now I have to restart my ipad on the itunes, but there are some important info I cannot loose... how can I save this info at this time? actually is some info the I saved in the "notes" app! help!!!

    My Ipad crashed, so I pressed both power and home button, now I have to restart my ipad on the itunes, but there are some important info I cannot loose... how can I save this info at this time? actually is some info the I saved in the "notes" app! help!!!

    I Had it on my iPod, but I reset to factory settings and it got deleted :( If I find a way to get it back, I'll post it here so you can too.

  • Do you want to save the record on detail block

    I have a master detail form. When i update the detail section and navigate to a different master item. I am getting do you want to save the record on my detail block.
    I want to post the changes everytime on the detail block. As i will rollback or commit depending if user saves the form or not on a button press.
    But I can not find any trigger that fires when i change the master record (after changing the detail block) any ideas?

    Hello all,
    I have problem to save list of records in stacked canvas block, that is it always save the record where current reocord indicator is indicating,
    can somebody help me out, how to save data on stacked canvas without having master-detail relationship.
    Regards,
    Ather Ali
    Edited by: user11972516 on Apr 17, 2011 1:27 AM

  • How can I save the recorded calls automatically in CCX?

    I use CCX for contact center. I would like to record the conversation between agents and the callers.
    I use server based recording and I can listen the recorded conversation by Supervisor Record Viewer.
    I also can save the recorded conversation by Supervisor Record Viewer but one-by-one.
    Could anyone suggest me how I can convert the raw files (saved by VoIP Monitor) into wav files simultaneously?
    I know that the Supervisor Record Viewer is not intended to archive conversations, but I have read somewhere that is there any possibility to archive the recorded conversations automatically. Unfortunately I did not find how.
    Thanks,
    Laszlo

    This has been covered on the forum before; however, I'll get you started so you know what you're searching for.
    This is done in two parts:
    You need to configure a workflow action for CAD on the Answered event to start recording if you want this to happen automatically.
    You can use the Raw2Wav.exe file stored on the CCX server as part of a batch file to periodically convert the RAW files to WAV files. The Raw2Wav.exe utility only converts the file. Your batch script would need to take care of moving them off of the CCX server. Do *not* use the CCX server as your file server to store these!

  • Why does SHDB stop the recording when "Save" is done in VA01 ?

    Hi,
    Here is my problem:
    - When I run VA01 manually and save my sales order, the transaction does not exit: I can see the sales order number in the status bar and continue to work in the same screen.
    - When I do the same with transaction SHDB (transaction recorder), VA01 exits just after Save and the recording stops.
    I tried to play with the different options of SHDB but nothing worked so far.
    Does anyone have an explanation, or better, a solution ?
    Thanks in advance !

    Normally, you run your recording in a loop, so you want to exit the transaction when an order is saved so that you can go on with the next one.
    Rob

  • HT4865 I don't have enough storage space on my iPhone 4S to download the new OS7 so how do I save it to iCloud and remove it from my iPhone to make room but not loose the deleted stuff from iCloud?

    I don't have enough storage space on my iPhone 4S to download the new OS7 so how do I save it to iCloud and remove it from my iPhone to make room but not loose the deleted stuff from iCloud?

    You can't use iCloud like that.  It isn't a general file storage service; it's designed to sync data across your devices. 
    Some options are to sync all your music or other media off your device, then sync it back on after you update.  Another is to import your photos to your computer (http://support.apple.com/kb/HT4083), then sync them back to your phone after you update by putting them in a folder, then selecting the folder on the Photos tab of your iTunes sync settings and syncing.

  • Hi when I use USB cable to transfer photos from my computer to my I pad2 when I have one lot of photos on I pad when I come to put more on I loose the first ones, is there any way you can save photos to I pad

    Hi when I transfer photos from my computer to my I pad2' that's ok but when I come to transfer more photos I loose the first ones
    Is there a way I can save them
    Hope somebody out there could let me know
    Many Thanks

    Only the contents of the most recent sync remain on the iPad, so if you want to sync multiple folders then you need to sync them in one go - in which case the folders will need to be directly off the same parent folder (otherwise they can't all be selected). Not including a folder in a subsequent sync is the way by which you delete them off the iPad. More info on photo syncing http://support.apple.com/kb/HT4236

  • Not save the record

    frm- 40735: insert triger raised unhandled
    exception ora-01722
    when insert the record so the record is not saved

    You have an invalid number being inserted into a number column in the database.
    Oracle is preventing the insert and raising an exception. This is a good thing!
    Here is the error message from http://ora-01722.ora-code.com/ :
    ORA-01722: invalid number
    Cause: The attempted conversion of a character string to a number failed because the character string was not a valid numeric literal. Only numeric fields or character fields containing numeric data may be used in arithmetic functions or expressions. Only numeric fields may be added to or subtracted from dates.
    Action: Check the character strings in the function or expression. Check that they contain only numbers, a sign, a decimal point, and the character "E" or "e" and retry the operation.

  • How to get the value of the current form values after "save" in MD form

    Hi,
    I am trying to run a procedure using the form values right after I save the current records in a master-detail form. When I pass the value using p_session.get_value to the procedure, there is only null value passed. I checked the package body generated and found that the OnReset function runs immediately following the saving of the current records and this onReset function is called within the OnSave procedure. So when I save the current changes, I loose the values in the p_session. Any PL/SQL code I write after OnSave, does not get any p_session value.
    Interestingly, in case of just one table form, the OnReset is not within the OnInsert function and it is possible to get the p_session values. OnReset runs after OnInsert and within this two functions we can write any pl/sql code on the Insert button PL/SQL handler.
    I have the following questions:
    1. Why is the procedure written differently in case of master-detail form ? Why is the OnReset inside the OnSave ? How do we write codes which we want to execute before onReset and after OnSave ?
    2. I want to run a procedure after onSave and before OnReset. How do I do that ? Do I have to change the package manually ?
    3. If the above is not possible, I can also try to store the values I need to run the procedure before I save in some variable. How do I do that ? It seems I cannot declare variables to store session values inside the pl/sql event code on Save button, because it gives me error. The variable declaration code goes in between the begin and end of genesys.. procedure and that is not allowed in pl/sql
    Please help me with this. I definitely need to run a procedure after saving for almost all of my forms. Otherwise I am not sure what to do with my development. I am completely stuck with this. Thanks a lot for helping me out.
    Mainak

    Never mind. I found the answer.

  • Error while saving the records in the database

    Hi,
    I am running into a wierd error.
    I have built a new page which contains the information about the employees. Some of the fields are updatable fields. The page shows the details of the person who logs into the page.
    I am not using EO in this page. The data is queried from the database from VO and displayed in the page and when the records are updated, they are saved in the databased using pl/sql procedure which is
    being called from AM. So i am basically not using VO to save the records in the database.
    The error which i am getting is,
    If 2 users are trying to update the page at the same time, user A's details are updated in user B's page.
    This is really causing the issue. Any help is greatly appreciated.
    Thanks in advance.
    PK

    I have posted the code used along with the dialog page. Please review.
    public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processFormRequest(pageContext, webBean);
    if(pageContext.isLoggingEnabled(OAFwkConstants.STATEMENT))
    pageContext.writeDiagnostics(this,"Pavan, Start1",OAFwkConstants.STATEMENT);
    if (pageContext.getParameter("XYZBack")!=null)
    pageContext.setForwardURL("OA.jsp?OAFunc=OAHOMEPAGE"// OAWebBeanConstants.RETURN_TO_MENU_URL also tryed this , same error
    ,null
    ,OAWebBeanConstants.KEEP_MENU_CONTEXT
    ,null //not needed as we are retaining menu context
    ,null // no parameters are needed,true //retain AM,OAWebBeanConstants.ADD_BREAD_CRUMB_YES
    ,true
    ,null
    ,OAWebBeanConstants.IGNORE_MESSAGES);
    if(pageContext.getParameter("XYZUpdate") !=null)//The fields and their values are loaded as soon as the update button is clicked. We do this before calling the oadialog page so that the values are not lost
    OAViewObject EmpDetailsVO3 = (OAViewObject)OAAppl.findViewObject("XYZPersInfoVO");
    OARow EmpDetailsRow3 = (OARow)EmpDetailsVO3.first(); //Bringing the control over to the first row which is nothing but the displayed row.
    if(EmpDetailsRow3 !=null)
    s_workphone = EmpDetailsRow3.getAttribute("WorkPhone").toString();
    if(pageContext.isLoggingEnabled(OAFwkConstants.STATEMENT))
    pageContext.writeDiagnostics(this,"workphone is: "+s_workphone,OAFwkConstants.STATEMENT);
    s_fax = EmpDetailsRow3.getAttribute("WorkFax").toString();
    if(pageContext.isLoggingEnabled(OAFwkConstants.STATEMENT))
    pageContext.writeDiagnostics(this,"Fax is: "+s_fax,OAFwkConstants.STATEMENT);
    s_building = EmpDetailsRow3.getAttribute("Building").toString();
    if(pageContext.isLoggingEnabled(OAFwkConstants.STATEMENT))
    pageContext.writeDiagnostics(this,"Building is: "+s_building,OAFwkConstants.STATEMENT);
    s_room = EmpDetailsRow3.getAttribute("Room").toString();
    if(pageContext.isLoggingEnabled(OAFwkConstants.STATEMENT))
    pageContext.writeDiagnostics(this,"Room is: "+s_room,OAFwkConstants.STATEMENT);
    s_box = EmpDetailsRow3.getAttribute("Box").toString();
    if(pageContext.isLoggingEnabled(OAFwkConstants.STATEMENT))
    pageContext.writeDiagnostics(this,"Box is: "+s_box,OAFwkConstants.STATEMENT);
    s_preferedname = EmpDetailsRow3.getAttribute("KnownAs").toString();
    if(pageContext.isLoggingEnabled(OAFwkConstants.STATEMENT))
    pageContext.writeDiagnostics(this,"Preferred name is: "+s_preferedname,OAFwkConstants.STATEMENT);
    OAException OAExcep1 = new OAException("PER","XYZ_UPDATE_DETAILS");
    OAException OAExcep2 = new OAException("PER","XYZ_UPDATE_MESSAGE");
    OADialogPage OADialogPG1 = new OADialogPage(OAException.WARNING,OAExcep1,OAExcep2,
    OADialogPG1.setOkButtonToPost(true);
    OADialogPG1.setNoButtonToPost(true);
    OADialogPG1.setOkButtonLabel("Yes");
    OADialogPG1.setNoButtonLabel("No");
    OADialogPG1.setOkButtonItemName("DoOk");
    OADialogPG1.setNoButtonItemName("DoNo");
    OADialogPG1.setPostToCallingPage(true);
    pageContext.releaseRootApplicationModule();
    pageContext.redirectToDialogPage(OADialogPG1);
    else if(pageContext.getParameter("DoOk") != null)
    OAApplicationModule EmpDetailsAM = pageContext.getApplicationModule(webBean);
    Class[] paramtypes = {String.class, String.class, String.class, String.class,String.class,String.class,String.class};
    Serializable[] params = {s_personid,s_workphone,s_fax,s_building,s_room,s_box,s_preferedname};
    if(pageContext.isLoggingEnabled(OAFwkConstants.STATEMENT))
    pageContext.writeDiagnostics(this,"personid is :"+s_personid,OAFwkConstants.STATEMENT);
    if(pageContext.isLoggingEnabled(OAFwkConstants.STATEMENT))
    pageContext.writeDiagnostics(this,"workphone is :"+s_workphone,OAFwkConstants.STATEMENT);
    if(pageContext.isLoggingEnabled(OAFwkConstants.STATEMENT))
    pageContext.writeDiagnostics(this,"workfax is :"+s_fax,OAFwkConstants.STATEMENT);
    if(pageContext.isLoggingEnabled(OAFwkConstants.STATEMENT))
    pageContext.writeDiagnostics(this,"building is :"+s_building,OAFwkConstants.STATEMENT);
    if(pageContext.isLoggingEnabled(OAFwkConstants.STATEMENT))
    pageContext.writeDiagnostics(this,"room is :"+s_room,OAFwkConstants.STATEMENT);
    if(pageContext.isLoggingEnabled(OAFwkConstants.STATEMENT))
    pageContext.writeDiagnostics(this,"preferredname is :"+s_preferedname,OAFwkConstants.STATEMENT);
    pageContext.releaseRootApplicationModule();
    OAAppl.invokeMethod("TransactionCommit",params,paramtypes);
    OAAppl.invokeMethod("initDetails");
    throw new OAException("The Building and Phone Information have been saved successfully"
    ,OAException.INFORMATION);
    thank you

  • Issue in retrieving all the records from ADF Table with multiple row

    Hi,
    As per my requirement, I need to fill the table with multi selected LOV values and when user clicks on commit, I need to save them to database.
    I am using ADF 11g, Multi select table. Using the below ADD method, I am able to add the records but if user clicks on cancel, I need to remove those from view and clear the table as well.
    But the Issue I am facing is, in my cancel method, always I am getting half of the records. Lets assume table contains 100 records but in my cancel method, I am getting only 50 records.
    Please let me know what is the issue in my source code.
    ADD Method:
    public void insertRecInCMProcessParamVal(String commType, String processType, Number seqNumber){       
    try{
    Row row = this.getCmProcessParamValueView1().createRow();
    row.setAttribute("ParamValue7", commType);
    row.setAttribute("ProcessType", processType);
    row.setAttribute("CreationDate", new Date());
    row.setAttribute("CreatedBy", uid);
    row.setAttribute("ParamValueSeqNum", seqNumber);
    row.setAttribute("ProcessedFlag", "N");
    this.getCmProcessParamValueView1().insertRow(row);
    }catch(Exception e){           
    e.printStackTrace();
    Table Code:
    <af:table value="#{bindings.CmProcessParamValueView11.collectionModel}"
    var="row"
    rows="#{bindings.CmProcessParamValueView11.rangeSize}"
    emptyText="#{bindings.CmProcessParamValueView11.viewable ? 'No data to display.' : 'Access Denied.'}"
    fetchSize="#{bindings.CmProcessParamValueView11.rangeSize}"
    rowBandingInterval="1"
    selectedRowKeys="#{bindings.CmProcessParamValueView11.collectionModel.selectedRow}"
    selectionListener="#{bindings.CmProcessParamValueView11.collectionModel.makeCurrent}"
    rowSelection="multiple"
    binding="#{backingBeanScope.backing_app_RunCalcPage.t1}"
    id="t1" width="100%" inlineStyle="height:100px;" >
    <af:column sortProperty="ParamValue6"
    sortable="true"
    headerText="#{bindings.CmProcessParamValueView11.hints.ParamValue6.label}"
    id="c1" visible="false">
    <af:inputText value="#{row.bindings.ParamValue6.inputValue}"
    label="#{bindings.CmProcessParamValueView11.hints.ParamValue6.label}"
    required="#{bindings.CmProcessParamValueView11.hints.ParamValue6.mandatory}"
    columns="#{bindings.CmProcessParamValueView11.hints.ParamValue6.displayWidth}"
    maximumLength="#{bindings.CmProcessParamValueView11.hints.ParamValue6.precision}"
    shortDesc="#{bindings.CmProcessParamValueView11.hints.ParamValue6.tooltip}"
    id="it3">
    <f:validator binding="#{row.bindings.ParamValue6.validator}"/>
    </af:inputText>
    </af:column>
    <af:column sortProperty="ParamValue7"
    sortable="true"
    headerText="Comm Type"
    id="c2">
    <af:inputText value="#{row.bindings.ParamValue7.inputValue}"
    label="#{bindings.CmProcessParamValueView11.hints.ParamValue7.label}"
    required="#{bindings.CmProcessParamValueView11.hints.ParamValue7.mandatory}"
    columns="#{bindings.CmProcessParamValueView11.hints.ParamValue7.displayWidth}"
    maximumLength="#{bindings.CmProcessParamValueView11.hints.ParamValue7.precision}"
    shortDesc="#{bindings.CmProcessParamValueView11.hints.ParamValue7.tooltip}"
    id="it4">
    <f:validator binding="#{row.bindings.ParamValue7.validator}"/>
    </af:inputText>
    </af:column>
    <af:column sortProperty="ParamValue8"
    sortable="true"
    headerText="#{bindings.CmProcessParamValueView11.hints.ParamValue8.label}"
    id="c3" visible="false">
    <af:inputText value="#{row.bindings.ParamValue8.inputValue}"
    label="#{bindings.CmProcessParamValueView11.hints.ParamValue8.label}"
    required="#{bindings.CmProcessParamValueView11.hints.ParamValue8.mandatory}"
    columns="#{bindings.CmProcessParamValueView11.hints.ParamValue8.displayWidth}"
    maximumLength="#{bindings.CmProcessParamValueView11.hints.ParamValue8.precision}"
    shortDesc="#{bindings.CmProcessParamValueView11.hints.ParamValue8.tooltip}"
    id="it2">
    <f:validator binding="#{row.bindings.ParamValue8.validator}"/>
    </af:inputText>
    </af:column>
    </af:table>
    Backing Bean Code:
    DCBindingContainer dcBindings=(DCBindingContainer)getBindings();
    DCIteratorBinding dcIterator=dcBindings.findIteratorBinding("CmProcessParamValueView1Iterator");
    RowSetIterator rs = dcIterator.getRowSetIterator();
    System.out.println("In Cancel Row Count is : "+ rs.getRowCount());
    if (rs.getRowCount() > 0) {
    Row row = rs.first();
    row.refresh(Row.REFRESH_UNDO_CHANGES);
    row.remove();
    while (rs.hasNext()) {
    int count = rs.getRowCount();
    System.out.println("Count is : "+ count);
    Row row = rs.next();
    System.out.println("Row === "+ row);
    if(row != null){                   
    row.refresh(Row.REFRESH_UNDO_CHANGES);
    row.remove();
    Thanks.

    Issue resolved.
    remove selectionListener and selectedRowKeys....
    code to get all the selectedRows.
    RowSetIterator rs = dcIterator.getRowSetIterator();
    RowKeySet rks = this.t1.getSelectedRowKeys();
    Iterator rksIter = rks.iterator();
    while (rksIter.hasNext()) {
    List l = (List) rksIter.next();
    Key key = (Key)l.get(0);
    Row row = rs.getRow(key);
    Thanks.

  • The form claims to update the record, but isn't.

    Maybe I just need a sanity check, but this has been driving me bonkers.
    This is in a "when-button-pressed" trigger. Everything seems to be fine in the properties of the form fields, and I even get a "FRM-40400" message saying that two records have been updated in the database (since there are two tables attached to this form), but when I go back to the database table, the records have not been populated. There's actually more to this trigger, but since the records aren't being updated, the rest of the trigger can't do its job.
    I'm posting the beginning of the trigger just so someone can sanity check me. The fact that I'm even getting the FRM-400 message that says it's updated is confusing me. Everything looks fine from the debugger standpoint. Is there something in here that looks like it would prevent me from being able to update the database? I've left in everything, not just what I deem to be the "relevant" portions, just because I'm not sure what might throw it off.
    (anything saying 'soft_messages' can be ignored, it is our own internal way of recording alerts and what kind).
    ---------begin code snippet------------------------------
    DECLARE
         subj VARCHAR2(500);
         v_body VARCHAR2(5000);
         Reqtype varchar2(25) := :INVENTORY.Request_type;
         uft UTL_FILE.FILE_TYPE;
         fpath VARCHAR2(100);
         fname VARCHAR2(100);
         i NUMBER;
         ret NUMBER;
         v_db_name varchar2(50);
         v_support_officer varchar2(35);
         v_owner varchar2(35);
         v_wastemp      NUMBER;
         cust_name VARCHAR2(50);
         cust_phone VARCHAR2(50);
         cust_email VARCHAR2(50);
         cust_test VARCHAR2(50);
         al_button Number;
         msg_txt VARCHAR2(1500);
         V_SMTP_Mailer Boolean default False;
         to_whom VARCHAR2(1000);
         Missing_info exception;
         Proc_failed exception;
         v_node number;
         v_id number;
    BEGIN
         -- Changes the email address so that in production, it goes to the contact, in test it doesn't.
         If v_db_name ='PRODUCTION' then     
              if     :INVENTORY.contact_email is not null then
                   to_Whom := to_Whom||';'||:INVENTORY.contact_email||';';
              else
                   to_Whom:= to_Whom||';';
              end if;
         END IF;
         Message('Working........Please wait');
         SET_APPLICATION_PROPERTY(CURSOR_STYLE,'BUSY');
         select op_sys.current_db_name into v_db_name from dual;
         --Check request type before completing the process
         IF :INVENTORY.VENDOR_NO = 632 THEN
              If :INVENTORY.Request_type ='DISCONNECT' then
                   If :INVENTORY.bill_hierarchy is null THEN
                        SET_APPLICATION_PROPERTY(CURSOR_STYLE,'DEFAULT');     
                        soft_messages('E',true,'Please enter Billing Hierarchy before completing the process');
                   Elsif
                   :INVENTORY.auth_code is null THEN
                        SET_APPLICATION_PROPERTY(CURSOR_STYLE,'DEFAULT');     
                        soft_messages('E',true,'Please enter Authorization/Host Code before completing the process');
                   End if;
              ELSIF
              :INVENTORY.Request_type ='START' THEN
                   If :INVENTORY.bill_hierarchy is null THEN
                        SET_APPLICATION_PROPERTY(CURSOR_STYLE,'DEFAULT');     
                        soft_messages('E',true,'Please enter Billing Hierarchy before completing the process');
                   Elsif
                   :CARD.node is null THEN
                        SET_APPLICATION_PROPERTY(CURSOR_STYLE,'DEFAULT');     
                        soft_messages('E',true,'Please enter Node/Card Number before completing the process');
                   Elsif
                   :INVENTORY.auth_code is null THEN
                        SET_APPLICATION_PROPERTY(CURSOR_STYLE,'DEFAULT');     
                        soft_messages('E',true,'Please enter Authorization/Host Code before completing the process');
                   End if;     
              End if;
         ELSIF
         :INVENTORY.VENDOR_NO = 1268 THEN
              If :INVENTORY.Request_type ='DISCONNECT' then
    If :INVENTORY.bill_hierarchy is null THEN
                        SET_APPLICATION_PROPERTY(CURSOR_STYLE,'DEFAULT');     
                        soft_messages('E',true,'Please enter Billing Hierarchy before completing the process');
                   Elsif
                   :CARD.node is null THEN
                        SET_APPLICATION_PROPERTY(CURSOR_STYLE,'DEFAULT');     
                        soft_messages('E',true,'Please enter Card No before completing the process');
                   Elsif
                   :INVENTORY.auth_code is null THEN
                        SET_APPLICATION_PROPERTY(CURSOR_STYLE,'DEFAULT');     
                        soft_messages('E',true,'Please enter Authorization Code before completing the process');
                   End if;     
              ELSIF
              :INVENTORY.Request_type ='START' THEN
                   If :INVENTORY.bill_hierarchy is null THEN
                        SET_APPLICATION_PROPERTY(CURSOR_STYLE,'DEFAULT');     
                        soft_messages('E',true,'Please enter Billing Hierarchy before completing the process');
              Elsif
                   :CARD.node is null THEN
                   SET_APPLICATION_PROPERTY(CURSOR_STYLE,'DEFAULT');     
                             soft_messages('E',true,'Please enter card number before completing the process');
                   elsif
                   :CARD.folder_id is null AND :inventory.vendor_no = 1268 THEN
                        SET_APPLICATION_PROPERTY(CURSOR_STYLE,'DEFAULT');     
                        soft_messages('E',true,'Please enter folder ID before completing the process');
                   elsif
                   :INVENTORY.PAC is null AND :inventory.vendor_no = 1268 THEN
                        SET_APPLICATION_PROPERTY(CURSOR_STYLE,'DEFAULT');     
                        soft_messages('E',true,'Please enter participant access code before completing the process');
                   Elsif
                   :INVENTORY.auth_code is null THEN
                        SET_APPLICATION_PROPERTY(CURSOR_STYLE,'DEFAULT');     
                        soft_messages('E',true,'Please enter Authorization Code before completing the process');
                   End if;     
              End if;
         END IF;
         If :INVENTORY.tsr_no is null THEN
              soft_messages('E',true,'Please enter the TSR number.');
         elsif
         :INVENTORY.csa is null then
              soft_messages('E',true,'Please enter the CSA number.');
         elsif
         :INVENTORY.tsr_no is null and :INVENTORY.csa is null then
              soft_messages('E',true,'Please enter the TSR number and CSA number.');
         end if;
         if :inventory.vendor_no = 632 then
              v_node := :card.cnt_card;
              v_id := :card.cnt_id;          
              if v_node > 1 then
                   soft_messages('E',true, 'Only one node/account # is required for request, Please correct to continue');
              end if;
         end if;
         if :inventory.vendor_no = 1268 then
              if :card.folder_id is not null and :card.node is null then
                   soft_messages('E',true,'Please enter card number to continue');
              elsif
                   :card.node is not null and :card.folder_id is null then
                   soft_messages('E',true,'Please enter folder ID to continue');
              end if;
         end if;
         if :inventory.vendor_no = 1268 then
         v_node := :card.cnt_card;
         v_id := :card.cnt_id;     
         if v_node <> :inventory.num_requested and v_id <> :inventory.num_requested then
              soft_messages('E',true, 'The node and folder ID entered must equal the number requested , Please correct to continue');
              end if;
         end if;
         If (:inventory.tsr_no is not null AND :inventory.csa is not null
         AND :inventory.bill_hierarchy is not null AND :card.node is not null
         AND :inventory.auth_code is not null) then
              msg_txt := 'Are you sure you want to complete this request: '||:inventory.REQUEST_NO||' ?' ;          
              al_button :=     DISPLAY_ALERT('CG$ASK_COMMIT',msg_txt);
              --If status change is requested          
              If al_button = 88 then     
                   SET_APPLICATION_PROPERTY(CURSOR_STYLE,'BUSY');     
                   If Reqtype = 'START' and :INVENTORY.status = 'PENDING START' then
                        :INVENTORY.status :='ACTIVE';     
                        :INVENTORY.COMPL_DATE := SYSDATE;
                   :INVENTORY.COMPLETED_BY := USER;          
                   Elsif Reqtype = 'START' and :INVENTORY.status = 'ACTIVE' then
                        :INVENTORY.status :='ACTIVE';
                        :INVENTORY.CREATE_DATE := SYSDATE;
                        :INVENTORY.CREATE_USER := USER;
                        :INVENTORY.COMPL_DATE := SYSDATE;
                        :INVENTORY.COMPLETED_BY := USER;          
                   Elsif Reqtype = 'DISCONNECT' and :inventory.status = 'PENDING DISCONNECT' then
                        :INVENTORY.status :='DISCONNECTED';
         :INVENTORY.COMPL_DATE := SYSDATE;
         :INVENTORY.COMPLETED_BY := USER;
                   End if;     
              end if;     
    /* something is not letting the commit for the card block happen*/
              :SYSTEM.MESSAGE_LEVEL := 5;
              COMMIT_FORM;
              :SYSTEM.MESSAGE_LEVEL := 0;
              SET_APPLICATION_PROPERTY(CURSOR_STYLE,'DEFAULT');     
              if al_button = 88 then
                   soft_messages('I',false,'Request has been successfully processed.');
         else
                   soft_messages('I',false,'This Request has not been saved.');
              end if;
    ------------end code snippet-----------------
    Everything after this point hinges on the data having been committed.
    This is unfortunately code I've inherited, so I'm not sure why the former owner decided that just because you pressed "yes" the request should be declared successfully processed. I've cleaned up what's listed above, but for debugging purposes I've planted little messages throughout this code to let me know what the state of some of the variables are, and everything looks to be correct.
    Why would I get a FRM-40400 if it's not actually successfully updating the database?
    Cyd

    "The fact that it's doing a commit no matter what..."
    It won't do a commit if the form_status is QUERY. Did you check the form_status before coming to the actual commit statement? If it's QUERY, it won't commit. You need to do check this!
    If the form_status is not QUERY, then it will do a commit unless the form is doing something in a pre-commit trigger, or deleting the records in a post commit trigger. The fact you were getting a "are no changes to be saved" message, leads me to believe you may have something going on in a trigger that fires when it encounters your commit statement. You may have to use the debugger to execute your code one line at a time to find out what's going one here. Have you tried doing that?
    Other possibilities are:
    a. The database or schema you are looking at is not the database or schema Forms is using to save the records.
    b. The records being commited are not the records you were expecting.
    "FRM-40400 blinking up on the screen"
    not sure why it would be blinking... maybe due to the version of Forms Builder you are using.

Maybe you are looking for

  • Getting error while updating property of image through weblogic CMS

    Hii I want to add alt text and alt title to an existing image through Weblogic Content Management System_ . For that I have used adAltText property of ad content type. For that I have refer the following link [ http://docs.oracle.com/cd/E13155_01/wlp

  • Error in VF03 while printing "Output could not be issued"?

    Hi all, getting error while printing invoice VF03. Error is "Output could not be issued". Print privew is coming fine in both side either Smartform or VF03. If I try to print, then system giving the message is Output could not be issued. How to resol

  • Mini-DVI / Video

    http://store.apple.com/Apple/WebObjects/ukstore.woa/wa/RSLID?mco=1640190E&nplm=M 9319 Hi Will this work with my MacBook? I think it should, but don't want to waste time and cash if it doesn't, as the MB isn't listed as compatible on the website. Than

  • How to refresh a JTable of a class from another thread class?

    there is an application, in server side ,there are four classes, one is a class called face class that create an JInternalFrame and on it screen a JTable, another is a class the a thread ,which accept socket from client, when it accept the client soc

  • *News* What do I mean by custom EasyBIOS , Neo2 K8N Platinum 1C3

    Update : 2006-04-16 Some menu pics were gone missing I had a philosify when making a custom bios for myself (and others) for the K8N Neo2 that MSI has done right in the way that they set options as hidden . That's a great idea , however some default