Knowing when an item value has changed

Hello
If you have a item in a form - :P1_fred which is a database columm fred
The database table conrtaining fred columm is read and updated by
1) Automated Row Fetch
2) Automatic Row Processing
This works fine
I need to add a condition based if the valve of :P1_fred has changed.
My currect way at the monument is to record the value after the Automated Row Fetch to :p1_fred1
Then compair :P1_fred to :P1_fred1 and before the coniition before Automatic Row Processing
Whiile this works, is there a simple way of doing this?
Thanks
Pete

Hi Pete,
I never do "By Reference" (or OUT) for parameters - I tend to create functions instead of procedures and do:
SELECT check_file_one(:new.key) into status1 FROM DUAL;or something similar.
From what I can see of the create procedure guide, you can use as many OUT parameters as you like: http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/statements_6009.htm#sthref7098
The only time I've seen anything similar is when one process has terminated and cleared out the variables. But this was when I'd have / or GO in the procedure itself.
What happens if you create a second variable for status1 (say, status1copy) and set this as "status1copy := status1" immediately before the second procedure call - does status1copy retain its value?
Andy

Similar Messages

  • Is it possible to know if an item value has changed

    Hi,
    I'm working on a form and need to know if an item value has changed without compare it with database_value of get_item_property. there is a button <save> on the form and i want to know when user click again and again on button save if this item value has changed. thanks for your ideas.

    Tabit7 - Posted: Apr 9, 2011 12:15 AMbut sometimes in query mode, the item is not navigable and its vallue changed and the prev_value did not work, perhaps the w-n-i-i do not fire>
    If you look up the trigger in the Forms Help system it will tell you if the trigger will fire in Query Mode. The WNII trigger will file in Query Mode where as the Pre-Text-Item trigger does not.
    i try an other way and it seems to work, i put a flag in w-v-i when database_value is different from block value and use this flag in button Save, thanks a lot for your idea it put me in the way. Glad you were able to find a way to resolve your issue. ;-)
    HamidHelal - Posted: Apr 10, 2011 9:27 AM can you please give an example of u'r idea ? >
    First, create a variable that is visible to the entire form. Many people would simply use a GLOBAL variable, but I do not like the limitations of GLOBALs and I don't like the fact that they are visible to the entire Forms sessions, not just my form. I prefer to use a Forms program unit (PU) Package Specification so I can explicitly define the variable data type (eliminates the need to cast the GLOBAL to the correct data type) and the variable only occupies the amount of memory needed to support the variable. Also, when I exit my form, the variable is automatically erased.
    /* Sample Forms PU Package Specification */
    PACKAGE Form_vars IS
       g_prev_val   VARCHAR2(50);
    END Form_vars;No that I've created a variable to store the Previous Value of an Item, I can write code to use it. I will use a Form Level When-New-Item-Instance (WNII) trigger to ensure I capture the value exiting value of the item before any changes.
    /* Sample WNII trigger */
    BEGIN
       Form_vars.g_prev_val := Name_in(:system.trigger_item);
    END;This is a very simple example. There are many other ways to implement this method; such as using the Pre-Text and Post-Text-Item triggers as Abdetu suggested.
    Craig B-)
    If someone's response is helpful or correct, please mark it accordingly.

  • How does an NSTextField know that it's value has changed?

    I have a textfield that can either be edited by hand, or set through another control. (It's a page number, so you can jump to page 16 by typing in 16, or you can page up and down with the next/prev buttons) I have the value of the text field bound to an int page variable.
    It seems to work correctly, when you type a page number in, it jumps, when you page up and down, the page number in the text box changes appropriately.
    However, at some level, when I page up and down, the text box doesn't seem to know that it's value has changed, because if I type 1 it doesn't do anything. It doesn't call the bound set-method or anything. It looks like the textfield is thinking "I'm already 1, so I don't need to do anything." Even though it was 5 because I hit next 4 times. If I type an number other than 1, it goes there. If I THEN type 1, it goes to page 1, because now it thinks it's on that other page.
    The problem seems to be that I'm changing the value of the textfield programatically, but some part isn't getting the message.
    Does this seem like a reasonable explanation? And either way, any ideas on what's causing it?
    thanks

    Solution: in order for the textfield to behave properly, I need to do everything through the bound instance variable.
    The problem was that the "page" instance variable doesn't actually exist, there's a page method and a setPage method, but the actual page is kept elsewhere. When I make sure to call the setPage method from the next/prev code, it seems to work.

  • Q:Determine if a item value has changed

    Hello,
    I am sure I am missing something basic but I just can't figure out how to do accomplish this.
    I have a form with a radio button (Yes or No) which I need to determine in a Page Process if the user has changed the value to Yes or not. The result of this will decide if I am going to send an email or not.
    I am running APEX 4.2.1.
    Anyone?
    Thanks
    Andy

    Okay.
    1) For the Dynamic Action:
    You want the Action to be "Execute PL/SQL Code".
    Under Settings, in the code window just put the single "null;" satement.
    Under Settings, for Page Items To Submit - Pxx_RADIO -- note - no colon here!
    Under Setitngs, for Page Items to Return - Pxx_RADIO_LAST -- not no colon here!
    (And don't put both Items on both line because that just causes a lock up when executed.)
    2) The only down side is that if you display Pxx_RADIO_LAST, it will not show it's value until the Pxx_RADIO is change and the values is return in the Dynamic Action. But as soon as it's returned, it's the old value of Pxx_RADIO. And if Pxx_RADIO is toggled, Pxx_RADIO_LAST remains that initial value that it was when first set. If you want to see Pxx_RADIO_LAST on the screen when the page renders, I suppose tou need a DA to save it to the session state when it's set in the before header process.
    If you want, look here on p. 5.
    Workspace: SIMPLE_DEMOS
    UN: hcarson at woh.rr.com
    PW: SD123456789
    RADIO_DEMO ID:25096
    Dever / Ima9Dever
    Page 3: Radio Group
    Page 4: Checkbox
    Page 5: Hidden Item Demo
    To see that the value is saved, Set Radio Group to "Yes" and then go to p. 4. Go back to p.5 and "Yes" will be still be set but the Text Field -- I changed to Text from Hidden -- will be blank. When you click No, then the "Pxx_RADIO_LAST" value of Y will appear here. (Make sense?)
    Howard

  • How to know whether any item value got changed

    How to know in Apex whether any form item got changed. That will help me to know when the user will be pressing the "Apply Changes" button and I will popuplate the "User Modifed" and "Date Modifed" column values in the table. For now, I dont want to write database triggers, but to implement it at application level.

    Hi Deb
    For a really good explanation of the naming /numbering of tabular form items see Patrick Wolf's blog on the matter.
    http://www.inside-oracle-apex.com/which-tabular-form-column-is-mapped-to-which-apex_applicationg_fxx-array/
    He also gives a simple example of using check-boxes in tabular forms here
    http://www.inside-oracle-apex.com/checkboxes-in-tabular-forms-the-easy-way/
    You will notice in his example, that the apex_application.g_f40 is specifically named as 40 - a high number assuming that you don't have more than 39 editable columns in you tabular form - shown in the name="f40" code.
    <input type="checkbox" #ADMIN_USER_CHECKBOX# value="#ROWNUM#" name="f40" id="f40_#ROWNUM#"/>#ADMIN_USER_CHECKBOX#
    In essence the columns are numbered (only the editable ones) in the order in which they appear in the select statement - so the first editable column will be f(01), next f(02) etc - except where the column is specifically named - in this case f(40).
    I had a situation where I wanted to programatically stamp the user's name into a column depending on whether the user checked a check-box in each row.
    But if the column is editable and visible, then the user is free to type into this cell - this I wanted to avoid.
    Something that took me a while to work out is that you can hide an editable column - so it can updated by your procedure code - not by the user!
    The way to solve this is to have the sql statement select the relevant column twice - the first one is the editable one and hidden, and the second copy is a normal report column - displayed but not editable.
    I used Patrick's example in the link above to set up my tabular form with the first column as a check-box.
    The user then marks the desired rows by clicking in the check-box and submits / saves.
    The procedure then detects which rows have been checked - updates the editable (but hidden) database column, and then re-displays the result - with the second copy of the same column now showing the updated value!
    I hope this helps.
    Look at Patrick's other postings - they are so helpful.
    Mike

  • Fields don't recognize their value has changed when a copy/paste value in inputed

    I'm having a minor hiccup with my copy and paste buttons.
    I have check boxes that, when checked, make other fields visible.  The copy/paste actions recognize when the check box value is 1 and paste accordingly in the new instance of the subform, however, the invisible fields do not become visible, despite the check box value being 1 in the new instance.  I feel like I'm missing something simple....possibly something that forces the scripting within the check box field to run since it is not recognizing that it's value has changed?  If I manually click the check box in the new instance, the scripting works and the invisible fields become visible so I know its not an issue with creating new instances.
    Any suggestions will be appreciated...I am new to this...
    Scott

    Still interested in solving this issue....anyone? please?

  • How to know when the PRICE AFTER DISCOUNT changed and get the value

    Hi,
    Everything I do to see if a value changed in the grid works except for PRICE AFTER DISCOUNT
    which seems to be inaccessible.
    Any idea how to know when exactly this value changed and do actions accordinly ?
    Also I always get 0.00 if I try to get the value of it
    This works to get in the condition of a vlaue changing but I always get 0.00 as the value of the column
    if (pVal.ItemUID == "38" && pVal.ColUID == COL_DISCOUNT.ToString() && pVal.EventType == BoEventTypes.et_VALIDATE && pVal.ItemChanged == true && pVal.ActionSuccess == true)
        try
            SAPbouiCOM.Matrix Matrix = (SAPbouiCOM.Matrix)SBO_Application.Forms.ActiveForm.Items.Item("38").Specific;
            SAPbouiCOM.EditText Editor = (SAPbouiCOM.EditText)Matrix.Columns.Item(COL_DISCOUNT).Cells.Item(pVal.Row).Specific;
            SBO_Application.MessageBox("Discount changed for : " + Editor.Value + "...", 1, "Ok", "", "");
        catch (Exception ex)
            SBO_Application.MessageBox(ex.Message, 1, "Ok", "", "");
    And this do not even get into the condition even tought I SEE the column PRICE AFTER DISCOUNT:
    if (pVal.ItemUID == "38" && pVal.ColUID == COL_PRICEAFTERDISCOUNT.ToString() && pVal.EventType == BoEventTypes.et_VALIDATE && pVal.ItemChanged == true && pVal.ActionSuccess == true)
        try
            SAPbouiCOM.Matrix Matrix = (SAPbouiCOM.Matrix)SBO_Application.Forms.ActiveForm.Items.Item("38").Specific;
            SAPbouiCOM.EditText Editor = (SAPbouiCOM.EditText)Matrix.Columns.Item(COL_PRICEAFTERDISCOUNT).Cells.Item(pVal.Row).Specific;
            SBO_Application.MessageBox("Price after discount changed for : " + Editor.Value + "...", 1, "Ok", "", "");
         catch (Exception ex)
             SBO_Application.MessageBox(ex.Message, 1, "Ok", "", "");

    just idea, maybe it will works
    Create one udf in row level and set there FS based on changes on price after discount and fill value what is in price after discount. Then the validation make on this field instead of standard SAP field.

  • How to tell if column value has changed for use in workflow actions

    Hello,
    I am using Sharepoint 2010 and for one of my Lists, I am using a general list workflow.  What I need to be able to do is determine if a column value has change (say an "Assigned To" field) because I only want to take some action if that particular
    value has changed.  I want to be able to have a workflow action that would be something like:
    If Current Item: Assigned To not equals [OLD VALUE]
    I have found some web searches that talk about creating a duplicate list or duplicate (but hidden) column but that doesn't seem to be the way to go.  I have document versioning set but don't if that can be used to help with this.  One possible
    thought (although I haven't tried it to see if it works) is to create local variables and have the values in the variables be the "old value".  Just not sure if there is a best practices for doing this.
    Thanks for any thoughts - Peter

    Helen,
    Not sure I fully understand your goal.  We don't use "tasks" at all but if you are looking to have your workflow check certain valus and be able to send email messages to people based on whatever, then you can certainly do that (as long as your Sharepoint
    has the email setup.  We do this for alot of workflow tasks.
    So, in the workflow you can have a blanket statement like what I previously listed:
    if Current Item:hiddenStatus  not equals Current Item:Status
        .... do something
    or you can do something like:
    if Current Item:hiddenStatus equals "In-Progress"
        .... do something
    Else if Current Item:hiddenStatus  equals "Completed"
        .... do something
    or combine the two and do nested "if" statements.  Then you add an email statement wherever you need it like:
    if Current Item:hiddenStatus  equals "Completed"
       then email "these users"
    To add the email part, just type in "email" on the line where you want to add a statment.  There is only one option to choose from.  That will display the line "then email these users".   The "these users" will be a link.  When you
    click it you will get a popup to add the email info.  We typically will send the email to a user (or users) that are already listed in one of the PeoplePicker fields.  On the email form, you can type in your own text, designate that a value is based
    on a column value (like our PeoplePicker), designate that a value is based on a workflow variable, add a link to the current item, etc.  To get to these options you will click the button to the right of the fields or use the "Add or Change Lookup" button
    in the bottom-left for the text area.  There is alot you can set in the mail.
    Does this help answer your question?
    - Peter

  • Sir i am using datasocket read ,i am communicating with java but my problem is that bcz im using while loop to see if value has changed my labview consumes all the processors time ,sir i want a event like thing so that while loop is not in continuous loop

    sir i have given lot of effort but i am not able to solve my problem either with notifiers or with occurence fn,probably i do not know how to use these synchronisation tools.

    sir i am using datasocket read ,i am communicating with java but my problem is that bcz im using while loop to see if value has changed my labview consumes all the processors time ,sir i want a event like thing so that while loop is not in continuous loopHi Sam,
    I want to pass along a couple of tips that will get you more and better response on this list.
    1) There is an un-written rule that says more "stars" is better than just one star. Giving a one star rating will probably eliminate that responder from individuals that are willing to anser your question.
    2) If someone gives you an answer that meets your needs, reply to that answer and say that it worked.
    3) If someone suggests that you look at an example, DO IT! LV comes with a wonderful set of examples that demonstate almost all of the core functionality of LV. Familiarity with all of the LV examples will get you through about 80% of the Certified LabVIEW Developer exam.
    4) If you have a question first search the examples for something tha
    t may help you. If you can not find an example that is exactly what you want, find one that is close and post a question along the lines of "I want to do something similar to example X, how can I modify it to do Y".
    5) Some of the greatest LabVIEW minds offer there services and advice for free on this exchange. If you treat them good, they can get you through almost every challenge that can be encountered in LV.
    6) If English is not your native language, post your question in the language you favor. There is probably someone around that can help. "We're big, we're bad, we're international!"
    Trying to help,
    Welcome to the forum!
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • HT2173 How to know when a hard drive has failed ?

    How to know when a hard drive has failed ?

    Machine doesn't boot.  You experience strange crashes.  Gets wrong results.  Your harddrive is five or more years old.  Time to consider repacing it.   You do have backup?
    You may want to run these "standard" fixes if the problem persists.
    1) Check the amount of free space on your harddrive.  You should have a several gigs free.
    2) You should run disk utility
         a) verify the disk
         b) update your permissions.
    3) Try a safe boot.
        Shutdown your machine.  Hold down the shift key.  Poweron.  Wait awhile Wait awhile while you harddrive
          is being checked.
        http://support.apple.com/kb/ht1455
    4) You may want to run applejack to clean up your machine.
         http://applejack.sourceforge.net/
    a lot more ways to fix your Mac.
    http://www.thexlab.com/faqs/faqs.html
    verify & repair your startup drive
    To verify & repair you file system on the startup drive, you will need to run disk utility from you installation DVD.
    This article  will tell you how to get to disk utility.  Once in a disk utility, you can go and attempt to recover the disk.
    http://support.apple.com/kb/TS1417
    To repair your startup drive, you will need to run disk utility from your startup DVD.
    Mac OS X 10.4: About the utilities available on the Mac OS X 10.4 Install DVD
    http://support.apple.com/kb/HT2055
    How to run disk utility from your startup DVD.
    Insert your  startup DVD  into your reader.  Power down your machine.  Hold down to the c key.  Power on your machine.  This will bootup your startup DVD.
    This will bring you to a panel asking you for your language.  Pick your language.
    You you come to the Install Mac OS panel.  Do not install.
    Click on Utilities menu item.  This will give you a pulldown list of utilities.
    Click on the disk utility.
    You are now in disk utility.  Pick your disk.  Click on repair it should be on the lower right of the panel.
    Once the repair completes successfully, you should update your permissions.
    Verify a disk
    As an alternative, you can verify that the filesystem on the disk is correct. You will not be able to repair the file system.
    I suggest that you use disk utility to verify that your startup disk is OK. 
    Macintosh-HD -> Applications -> Utilities -> Disk Utility 
    Start up disk utility.  On the left pane view, you will see a list of all your disks.  
    Click on your startup disk.
    Click on the First Aid  Tab.
    Click on verify.  
    Hopefully your disk will verify.  If not, you have to boot from your installation DVD and run Disk Utility from there to attempt to repair your file-system.

  • HT201441 dear sir . Ihave bought a dell ipad under serial number DMPKQFF4F186 on 25th of dec.2013,it was packed and seems it was .new,after unpacking i found out it is lock. I just need to know when this serial number has registered in icloud. I will grat

    dear sir . I have bought a dell ipad under serial number DMPKQFF4F186 / UDID : 976ba8f5ba16f665bdf3b1b5ec53a172c9d65381. on 25th of dec.2013,it was packed and seems it was new after unpacking i found out it is locked.Ijust neednto know when this serial number has registered in icloud. I will grateful if you could let me this information. locking forward to your kind response.  With Regards

    Greetings,
    I've never seen this issue, and I handle many iPads, of all versions. WiFi issues are generally local to the WiFi router - they are not all of the same quality, range, immunity to interference, etc. You have distance, building construction, and the biggie - interference.
    At home, I use Apple routers, and have no issues with any of my WiFi enabled devices, computers, mobile devices, etc - even the lowly PeeCees. I have locations where I have Juniper Networks, as well as Aruba, and a few Netgears - all of them work as they should.
    The cheaper routers, Linksys, D-Link, Seimens home units, and many other no name devices have caused issues of various kinds, and even connectivity.
    I have no idea what Starbucks uses, but I always have a good connection, and I go there nearly every morning and get some work done, as well as play.
    You could try changing channels, 2.4 to 5 Gigs, changing locations of the router. I have had to do all of these at one time or another over the many years that I have been a Network Engineer.
    Good Luck - Cheers,
    M.

  • Header text is not changing when ship to party has changed

    Hello Team,
    I am facing one issue when ship to party has changed in sales order the header text is not re determining automatically,
    I have read some posts and found that using standard its not possible we need to write enhancement for that.
    I have written below code to change the header text but facing some issues, can you please help me on to resolve this issues.
    I am calling 'RV_TEXT_COPY' FM inside the include FV45PFAP_VBAP_FUELLEN_TEXTE ,
    then its saving header text correctly, but this include is calling whenever I click on Header Text tab,
    if suppose if I am changing ship to party and I am not clicking on Header Text tab then this FM will not call this is an issue
    and one more issue is even in screen data is changing after calling RV_TEXT_COPY FM
    but STXH table is not updating, its updating the first value when we created the order.
    Can any one tell me how to solve this issue, Thanks in advance!

    Hi Mac,
    I think the following user exits can help you. In the Include MV45AFZZ use the below exit points,
    1) USEREXIT_MOVE_FIELD_TO_VBKD
    2) USEREXIT_SAVE_DOCUMENT_PREPARE
    try to write your code logic here.
    Regards,
    Satish

  • Notify RichTextEditor that value has changed

    Hi.
    I'm changing value of RichTextEditor through JavaScript (with commandToolbarButton on custom toolbar inside RTE).
    Now if I want to commit/submit application says that there is no changes.
    As soon I type something (besides using my custom toolbar buttons to change value of RTE) everything is submitted. Obviously there are some triggers based on keyDown or something like that, to notify that value has changed. Now my question is how to notify (from JavaScript) RichTextEditor (or who else) that value is changed?
    Regards

    After declaring   private RichTextEditor rte1; call the method rte1.isChanged(); the method will return true if there is a change
    Nigel

  • How to find if item's value has changed without leaving the field

    i am using timer in this one appilcation , where i am letting the user define the time in minutes like (30) ..Is there any way to know after they change the value of that item lets say to 40 so that i can execute some other statements.
    i have tried post-change and post text item ...
    thanks.

    You could use a timer, and then in the When-timer-expires (WTE) trigger, try Validate(Item_Scope). Try that, and see if it will cause the when-validate-item trigger to run.
    If that does not work, then in the WTE trigger, move the cursor out of the item. THAT will definitely cause the WVI to run if they have made a change. However, moving the cursor back into the field may cause problems with cursor position and also with the contents of the item selected (highlighted).

  • VBU-FKSAA field not updated when the item category is changed

    Hi,
    The sales order is created with the item category ZZZZ which is not relevant for billing. So the VBUP-FKSAA value is blank which means not relevant for billing.
    Now in the change mode, the item catg is changed to XXXX. this is relevant for billing. But even after changing the item catg the billing status is not changed. so the sales order can not be billed.
    Please let me know if anyone has come across this problem and also the soution.

    Thank You Vincent. It works for finish goods that currently have cost in the sap-bo (taking std or avg) . Do you what should I do when the item is receiving the first-transation and it is an inventory entry coming from DTW ? Because when I test this conditions, the field "price" is ignored and when I check the inventory entry sent using dtw the recorded cost is "cero".
    Thank a lot
    Salomon Ponce

Maybe you are looking for

  • Moving iTunes Library to an external drive.  My itunes cant connect to the library

    I have tried to move my iTunes Library to an external drive.  When I open the iTunes app i can not get the app to read the library on the external drive.  I have gone into iTunes preferences and redirected the app to read the external file and I stil

  • Loaded SWF not displaying

    I've created a 'plugin' SWF file in CS3 using actionscript 3. The purpose of this file is to be included as a postroll in the open source flash media player JW FLV/Media Player ( http://www.jeroenwijering.com/?item=JW_Media_Player). I have heavily cu

  • Whether postgresql-8.2-506.jdbc4 works in a 64 bit operating system?

    Whether **postgresql-8.2-506.jdbc4** works in a 64 bit operating system? Especially I would like to know whether it works in windows server 2008 64 bit operating system.

  • My purchased itunes won't play on my ipod or computer

    I purchased 2 albums from a different computer than my own and downloaded to my ipod, then when I plugged it into my computer with no internet connection, it disabled those 2 albums from playing and no I have them, but can't play or transfer them and

  • "E_AUTH_BAD_DEVICE_KEY_OR_PKCS12" error when downloading new Ebook

    The Ebook seller had reset the ebook so I can download the link again and I have received the same message.  Today, October 13th, 2013, I deleted my Adobe Digital Editions App, downloaded it again, reinstalled it without any errors.  I can open up an