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.

Similar Messages

  • 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

  • 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

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

  • Want to know what my java programm has changed the database

    what I want to do is:
    I want to find out the diffrece of before my java programm runs and after that, i think two way:
    1. one makes two snapshots
    2. select out every table that changed during the interval.
    3. the question, is there such a tool?
    thx
    Andre
    null

    BigDaddyLoveHandles wrote:
    Prediction: he'll be a bitter and abusive forum member, if he's still around, in less than one year.That's hardly fair. With provocation like that, it's bound to happen

  • PAGE RADIO BUTTONS and APPLICATION ITEM VALUE

    I have several pages that use same radio button group that permits filtering the report query (of course on each page, it is a page level radio button item).
    I created an application item value to hold the last used value of a radio button item.
    On login, I would like the application item value set to a default value.
    For a given page using the recurring radio button group item,
    I would like the radio button item value set to the application item value on entry into a page.
    I would like the report to use the application item value on entry to a page.
    I would like the application item value be updated anytime the page level radio button item value is changed, so that when you move to another page,
    the next radio button group and report can use the last selected radio group button value.
    I am trying to use a variety of solutions in COMPUTATION and CONDITIONAL COMPUTATION... to include use of set_session_state procedure, and I am not getting desired result, partial success, but not complete.
    Can you have a computation item that is only for initialization of the report and radio button group on page entry?
    And a separate computation item that senses user selection of another radio button, updating the report, and updating the application level item?
    Help requested. Thank you.
    Would be nice to have application level objects, like radio button groups.

    Created Page 0
    Created an HTML region in COLUMN 2 and SEQUENCE 10.
    Selected under region CONDITION:
    Current Page is contained within Expression 1 as comma delimited list of pages
    in the EXPRESSION 1 provided the requested comma delimited list of pages that I wished the HTML region to appear.
    Created the radio button group item P0_RADIO and assigned to Page0 HTML region.
    Selected under item CONDITION:
    Current Page is contained within Expression 1 as comma delimited list of pages
    in the EXPRESSION 1 provided the requested comma delimited list of pages that I wished theradio button group to appear.
    In SHARED COMPONENTS I created an APPLICATION COMPUTATION
    In the computation I created a PL/SQL function to initialize the radio group
    BEGIN
    IF :P0_RADIO IS NULL THEN
    RETURN 'A_ALL';
    ELSE
    RETURN :P0_RADIO;
    END IF;
    END;
    'A_ALL' being the default value for :P0_RADIO
    Radio group appears on the desired pages, is initialized to the desired default value, and works properly on each page.

  • Is it possible to submit a list item and at same time query/search the results if parameters are matched.

    Hello,
    Is it possible to submit a list item and at same time query/search the results if parameters are matched.
    Example - user logon to site enter search parameters and hit submit button. Once done parameters gets saved in list and shows search results on page. I have been asked to do this with
    SP designer and InfoPath doesn’t work due items limits.
    Please suggest.
    Thanks,
    Manish
    Manish

    Hi Manish,
    may i ask if you need,
    when user account click the login button, it will be authenticate the user and then it will show search result page?
    may i know how the keyword of words to be put? is it together with the user account box, password and keyword?
    or it will be like, after user authenticate, it will redirect to search page, so that user may use the search page to input the keyword?
    Regards,
    Aries
    Microsoft Online Community Support
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

  • Possible to clear vendor open item against already posted payment document?

    Hi
    Can you advise if it is possible to clear an open item against already posted payment/clearing doc? Here is the background to the scenario:
    An invoice was posted with transaction FB60. This was subsequently picked up in the payment run F110 and cleared by payment document number 200005678. The item went to the bank on the paymnet file and was paid out to the vendor. The transaction reference, which appeared on the incoming bank statemnet was the payment document number 200005678.
    Subsequently it was discovered that the original invoice should have been posted with reference to a PO using MIRO. The requirement now is to reverse the paymnet documnet 200005678 in SAP, then reverse the document that was posted using FB60. After this the invoice will be posted using MIRO. This will create an open item on the vendor account.
    This item will not be piad out again. Therefore the requirement is to try clear that open item against the previously posted payment document 200005678.
    Is there any way to clear this vendor open item against the originally posted payment document 200005678?? Or any other advice on how this scenario can be handled in SAP?
    Thank for your help.
    Mike

    Hi,
    I tried that option in our test system. I ran FBRA and entered Paymnet Documnet Number (+Clearing Doc Number), Company Code, Fiscal Year.
    Then chose menu option Clearing -> Reset Cleared Items.
    The system pops up a window asking for a reversal reason and reversal date.  I use 01 and posting date of today.
    The system now posts another cleared document. That document places the invoice as an open item on the vendor account. It does not place the Payment Document as an open item on the account.
    When I go to F-44 only the open vendor invoice is showing there. There is no open paymnet document.
    Is there perhaps some configuration setting that stops the placement of the paymnet document as an open item when reset?
    Thanks for your help again.

  • Is it possible to know the date & time, when a form has been last accessed?

    Hi
    I am using forms 6i. Is it possible to know when a form has been last accessed by any user?
    Regards

    Only if you implement such a feature. (Maybe writing to a table in the PRE-FORM-trigger in an autonomous transaction)

  • It doesn't work when I press "transfer purchased items from ipod" and I don't know specidicly whitch item I need to transfer

    It doesn't work when I press "transfer purchased items from ipod" and I don't know specidicly whitch item I need to transfer.
    Whenever i press "transfer purchased items from ipod", itunes sync's for about 3 seconds, but I still can't install updates on the ipod without itues warning me about purchased items on the ipod, that aren't in the itunes library. I've tried folowing the steps in itunes help, but I can only find a step guide for when you know the specific item that needs transferring, and I donøt know that specific item.

    This Apple Tech Note explains the process:
    http://support.apple.com/kb/ht1848
    It will transfer all purchased items that the computer you are transferring to is authorised to play: you don't have to select the items.

  • Possible to know the URL of page while within the working iWeb on desktop?

    Is it possible to know the URL of any page in a website by looking at the working iWeb copy on the desktop? I made my website over a year ago and used iWeb '06 and cannot remember that far back. Now I am using iWeb '08. I keep getting SORRY messages when I hit the VISIT button.
    This is making me nervous.
    Lorna

    See this topic...
    http://discussions.apple.com/thread.jspa?threadID=1215442&tstart=0

  • Several service cofirmations can be possible from one service order Item

    Dear Experts,
    We create a service order with one service item and create a service confirmation via follow-up function.
    After saving the service confirmation, the status of the service order Item is changed from "Released" into "Confirmed".
    Even though the status of the service item is "Confirmed", we can create a new service confirmation
    for the same item again and again until we set the status "Completed" in the service order header.
    Is the system working as designed?
    Could anyone advise how we can prevent the users from creating a new service confirmation
    from the service item which has been already confirmed(the service order header status is still "Released")?
    Any information would be highly appreciated.
    F.T.

    Hi Fumi
    In standard process  , multiple confirmations are possible for a single service order. there are number of reasons for this
    1. Mutiple engg are working on single service order. and each engg post separate time and expenses in the confirmation
    2. in case of service order which cannot be completed  in a single day. and engg want to book the time daily
    you can still restrict the user to create multiple confirmations  using code.
    Regards
    Naresh

  • Is it possible to populate listbox/dropdownlist items using loadXML method?

    Is it possible to populate listbox/dropdownlist items using loadXML method? (If I have xml data in some string variable)
    Any sample?
    Thanks

    Hi Steven,
    Yes, Its possible which behaves as system CFL.
    Design the form like cfl having grid, choose button, cancel button and edittext of find. When you tab on edittext on form open the CFL form and after load form fill the grid by Datatable using sql query. Write code for select grid line on click of grid. Write the code on choose button which retrive value from grid.
    Thanks,
    Mahesh

Maybe you are looking for

  • Any Mac expert who can solve my Printing problem? PLEASE HELP!!!!

    So I am asking this again... I have a Samsung 4200 SCX Series printer. It was able to print everything properly till the 14th of April when I installed the latest Security update and the thing stopped working after that (When I give a print command,

  • How do I send attachments larger than 300 kB with Mail?

    When I installed OS 10.2 on my 333 MHz iMac last year, I switched all my e-mail usage over from Outlook Express to Mail. However, now I can't send or forward attachments any larger than about 300 kB. I've looked in System Preferences, and in Mail's P

  • Oracle 11g: "ORACLE initialization or shutdown in progress" problem.

    Hello All, We are using Oracle 11g (enterprise edtion) in Windows server 2008. Whenever we reboot the machine we are not able to connect the database. Following output indicate the errors. :\Users\Administrator.F1STD.000>sqlplus dbo/<password>@<conne

  • Print data of an internal table to a printer.

    Hi, Requirement: The data from an excel file is the input for the program. This data is taken into an internal table using GUI_UPLOAD adn manipulated based on certain validations. The data which is validated is finally collected into an internal tabl

  • Create a ipod or iphone version

    I try to create a ipod or iphone version of this movie but when I try the audio comes in fine but the picture is all white. Is there a fix for this?