How promt user to save the changes when you change the non-base fields?

Hello
I have a form with two tabs. The datablock Block_1 on tab_2 is based on a view of database. But all the displayed items of the Block_1 are non-base of data elements. Whenever a user changes some elements of Block_1 and press the button Save, the values of non_db elements copied from the db_items (based on the view), and commit_form is called. It works very well.
But the problem here is: after the change of some elements of block_1, if the user navigates to another form/option in the menu, the shape is not promt the user to 'save changes' and all changes are lost. How can I fix it?
I have a form level key-release trigger, (which does not fire) with the following code: -.
Declare
  X  Number;
  alert_is             alert;
Begin
      
If :System.Mode = 'ENTER-QUERY' Then
     
        Exit_Form;
       
Else
  If :System.Form_Status In ('NEW','QUERY') Then
       alert_is := FIND_ALERT('TMPL_EXIT'); -- "Are you sure you want to exit?"
    X := Show_Alert('TMPL_EXIT');
    
    If X = Alert_Button1 Then
       Exit_Form(no_validate);
    End If;
    Else
       Exit_Form;
  End If;
End If;
End;

When button preesed trigger that fills your block:

--somewhere in loop after NEXT-RECORD and assigning values:
set_record_property (:system.cursor_record, :system.cursor_block, STATUS, QUERY_STATUS );

Now you can copy the values of the elements not db to db items in when-validate-item.

Of course, it is a quick fix and dirty. Good way would be to solidarity block using EXECUTE QUERY, delete everything in mirror and do you calculations in a trigger post-requete

Published by: Slava Natapov on December 9, 2009 14:18

Tags: Oracle Development

Similar Questions

  • How could I have a default folder when you import the photos? Example: E/photos/2016

    Lightroom important images in the folder users/me/photos/2016.

    How could I have a default folder when you import the photos? Example: E/photos/2016

    JPcoul1

    Save a preset

    1. make your options in the panels on the right, choose the folder of "Year" etc.

    2. click on the menu drop-down and "Save current settings as a new preset.

  • When we change the non-mandatory field in the form, it is not updated

    Hello... I have a question here...

    If I required fields in a custom form, and when I ask the form and change the value in the non-mandatory field and click on save, then it does not save. It is said ' no changes to save "." But it is not the same for the non-compulsory fields.

    Can you please suggest me?

    -vrdida

    If you have an element with an assigned LoV it much difference if you change the value of points (assuming that you have either the property 'Validate list', the value yes or you have a WHEN-VALIDATE-POINT-trigger who performs the search ID fk of the given text) or if you visit the 'empty' field, or NULL. In this case, you must create a WHEN-VALIDATE-trigger POINT on the element, which "cleans" the Fk - id as

    IF :BLOCK.LOKUP_ITEM IS NULL THEN
      :BLOCK.FK_ID:=NULL;
    eNd IF;
    
  • How many users can use the unique apps?

    How many users can use the unique apps?

    A... the owner

    Cloud license allows 2 activations http://www.adobe.com/legal/licenses-terms.html

    -Install on a 2nd computer http://forums.adobe.com/thread/1452292?tstart=0

    -Windows or Mac has no importance... 2 on the same operating system or 1 on each

    -Two activations may NOT be used at the same time (noted in the link above of the license)

  • Hi, I want to know how to extract and save the text highlighted on Acrobat Reader.

    Hi, I want to know how to extract and save the text highlighted on Acrobat Reader.

    Hi Eli Marto,

    I'm sorry, but it is not possible to extract text from a PDF file using the player.

    It can be done using Adobe Acrobat.

    Ref: export the comments AND highlighted text?

    Kind regards

    Ana Maria

  • A report that will show how a user has used the secure area?

    Hello everyone.

    I need to view a generated in the report on the activities of the Member section to securezone.

    The ideas are greatly appreciated.

    I've tried selecting the protected area (in the areas of Secure), click on action -> View Secure area usage report

    But it just displays: no data available for the period selected. no matter how to set the filter of time.

    Best regards

    Jones

    It seems that it is a duplicate to your message in this thread: is there a report that will show you how a user has used the secure area? . I will follow on this issue on the same thread.

  • Unable to save the 'Release Date' field in iTunes/Windows 12.4.0.119

    Unable to save the 'Release Date' field in iTunes/Windows 12.4.0.119

    I've just updated to 12.4.0.119 and can no longer add Release Date for a TV show.  When I go to "Get Info" and type the release Date, it allows me to enter a valid date, but as soon as I have the label off the field it emerges by itself.  If I enter the date and click on 'Ok', the date is not recorded.

    I had this same problem Windows 10. Just tested it on iTunes/Mac 12.4.0.119 - this platform will not yet you allow to select the release Date field to make an entry.

    It is a major issue, as AppleTV allow no sorting replacing television programs other than by Release Date.

  • Unlocked blackBerry Smartphones Software Update has not received the AT & T brand PRIVATE when you use a non - AT & T SIM card

    Dear whom it may concern,

    I saw one of the support forum of Blackberry Web site on "software update, not received the AT & T unlocked brand PRIVATE when you use a non - AT & T SIM card". How can I receive the OTA update in the notification bar?

    Now, my OS is Mashmallow 6.01 build No.. AAF355 (June 1, 2016) or do I have to update (auto loadder) my Priv to AAG873 in order to get the direct OTA from Blackberry in the future.

    Thank you

    Good questions. I can speculate only at this stage. I guess that since it is updated by BB, they use a revision update for all devices to facilitate management. AT & T updates their different, since they have different methods of approval (Note T-mobile even updated as unlocked devices). Unless you want to get specific version of AT & T that could fix something that the other version does not work, I'd wait for the OTA. I did three refills of OS because I couldn't OTA of AT & T, and they take a lot of time. Take the time then to restore and to reconfigure all the settings you had before. Not funny.

    To be more precise questions. Depends on you, but for me, would be updated via OTA only now that it's available. Yes, if you want auto charger, use AT & t. even as before, wait for OTA, unless you have a specific automotive need load the operating system.

  • How to display the records from a query in the non-base data field

    Hello

    I have a problem:
    I have a query with a lot of tables and column 6 (select a, b, c, d, e, f x, y, z, t, s, g where the conditions) and I use 3 parameters.
    I create 3 settings: datai,: dataf and: partner and a button with a trigger when the button is pressed.
    Then a create a block manually with six field non-database a1, b1, c1, d1, e1, f1.
    Now, I want to display all the records in my query in a1, b1, c1, d1, e1, f1 where a1 = a, b1 = b, etc. and all the records (if I have 20 record, it will display 20 records in the non-base data field) when I press the button.

    How I did it:
    I create a cursor with the query, and then
    start the open cursor
    loop
    Fetch cursor in: a1,: b1,: c1: d1: e1,: f1;
    end loop;
    close the cursor;
    end;

    It displays a single record in a1, b1, c1 only, and it must display 100 records and date for all fields.

    Can someone help me with this problem?
    Thank you.

    Published by: 928437 on October 1, 2012 02:55

    Creating a view and the query in a database block are a great solution.

    To use the block non-base of data:
    You are missing the most important Next_Record; command.

     Begin
    Go_block('X'); -- block X is the non-database block
    Clear_Block(No_Validate);
    open cursor X1;
    loop
    If :System.Record_status != 'NEW' then
    Next_Record;
    End if;
    fetch X1 into :a1,:b1,:c1,:d1,:e1,:f1;
    Exit when X1%NOTFOUND;
    end loop;
    close X1;
    end;

  • How can I get a light flashes when you receive calls if you can call silence please

    How can I get a light flashes when you receive calls if you can call silence please

    Hello Linda08,

    Go to setting/general/accessibility, walk down for hearing and toggle "Flash LED for alerts"

  • tabular form - update the non-visible fields

    Hi gurus!
    I built a tabular form over a table composed of 6 fields and I use the MRU to allow the user to edit the record; Two field in that table are not visible and editable by the user; I want to use the two fields to track which change the record (both fields are Modify_USER, Modify_date).
    I want to insert in the two fields the values the user variable and the sysdate.
    Is it possible, is there a way to do this with MRU or do I have to manually write the PL/SQL for this?
    I'm on APEX 3.2
    Any suggestion will be appreciated.
    Thanks in advance,
    DDF

    Instead of doing it this way, why not watch a trigger in the database, which will fill these columns when you perform an update on the table? The user will be & user_id. and the sysdate you already...

    CREATE OR REPLACE TRIGGER Update_Table_X
    BEFORE UPDATE
    of Table_X
    ON R_RECORDS
    FOR EACH ROW
    BEGIN
    
    :new.Modify_date := sysdate;
    :new.Modify_USER := app_user;
    END;
    

    Thank you

    Tony Miller
    Webster, TX

    A lady came up to me on the street, pointed at my suede jacket and said: "do you not know that a cow was murdered for that jacket?
    ' I didn't know there are witnesses ', I replied: "now, I'll have to kill you too. '

  • validation working is not to count the non-null fields

    I have six fields on the screen, I want to check that at least 3 of them are filled (3)...
    I created a validation as follows to count the non-null fields... but it's not working...
    Please help solve this problem or recommend a better way to do this...


    declare
    number of question_count;
    Start
    question_count: = 0;
    If: p1_t_question_1 is null then
    null;
    on the other
    question_count: =: question_count + 1;
    end if;
    If: p1_t_question_2 is null then
    null;
    on the other
    question_count: =: question_count + 1;
    end if;
    If: p1_t_question_3 is null then
    null;
    on the other
    question_count: =: question_count + 1;
    end if;
    If: p1_t_question_4 is null then
    null;
    on the other
    question_count: =: question_count + 1;
    end if;
    If: p1_t_question_6 is null then
    null;
    on the other
    question_count: =: question_count + 1;
    end if;
    If: p1_t_question_6 is null then
    null;
    on the other
    question_count: =: question_count + 1;
    end if;

    If: question_count > 2 then return false;
    otherwise returns true;
    end if;
    end;

    I'll take a look a bit.
    In the meantime, check if the code as

    If the trim (both '%' from: p1_question_with_nul') = 'null '.

    help

    Ok. Take a look now. I used the function TRIM as shown above and also changed the comparison for questions 3 text based on ' if: p1_question_with_text is null'

    Seems to work now

    CITY

    Published by: city has 23 October 2009 05:26

  • When you visit a particular site my user name is entered automatically when you click in the required area. I want to avoid this, how?

    This site requires a username to be filled in a specific area and in another box, you enter a series of numbers generated by a generator of numbers (so not a password - different series each time that you open a session).
    However I do not want my user name appears automatically in the first box. Trying to change that in the security settings (extra-options-security), there is a password section where you can choose any exceptions to the rule of the memory (if the box remember is marked). When clicking the exceptions button, the url of the site I'm talking about is not displayed, and it cannot be entered either, since you can't delete here.
    When you click on the option "saved passwords", nor the site, nor the username is listed. I think I've read all the help sections regarding usernames and passwords, but found no solution.
    How can I avoid this username (so only a user name - not the usename/password combination), appear in the box?

    Click on the box, hover over the drop-down menu with your mouse, if you select the word you want to delete, and then press the delete key. If Firefox fills automatically in forms of control

  • Allow a user to save the changes

    I create an application that is something similar to this one: -.

    http://demo.quietlyscheming.com/DragTile/DragDrop.html

    However I want is when a user is dragging an element from a tilelist component in the other tilelist so that they are able to save these changes so that when they close the application and reopen these changes will always be there i.e. If the superior tilelist is tilelist1 and the low tilelist is tilelist2 and the user is dragging a couple of points to tilelist1 to tilelist2 I want that these items appear in the tilelist component 2 after the app has been closed and then reopened and the items that were NOT to appear in tilelist 1 more.

    I also want the user to be able to type their name in a text box and save it by clicking on save button so their name will also be stated next time they open the app.

    What is the best way to do it? Via xml maybe? I used xml contain data that fills a site in the past, but never used because it allows the user actually insert data into an xml file. Are there examples of what be simiar who can help me?

    I think the first TileList (drag initiator) can be filled with a collection of ArrayCollection in the application, but unless the user has registered, the second TileList dataprovider should be empty, correct? Just initialize this AC and then fill with a SharedObject is a backup was made.

    Greg

  • When you register a Fill-able field, how can I change the font?

    I downloaded a PDF with fields to fill-able to fill and print.  But when I select a field to fill and enter data, it is in a font that is not desirable.  How can I change the font?

    Hi vincents84643724,

    Font can be changed to a form field in Acrobat while setting field properties. Is not possible while entering data in a form using reader.

    Kind regards
    Nicos

Maybe you are looking for