Getting 'insertItemAt is not a function' Error Message

I am using abode pro 8 and am getting a 'insertItemAt is not a function' error message using the following code. (This code below was written as an example to show the process I want - I want to clear a combo box, then add data to it.)
The error message only appear in a one of my pdf's I currently use, otherwise it works as written. Because I want the data to appear listed from top to bottom within the combo box from 1 to 5, I insert 5 first. 5 gets inserted, but when the code tries to insert 4, it trippers the error message. Any thoughts - is there another way to insert data into a combo box?
var i = 0;
var ii = 5;
var v = new Array();
v[1] = 1;
v[2] = 2;
v[3] = 3;
v[4] = 4;
v[5] = 5;
//Combo Box
this.getField("Fund Company-Long-Name").clearItems();
var a = this.getField("Fund Company-Long-Name");
for (var i= ii;  i > 0; i--)
             if(v[i] != undefined)
                         app.alert(i);      
                         a.insertItemAt(v[i], (i, ""));
v[0] = " ";
a.insertItemAt(v[0], (0, ""));
this.getField("Fund Company-Long-Name").value = " ";  
//================Gives this error message=============
Acrobat Database Connectivity Built-in Functions Version 8.0
Acrobat EScript Built-in Functions Version 8.0
Acrobat Annotations / Collaboration Built-in Functions Version 8.0
Acrobat Annotations / Collaboration Built-in Wizard Functions Version 8.0
Acrobat Multimedia Version 8.0
Acrobat SOAP 8.0
a.insertItemAt is not a function
4:Field:Mouse Down

Yes, I'm actually looking at those two methods now. New questions arise.
If my combo Box is called "Fund Company-Long-Name", how could I add a varying number of items to it, using the "setItems" command?
I can get it to work for a defined number of items, as below. But I don't know how to insert a variable to replace ["A", "B", "C"] below.
/=======================================
this.getField("Fund Company-Long-Name").clearItems();
var a = this.getField("Fund Company-Long-Name");
a.setItems(["A", "B", "C"]);

Similar Messages

  • ExtendScript Help - Why am I getting "prompt is not a function" error?

    Hello RH friends,
    I need to search through my 2200+ topic project, find any topics that use a certain image in the source and then open up that file in the wysiwyg editor to visually see what's happening to the conditional markings on those topics. I need to open them in chunks since I've determined there are some 600+  topics that has the image I'm looking for. Seems like something a script would be able to handle. Does anyone have a script that does something like this or something similar?
    Anyway, I started messing around in the script editor with a test script to figure some of this out, but I get an error right off the bat when I try using the standard js prompt method to capture a text
    string. I have these two lines of code in my script:
    var strText = prompt ("Type a string to search for. Topics with that string will then open in the RH viewer.","i_chiclet.gif","String to Find");
    alert (strText);
    Running it directly from within the script editor, the prompt command works fine.
    However, running the script from within RH--which is what I need to do for it to work on the current project to look at, I get a message that says:
    "prompt is not a function."
    What am I missing?
    I'm using RH 9.02.271
    Windows 7 64-Bit with adminstrator access

    RH ExtendScript bug... Use Window.prompt() and it'll work. The same goes for confirm: Window.confirm() does work. Alert() does work however and prompt and confirm work in ExtendScript toolkit itself.
    I've never tried opening a topic in the WYSIWYG and I don't think that RoboHelp supports this. You can open a file with ExtendScript, but that just launches the file in default viewer (probably your web browser). I'll look into opening a topic in the WYSIWYG, but I can't promise anything.
    Greet,
    Willam

  • Updates needed on article: Fix "The bookmarks and history system will not be functional" error message

    Came across the article, but found a solution that allowed me to keep everything without losing my places file.
    Removing places.sqlite-shm and places.sqlite-wal while firefox was not running allowed FF to start without a problem.

    Agreed, and fuser showed that the files weren't in use.
    Using sqlite from the command line to access places.sqlite when the files were there seemed to work till I did ".schema" and then I got an error that indicated corruption.
    Removing the files and then retrying ".schema" worked flawlessly.
    Telling users about this possible solution would help them recover their history, etc. that they may have spent a lot of time creating.

  • Just wanted to make sure I had the most up to date version of ITunes on my desktop first.  Tried to get on site, and got an error message saying; The folder ITunes is on a locked disk or you do not have write permissions for this folder.  Help!

    Wanted to sync up my new IPhone4, and thought that I should make sure I had the most up to date version of ITunes on my desktop first.  Tried to get on site, and got an error message saying; "The folder ITunes is on a locked disk or you do not have write permissions for this folder."   Cannot get on ITunes at all now.  Help!  Thx.

    In my case its a new computer the old one was stolen and the time machine disk did not work for a restore but did for copying the info to the new mac

  • Private Browsing function is suddenly not working. Error message :"The URL is not valid and cannot be loaded." How can I repair?

    Private Browsing function is suddenly not working. Error message :"The URL is not valid and cannot be loaded."
    How can I fix it?

    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.com/kb/Safe+Mode
    *https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes

  • Why do I get disc not ejected properly error message

    Why do I keep getting disc not ejected properly error message since updating my operating system to 10.8.2?

    Without any details on how you're trying to do this, no one can respond, intelligently.

  • HT201210 I have been trying to update to IOS 6 for 3 days now - my Iphone4S is in middle of restore and it gets so far then stops - no error  messages - the bar does not move further. it stops at different places - can anybody help please

    I have been trying to update to IOS 6 for 3 days now - my Iphone4S is in middle of restore and it gets so far then stops - no error  messages - the bar does not move further. it stops at different places -
    can anybody help please
    Kulbir

    Stewart
    This forum is for questions regarding the LabVIEW Datalogging and Supervisory Control Module. You will have more luck posting this question in the general LabVIEW forum.
    Good luck

  • HT1725 I purchased a album of various artist, however some of the songs did not download, an error message saying something about not having proper information to download??? any thoughts on how I get the songs I paid for but did not download?

    After purchasing a album of TV Theme songs, during the download some of the themes would not load, an error message came up saying to the effect I did not have the correct info to download.  Does anyone know about this issue & any thoughts on how I aquire the themes I paid for?  The themes that did not load still show up in the music list but are greyed out & have an "!" exclamation mark beside the number of the item in the list.

    Assuming you are in a region where you are allowed to redownload your past music purchases, delete the broken tracks from your iTunes library, close and then reopen iTunes, go to the iTunes Store home page, click the Purchased link from the Quick Links section in the right-hand column, then select Music and Not on this computer. You should find download links for your tracks there.
    While downloading select Downloads in the left-hand column and make sure Allow Simultaneous Downloads is unticked.
    If the problem persists, or that facility is not yet available in your region, contact the iTunes Store support staff through the report a problem links in your account history, or via Contact Support.
    See also: HT2519 - Downloading past purchases from the App Store, iBookstore, and iTunes Store
    tt2

  • Hi there, got 3 issues at once.... 1) can't download the latest itune version (it simply stops, not even an error message) 2) can't access the itune store and in order to fix this i need the latest version 3) one of my ipods isn't recognised by itune

    Hi there, got 3 issues at once....
    1) can't download the latest itune version onto my PC (it simply stops, not even an error message)
    2) can't access the itune store and in order to fix this i need the latest version - catch 22!
    3) one of my ipods isn't recognised by itune, nit sure if because of the earlier problems?
    .... thanks
    S.

    Hello SAB7700,
    This first article can help get iTunes successfully downloaded and updated, which should restore access to the iTunes Store.
    Issues installing iTunes or QuickTime for Windows
    http://support.apple.com/kb/HT1926
    Once iTunes is successfully updated, the following articles provides steps that can help get your iPod working in iTunes again and the iTunes Store functioning, should the update not resolve these issues
    iPod not recognized in My Computer and in iTunes for Windows
    http://support.apple.com/kb/TS1369
    Can't connect to the iTunes Store
    http://support.apple.com/kb/TS1368
    Cheers,
    Allen

  • Windows XP: iTunes will not open - no error message

    Hi,
    I have a fresh install of Windows XP with no other programs installed but Firefox, a graphics driver, and a wireless adapter driver - all on C:. This computer was built for surfing the net and managing an iPod... that's pretty much it. Anyway, I have reinstalled several times both Windows and iTunes and every single time I can install successfully, the event log confirms that it installed successfully, and then when I go to open iTunes, nothing happens. Not even an error message. The hourglass starts and then it disappears and... nothing. Its as if I never opened it. The event log shows this int he application folder:
    The description for Event ID ( 0 ) in Source ( iPod Service ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. You may be able to use the /AUXSOURCE= flag to retrieve this description; see Help and Support for details. The following information is part of the event: Service started.
    I'm not sure this has anything to do with it because it doesn't indicate an error, just that an event occurred and it has no description for it.
    Please help me... TIA!

    After trying sto start iTunes, open the Task manger and look on the processes tab, do you see iTunes.exe running?
    If so you have a problem that is commonly due to an issue with cryptographic services.
    If you have just done a fresh install, was the smart card service installer, iTunes requires it.
    Here are my troubleshooting steps for silent launch failure with iTunes.exe running in the task manager:
    Before checking if iTunes works, restart your PC or close the iTunes.exe process with task manager if it is running.
    A couple of simple things to try:
    http://support.apple.com/kb/TS1776?viewlocale=en_US
    Stop the bonjour service, this FAQ has instructions:
    http://support.apple.com/kb/HT2250?viewlocale=en_US
    But usually it is due to a problem with cryptographic services.
    Check to see if you have your smart card service and that it is not set to disabled. For some reason iTunes needs it.
    Start>>Run>>Services.msc
    you should find the smart card service in the list. Report back with your findings.
    Malware can interfere with cryptographic services and also pervert a resolution so it is important to check that your system is clean before proceeding: Run a virus and spyware scan with up to date definitions.
    Then work through *Method 4* in the following link:
    http://support.microsoft.com/kb/822798
    You should be able to copy and paste the individual lines to save on typing.
    Make a careful note of any error messages you get, they are important for diagnosis. Report back any error messages especially the names of any dlls mentioned.
    If there are no errors try starting iTunes.

  • ITunes cannot sync apps to the iPod because the apps installed on the iPod could not be determined error message

    I've been getting the "iTunes cannot sync apps to the iPod because the apps installed on the iPod could not be determined" error message for a while. I have tried restoring my iPod but as soon as I try to sync it again (even with nothing changing in iTunes or on the iPod) I get the same error message. Whenever I want to add music to my iPod I have to delete everything and then wait hours for it to restore which is ridiculous. Anyone have any other suggestions for fixing this problem?
    I'm using a 3rd generation iPod touch with 4.2.1 software and iTunes 10.5.3.3

    The fact that there is so many discussions with no clear answer is the problem.
    I went back and looked through all the different suggestions and and tried them all to make sure I didn't miss anything. What finally worked for me was making sure all apps were updated on the iPod and making sure all apps were updates in iTunes (under the Library>Apps tab NOT under devices) and then syncing.

  • I installed iTunes update on my pc running windows vista and now it will not open. Error message MSVCR80.dll missing

    I installed iTunes update on my pc running windows vista and now it will not open. Error message MSVCR80.dll missing???

    First try updating to iTunes 11.1.5.5, using an installer downloaded from the Apple website:
    http://www.apple.com/itunes/download/
    If you still get the errors after that, try the following user tip:
    Troubleshooting issues with iTunes for Windows updates

  • "The iphone software update server could not be contacted" - error message recieved when i try to update to 5.1.1 via itunes , what can i do ?

    The iphone software update server could not be contacted" - error message recieved when i try to update to 5.1.1 via itunes , what can i do ?

    Dear Lawrence Finch: 
    If you're still around I hope you see this message, as you're the FIRST person (after reading every link, thread, other sites, apple support articles, etc.) to mention JB may be causing this iTunes popup window to REPEATEDLY occur:
    "The iPhone software update server could not be contacted."
    No, I did not hack anything (are you kidding?  Grannies don't hack!), but I unknowingly bought a 3Gs iOS 3.1 from ebay that was not advertised as JB.  Since it is like brand new, I was going to keep it (because my old backup is iOS 3.1.2) & was trying to simply restore & update, which (I thought) would remove the JB (that's what everybody says at forums, etc).
    Instead, after "erasing all settings/content" (inside phone's Settings to get the prior person's name out of there), it is now stuck in White Apple Mode.
    Put it in DFU/Recovery Mode & connect to iTunes but that stupid above message keeps appearing & I have already read/tried EVERYTHING to get rid of that message, starting with: 
    1.  OLD phones (3Gs) with OLD iOS 3.1+ should work FINE with OLD Mac (iBook) with OLD OSX (Tiger 10.4.11) with OLD iTunes (9.2.1[5]).  So that can't be the problem.
    Here's all the other things apple & others say to check which I already checked:
    2.  USB ports are FINE, both work FINE, so that's not the problem.
    3.  No "extra USB devices" are connected, ONLY a mouse, & then the phone (yes, I tried it w/o the mouse connected but that didn't help).
    4.  No "usb hubs."
    5.  Latest iTunes for this OSX has already been DL'd (iTunes 9.2.1[5]).  If you know of a newer one for this OSX, please advise.
    6.  No antivirus software.
    7.  No security software.
    8.  No routers; only 1 comcast modem, period.  Wired Ethernet.
    9.  No wifi gadgets, no wifi at all.
    10.  No firewalls, except what is on iBook in the SHARING/System-Prefs. section.  It's turned OFF.
    11.  Did the hosts/terminal thing sudo nano whatever it was.  There were only 3 lines, NO gs.apple.com:
    xxxxx local host
    xxxxx broadcast host
    xxxx local host
    Oh, & btw, ATT officially unlocked this phone (after I filled out their online forms) but I can't finish the process via iTunes to get their Confirmation that "Device is Now Unlocked," so I can use T-Mo.
    So that's it.  If you have any other ideas of what to do from here, since from your comment, maybe it's the stupid JB on this phone that is causing the problem (???), please advise.
    Many thanks!

  • "Printer cartridges not installed correctly" error message

    HP Tech Support and HP Envy Users, Still getting the "Printer cartridges not installed correctly" error message for no good reason and it's July 2015! HP should have fixed this problem a long time ago based on the date of the posts from users. And/or corrected the misleading error message, as the users did install them correctly. I didn't get an installation error message when I installed my cartridges and I have been able to print successfully on this current set of cartridges. My error message appeared out of the blue. I've done all the troubleshooting steps except replace BOTH cartridges. I will do that. If the error message goes away once I've replaced one or both cartridges, HP should have long provided an update that says, "replace ink cartridges" and not the misleading one of not being installed correctly. If that doesn't clear up the problem, I will call HP as it's still under warranty. Hope I didn't get one of the "lemons" that require servicing.

    Hello @jimboware and welcome to the HP Forums!
    As far as I'm aware, there is no Windows 6, did you perhaps mean Windows 7? This What's My OS link will help if you'd like
    When you're starting the install, do you plug in the USB cable before the software asks for it?
    Let me know that information and we'll go from there!
    Please click “Accept as Solution ” if you feel my post resolved your issue, as it will help others find the solution faster
    Click the “Kudos Thumbs Up" on the right to say “Thanks” for helping!
    **MissTeriLynn**
    I work on behalf of HP

  • Screen not HDCP authorised error message

    I have a brand new Retina 5k iMac but I can't get any iTunes Video to play. I got a screen not HDCP authorised error message. How do i fix this? Apple care seems unable to help at this point
    Thanks
    Andrew

    I know you"ve restarted the Sky box, but something else to try is switching off the power to everything and then powering on again, sometimes this fixes HDCP handshake issues.

Maybe you are looking for