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.

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 prog RFBIBL00(SAP) knows that, my excel sheet has to post form FBB1 tx?

    HI Experts,
    The SAP documentation is saying that, the prog. RFBIBL00 can post documents of any of one like FBB1, FBV1, FBS1, FB01 tx.
    Ok, i hv a excel sheet with data and am looking forward to post it to SAP as FBB1 transaction......so, i can give the file path name, but, How the SAP knows that, am intended to post for FBB1 tx of my excel? I did not see any radio button/parameter on the selection screen to specify the tx?
    thanq

    Hello,
    You would normally use RFBIBL00 with a flat asci-file which is on a server directory. RFBIBl00 uses
    certain types of input structures - BGR00, BBKPF and so on (look to the documentation of this report).
    In the BBKPF there's a field transaction code - from that RFBIBL00 know's what to do.
    If you got a excel-file, you can use the LSMW to build such a structured file for RFBIBL00.
    Regards
    Wolfgang

  • 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

  • Applications: How does OS X Know Which App to Reference a File to?

    I just got my new Macbook and while installing applications, a question I've had for a while came up again.
    How does OS X know to reference applications to certain file types?
    For example. I have a .avi I downloaded to watch, and downloaded VLC to watch it. I open the .dmg and drag/drop VLC to my Applications folder. Instantly, VLC appears in the "Open With" list for my .avi. How does it know to list it?
    My theories are:
    1. When dragging/dropping VLC, it's not just copying files, it's also doing some background stuff, including VLC telling OS X that it should be referenced for .avi files
    2. When I "Open With" a file, OS X looks at apps in my Applications folder and detects applicable ones in some manner.
    3. It's Voodoo magic.
    How does it work? I hope my question makes sense.
    Thanks!

    From what I understand, the second the .dmg is opened and VLC is seen by OS X as an application, Launch Services asks VLC what filetypes to associate it with, and adds that to the database? Then when I try to "open with" a .avi, it sees that .avi is associated with QuickTime, and now VLC too.
    that's right. inside the VLC application bundle there is a file called info.plist which contains among other things the info about which files VLC can handle. that file is consulted by the Launch services once it becomes aware of VLC being present in the system and that info is recorded in the launch services database. That's how it works with all applications. you can view this file if you want. control-click on VLC in finder and select "show package contents". in the new finder window that opens up go to Contens folder and quicklook the file info.plist.
    Is this correct?
    Thanks.

  • In third party sales order process how  business come to know that the vend

    Hi SD Gurus,
    In third party sales order process how  business come to know that the vendor has delivery the goods to the customer?
    Where Business will check whether Vendor has delivered the goods or not to the customer?
    Thanks & Regards,
    Nivas

    Hi,
    Process
    VA01 - Create sales order (Schedule line CS and item category TAS) >> ME52N - PR is generated after save of sales order >> ME21N - Convert PR in to P.O >> Then vendor will send goods to customer and will send invoice to our company >> MIRO - Invoice receipt from vendor >> VF01 - Final invoice to customer
    When you enter vendor invoice then you come to know that vendor sent qty. same will be billed to customer(Billing relevance in item category should be F)
    Kapil

  • In Third Party sales order processing how we come to know that the customer

    Hi SAP SD Gurus,
    In Third Party sales order processing how we come to know that the customer is recived the Goods from the vendor?
    Thanks & Regards,
    Sreenivas.P

    From a high level view, the behavior should work like this:
    -  Sales order placed from customer PO via Tcode VA01. Purchase Requisition created upon saving the order
    -  Purchase order created with reference to Purchase Requisition via Tcode ME21N
    -  Receive confirmation from vendor that goods have shipped via EDI
    -  Create invoice receipt to vendor via Tcode MIRO
    -  Create billing document to bill customer via VF01

  • How adutilities comes to know that the file system is shared file system

    How adutilities comes to know that the file system is shared file system ?
    In multinode shared file system : if we want genearte message file we can invoke adadmin from any node and perform this activity. In this case, how adadmin knows that the filesystem is shared filesystem.

    Duplicate post.
    How adutilities comes to know that the file system is shared file system
    How adutilities comes to know that the file system is shared file system

  • How to come to know that the BEx queries created in whether in 3.X or 7.X

    Hi Friends,
    How to come to know that the BEx queries created whether in 3.X or 7.X.
    Some queries created in 3.X and some in 7.X in my system. How to know that the query created in which version. Where we can find such information.
    It might be smaal isue for you. I searched the form but i haven't got information which i am looking for.
    Thanks &Regards,
    Revathi

    Hi Revathi,
    Just check if the below can help you.
    You can use table RSZCOMPDIR
    Enter Query Technical Name in field COMPID 
    Field VERSION in the Table RSZCOMPDIR can tell you the version.
    if the value is below 100 then Query is in 3.x versionu2026
    If Greater Than 100 means, it is already Migrated to higher version which is 7.X
    Hope it helps,
    Manish Sharma

  • How does the system knows hire action first

    Hi all,
    Iam new to this community, recently i have joined as an SAP HR trainee ,and i am undergoing SAPHR training Programme.
    why can't the system allow us to do promotion action before Hire action?where do we configure this to make it happen, how does the system knows to do the Hire action first, where are the settings for this..
    Swathi

    hai
    there are a number of programmes running in the back groung when u do any application.
    the validations will be written in them
    when u try to do something through the programe running at the back ground does these validations  like the example u have taken when u do the promotion action it checks whether actions exists or not if not then it throws the error written in the program.
    regards
    nalla

  • How does the backup file that I would like to use for restore now require a password

    How does the backup file that I would like to use for restore now require a password, when I just Backed it up on 10/30/14

    It requires a password to restore from it because at some point, you checked the box in iTunes to use encrypted backups, at which point you were prompted for, and set a password.
    If you now can't remember what that was, then you can not restore from that backup.

  • How does the system knows age or seniority is crossed for so and so... EE

    Hi Experts,
    In my project we have configured some Health plans based on ages and seniority,
    Employee can enroll in to the plan when they reach the age or seniority,
    my question is how does the system knows  age or seniority is crossed for so and so... EE, where exactly we do this setups
    Pleae let me know your valuable answers
    Regards
    Sreeni

    hr_entry_date and you can use various
    fm to calculate this, It reads 0019, 0041 or Hdate feature
    3QP8                           Time related calculation function mod.
    HR_AUPBS_SENIORITY             Calculate the whole length of service of employee
    3RP3A                          Leave schem proration modules
    SGPS_LS_SENIORITY_CALCULATION  Function for seniority calculation for Singapore Leave Scheme
    HRDO
    HR_DE_PBS_SENIORITY_PERIODS
    HRFPBS4AV0
    HR_PSF_AV_ANC_INPUT_SENIORITY
    HRF_METADATA_IT
    HRF_READ_SENIORITY_IT

  • HT2577 How do I remove RDC from my mac knowing that my lab programmer has accessed my mac?

    How do I remove RDC from my Mac knowing that the lab programmer has accessed my MacBook Pro from their PC and has been accessing my Mac for several months and downloading my personal files and emails to view?

    1.  You cannot download files with RDC.
    2.  RDC is a Microsoft product, and not related to Apple Remote Desktop..the focus of this forum
    3.  Per #1..clarify what exactly you're talking about.

  • How to fix iframe issue that displays XML values instead of formatted XML in IE11

    The following sub.jsp file shows the formatted XML properly as expected when is opened directly:
    <% response.setContentType("text/xml"); %>
    <book>
    <chapter1>chapter 1</chapter1>
    <chapter2>chapter 2</chapter2>
    </book>
    IE11 shows the result as below which are colored and can be collapsed or un-collapsed:
    <book><chapter1>chapter 1</chapter1><chapter2>chapter 2</chapter2></book>
    But if the sub.jsp is opened in an iframe from the below main.html, it only shows the values of the XML in the iframe:
    <!DOCTYPE html>
    <html>
    <head>
    <meta charset="ISO-8859-1">
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    <title>Insert title here</title>
    </head>
    <body>
    <iframe src="sub.jsp"></iframe>
    </body>
    </html>
    The iframe shows only the XML values, i.e., chapter 1 chapter 2 in IE11. This issue does not happen in IE8.
    I appreciate to your if you know how to address this issue.
    Regards, Amir

    The following sub.jsp file shows the formatted XML properly as expected when is opened directly:
    <% response.setContentType("text/xml"); %>
    <book>
    <chapter1>chapter 1</chapter1>
    <chapter2>chapter 2</chapter2>
    </book>
    IE11 shows the result as below which are colored and can be collapsed or un-collapsed:
    <book><chapter1>chapter 1</chapter1><chapter2>chapter 2</chapter2></book>
    But if the sub.jsp is opened in an iframe from the below main.html, it only shows the values of the XML in the iframe:
    <!DOCTYPE html>
    <html>
    <head>
    <meta charset="ISO-8859-1">
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    <title>Insert title here</title>
    </head>
    <body>
    <iframe src="sub.jsp"></iframe>
    </body>
    </html>
    The iframe shows only the XML values, i.e., chapter 1 chapter 2 in IE11. This issue does not happen in IE8.
    I appreciate to your if you know how to address this issue.
    This issue is also posted at below link:
    https://social.msdn.microsoft.com/Forums/en-US/5b0692b4-d312-4797-9089-42c1029ac059/how-to-fix-iframe-issue-that-displays-xml-values-instead-of-formatted-xml-in-ie11?forum=iewebdevelopment
    Regards, Amir

  • 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

Maybe you are looking for

  • Original back up data in different location

    My wife backed her iphone up for the first time on a pc I already use for my iphone. Forgot to untick box syncing all contacts with outlook and therefore has lost pretty much all her phone numbers. I presume they're all in the back up file, but when

  • How can I purchase 5 licenses for FCP X with my business account?

    Our Apple Store allows to purchase FCP X in blocks of 20+ but I only need 7.  I've purchase one and downloaded it but I need to purchase 6 more.  Can I do that with one business account or do I have to created Apple ID's for each computer?

  • Using todays date as default for this function in the package

    Dear all; please find attached the following sample data and syntax create table tbl_one   id varchar2(200),   place varchar2(300),   create_date date insert into tbl_one   (id, place, create_date) values   ('D', 'MN', to_date('3/3/2011', 'MM/DD/YYYY

  • Executing a command using back-quotes appears to hang

    I have posted this to the apache users mailing list due to the evidence to date, but since I also found some reference on the web to some, admitedly old, bugs regarding unclosed input pipes which seems to cause a similar hang I thought I'd also post

  • Invoice not updated even after rebate recalculation

    Hi, I am facing issue with 14 invoices which are not being updated with Rebate even after rebate recalculation. Below screenshot of one of those invoice, where it says that agreement exists. the entry is present in VBOX as well. Agreement validity pe