Identify and remove a particular instance

I need some assistance with this. I have a checkbox which creates an instance in a seperate form when checked. It creates, gives values to dropdown lists in that instance, and moves it to the end of all the previous instances just fine.
I cant seem to get the removeal of this field to work when the checkbox is deselected. Since users have the ability to reorder instances I cant just remove the last instance, I need the removal to happen based on the value of the dllField when that value = "Text"
Here is my code:
//CheckBox value
varValue=this.rawValue
//Checkbox = unchecked
if (varValue==0)
//remove instance where ddlField = "Text"
var instanceOCRRem = xfa.form.RicohStandardEDDForm.Page6.sub18ExportFieldedDataFields.subconcordancefields.sub Rows.subRow.resolveNode("subRow").ddlField.rawValue="Text"
xfa.form.RicohStandardEDDForm.Page6.sub18ExportFieldedDataFields.subconcordancefields.sub Rows.subRow.instanceManager.removeInstance(instanceOCRRem);
//Checkbox = Checked
else if (varValue==1)
//add instance, set the value of the ddlField and ddlECapField, then move it to the end of all the previous instances
var instanceOCR = xfa.form.RicohStandardEDDForm.Page6.sub18ExportFieldedDataFields.subconcordancefields.sub Rows.subRow.instanceManager.insertInstance(1,true)
var nIndexFrom = instanceOCR.resolveNode("subRow").index;
var instanceCount = xfa.form.RicohStandardEDDForm.Page6.sub18ExportFieldedDataFields.subconcordancefields.sub Rows.subRow.instanceManager.count -1;
instanceOCR.ddlField.rawValue="Text"
instanceOCR.ddlECapField.rawValue="OCR Text"
instanceOCR.resolveNode("subRow").instanceManager.moveInstance(nIndexFrom,instanceCount);

You need a loop to go through the instances to find the one you want.
I've uploaded a quick sample here:
https://acrobat.com/#d=HCE5l51RbmjfxSkjGIZbDA
I've just done one subform (subHolder) with a repeating subform inside it (subRepeat). It presents multiples of a repeating subform with the index displayed and a textfield that you can type into, if the value of the textfield is "text" it will remove that subform when you click off the checkbox.
var vInstances = this.resolveNodes("subHolder.subRepeat[*]");
if (this.rawValue == 1){
          subHolder._subRepeat.addInstance(1);
else{
          for (i = 0; i < vInstances.length; i++) {
                    if (vInstances.item(i).TextField2.rawValue == "text"){
                              vInstances.item(i).instanceManager.removeInstance(i);
You can shorten your add routine by using addInstance() instead of insertInstance() + moveInstance() - addInstance() puts the object at the end.
The underscore before the repeating object is a shortcut to the instanceManager.

Similar Messages

  • How to identify and remove duplicate plugin effects from AE cs5 please?

    hello,
    i installed some trial plug in effects for AE and PPRO cs5
    cycore, boris, trapcode
    the PPRo went great
    however, with the AE i get notices that multiple instances of 'such and such' effect
    is installed more than one time...there's about 15 that give me a warning each time i start AE...
    i tried my best to locate any duplicates but no luck
    How do you identify and remove duplicate plug in effects for AE CS5?
    thanks,
    j

    hello,
    it is nice when you can answer your own question...
    looked in 'common...media core...' and found the new blue trial plugins
    also had the duplicates of the new blue plugins in the AE plugins 'effects' folder
    deleted the plugins from the 'media core' folder
    no more warning signs...
    cool deal
    back to work,
    j

  • How do I find bad music files?  I have thousands of files, but some are bad.  When I try to load them into iTunes, it just spins.  I need a routine to identify and remove the bad files.  Any ideas?

    How do I find bad music files?  I have thousands of files, but some are bad.  When I try to load them into iTunes, it just spins.  I need a routine to identify and remove the bad files.  Any ideas?

    Hi ajoddo20,
    Welcome to the Apple Support Communities!
    You can use Home Sharing to import music and other media from one computer to another. Please use the instructions and information located in the attached article for information on how to complete the process. 
    iTunes 11 for Mac: Use Home Sharing to import items from another iTunes library
    Cheers,
    Joe 

  • How can I identify and remove duplicate file (audio & photo)

    How can I identify and remove duplicate file (audio & photo)?  I have quite a few libraries created as backup files.

    Terence,
    Yes, the duplicates appear in the iPhoto window. I have folders with same name occuring two or even three times sometimes with exactly the same set of photos (ie photos with the same ID) and sometimes with a limited set of photos. Other  folders appear only once.
    I normally take my MacBook with me if I'm shooting a lot of photos, such as on holiday, and then want to transfer them to my iMac when i get home. Other times I transfer the camera's memory stick directly to my iMac.
    I have great difficulty transferring the photos from my MacBook to my iMac. I don't want to store my photos on my iDisk due to the length of time it takes to upload them.
    Thanks again.
    Simon

  • HT1338 i have about 88,000 songs in my music library, some are duplicates. Does anyone know of any Apple Product or 3rd party software that will identify and remove duplicates.

    I have about 88,000 songs in my music library, some are duplicates. Does anyone know of any Apple Product or 3rd party software that will identify and remove duplicates.

    Backup your music to an external source before doing this, just in case you delete the originals by accident.
    iTunes will show you the duplicates.  But I recommend tagging their comments or another field once selecting them to ensure you don't accidentally delete both the original and duplicate.  You can always select all of them and change all their comment tags at once.  Once you've done that, stop showing duplications, and then sort by the comment field.  This will allow you to determine whether only the duplicates were shown in the show duplicates, or the originals.  If you see any without comments, then you can go ahead and delete the duplicates.

  • What is the best app for identifying and removing duplicates from iPhoto Libraries/Pictures?

    I have five iPhoto Libraries (original, default merged, etc.)  I've tried using iPhoto Library Manager, but I seem to be digging a deeper hole.  Also, question about the 15,000 faces:  Are these taking up space on my hard drive?  I gather I cannot easily remove them from libraries.  Taking photos at concerts, sporting events, etc. just creates more faces in iPhoto;  frankly, I could do without ANY FACE DETECTION!

    These applications will identify and help remove duplicate photos from an iPhoto Library:
    iPhoto Library Manager - $29.95
    Duplicate Annihilator - $7.95 - only app able to detect duplicate thumbnail files or faces files when an iPhoto 8 or earlier library has been imported into another.
    PhotoSweeper - $9.95 - This app can search by comparing the image's bitmaps or histograms thus finding duplicates with different file names and dates.
    DeCloner - $19.95 - can find duplicates in iPhoto Libraries or in folders on the HD.
    DupliFinder - $7 - shows which events the photos are in.
    iPhoto AppleScript to Remove Duplicates - Free
    PhotoDedupo - $4.99 (App Store) -  this app has a "similar" search feature which is like PhotoSweeper's bitmap comparison.  It found all duplicates
    Duplicate Cleaner for iPhoto - free - was able to recognize the duplicated HDR and normal files from an iPhone shooting in HDR
    Some users have reported that PhotoSweeper did the best in finding all of the dups in their library: iphoto has duplicated many photos, how...: Apple Support Communities.
    If you have an iPhone and have it set to keep the normal photo when shooting HDR photos the two image files that are created will be duplicates in a manner of speaking (same image) but there are only twp apps that detected the iPhone HDR and normal photos as being duplicates:  PhotoSweeper and Duplicate Cleaner for iPhoto.  None of the other apps detected those two files as being duplicates as they look for file name as well as other attributes and the two files from the iPhone have different file names.
    iPLM, however, is the best all around iPhoto utility as it can do so much more than just find duplicates.  IMO it's a must have tool if using iPhoto.

  • I need help identifying and removing annoying gadget that shows all open windows and applications when I mouse over a corner.

    It seemed like a good idea at the time. Some time ago I installed a gadget (doesn't seem to be an item in my Applications folder) which, when I mouse-over the lower-left corner of my screen, brings up a screen showing reduced-size versions of all open application windows and Finder windows. I've tried to identify what it is, and where it is located, so I can remove it, but to no avail.
    I'd really appreciate any help getting rid of this thing. Thanks!

    Hi Paul,
    Check System Preferences>Accounts (Users & Groups in later OSX versions)>Login Items window to see if it or something relevant is listed.
    Check the System Preferences>Other Row, for 3rd party Pref Panes.
    Check the System Preferences>Keyboard>Keyboard Shortcuts.

  • Imported photos and got duplicates - how to identify and remove duplicates?

    Hi all,
    I am running iPhoto '08 and it has worked very well.
    Yesterday, I imported a folder containing photos and I knew that some of the photos already existed in my iPhoto Library. But not concerned, when I know that iPhoto will detect duplicates.
    Well, strangely enough, iPhoto did anyway import some of the photos that resultet in me getting in duplicates anyway. The wierd thing though, is that not every "duplicate" was imported. Some of them iPhoto informed med "hey this already exist, want to import anyway?". I choosed that duplicates should not be imported and that should go for all photos that are duplicates.
    Now, my question is:
    Is there a way in iPhoto to identify duplicates in the iPhoto Library?
    If so, it would be great to be able to remove the duplicates!
    Anyone got a solution to my issue?
    Sincerely,
    Andreas

    Andreas
    Check out Duplicate Annihilator
    Regards
    TD

  • How do I identify and remove malware?

    I am running a Macbook Pro about 2 years old on OS X 10.9.5 and I keeping getting unwanted pop-ups or more often new tabs opening in Safari. Thanks.

    You don't have malware, you have adware.
    Use this tool - AdwareMedic - to remove all adware.
    Good luck,
    Clinton
    MacBook Pro (15-inch Late 2011), OS X Mavericks 10.9.5, 16GB Crucial RAM, Crucial M500 960GB SSD, 27” Apple Thunderbolt Display

  • How do you identify and remove add-ons/extensions

    The explanation of how to remove add-ons tells you to click on menu (and then 3 parrelel bars) What menu is that? I figured out(by trying each and every menu until I figured out it was the tools menu. when I get to the last step it says click the remove button. There is NO remove button at that point (just an enable button which is the last thing I want to do. I am talking about the Cinema ploos extension. It represents it's self as an upgrade with many improved features, but all it is is an add bot that is noisy and obnoxious and they want a one time fee (extorsion) to remove it

    Application Basics
    Name: Firefox
    Version: 33.0
    User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:33.0) Gecko/20100101 Firefox/33.0
    Multiprocess Windows: 0/1
    Crash Reports for the Last 3 Days
    All Crash Reports
    Extensions
    Name: Cinema ploos
    Version: 0.95.5
    Enabled: false
    ID: [email protected]
    Name: DivX Plus Web Player HTML5 <video>
    Version: 2.1.2.145
    Enabled: false
    ID: {23fcfd51-4958-4f00-80a3-ae97e717ed8b}
    Graphics
    Device ID: 0x6740
    GPU Accelerated Windows: 1/1 OpenGL (OMTC)
    Vendor ID: 0x1002
    WebGL Renderer: ATI Technologies Inc. -- ATI Radeon HD 6770M OpenGL Engine
    windowLayerManagerRemote: true
    AzureCanvasBackend: quartz
    AzureContentBackend: quartz
    AzureFallbackCanvasBackend: none
    AzureSkiaAccelerated: 0
    Important Modified Preferences
    browser.cache.disk.capacity: 358400
    browser.cache.disk.smart_size.first_run: false
    browser.cache.disk.smart_size.use_old_max: false
    browser.cache.frecency_experiment: 1
    browser.places.smartBookmarksVersion: 7
    browser.sessionstore.upgradeBackup.latestBuildID: 20141011015303
    browser.startup.homepage: http://dvd.netflix.com/Queue?lnkctr=mhbque&qtype=DD
    browser.startup.homepage_override.buildID: 20141011015303
    browser.startup.homepage_override.mstone: 33.0
    extensions.lastAppVersion: 33.0
    gfx.blacklist.direct2d: 3
    gfx.blacklist.layers.direct3d9: 3
    media.gmp-gmpopenh264.lastUpdate: 1414115832
    media.gmp-gmpopenh264.version: 1.1
    media.gmp-manager.lastCheck: 1414115827
    network.cookie.prefsMigrated: true
    places.database.lastMaintenance: 1414111485
    places.history.expiration.transient_current_max_pages: 104858
    plugin.disable_full_page_plugin_for_types: application/pdf
    plugin.importedState: true
    privacy.donottrackheader.enabled: true
    privacy.sanitize.migrateFx3Prefs: true
    storage.vacuum.last.index: 0
    storage.vacuum.last.places.sqlite: 1414111483
    Important Locked Preferences
    JavaScript
    Incremental GC: true
    Accessibility
    Activated: false
    Prevent Accessibility: 0
    Library Versions
    NSPR
    Expected minimum version: 4.10.7
    Version in use: 4.10.7
    NSS
    Expected minimum version: 3.17.1 Basic ECC
    Version in use: 3.17.1 Basic ECC
    NSSSMIME
    Expected minimum version: 3.17.1 Basic ECC
    Version in use: 3.17.1 Basic ECC
    NSSSSL
    Expected minimum version: 3.17.1 Basic ECC
    Version in use: 3.17.1 Basic ECC
    NSSUTIL
    Expected minimum version: 3.17.1
    Version in use: 3.17.1
    Experimental Features
    Above is the results of your troubleshooting request. The extension I want to remove is called Cinema ploos 0.95.5 I currently have it disabled, but want to get rid of it altogether. One note I am on an I-mac.

  • How do I identify and remove salware

    I have macbook air operating Yosemite .I have "Search only" taking over my browser .  How do i get rid of it?

    There is no need to download anything to solve this problem.
    You may have installed the "VSearch" trojan. Remove it as follows.
    Malware is always changing to get around the defenses against it. These instructions are valid as of now, as far as I know. They won't necessarily be valid in the future. Anyone finding this comment a few days or more after it was posted should look for more recent discussions or start a new one.
    Back up all data before proceeding.
    Step 1
    From the Safari menu bar, select
              Safari ▹ Preferences... ▹ Extensions
    Uninstall any extensions you don't know you need, including any that have the word "Spigot," "Trovi," or "Conduit" in the description. If in doubt, uninstall all extensions. Do the equivalent for the Firefox and Chrome browsers, if you use either of those.
    Reset the home page and default search engine in all the browsers, if it was changed.
    Step 2
    Triple-click anywhere in the line below on this page to select it:
    /Library/LaunchAgents/com.vsearch.agent.plist
    Right-click or control-click the line and select
              Services ▹ Reveal in Finder (or just Reveal)
    from the contextual menu.* A folder should open with an item named "com.vsearch.agent.plist" selected. Drag the selected item to the Trash. You may be prompted for your administrator login password.
    Repeat with each of these lines:
    /Library/LaunchDaemons/com.vsearch.daemon.plist
    /Library/LaunchDaemons/com.vsearch.helper.plist
    Restart the computer and empty the Trash. Then delete the following items in the same way:
    /Library/Application Support/VSearch
    /System/Library/Frameworks/VSearch.framework
    ~/Library/Internet Plug-Ins/ConduitNPAPIPlugin.plugin
    Some of these items may be absent, in which case you'll get a message that the file can't be found. Skip that item and go on to the next one.
    The problem may have started when you downloaded and ran an application called "MPlayerX." That's the name of a legitimate free movie player, but the name is also used fraudulently to distribute VSearch. If there is an item with that name in the Applications folder, delete it, and if you wish, replace it with the genuine article from mplayerx.org.
    This trojan is often found on illegal websites that traffic in pirated content such as movies. If you, or anyone else who uses the computer, visit such sites and follow prompts to install software, you can expect more of the same, and worse, to follow. Never install any software that you downloaded from a bittorrent, or that was downloaded by someone else from an unknown source.
    In the Security & Privacy pane of System Preferences, select the General tab. The radio button marked Anywhere should not be selected. If it is, click the lock icon to unlock the settings, then select one of the other buttons. After that, don't ignore a warning that you are about to run or install an application from an unknown developer.
    Then, still in System Preferences, open the App Store or Software Update pane and check the box marked
              Install system data files and security updates
    if it's not already checked.
    *If you don't see the contextual menu item, copy the selected text to the Clipboard by pressing the key combination  command-C. In the Finder, select
              Go ▹ Go to Folder...
    from the menu bar and paste into the box that opens by pressing command-V. You won't see what you pasted because a line break is included. Press return.

  • How to find and remove specific email messages

    I just read an article about a health department employee inadvertently sending a confidential e-mail to 800 users. The IT department shutdown the mail server and wihin an hour removed all copies of the message from the system.
    I asked myself, if that happened here, how would I do that? I could shutdown the Messaging Server, but not sure what to do after that.
    How would you identify, find, and remove a particular e-mail message from everyone's inbox?
    $ imsimta version
    iPlanet Messaging Server 5.2 HotFix 1.26 (built Mar 31 2004)

    Well, each message is stored as a simple text file in the store. Assuming unix, you could do a pretty simple find and grep, looking for a key phrase. exec rm from that, and you're done....
    After such brute force methods, you do need to run
    reconstruct -r

  • How can I identify and delete duplicate photos using latest version of Elements?  (Win 8.1 64 bit)

    I have several thousand digital photos of which several are duplicates. Can I identify and remove them using  Photoshop Elements 13?

    See:
    Elements Organizer Help | Search options to find media

  • How can I find and remove duplicate photos in iPhoto?

    What is the best way to find and remove duplicate photos in iPhoto?

    Are you seeing these duplicates in iPhoto or via the Finder?  If it's in the iPhoto window then you can use one of these applications to identify and remove duplicate photos from an iPhoto Library:
    iPhoto Library Manager - $29.95
    Duplicate Cleaner for iPhoto - free
    Duplicate Annihilator - $7.95 - only app able to detect duplicate thumbnail files or faces files when one library has been imported into another with iPhoto 8 and earlier.
    PhotoSweeper - $9.95 - This app can search by comparing the image's bitmaps or histograms thus finding duplicates with different file names and dates.
    I also prefer iPLM as it is more than just a dup finder.  It's a the most versatile iPhoto utility available.
    OT

  • Finding and removing malware

    Any tools to identify and remove malware from an iMac running Mavericks?

    Helpful Links Regarding Malware Protection
    An excellent link to read is Tom Reed's Mac Malware Guide.
    Also, visit The XLab FAQs and read Detecting and avoiding malware and spyware.
    See these Apple articles:
              Mac OS X Snow Leopard and malware detection
              OS X Lion- Protect your Mac from malware
              OS X Mountain Lion- Protect your Mac from malware
              About file quarantine in OS X
    If you require anti-virus protection Thomas Reed recommends using Dr.Web Light from the App Store. It's free, and since it's from the App Store, it won't destabilize the system. If you prefer one of the better known commercial products, then Thomas recommends using Sophos.(Thank you to Thomas Reed for these recommendations.) If you already use Sophos, then be aware of this if you are using Mavericks: OS X Mavericks- Sophos Anti-Virus on-access scanner versions 8.0 - 9.1 may cause unexpected restarts
    From user Joe Bailey comes this equally useful advice:
    The facts are:
    1. There is no anti-malware software that can detect 100% of the malware out there.
    2. There is no anti-malware that can detect anything targeting the Mac because there
         is no Mac malware in the wild, and therefore, no "signatures" to detect.
    3. The very best way to prevent the most attacks is for you as the user to be aware that
         the most successful malware attacks rely on very sophisticated social engineering
         techniques preying on human avarice, ****, and fear.
    4. Internet popups saying the FBI, NSA, Microsoft, your ISP has detected malware on
        your computer is intended to entice you to install their malware thinking it is a
        protection against malware.
    5. Some of the anti-malware products on the market are worse than the malware
        from which they purport to protect you.
    6. Be cautious where you go on the internet.
    7. Only download anything from sites you know are safe.
    8. Avoid links you receive in email, always be suspicious even if you get something
        you think is from a friend, but you were not expecting.
    9. If there is any question in your mind, then assume it is malware.

Maybe you are looking for

  • Can't Log In with Lync 2013 Windows 8 App over VPN

    Howdy, I've downloaded the Lync 2013 App to Windows 8.1.  When I type in my work email, I can't sign in.  I get that the server isn't available or doesn't support Lync. The error is attached. I can't find a forum for the Lync App itself so I'm hoping

  • Problem injecting ejb in war

    This problem have dogged me for one week but cant seem to know where the problem is. i am creating an enterprise with war, ejb and jar. i want both web clients and application client to share the code in ejb to ease maintainablility. i have a jsf bac

  • Access Reporting on NAC Guest (NGS) 2.0.4

    I am trying to set up access reporting on a NAC Guest server, I have enabled access logging in the admin area and also allowed the Sponsor profile to view access reports. But when actually trying to have a look at these reports I am getting nothing.

  • How did I do it?

    Hello, I took these photos last summer and edited them after importing them to my Computer. I edited them in either iPhoto or Graphic Converter. The only problem is I can't remember how I did it. Can anyone work it out and let me know? The links are

  • EUS with OVD and OID

    Has any one configured OVD 11gR1 and OID 11gR1 with DB 11gR1 for EUS? Can you share your experience in configuring these components? Thanks,