How can i check for posted but not yet commited changes in a form

Dears
I make changes programmatically in a form then i post it using (Post built in).
If the user exits the form, i make check for any changes in the form to commit it using the system variable :system.form_status
Unfortunately the value of this system variable is 'Query' not 'Changed' because of using the post built in.
Is ther another system variable ( or any another way ) that check for posted but not yet commited changes in the form ?
Thanks a lot
Mostafa Abolaynain

I had faced similar situation. Using of package variable which identifies, what is the user's latest action.
This is just a workaround.
Capture what the user has performed into a variable say, PKG_VAR.ACTION,
This will be assigned values like List L, and Create C, Update U and Saved S.
If commit is executed,assing the status S to the variable.
So while closing,
IF :system.form_status = 'CHANGED' or PKG_VAR.ACTION in ('C','U') THEN     
-- validate the data, n perform commit.
else
-- just close the form.
end if;
Regards
Deepz : )

Similar Messages

  • Block G/L Account  for posting but not for parking

    Hi all,
    is there a possibility to customize a G/L account in a way that it is blocked for posting but not blocked for parking?
    Kind regards,
    Georg

    Hi Georg-Stefan,
    Directly, you cannot define such a thing. G/L blocking works on every posting level.
    You can try, though, to pull a trick with a validation (OB28) checking on the BKPF-BSTAT field if it's not V - then block the posting. The prerequisites will be the G/L accounts, which can be organized in sets for better maintenance.
    Regards,
    Eli

  • How can I check for the existence of an XML file in Illustrator Javascript??

    I'm writing a Javascript to run at startup. I want to check for the existence of XML files and process them, if they are available. How can I check for their existence?

    Your first line just sets a variable to a string value… getFiles() is a method of Folder… so
    var InputXMLDir = Folder( "D:/Brackets/Create_Bracket_Graphics/Input/XML-n-Templates/" );
    Not a PC user so I can't remember if the colon is OK…? As you appear to know the file name why bother with a folder get files anyhow you could just check if the file exists then do some thing…
    alert( File( "D:/Brackets/Create_Bracket_Graphics/Input/XML-n-Templates/brackets_men_web.xml" ).exists );

  • Using multiple desktops with a 4 finger swipe on a Mac Book Pro running Lion- is there a way that I can allow Safari open on several but not all??  Looks like I can set it for one but not others.  All, one, or nothing

    Using multiple desktops with a 4 finger swipe on a Mac Book Pro running Lion- is there a way that I can allow Safari open on several but not all??  Looks like I can set it for one but not others.  All, one, or nothing

    Hey Eric,
    Thanks for taking the time. Unfortunately no that does not solve it. Same as swipe it will get me there and it will show separate programs spaced out. The issue I am having is that all my open word files are bunched up in a pile on top of each other. I can see the edges of each one but I want them to be separated from each other enough that I can visually identify what file is what.
    Again, thanks for trying, it is appreciated.

  • How can I check for VSearch trojan?

    how can I check for VSearch trojan? And then remove it if found?

    Helpful Links Regarding Malware Problems
    If you are having an immediate problem with ads popping up see The Safe Mac » Adware Removal Guide, AdwareMedic, or Remove unwanted adware that displays pop-up ads and graphics on your Mac - Apple Support.
    Open Safari, select Preferences from the Safari menu. Click on Extensions icon in the toolbar. Disable all Extensions. If this stops your problem, then re-enable them one by one until the problem returns. Now remove that extension as it is causing the problem.

  • I am at capacity How can I free up space but not delete music

    My Ipad is at 55.4 gb used 24 gb in music alone. 2.7 gb available so can't do anything  Ipad shuts itself down and won't let me open mail, use facebook, safari.How can I free up space but not delete songs in library   

    Unless you are attempting to download a sizable file, 2.7 GB should be more than enough to continue fucntioning. Try a reset: Simultaneously hold down the Home and On buttons until the device shuts down. Ignore the off slider if it appears. Once shut down is complete, if it doesn't restart on it own, turn the device back on using the On button. In some cases it also helps to double click the Home button and close all apps from the tray BEFORE doing the reset.

  • I just buy iPhone4 first hand on Jan 07,2013 but the warranty expire date How can i check for the date of production?

    I was bought iPhone4 16 GB on Jan 07, 2013 from online shop from Laos they told me that this iPhone from Apple in Hongkong (first hand) but I check for the warranty is already expire date. What should we do? I want to know about my iPhone4 first hand or second hand. How can i check?

    This will show you warranty status and give you an idea
    of when originally sold:
    https://selfsolve.apple.com/agreementWarrantyDynamic.do

  • How can I tell with % how fast I am uplaoding a file...I know how to find it for DOWNLOADING, but not uploading.

    I just switched to Firefox...I used to have Google Chrome...when I would upload a file, a % number would scroll at the bottom showing me how much has been uploaded....how do I find that on Firefox....I know how to find the DOWNLOAD box, but not one for UPLOADING opr sending files

    I mistyped in my first post. I do indeed mark the video as AF41 (Cos4). It is the call control that I mark CS3 with the policy map to get around the old Tandberg bug that doesn't mark the call control.
    So do you think the queue 3, where Cos4 goes to, is big enough to handle 30 video streams of 480k? If my calculation is correct that would be 14.4mbps of video on a 100mbps port.
    With this config.....
    srr-queue bandwidth share 10 10 60 20
    srr-queue bandwidth shape 10 0 0 0
    ...is it telling me that queues 1 & 2 get 10% bw, queue 3 gets 60% and queue 4 gets 20% bw and is shared? If that is correct than 60% is more than enough for 14.4mbps of video.
    What happens if too much video overruns the queue?

  • How can I check for 'undefined'?

    Hi,
    I am creating a custom MP3 player where audio playback is
    started by clicking on the title of the audio, but I also want to
    be able to start play abck from the Play/Pause button. In order to
    implement this dual approach, I am thinking of checking if a sound
    has been loaded (with 'mySound.loadSound("path to sound") already
    by the my titleButton.
    I am thinking of doing this by checking the
    'mySound.position' as that would be 'undefined' if there was no
    sound loaded.
    But how can I check it for being 'undefined', what woud be
    the syntax? Itexpects a number so I tried -1, but that didn't work.
    Or is there a better way?
    Thx,
    Nik
    have a Play/Pause button and for it in order to

    Found the answer.
    The code is of course:
    etc. //
    if (mySound.position == undefined) {
    // etc.
    I had a erroe else where.
    NIk

  • HT1752 how can I check for SpyBots and other invasion things on my computer

    I am beginning to have odd things happen to my computer.  Someone told me to check for SpyBots, but I don't know how.  I participate on Blog Talk Radio, and was informed they use these spybot things.  How do I find out if there are invasive things like this affecting my computer?
    In the last 2 days I've had two windows pop up saying I needed to restart the computer.  This has never happened before.  Any help anyone?

    Forget about the advise on the spybots. That person doesn't have the foggiest idea what is going on.
    You are having kernel panics. The most likely casue for kernel panics is hardware problems usually RAM that has gone bad.
    Go to http://thexlab.com/faqs/kernelpanics.html for a good procedure on how to find out what is causing the kernel panics.
    Allan

  • Spilled water, but my laptop still works. How can I check for damage?

    So a little over a day and a half ago I knocked about 1/4 cup of water onto my 2014 Macbook Pro. It was on but not plugged in. I immediately turned it off and flipped it over at the same time. Some water poured out of the keyboard. Then I cleaned off all the visible water from the screen/keyboard. I popped off some keys to dry off under there, but while I was doing so accidentally turned it on again, and then immediately turned it back off. I put some rice over the keyboard and left it to dry for 36 hours, then put a fan on it for a couple min.
    I just turned it back on and it's working totally fine. I plan to take it in to Apple this weekend to get it looked at, but I need to use it for work in the meantime. Is it okay to keep using it, or does using it until then make it more likely that it will die?
    Thanks!

    At this point, use it.  The fact is that the Apple store at best will tell you that there may be telltale indications of corrosion for which no one can do anything about.  Probably the life span of the MBP has been lessened but you can hope for the best.
    Try a chicken sacrifice. 
    Ciao.

  • Why have I been sent an email asking me for my Apple ID and Password. How can I check that this is not a scam.

    I want to know why I have been sent an email from Apple to verify my account by asking for my Apple ID and password.
    how do I know this is genuine and is there a way to check that this is not a scam

    I would be very careful about email asking for your Apple ID and password. These are some of the Official Apple email addresses that would contact you:
    [email protected]
    [email protected]
    [email protected]
    [email protected]
    [email protected]
    These email are not to be replied to at all and if the email you receive asks you to reply or has a link that doesn't go the Apple.com or iCloud.com domains, then they are definitely fake.

  • How can I check for directory creation?

    Hi,
    I want to check whether I can create a directory at a particular location.
    Let's say at c:\windows, can create a directory called c:\windows\mydir. But I won't be knowing the parent location (i.e., c:\windows here) at compile time.
    And I would also like to check for creating a directory like c:\windows\mydir1\mydir2 (mydir1 may not even exist).
    What I was doing was, I created the file object for my new directory (i.e., mydir here) and used the canWrite() method on the parent directory. But this method worked only when the parent directory existed. But how can check for a directory path like c:\windows\mydir1\mydir2 where I have to create both mydir1 for mydir2.
    Is there any other methods that I can use to perform this kind of a check.
    Thank you

    I finally figured out a workaround, but i don't know whether this is a good way of checking. :)
    import java.io.File;
    public class TryMKDIRs {
         public static void main(String[] args) {
              File file = new File("c:\\mydir1\\mydir2\\mydir3");
              boolean canICreateDir = false;
              if(false == (canICreateDir = file.canWrite())) {
                   System.out.println(file.getAbsoluteFile() + " cannot be created.");
                   File fileparent = file.getParentFile();
                   while(fileparent != null && (canICreateDir = fileparent.canWrite()) == false) {
                        System.out.println(fileparent.getAbsoluteFile() + " cannot be created.");
                        fileparent = fileparent.getParentFile();
              if(canICreateDir) {
                   file.mkdirs();
                   System.out.println("Directory can be created. . .");
    }

  • Can I exit from paintComponent?  ...or... how can I check for invalid data?

    I'm writing a calendar applet for a programming class and I've nearly completed it but I'm stuck at checking for valid data.
    What seems to be happening is that paintComponent() is being called before actionPerformed.
    In actionPerformed (when they click the button), it checks to make sure they entered a valid month (1 to 12). If the didn't it dispalys a message, but if they did it calls repaint().
    But even if repaint() isn't called, Java still seems to call it before actionPerformed and I get exceptions.
    So I tried checking inside of paintComponent() by using a simple if(...) return; but that doesn't seem to do anything... it just keeps going through with the method.
    So -- Once the user presses my button I want to make sure the data is valid before repainting the screen. How can I do this?

    I validate it in actionPerformed which is called by
    the action listener... that is what you meant right?
    The problem is that it seems paintComponent() is being
    called before I can validate the data with
    actionPerformed(). I need to stop paintComponent()
    from always being calledMVC. (Model, View, Controller)
    Initially the internal value of the data (the model) should be valid (or null with a check in the paintComponent method)
    paintComponent (the view part) shows the state of the valid data.
    You press the button.
    actionPerformed is called (the controller).
    It checks the value and, if valid, writes it to the data (model), then updates the view.
    At no point will the view have to render invalid data, because the model is only updated after actionPerformed checks the value.
    The pattern may be applied with different classes performing the three roles, or different methods in the same class (sometimes it's easier that way for simple cases).
    Pete

  • How can I check for a Virus?

    Hello, I tried to use my internet banking the other day on my MacBook Pro but for some reason my password wasn't working. I phoned my bank and they informed me that it had been blocked due to a security threat they'd picked up. They suspect there is some sort of Trojan on my computer and someone is trying to gain my details. They said they would unblock my banking access once I had done a virus check on my computer.
    Also- the other day I got an email saying that someone from the Ukraine had tried to access my emails. I'm not sure if this is related or not... but now i'm afraid there could be something on my computer! Is there a scan I can do? And also is there anyway I can check for a keystroke program as well? My bank mentioned this may have been used (although I am the only person with access to my laptop)
    Thanks for your help! PS - My mac is 10.6.8

    It is extremely unlikely that you have any kind of malware on your computer causing this problem. This is probably a canned reply from the bank, and it assumes you're using Windows.
    Most likely, someone had been trying to remotely hack into your bank account. This may have been the result of someone gaining access to your e-mail account, which would provide them with a rich source of information about all your other online accounts, including your bank account. You should immediately change your e-mail password. You should also change the password for any accounts that use the same password as your e-mail account, or any accounts that are associated with the e-mail account. Make sure you're not using the same password for more than one online account... use a password manager like 1Password to keep track of them all if necessary.
    In addition, you will need to closely examine any security questions associated with your various accounts. Your e-mail may provide a lot of information that could allow an attacker to guess the answers to those questions on your other accounts, thus bypassing the password. Change your security questions to nonsensical words or phrases, unrelated to the question, and keep a log of those answers in a secure place, such as in a secure note in your keychain (using the Keychain Access app) or in your password manager.

Maybe you are looking for

  • Disconnecting MacBook from external display

    Is there anyway to disconnect the Applr LED external display from the MacBook pro without having to shut all the way down or is is safe to just yank the mini display out while running?

  • How do you remove lock symbol from project?

    FCXP 10.1.4 A "key" symbol has shown up on a few random projects in a library. I was speaking to FCPX Apple Tech for another issue, and asked in passing what did it mean. She said it meant that there were keywords associated with the project, I was a

  • Signature in Entourage question

    I have a signature automatically setup to be included in emails. My issue is having them NOT be included automatically when I reply to someone. Most of the time I forget to not include it and end up having 5 images. Is there a setting in Entourage wh

  • Totals in Main Window

    Hi All, I want to display the totals of cases,eaches and weight in the last page of the main window. I am using Bottom and Endbottom to display the totals. I am using the following code in the main window. IF &page& eq &sapscript-formpages& Bottom En

  • How can I open a picture in a new window?

    on my site when you click on a picture it automatically goes into a slide show view of all the pictures, however I currently have add to cart buttons that stay in place and cover parts of the picture in the slideshow view. I am thinking it would be b