Forms obligates me to save every record I change

Hello friends at www.oracle.com ,
I've created a program which main block should insert, update and delete records automatically, using its default Oracle procedures.
Everything works fine, except for one detail: instead of letting me insert/update records and save everything later, my program is imposing me to save every record I insert, update or delete. That is, if I change a record, I simply can't navigate to another record, until I save the record I've changed.
The block has very few columns, and I looked at them to be sure that there is no mandatory field. The program should verify if something is missing in a record only when its data is being saved - that is, in a PRE-INSERT trigger, see if the :BLOCK.field is NULL and, if it's true, then it raises an error. But the program simply doesn't let me go until I save the record I changed.
Please notice that the program is being run via web. Hope my explanation is clear.
Best regards,

Hello Grant,
What I would suggest is create a default block then
compare the code you added (maybe adding a trigger at
a time) to see of your code is causing the problem.
...sincere thanks for your answer. The block was created via Forms Wizard, and the described situation happens anyway - that is, whether I am inserting, updating or deleting a record, I have to save it before continuing to the next record.
I will do some tests, according to what you've suggested, and if I find it out I will post the solution here. I guess it might be a block property that's not correctly set, but other possibilities - such as a PL/SQL block - should be studied as well.
Best regards,

Similar Messages

  • Getting message for every record while pressing down arrow key:apps form

    Hi,
    when i query the form and when I am going through the records by pressing the down arrow of the keyboard I am getting the message 'Do you want to Save the records' for every record even though i did not update any record
    How to avoid the message?
    I developed the form in oracle applications and it is a master detail form which have a header block and lines block.
    thanks & regards
    Deekshit

    Hello,
    You can review the following;
    https://metalink.oracle.com/metalink/plsql/f?p=200:27:627127677634310554::::p27_id,p27_show_header,p27_show_help:173383.995,1,1
    Hope it helps.
    Adith

  • In the same box, firefox saves every form but one..

    this happens in my phone operator website. There is a place to send sms and there is a box to enter the phone number to send the sms. Firefox saves every phone number but one... I don't remember what I did but it used to store that number as well as the others, now it doesn't.. it is like its on blacklist or something... I tried clearing form history, reinstalling firefox, deleting registry entries.. it wont save that number..

    Did you give yourself write permissions for this registry key?
    You may nee to go up a level and apply the permission to sub keys:
    *HKEY_LOCAL_MACHINE\SOFTWARE\MozillaPlugins

  • Restrict Form & Reports Pages but allow users to Save their Records

    Hi
    I have a database with Forms & editable Reports pages.
    I have also created a table with certain 'Admin Levels' of access so that users with the 'ADMIN_LEVEL' = 1 cannot access the editable reports pages.
    I find that applying the below restriction stops those users from accessing the reports but also won't allow those users to save any records.
    select USER_ID
    from USERS
    where USER_ID=:APP_USER
    and ADMIN_LEVEL > 1
    I then thought I could create a new page of the report but make it uneditable & use the 'Create' button to save the record to the table, but this doesn't work.
    My question is, how can I restrict access to a reports page but still allow records from restricted users to be saved?
    Thanks

    Hi,
    Firstly, you should look into Authorization Schemes: [http://download.oracle.com/docs/cd/E14373_01/appdev.32/e11838/sec.htm#BABCAGAB]
    I would suggest you create a scheme to identify admin users called, say, ADMIN_USER. This could be an EXISTS SQL query scheme of something like:
    SELECT 1
    FROM USERS
    WHERE UPPER(USER_ID) = UPPER(v('APP_USER'))
    AND ADMIN_LEVEL = 1Then, on any item within your application, you have an Authorization Scheme setting. You can then set this to either "ADMIN_USER" or "{not}ADMIN_USER" to determine which user can have access to that item. "{not}ADMIN_USER" is any user where the above query would return no records.
    Using this, you could grant access to a page, but stop access to a button and/or process. You don't, for example, have to set a scheme for the page itself (you can leave the setting as "- No Authorization Required -", so everyone can get to the page), but you can then set a Scheme for a button on that page. If the user is an ADMIN_USER and you have set a button for {not}ADMIN_USER, that user won't get the button on the page (you should also make the same setting on any process that this button triggers).
    But, if you set the page's Scheme to {not}ADMIN_USER, any ADMIN_USER will not even be able to get to the page.
    Andy

  • Forms 6i transaction on every record

    dear sirs,
    I have form on table with these fields
    1- first_balance
    2- month_payments
    3- interest
    4- net
    5- last_balance
    i would like to make these transaction for every record
    net = month_payments - interest
    last_balance = first_balance - net
    first_balance = last_balance
    please advice me how to do it because i try but not success
    yasser

    First, if the values can be calculated easily, why do you want to store them in the database? It would be better to create a view and do the calculation in the view.
    For calculating fields in forms, use formula-items of type "formula"

  • Getting message for every  record while pressing the down arrow

    Hi,
    when i query the form and when I am going through the records by pressing the down arrow of the keyboard I am getting the message 'Do you want to Save the records' for every record.
    How to avoid the message?
    I developed the form in oracle applications and it is a master detail form which have a header block and lines block.

    You are probably changing a value in POST-QUERY trigger, check your trigger and make sure you're not updating any values.
    For Oracle Apps specific questions, I suggest you post in the E Business Suite section of the Forums.
    Tony

  • Number for every record that is retrieved from (query)

    Hello
    I wish to put a number for every record that is retrieved
    from the record that is output by this query
    For example
    For the first recored/row
    Generated number, ksnumber, date
    1, gg111 11/05/05
    2, oo235 12/06/05
    the query returned 2 records 1 and 2 are the number that is
    generated with this code.
    In addition if there is a built in function, where in the
    code do I put it???
    <cfquery name="gelov datasource="kl90">
    SELECT
    FROM
    WHERE
    ORDER BY
    <cfswitch expression="#Form.orderBy#">
    <cfks value="KSNUMBER">
    KS.KS_NBR
    </cfks>
    <cfks value="CREATIONDATE">
    KS.KREATDAT
    </cfks>
    </cfswitch>
    </cfquery>
    <!---html report--->
    <cfswitch expression="#Form.outputFormat#">
    <cfks value="HTML">
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
    Transitional//EN" "
    http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="
    http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html;
    charset=iso-8859-1" />
    <title>Ctwye Kss Report</title>
    </head>
    <style type="text/css">
    table{
    font-family:Arial, Helvetica, sans-serif;
    font-size:10px;
    td{
    font-family:Arial, Helvetica, sans-serif;
    font-size:10px;
    th{
    font-family:Arial, Helvetica, sans-serif;
    font-size:10px;
    h2{
    font-family:Arial, Helvetica, sans-serif;
    font-size:12px;
    h3{
    font-family:Arial, Helvetica, sans-serif;
    font-size:13px;
    </style>
    <body>
    <cfoutput>
    <table border="0" cellpadding="3" cellspacing="0">
    <tr>
    <td align="center">
    <h3>Ctwye Kss
    Report</h3><br><br></td>
    </tr>
    <tr>
    <td align="center">
    </h2>report returned #getCtwyeKss.RecordCount#
    records</h2></td>
    </tr>
    <tr>
    <td>
    <table border="1" cellpadding="2" cellspacing="0">
    <tr>
    <td width="160">Ks Number</td>
    <td>Creation Date</td>
    <!--- <td class="dataField">Address</td>
    <td class="dataField">Type</td>
    <td class="dataField">Description</td>--->
    </tr>
    <cfloop query="getCtwyeKss">
    <tr bgcolor="<cfif currentrow mod
    2>GHOSTWHITE<cfelse>WHITE</cfif>">
    <td>#KS_NBR#</td>
    <td>#dateformat(KREATDAT,"mm/dd/yyyy")#</td>
    </tr>
    </cfloop>
    </table>
    </td>
    </tr>
    </table>
    </BODY>
    </HTML>
    </cfoutput>
    </cfks>
    <cfks value="CSV">
    <CFHEADER NAME="Content-Disposition" VALUE="attachment;
    filename=ctwye.csv">
    <cfcontent type="application/msexcel">"Ks
    Number","Creation Date"
    <cfoutput
    query="getCtwyeKss">#ltrim(KS_NBR)#,"#dateformat(KREATDAT,"mm/dd/yyyy")#"
    <tr #IIF(getCtwyeKss.CurrentRow MOD
    2,DE(''),DE('backgroundColor="##999"'))#>
    <!---<tr bgcolor="<cfif currentrow mod
    2>##808080<cfelse>##ffffff</cfif>"> --->
    </cfoutput>
    </cfks>
    </cfswitch>

    <cfks> is not a Coldfusion tag. Use <cfcase>
    instead.
    The following code will print the row numbers
    <cfquery name="gelov" datasource="kl90">
    select ksnumber, date
    from yourTable
    </cfquery>
    <cfoutput query="gelov">
    #currentrow#, #ksnumber#, #date#<br>
    </cfoutput>

  • 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.

  • Push Button in Every record in ALV grid output

    Dear Experts,
    I need to print a push button in first column of every record in ALV grid output. How ?
    No OOPS concepts please.
    Thanks,
    Siva.

    For this requirement, you have to copy the standard PF status of the ALV output. Do as below :-
    1) Go to SE41
    2) Enter the program name as SAPLKKBL
    3) In the field status enter STANDARD_FULLSCREEN
    4) Click on STATUS button on the application toolbar.
    5) Enter the name of your Program & a new status name.
    6) Click on COPY.
    This way the standard status will be copied to the custom status & call the same status in your program using SET PF STATUS statement. Then double click on the custom status name & you will be navigated to SE41, there you can add you new button on the application tool bar & assign a function code, which you can program by enabling the export parameter I_CALLBACK_USER_COMMAND of the Function module REUSE_ALV_GRID_DISPLAY.
    Just a sample code snippet for your reference :-
    FORM USER_COMMAND USING L_UCOMM LIKE SY-UCOMM
    LS_SELFIELD TYPE SLIS_SELFIELD.
    CASE L_UCOMM.
    WHEN 'your function code goes here'.
    Do further processing.
    This way you will have the standard PF status alongwith your button as well.
    Edited by: Kumar Manas Mishra on Jan 29, 2010 1:03 PM

  • Forcing a user to save a record

    I'm looking for some help (a keep it simple solution). Within a form how would I have a message (alert) displayed that would tell the user that they must save the current record before proceeding.
    conditions,
    1. A user enters a record.
    2. before the user moves to a new record, a message is displayed telling the user to save or remove the current record.
    3. The user can not leave the record until the record is saves or removes the record.
    What triggers would I use and at what level.
    Jim Casarella

    WHEN-NEW-RECORD_INSTANCE trigger fires each time a user navigates to a record.
    Use this trigger at the block level
    - Display the alert messages with the required message
    - If user chooses to save the record
    commit the form
    - If user chooses to remove the record then
    delete the record, commit the form and execute query to get the data again on form.
    Hope this helps.

  • Check each and every record during update/delete

    Hi,
    I have forms 10g I made one tabuler form and want to apply certain restrictions like after two days update or deletes are not allowed how can I check this for each and every record in tabuler form during updation/deletion.
    2- If the record does not meet my criteria how can I skip saving/updating record.
    Thanks in advance.
    Khawar
    Message was edited by:
    S. Khawar

    As you already storing the data for created date/time, it’s quite easy now to check date/time before deleting or updating
    Need 2 triggers to write on the specific block.
    1)     PRE-INSERT
    2)     PRE-DELETE
    The Trigger code as follows in both triggers
    Declare
         No_Days Number;
    Begin
         Select Nvl(Trunc (Sysdate - Created_datetime),0)
         Into No_Days
         From <Table Name>
         Where :<Form Column Name> = <DB Column Name>
    If No_Days >= 2 then
    Raise Form_Trigger_Failure;
    End If;
    End;
    Cheers
    Ayaz

  • Page headers repeat for every record on *.CSV export in Crystal 8.5

    I am a MAS 90 reseller.  I have encountered this issue:
    When I try to export a report to a *.csv format in Crystal Reports version 8.5 page headers repeat for every record in the export file.  The Sage MAS 90 database provides this solution:
    This is a known Crystal Reports issue. Download U2FSEPV.DLL, version 8.6.2.475, dated 11/28/2003 from the Business Objects Web site. For more information and a download link, see knowledgebase article c2014451 at support.businessobjects.com
    Note: Be sure to select the download link for Crystal Reports 8.x.
    I cannot locate this download anywhere in the new SAP site.  Can anyone direct me to this download?
    TIA for your help!

    I was finally able to get the uploaded file by right clicking on the file and selecting Save As.  However, when I replace all instances of this dll file with the new one (renamed as directed) I continue to get headers in the CSV file.
    This does not resolve the issue of getting headers only in the output.  Is this the correct dll file or is there another issue causing this output error?

  • Save Custom Recording options as a set?

    I thought from reading about the features in Captivate 2 that
    I could save my own sets of custom recording options. Every time I
    change files, I have to set up my custom recording options again.
    It would save me time if I could save these as custom sets and be
    able to choose them in the Record dialog. Is this possible?
    Thanks,
    Aaron

    Well, obviously there is not an option in the recording
    dialog. I was kinda hoping there might be an XML or INI file in the
    program folder I could modify to add some custom recording sets. I
    dug around in the folder but it doesn't look like this is possible.
    I went ahead and submitted a feature request.
    Thanks,
    Aaron

  • How to display screen saver every 10 seconds ?

    I want to display Screen Saver every 10 seconds as long as the user doesn't make anything on his computer.
    I did that :-
    WHEN-NEW-FORM-INSTANCE
    declare
         t timer;
    begin
         t:= create_timer('Hany',10000,repeat);
    end;
    WHEN-TIMER-EXPIRED
    if :System.MODE = 'NORMAL' then
         Host('C:\WINDOWS\system32\ssmypics.scr');
    End if;
    but in RunTime the Screen Saver's Setting appear not the Screen Saver itself ..... like shown below :-
    http://img118.imageshack.us/img118/245/errorv.png
    that's seems weird because when I run the Screen Saver directly from Start>>RUN :-
    C:\WINDOWS\system32\ssmypics.scr
    it is working nice without appearing of the setting.
    so, what's went wrong ????
    I attached the fmb file to have a look for it if you like:-
    http://www.4shared.com/file/97992483/5ddd2f8c/Screen_Saver.html
    Edited by: HanyFreedom on Apr 14, 2009 3:40 PM

    There is a built-in screensaver in windows, why rebuilt that functionality on your own? If you really need it, try
    HOST('cmd /c C:\WINDOWS\system32\ssmypics.scr');I assume that you are using forms 6i? For in 10g this will now work on the client-side, because HOST is executed on the app-server.
    Edited by: Andreas Weiden on 14.04.2009 17:45

  • How to Save Multiple Records In Data Block

    Hi All,
    I Have Two Blocks --> Control Block,Database Block
    Please Any Idea How to Save Multiple Records In Data Block when User changed Data in Control Block.
    Thanks For Your Help
    Sa

    Now i have to use each record of control block(ctl_blk) as where condition in data base block(dat_blk)and display 10 records from database table.>
    Do you want this coordination to be automatic/synchronized or only when the user clicks a button or something else to signal the coordination? Your answer here will dicate which trigger to put your code in.
    As to the coordination part, as the user selects a record in the Control Block (CB), you will need to take the Key information and modify the Data Block's (DB) "DEFAULT_WHER E" block property. The logical place to put this code is the CB When-New-Record-Instance (WNRI) trigger. You code will look something like the following:
    /* Sample WNRI trigger */
    /* This sample assumes you do not have a default value in the BLOCK WHER E property */
    DECLARE
       v_tmp_dw    VARCHAR2(250);
    BEGIN
       v_tmp_dw := ' DB_Key_Column1 = '||:CONTROL.Key_Column1||' AND DB_Key_Column2 = '||:CONTROL.Key_Column_2;
       Set_Block_Property('DATA_BLOCK', DEFAULT_WHER E, v_tmp_df);
       /* If you want auto coordination to occur, do the following */
       Go_Block('DATA_BLOCK');
       Execute_Query;
       /* Now, return to the Control Block */
       Go_Block('CONTROL_BLOCK');
    END;
    The Control block items are assigned with values in Form level (Key_exeqry).If your CD is populated from a single table, it would be better to create a Master - Detail relationship (as Abdetu) describes.
    Hope this helps,
    Craig B-)
    If someone's response is helpful or correct, please mark it accordingly.

Maybe you are looking for

  • HT201401 My iphone would not ring with incoming calls, despite ring tone was set up?

    My iphone would not ring with incoming call despite ring tone was set up using sound setting.  In the beginning, it did ring. After a while it stops working.  Any idea to make it work again?

  • Hyperlinking text in imail from a pages document

    Hi, I have just created a wonderful layout using Pages. The document contains several hyperlinks that I would like my viewers to click when they receive my emails. How is this accomplished? I've tried saving the document and attaching it to the email

  • SAP Installation java error package j2sdk-1_4_2_16-fcs is already installed

    Hi All, I need one help. I am trying to install SAP ECC 6.0 in REDHAT Linux 5.0 and Database Oracle 10.2. I have downloaded the below two java files j2sdk-1_4_2_16-linux-i586.bin j2sdk-1_4_2_16-linux-i586-rpm.bin I uncared the file j2sdk-1_4_2_16-lin

  • PP 5.1 Spur in Soundbooth abmischen u. wieder als 5.1 ausgeben

    Hallo Leute, ich habe mit meiner Videokamera ein Full-HD Video  mit einer 5.1 Tonspur aufgenomen. Ich möchte diese Tonspur und zwar jede  einzelne Spur, nun in Soundbooth CS5 abmischen. Kann mir jemand kurz beschreiben wie das möglich ist? Ich  habe

  • Where is the Pages Icon?

    I am trying to move pages around in a pdf using Acrobat Pro 8.1.5, and between multiple pdfs.  I do not have a pages icon in my navigation panel, nor do I have thumbnails of the pages in the navigation panel.  When I go to View > Navigation > Pages,