Text of statistics not updated

I searched through the forusm for awhile and I can't find my answer.  User enters text in the text box, the sound the "Check point" button then if his is the 'statictext' should update its text is var veritemnum but I can't update.

//Created by  Daryl R. Smith
//Simply takes the artwork and places it on the three up template, then saves the file with the option to resize

#target illustrator;

var veritemnum = "Item Not Found"

   //size one hats are 4.5"w x 2"h
   var size1 = [7752, 8645, 7550, 7310, 7365, 7362, 7360, 7317, 7315,8630,7370,7320,7340,7220,7221,8329,8326,8331,8303,8309,8305,8300,8333,8332,
   8352,];
   
   //size 4 hats are 4"w x2.5"H
   var size4 = [8311,];
   
   //size 2 hats are 4"W x 2"h
   var size2 = [7313, 8266, 8635, 8615, ];
      
   //size 8 hats are 3.5"w x 2.5"h
   var size8 = [7366,];
   
   //size 3 hats are 3.5"W x 2"h
   var size3 = [7700, 8330, ];
   
   //size 5 visors are 3"w x 1.25"h
   var size5 = [7375,];
   
   //size 6 visors are 3.5"w x 1.25"h
   var size6 = [8307,];
   
   //size 7 visors are 4"w x 1.25"h
   var size7 = [7754, 7754,7460,];

var w = new Window ('dialog', "Imprint Size Search");
    w.orientation = "row";
    w.size = [300,150];
    
    var rsizegroup = w.add ('group', undefined, undefined);
    rsizegroup.orientation = "column";
    rsizegroup.alignChildren = "left";
    
   
    var textgroup = w.add ("group", undefined, "");
    textgroup.orientation = "column";
    
    rsizegroup.add ("statictext", undefined, "Item Number:");
    
    var itmgrp = rsizegroup.add ('group',undefined, "");
    itmgrp.orientation = "row";
    
    var itemNum = itmgrp.add ("edittext", undefined, "");
    itemNum.size = [40,20];
    itemNum.active = true;
    
    itemNum.onChange = function() 
    {  itemNum = this.text 
    itemNum.characters = 7;
    itemNum.active = true;
    }


    var checkitem = itmgrp.add ('button', undefined, "Check item");
    checkitem.onClick = function (veritemnum)
    {  
        //size one hats are 4.5"w x 2"h
            for (i=0;i<size1.length;i++)
            {
                if (itemNum == size1[i])
                  {
                   
alert ("size 1 made it");      

                   return "Item Found s1";
                   
                  }//end if size 1
           }//end for size 1   
       
            //size 2 hats are 4"W x 2"h
            for (j=0;j<size2.length;j++)
            {
                if (itemNum == size2[j])
                  {
                  
alert ("size 2 made it");     

                  return "Item Found s2";
                  
                  }//end size 2
            }//end for size 2
        
             //size 3 hats are 3.5"W x 2"h      
             for (k=0;k<size3.length;k++)
             {
                if (itemNum == size3[k])
                  {
                  
alert ("size 3 made it");    

                  return "Item Found s3";
                  
                  }//end size 3
          }//end for size 3
      
              //size 4 hats are 4"w x2.5"H
              for (h=0;h<size4.length;h++)
              {
                if (itemNum == size4[h])
                   {
                  
alert ("size 4 made it");      

                return "Item Found s4";
                  
                  }//end if size 4
              }//end for size 4
              
               //size 5 visors are 3"w x 1.25"h   
                for (j=0;j<size5.length;j++)
                {
                if (itemNum == size5[j]) 
                  {
               var  veritemnum = "Item Found s5";
                 
                  
alert ("size 5 made it");

                  return ("Item Found s5");
                  
                  }//end if size 5
              }//end for size 5
          
              //size 6 visors are 3.5"w x 1.25"h     
              for (j=0;j<size6.length;j++)
              {
                if (itemNum == size6[j])
                {
              
alert ("size 6 made it");      

             return "Item Found s6";
              
              }//end if size 6
          }//end for size 6
          
              //size 7 visors are 4"w x 1.25"h    
              for (j=0;j<size7.length;j++)
              {
                if (itemNum == size7[j])
                  {                  
                                  
alert ("size 7 made it");      
             
             return "Item Found s7";
                 
                   }//end if size 7
              }// end for size 7
          
              //size 8 hats are 3.5"w x 2.5"h
              for (j=0;j<size8.length;j++)
              {
                if (itemNum == size8[j])
                   {                 
                  
alert ("size 8 made it");                

                  return ("Item Found s8");
                  
                    }//end if size 8
                }//end for size 8
        
        }//end on check item click  
    
  var selecteditem = rsizegroup.add('statictext', undefined, veritemnum);
    
    var rsizequestion = rsizegroup.add('button', undefined, "Resize Artwork");
   
   
rsizequestion.onClick = function()  
{  
    
     findImprintSize();
     resizeart()
};
        
   var breakPanel2 = w.add ("panel", [0,0,2,64]);////////////////////////// Break Panel
   
   bttngrp = w.add ('group',undefined,undefined);
   bttngrp.orientation = "column";
   
        
    bttngrp.add ("button", undefined, "OK");
    bttngrp.add ("button", undefined, "Cancel");
    //itemNum = itemNum.text;
    
    if (w.show () == 1)
    {
        allstuff ()
    
     }/*end if ok button*/ else
 {
     
     }

If you put in 7375 an alert will be displayed allowing you to know this fact through size 5 which is correct, but the static text never changes.  What Miss me?

Zantcor wrote:

If you put in 7375 an alert will be displayed allowing you to know that this fact through size 5 which is correct, but the static text never changes.  What Miss me?

You need to target the static text like this by using the '.text' of this instance property:

// either like this
selecteditem.text = "Item Found s5";
// or like this
veritemnum = "Item Found s5";
selecteditem.text = veritemnum;
// and the same for all the other instances s1, s2, s3, ..., s8 etc...

Hope this helps your efforts.

Tags: Illustrator

Similar Questions

  • ring of text strings do not update

    It has always worked for me before, but not anymore.   I've been at this for half an hour. ?????

    I think that I fixed it myself. My data file has been created in Excel, saved to a text file. I went back in the file Excel and made sure my cells were text-only format. Re-registered, reloaded in this vi and it seems OK. What strange symptom, though.

    Can I give me solution and congratulations if I do it myself?

  • CS6 InDesign text frames are not updated

    Hey guys,.

    It's probably a function to check a box... But since the upgrade to indesign CS6 (PC), my text frames don't provide a view on how the text will sit while I do drag and resize. I have to you release the mouse button and then the blocks of text are updated. A simple problem which cost me hours of time trying to adjust the text where I want to spend...

    I'll always be in your E-debt if you can solve my problem. I tried checking and unchecking about each preference I could think.


    Thank you

    Louis

    The default setting in preferences changed to CS6 value Live Drawing screen delayed because immediate casued no end of problems for users of marginal material.

    You can change the preference, or simply hold the mouse to the bottom for a moment before sliding get the live preview.

  • Error: "Windows could not update the configuration to start the computer. Installation cannot move forward"during the installation of Windows 8 64-bit OEM System Builder on Macbook Pro for help using Boot Camp

    Hello

    I have a brand new Macbook pro and I bought the OEM System Builder of 64-bit Windows 8 driver in a store. My problem is that I have not only not able to install it using Boot Camp. At the end of the installation, a message appears with the following text "Windows could not update the configuration to start the computer. Installation cannot continue.

    I'm not really a tech guy but I also tried to download virtual box and the same error comes back.

    Can someone help me please?

    Thank you!

    Original title: Windows 8 64-bit English OEM System Builder

    The thread is old now, but it is for those who always have this problem.

    When I got the error, I cancelled and restarted the machine. I pressed the 'option' button when starting upwards and he grew the boot partitions. You should see a 'EFI Boot' partition. Choose that and you restart the installation process, but this time it works.

    Supposedly the boot EFI and WinInstall partition should do the same thing. Manually, select one or the other.

  • Why the text effects are not up-to-date in preview mode? CC2015

    When you use simple text like the glow effects, the effect is not updated when the preview mode is checked.

    This makes the feature extremely tedious to use.

    The question has arisen in the past without a solution...  Text effects do not update on cc 2015

    Please advise as soon as possible,

    Thank you very much

    John

    Exactly what version of InDesign are you using? The current version is 2015.3 (11.3). What operating system? Have you tried to restore your InDesign preferences?

    Garbage, replace, reset or restore the application's preferences

  • OnImmediateValueChanged cursor does not update the label text by dragging.

    Consider the following:

    Container {
            layout: DockLayout {}
            Label {
                id: label
                textStyle.base: SystemDefaults.TextStyles.BigText
                verticalAlignment: VerticalAlignment.Center
                horizontalAlignment: HorizontalAlignment.Center
            }
    
            Slider {
                fromValue: 0
                toValue: 59
                value: 0
                 onImmediateValueChanged: {
                     label.text = value;
                 }
            }
        }
    

    When you drag the cursor, it does not update the text of the label smoothly. How can I achieve this?

    Found the solution!

    By mistake I used the value parameter and not immediateValue in the onImmediateValueChanged function!

  • Edition on DVD after using the movie menu.  Text of scene selection will not update after clicking on the advance button.

    I created a movie and used the Menu movie option.  I have 24 scenes.  After having engraved on a DVD the DVD will not update the text or the images listed by backstage after clicking on the button to move to the next series of scenes. However, if you click on the scene it will take you to a scene that should be on a page.   I use first elements 13 Windows 8.1 with 16 GB of RAM.  I tried different a few times and still have the same problem.  Thanks for your suggestions!

    I found my problem.  I got the Motion Menu button checked on each marker of the scene.  After that take-off it works perfectly.

    Randall

  • Dynamic text field not updated to actionscript in the 2nd Frame

    I have a clip with two frames. In the 2nd frame there is a clip that has a text field.

    My goal is to some events that I will be proposing to the frame that has the clip with the text field.

    I'm trying to update the text field with a code something like: -.

    public void updateTxtFld(e:Event)

    {

    My goal is to certain events show the clip with the text field

    questBG.gotoAndStop ("glow");

    arrowText.text = "of the text." arrowTextt has been awarded with the correct text field

    }

    After some time I again back to the framework that has no movie clip masking so the clip

    public void masquer()

    {

    questBG.gotoAndStop ("idle");

    }

    The text field not updated since the actionscript code even if trace (arrowText.text) shows the updated value.

    Now, if I remove the clip of frames & change the updateTxtFld() as

    public void updateTxtFld(e:Event)

    {

    (questBG.getChildByName ('arrowBG') as Sprite) .visible = true;

    arrowText.text = "of the text." arrowTextt has been awarded with the correct text field

    }

    Then it works very well with the updated text in the text field. It seems that there seems to be a problem in dynamic text field update in frames.

    I also checked that the incorporation of text is fine in both cases

    I created the FLAS using CS Professional 5.5 & I am trying to change the text field using actionscript running in Flex Builder 4.7.   Let me know if I need to send the fla (working and non-working version).

    you are the assignment of text to arrowText before the timeline then moves to "shine".

    Use the render event to assign the text:

    public void updateTxtFld(e:Event)

    {

    My goal is to certain events show the clip with the text field

    questBG.gotoAndStop ("glow");

    internship. Invalidate();

    this.addEventListener (Event.RENDER, assignTextF);

    }

    function assignTextF(e:Event):void {}
    arrowText.text = "of the text." arrowTextt has been awarded with the correct text field
    }

  • Dynamic text not updated

    I have a simple code which should update some dynamic text, but he seems to be doing it out of use.

    function() {return A.apply (null, [this] .concat ($A (arguments)))}

    function loginAttempt() {}
    _root.txt_progressbar. Text = "try to connect, please wait...". » ;
    var valid_login = _root.check_login (_root.txt_username.text, _root.tx t_password.text);
    If (valid_login == true) {}
    MDM Forms.Menu.setFocus ().
    MDM Forms.Menu.show ().
    MDM. Forms.CTBCC.alpha = 0;
    }
    }


    The txt_progressbar.text is not updated until the function ends.

    You can pass this string to loginAttempt(), using something like:

    loginAttempt (yourstring)

    and:

    var tl:MovieClip =;

    function loginAttempt(s:String) {}
    s = _root.txt_progressbar.text;

    tl.onEnterFrame = delayF;

    }

    function delayF() {}

    delete tl.onEnterFrame;
    var valid_login = _root.check_login (_root.txt_username.text, _root.tx t_password.text);
    If (valid_login == true) {}
    MDM Forms.Menu.setFocus ().
    MDM Forms.Menu.show ().
    MDM. Forms.CTBCC.alpha = 0;
    }
    }

    p.s. Please mark this thread as answered.

  • Glossary not update text expanding

    HI -.

    I'm working on a project of WebHelp in X 6 that contains @ 600 subjects. I have a bunch of terms in my glossary, which I made a request in the topics in Help system by using the feature 'to enlarge the text.

    Recently I have made a few changes to the existing subject glossary definitions, but am finding that these changes are not made to the expansion text. the hundred or so existing hotspots is keep the old definitions from the glossary.

    I tried to use the wizard of Hotspot glossary to see if there was a way to update each term automatically. It identifies topics that contain a different definition in the glossary that was applied in the expansion text, but does not give me an option to update.

    Is it possible to update my list expanding of text without having to remove/re-apply each individually (and manually)?

    Thank you in advance for your help!

    Thanks much Harvey and Colum.

    I submitted a feature request.

    FYI - after I wrote that I have looked at using RoboHelp provided with the application. Supposedly when you run the wizard glossary Hotspot and the message that the current expansion text does not match the entry of the current glossary, Robo will replace the old and the new. I did, but the results were inconsistent.

  • On Firefox only, I get problems with a few Joomla sites using the JA_purity template. Error: has not been loaded because its MIME type "text/html", is not "text /".

    Hello

    I updated Firefox on my computer for 13.01. Now, he struggles to read about 2 sites - both are Joomla and based on the model of JA-purity. What happens is that it fails to load the CSS files to do with the side and the top of the Joomla site menus. The file comes up with this:

    because its MIME type "text/html", is not "text/css".
    Source file: http://extensions.joomla.org/
    Line: 0

    This error does not appear with other browsers and it displays perfectly in fact in all other browsers.

    I'm new on this but I read the following article and think it could be my problem

    https://developer.Mozilla.org/en/Incorrect_MIME_Type_for_CSS_Files

    Where Im stuck, it's that I did not fully understand what to make of this article, if I could get a step by step guide to fix this problem that would be greatly appreciated.

    I apologize in advance if the answer lies somewhere here - I have had a look and couldn't get out.

    Thank you
    Alex

    I don't see that the error and all style sheets seem to load.

    Reload Web pages, and ignore the cache.

    • Hold SHIFT and click reload.
    • Press 'Ctrl + F5' or 'Ctrl + Shift + R' (Windows, Linux)
    • Press 'Cmd + Shift + R' (MAC)

    Clear the cache and cookies from sites that cause problems.

    "Clear the Cache":

    • Tools > Options > advanced > network > storage (Cache) offline: 'clear now '.

    'Delete Cookies' sites causing problems:

    • Tools > Options > privacy > Cookies: "show the Cookies".
  • Keychain does not display the password or secure since 10.11.2 notes updated

    Keychain does not display passwords or secured since 10.11.2 notes updated. I enter the password and move out them.

    Attempted to create a new keychain, then re-import the old etc. Turned on and off in icloud. Keychain firstaid is absent from the update so no luck there. Any thoughts?

    Please launch the Console application in one of the following ways:

    ☞ Enter the first letters of his name in a Spotlight search. Select from the results (it should be at the top).

    ☞ In the Finder, select go utilities ▹ of menu bar or press the combination of keys shift-command-U. The application is in the folder that opens.

    ☞ Open LaunchPad and start typing the name.

    The title of the Console window should be all Messages. If it isn't, select

    SYSTEM LOG QUERIES ▹ all Messages

    in the list of logs on the left. If you don't see this list, select

    List of newspapers seen ▹ display

    in the menu at the top of the screen bar.

    Click on the clear view icon in the toolbar. Then take an action that does not work the way you expect. Select all of the lines that appear in the Console window. Copy to the Clipboard by pressing Control-C key combination. Paste into a reply to this message by pressing command + V.

    The journal contains a large amount of information, almost everything that is not relevant to solve a particular problem. When you post a journal excerpt, be selective. A few dozen lines are almost always more than enough.

    Please don't dump blindly thousands of lines in the journal in this discussion.

    Please do not post screenshots of log messages - text poster.

    Some private information, such as your name or e-mail address, can appear in the log. Anonymize before posting.

    When you post the journal excerpt, an error message may appear on the web page: "you include content in your post that is not allowed", or "the message contains invalid characters." It's a bug in the forum software. Thanks for posting the text on Pastebin, then post here a link to the page you created.

    If you have an account on Pastebin, please do not select private in exposure menu to paste on the page, because no one else that you will be able to see it.

  • iTunes does not update the podcast... why?

    So my podcast, ' Onstage/Offstage', has been very well on iTunes for three years. All of a sudden it will not update new episodes, new graphics and text changes. I checked my file rss.xml several times and it seems very well as usual.

    URL: https://itunes.apple.com/us/podcast/onstage-offstage/id955994429?mt=2

    Any ideas? Explanations? Need help. Thank you!

    You have introduced a mistake in your stream, so what happens the voids. Please refer to the report Feedvalidator for line numbers:

    Line 20 reads

    You have not closed this tag, so that all of the following tags "item" seem to be inside the previous tag, like the final of the tag ' / channel '. It should read

  • Quick drop-down list does not update during the search

    My Quick Drop started acting today.  Normally, when I start typing, the list under the search box updates to show all possible matches.  This is not is no longer the case.  He always tries to autocomplete the search field, but the list is not updated.  [attached screenshot]

    I'm under LabVIEW 2009 SP1 on Windows XP 32-bit.

    For what it's worth, LabVIEW crashed went on vacation early evening Wednesday last, just before I was preparing to leave for the weekend.  When I went back to work this morning, Quick Drop work properly.  I don't know if these two events are linked, but I thought it was a possibility.

    I tried to restart my PC and rename the file LabVIEW.ini and LabVIEW restarting with a new configuration, but not luck.

    Any help would be greatly appreciated!

    It seems that I solved the problem.

    Yesterday, I noticed that the Quick Drop worked when I took my laptop to my cubicle to a job in another location.  When I started my laptop in my closet this morning, however, the problems are back.  Apparently, the problem was related to the use of the docking station for my laptop.  Something in the configuration to the hardware profile 'anchored' have been corrupted, causing the problem Quick Drop, among other buggy problems (for example, do not allow me to click and drag the mouse to highlight text).  I unplugged the laptop from the docking station, and suddenly everything worked very well.  Once I reconnected it the laptop to the docking station, it was apparently crushing the hardware profile "anchored" corrupt, because the next time I start the computer when you are connected to the docking station, everything has worked.

    Problem solved!

  • Hi well I fight with hp for about 3 days on this so maybe someone here can help me. I have a bunch of updates that will not update how to fix the problem

    When I run a health check on hp I have a full page of items that will not update some goes for updates of windows. but he said that the hp site may be down, or I can't connect. but I called hp and fought with them for 3 days and I'm tired of fighting with them, I have 4 children that I can't afford to pay for something from someone maybe able to help for free.

    Hi Jbarizona,
    Thank you for visiting Microsoft windows Vista answers Forum.
    A. what operating system you use?

    Method 1: make sure that the necessary services are available and running
    For Windows Vista, follow the steps below:
    To ensure that the necessary services are available and running, as follows:
    1. Click Start, type services.msc in the search text box, and then click services.msc in the list programs. If you are prompted for an administrator password or a confirmation, type the password, or click on continue.
    2. double-click on Background Intelligent Transfer Service.
    3. If the start State lists Stopped, click Start, and then click OK.
    4. double-click on Windows Update.
    5. If the start State lists Stopped, click Start, and then click OK.
    6. double-click on my computer.
    7. If the start State lists Stopped, click Start, and then click OK.
    8. close the Services window and try to install the updates again.
    Note: If the Background Intelligent Transfer Service does not appear in the list of Services, click the following link to view the article on the Microsoft web site and download the update:
    http://support.Microsoft.com/?scid=http%3A%2f%2fsupport.Microsoft.com%2fkb%2f939159%20%2fen-us
    Method 2: Download and install the Windows Update Agent
    1. download and install the latest Windows Update agent. Click on the link below to view the corresponding article on the Microsoft web site:
      http://support.Microsoft.com/kb/949104/en-us
    2. once the Windows Update agent is installed, try to install the updates again.

    Thank you and best regards,
    Vijay - Microsoft technical support.
    Visit our Microsoft answers feedback Forum and let us know what you think.

Maybe you are looking for

  • Satellite L635-127 - upgrade from 4 GB to 8 GB RAM possible?

    My Satellite L635-127, want to upgrade RAM from 4 GB to 8 GB. I can do it myself, is this possible?

  • Laptop HP 2000-2A 00: Windows 7 Home Premium ISO download

    My hard windows crashed and I installed ubunto erased on my recovery. I have the OEM sticker on my laptop and I was wondering how to get a 7 ISO to reinstall windows. I tried several sites today, and nothing seems to work. I type in my OEM sticker an

  • Issues related to the format of mail in email

    A few days ago changed the way my e-mail address is shown. I used to click on mail and it would show a descriptive list of each messge. Now, the message is displayed. I want the mail format I had before with the list of the text messages. Help! Origi

  • ISE 1.2 - begging CWA provisioning with anchor WLC

    Hi all Having a problem with supply begging via CWA on a controller of the anchor. I am able to connect through CWA and authenticate etc no problem, but when the device registration page it says "cannot connect to the network at this moment" - the ma

  • Problems with emctl in oracle 10.2.0.4

    HelloI'm trying to get OEM DB Console running for a database on a server, that I just inherited the previous s/n. I get this error when I try emctl on the command line: emctl /app/oracle10g/product/10.2.0/bin/emctl: line 330: cd: /app/oracle/product/