Delete the file as an attachment button does not work

I have a form with a box the user can attach files. There are three buttons. To add a file to open the file to see it and the third button to delete the file that is highlighted in the drop-down list. Remove the button does not work. You see something wrong with my script?

ADD A SCRIPT FILE

MeetingMinutes.LogoControls.Attachments.Button1::click - (JavaScript, client)
myDoc = event.target var;
sFile var = "myFile" + NumericField1.rawValue;
myDoc.importDataObject ({cName: sFile});
myDataObject var = myDoc.getDataObject (sFile);

sFileName var = myDataObject.path;

ListBox1.addItem (sFileName, sFile);

NumericField1.rawValue = NumericField1.rawValue + 1;

OPEN THE SCRIPT FILE

MeetingMinutes.LogoControls.Attachments.Button2::click - (JavaScript, client)
try {}
myDoc = event.target var;
var sFile = ListBox1.rawValue;

myDoc.exportDataObject ({cName: sFile, nLaunch: 2});
}
catch (e)
{
App.Alert ("Click on the file you want to open (select)," + "\n" + 'then click on the button to open the selected file' ");
}

REMOVE THE BUTTON SCRIPT

MeetingMinutes.LogoControls.Attachments.Button3::click - (JavaScript, client)
try {}
myDoc = event.target var;
var sFile = ListBox1.getDisplayItem (ListBox1.selectedIndex);

If (sFile! == "") {}
var nResponse = xfa.host.messageBox ("you are about to delete the attached highlighted file. \n\nDo you want to continue? ', 'delete an attachment ", 1, 2);
If (nResponse == 4) {}
myDoc.removeDataObject (sFile) + ListBox1.deleteItem (ListBox1.selectedIndex) + (NumericField1.rawValue = NumericField1.rawValue - 1);
}
} else {}
xfa.host.messageBox ("no document selected. Click on the file to delete. ») ;
}
} catch (e) {}
xfa.host.messageBox ("error in deleting of document");
}

Change var sFile = ListBox1.getDisplayItem (ListBox1.selectedIndex);

TO

var sFile = ListBox1.rawValue;

Kyle

Tags: Adobe LiveCycle

Similar Questions

  • try to delete the file opm.db but it does not work?

    OK so I'm stuck with an old email on creative cloud and I'm trying to close the session and it says I have to delete opm.db but everytime I try to delete it says it can not be deleted because the file is opened to service adobe apps... I really don't understand what I need to do? Help, please!

    Masha, please close creative cloud before deleting the file opm.db: Creative Cloud Desktop application FAQ

    hope it would help.

  • The Microsoft Wireless mouse right button does not work

    The right button of the mouse on my Microsoft Wireless Mobile Mouse 4000 does not - at first I thought that it was a hardware problem, but when I used the mouse properties/control panel to change the buttons on the mouse, the right button worked and the left mouse button does not, which leads me to believe that it is related to the software/driver.
    I have the latest version of the driver/Intellipoint software.  I am running Win 7 32 bit on a Lenovo ThinkPad T410.
    Change the port USB did not help; the problem persists, no matter which USB port I use for the receiver.
    Reinstall the software Intellipoint also did not help.
    It is a recent issue; I had the mouse for several months and it has worked well upward until a few days ago.
    Googling the problem that leads me to believe that it is a common problem, although most people seem to think it's a hardware problem.

    Hello

     
    Run the Fixit described in the article:
    Troubleshoot a wireless mouse that does not correctly
     

    I also suggest you to remove the batteries in the mouse and keep it idle for 10-20 minutes. Insert the batteries and check it out.

     
    See also:
     
    Troubleshoot the incidents of the response to the mouse or wireless keyboard
    http://support.Microsoft.com/kb/838398
     
    I hope this helps.
  • Function of the file/etc/Upload of an open file of the application, using the file as a utility Explorer, does not work on my Win7 PC.

    If I run the file Explorer (open) by itself right clicking the my computer icon on the desktop, or work when I double click on the shortcut to My Documents on the desktop, all files are visible (except the system and hidden files, by default, of course). I don't think it's File Explorer itself, for reasons described. It must be an add-on, or ACCELERATOR, as it is called when this functionality is provided for other applications or the Internet Explorer browser. 10, IExplorer even the fact when I want to attach a file to an e-mail in the tab of the mail.live.com browser or dialog box that prompts for a download location and the source file. The only place where I can browse the file Explorer to display its content, is the office. I have automatic updates for all my Windows software installed on my PC, as well as for all my applications. This happened for months, and the only work around is to copy the files to the desktop, take them out there in my app/browser and then delete. It's a pain in the thigh not only because of the increased workload, but also because my OS is running on a very small SSD drive (128 GB), reserved for the windows and the user * he pours on the system drive. All this extra activity write/erase on my system drive is exhausting the ability of my SSD FLASH prematurely. All my software is installed (when installing allows) on my D: drive, but it has been so since I ran Windows 98, it is NOT the cause of the problem. Any help will be appreciated!

    Hello

    We will analyze and identify the cause of the problem.

    Method 1:

    You can run the Fixit described in the article:

    Diagnose and repair Windows files and folders problems automatically

    http://support.Microsoft.com/mats/windows_file_and_folder_diag

    Method 2:

    Safe mode


    Perform a SFC scan on your computer. Consult the following link:

    How to use the System File Checker tool to fix the system files missing or corrupted on Windows Vista or Windows 7

    http://support.Microsoft.com/kb/929833

    Hope this information helps. Response with status so that we can help you.

  • On the yellow site Rapidshare "Download" button does not work in Firefox 12. He worked in older versions and it works in Internet Explorer.

    I sent an e-mail to Rapidshare. They tested the button and it works fine. RapidShare has recommended to try a different web browser. I tried Internet Explorer and the button works fine. It's probably a problem of Firefox 12. In older versions of Firefox, I didn't have the same problem.

    No problem here on Linux.

    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".

    Start Firefox in Firefox to solve the issues in Safe Mode to check if one of the extensions or if hardware acceleration is the cause of the problem (switch to the DEFAULT theme: Firefox/tools > Modules > appearance/themes).

  • Left click the Satellite C660 Touch Pad/buttons does not work

    Hi guys!
    I own a Toshiba Satellite C660 (of course: P) anyway. Today, I was just doing what I do usually on my laptop,
    when suddenly the left button of the mouse has stopped working. (Bare with me, it's very weird to explain xD!) Also I can not 'left click' on my touch pad. I can still move the cursor with the touchpad and right click with the right button.

    I tried slightly shaking incase of crumbs, or something. Although I never eat around my laptop. It is not difficult to grow as there is something under it, it just doesn't work!

    In summary, I can't left click. But I'm able to move and made a click right, weird!

    For the moment I have my USB mouse plugged in my computer and it works fine, but it is very annoying!

    Sorry if I don't explain it too well!

    Help, please!

    On this virtual path, it is not easy to say what the problem is here. It is not easy to tell if the left touchpad button is faulty or disabled in some way.

    As a first step, you should check all the settings for the touchpad. If your laptop computer has preinstalled software check Synaptics all parameters associated with the touchpad buttons.

  • Portege R600 - backlight button does not work

    Hiya,

    The backlight on my R600 button does not work. Miss me not all drivers in Device Manager and utilities for display devices Hotkey is not a downloadable driver for Windows 7.

    Any ideas?

    Hi ldoodle,

    I m do not know what the problem is exactly because I don t have this template but usually if there is a problem with some special touches you need to reinstall Toshiba Value added Package because it controls the special functions

    You can download it from the official site of Toshiba, but I recommend to remove the old version first.

    Check this box!

  • Satellite A300-15J: touch button does not work properly from standby

    Recently I bought this laptop, works great except one problem...

    There is touchbutton for LED switching power.
    When I close or put the laptop in sleep, this button does not work like that but activates or disables the sound.

    I'm using Vista, I wonder if there is any patch or something for this problem.
    Thank you

    Andrew

    Can you please tell me if that happen after the day before, or after using the hibernation mode too?

  • Interactive navigation button does not work on a specific page

    Hey everybody

    I used interactive navigation buttons in my document.  But when I come to page 7 I can't go any further (yet there are 5 pages coming soon).  The navigation on this page button does not work.  Can someone tell me how to solve this problem?

    Thank you

    Wendy

    Hello

    As Bob, today is your lucky LOL day - I am bilingual... so let me try and answer ;-) in Dutch

    IK zou ten eerste Gebeurtenis veranderen naar: Bij Loslaten of will.

    All en in het Lagen Panel een nieuwe laag aanmaken die ridiculous laag is.

    En dan knop in die laag plaatsen.

    Hopelijk works het dan wel.

    Line,

    CARI

  • Firefox automatically updated itself, would not add new bookmarks, then deleted all mine, will not always add new, now the back button does not work. I'm Livid.

    I think I'm on Firefox 13.0. He put itself as part of the update of my computer up to date (at least I guess that's what happened, because it has changed). I noticed yesterday that he would not favorite Web sites, but I thought it was just the website or bookmarks have been full-time or something. Today, I tried to remove a few bookmarks to make more, but they would not remove. I tried to register a new site, and it wouldn't work. I tried to close/exit firefox and re-opening of the program. While the program was closed, I installed the next set of updates on my computer. When I have opened firefox, all my favorites, and the tab menu (or what you call personal small bar on the actual tabs) were gone. I can't always favorite of new sites, so I can't even re-do all my favorites (and I got a lot, all of them arranged so it's a big loss and incredibly annoying). Then I realized that the back button does not work. And the cursor remains on the typing that I symbol, it does not change the arrow, when I click on a link.

    One possible cause is a problem with the places.sqlite file that stores the bookmarks and history.

    You can also try to repair the database of places with this extension:

  • The "Send form" button does not work in Chrome or Safari PDF viewer

    I have created a PDF file and have included a button 'Submit' at the bottom of the page. When all required fields are completed, hit Submit attached the document in an e-mail message to us. The only problem is that this 'submit' function only works when you view the document in Adobe Reader.

    Given that the form located on our Web site, when the link is clicked it opens upwards by default in Safari or Chrome PDF Viewer for the browser (etc.). Unfortunately, the 'Submit' function does not work in the browser view. The fields are to be filled, but the Send button does not work.

    Suggestions?

    These browsers display PDF files using their own internal PDF plugin. You should report bugs with these plugins to their creators.

    It has nothing to do with Adobe.

  • I'm on windows 7 and I upgraded to 10.0.2 and now it does not open. I completely deleted firefox and transferred again, and it does not work. So my last attempt, I removed firefox 10 again and downloaded the beta version and once more nothing.

    I'm on windows 7 and I've upgraded to the latest version of firefox, and now it will not open. I completely deleted firefox and transferred again, and it does not work. Then, I was that he could get through my firewall, and that has not worked. So my last attempt, I removed firefox 10 again and downloaded the beta version hoping that would make it and once again, nothing. It opens at all. Please help - y at - it a live chat or a number to speak to someone at Firefox?

    -Microsoft got a big update last night for the Windows 7 and I came this morning I was wondering if the update would help my FireFox. I thought it might because a lot of things in this forum said it was a security problem and they have been updated with security updates. SHAZAM! Firefox is now the new my browser to goto. Very happy to resume. Once more I did anything this morning, but click the icon after the big windows 7 update and we're back in business. Thanks for all your help!

  • "Back" button does not work with the latest version of any help?

    Hi, I use the latest version. When I go through the pages, I can not be able to return to previous pages. The back button does not work. When I click the back button, the same page, it's not coming back... Any help would be much appreciated!

    Start Firefox in Firefox to solve the issues in Safe Mode to check if one of the extensions or if hardware acceleration is the cause of the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > appearance/themes).

    You can click right back or front button to open the history list.

    You can hold down the left button of the mouse either back or next to the history tab list opens.

    The current active entry has a bullet in front of it.



    If you place an entry in the historic session with the mouse tab, so you see an arrow to the left pointing (rear) left or right (forward) to show the direction.

    You can left click on an item to open it in the tab active or middle-click or Ctrl, click on an entry in this list to open that link in a new tab, just as you can with the other links.

  • When I click on the new tab, new tab button does NOT open.

    When I click on the new tab, new tab button does NOT open.

    Please update your browser Firefox 3.6.24 or 8 and check

  • "back" button does not work and the home page does not display on startup

    My buttons next and previous no longer work. They show just gray and I cannot click on them.
    Also my home page does not appear when I launch firefox.
    I reinstalled firefox 4 and then I went back to firefox 3.6.16 and have the same problem in both versions.
    Don't know what to do anymore
    I just found out that when I opened a second window everything works well in the second window, but it still does not work in the first window.
    The same thing happens when I close both windows. The first window of my home page does not appear and the back button does not work, but the second window is operating normally. Including my home page.

    Try:

    Start Firefox in Firefox to solve the issues in Safe Mode to check if one of the Add-ons is the cause of the problem (switch to the DEFAULT theme: Tools > Modules > appearance/themes).

    • Makes no changes on the start safe mode window.

    See:

Maybe you are looking for