Unable to create Menu Item List Buttons in Forms - Not Working!

Hi guys,
I need desperate help since I have been stuck on these for 2 days and I am unable to move forward!!
I am trying to create a pdf form using Acrobat pro 9 and Adobe LiveCycle Designer ES. Since I am new to this, I have been browsing through numerous sites, forums and tutorials to learn about this. So far, I was able to create the forum with text fields, etc.. I am trying to have a column in my pdf form where the users can simply copy & paste image icons here..I was having difficulty with this already and have done numerous searches in google. In the end, I thought I am better off trying to use the "stamp" tool for this instead of image field. So this is what I did:
1) I already placed the image icons (that the users will be copying & pasting) on my pdfs so users can simply click on it to select the image.
2) I added a new bottom to this form which has the short cut to the menu item "copy" function. I labeled this button as 'Copy' and to this button, I added the following javascript for "Mouseup":
app.execMenuItem("CopyFileToClipboard");
3) Next I created another button that I called 'paste' and this button executes the "Paste Clipboard Image as Stamp Tool" menu. This button has the following javascript:
app.execMenuItem("Annots:Tool:StampFromClipboardMenuItem");
I thought that after doing the above, the user should be able to click on one of the images in the pdf, then click on 'copy' button and in the end click on 'paste' button that will then run an action so user can stamp this copied image to where ever they want in that file. But this is not happening!! I dont why?? Nothing happens when these buttons are clicked. I have made sure that the "Extended features in Adobe Reader..." is enabled and also tried running the above javascripts on my console window to test it and i know that the actual javascript code is not at fault since these functions works when I try the code through the debugger window. But I just cannot figure out why these menu item functions are not working when the buttons I had created are clicked!!! I dont know if what I have done is correct or if there is a easier way to achieve what I am trying to do!! Its a shame there is no simpler way for the end-users to copy and paste images to the columns in the pdf forms.
please help me understand why the above button are not working....any help will be great!!

Hi Paul,
This is further to our email correspondence. I am just pasting your email response here since it may be useful to other newbies like me:
"Ok here you go ......I had to add the new row via a script object as the new objects are not completely available until the script ends so I cannot resize the new row from teh current script.
Then when we resize - we have to resize the row, the cells and the image ....we start with all existing subforms then we do it for the new row that was just added.
Lastly I see that you have a delete row button. This will have to be part of the row otherwise we ill not know which row the user will want to delete .....unless you ask them (which is not good UI design)."
I was really impressed the way you modified the script so the table height does not change when new rows are added. That did help me in understanding the methods and it will certainly be v useful to me in the future. I have been practicing and getting a hang of LS and I have actually decided to redesigned my form since it appears that trying to have a fixed table height is quite a bit of work each time a row is added, removed or changed, etc... Your advise so far have been v helpful and it has helped me in redesigned the form into a different layout. So far so good...However, I just have a few more clarifications regarding some hurdles I am facing:
PS: I have emailed you a sample of my new form now so you can have a look at it.
1) Dynamic Image fields:
In this form, I have a subform that has a dropdown list and next to this, I have an image field. I want to change the image based on the selection in the dropdown list. I found a few samples and tutorials on this already and I tried 2 different approach for this. One works and the other doesnt.
Method that works: What I have done here is, I added all the images in the form and have put their presence to invisible. Then using the javascript, I am making the image visible based on the selection in the dropdown list. I found this method somewhere through googling and it works.
Method that doesnt work: Its similar to the above, but instead of putting all the images in the form, I just inserted 1 image field and then tried to change the url of this dynamic image based on the selection in the drop down list. But this method is not working. I tried inserting this jscript and nothing happens:
switch (this.rawValue)
case "1":
myImages.value.Image.href=http://www.mysiteaddress.com/blah_blah.jpg;
break;
case "2":
myImages.value.Image.href=http://www.mysiteaddress.com/blah_blah2.jpg;
break;
The 2nd method does not work. Although I know the method 1 above works and I am currently using it, I am just curious to find out why the 2nd method is not working? Did I get the script wrong or is this feature no longer allowed? I just thought that if the second method works fine, it saves the hassle of putting all the images on the form and then making them hidden. Instead, I just need to put one image field and then dynamically change its image based on the selection. I hope this make sense..please advise..
2) Changing the background colour of the Dropdown list box:
I am trying to change the bg colour of the listbox in the dropdown list object (only the listbox bg color and not the whole background color). So, I added the following script to the mouseEnter event and this works:
var vName = this.somExpression;
var fieldObj = xfa.resolveNode(vName + ".ui.#choiceList.border.fill.color");
fieldObj.value = "255,255,225";
My Problem: The above script works so I dont need to change anything there. But, I also want to add another script to the mouseExit event to change the fill color to its default once the mouse leaves the dropdown lists. Initially, this field has no fill colour and the border fill style is none. The fill color is only added during the mouseEnter event. How do I change the bg color fill back to none during mouseExit after the above script is executed on mouseEnter?
(NOTE: If you see my form, I have used the above scripts for the dropdown list only in "boxSubform[0]".)
3) Changing the length of the Dropdown List box:
I only have about 1.6 inches workspace to add this dropdown list box. However, the length of some lists (list items) in this dropdown list box is actually longer and the remaining part is cut out. So, I added the following script to increase the dropdownlist length and it does not work the way I would have hoped...
The script I have written so far:
I added these to the mouseEnter event and it works fine -
form1.pageSubform.dynamicSubform.Table1.Row1.boxSubform[0].MyDropdown::mouseEnter - (JavaScript, client)
this.w = "2in";  //this is to to increase the width of the dropdown list
I added these to the mouseExit event and it works fine too-
form1.pageSubform.dynamicSubform.Table1.Row1.boxSubform[0].MyDropdown::mouseExit - (JavaScript, client)
this.w = "1.625in";
When I tested the form with the above script, this is what happens:
1) First when you move the mouse over this field, the width increases. Similarly the width decreased when you move away.
2) So, even if this is clicked, the list box is opened with this 2inch width so thats good.
3) There are no problems when the mouse is moved over these list items as well. However, this does not look good when the dropdown list item is clicked with its item lists open and then the mouse leaves this area. In this case, as soon as the mouse leaves this area, the mouseExit script runs and hence it makes the drop down list width to shrink eventhough the list items are still open. How do I resolve this? I was thinking about this and I thought the possible way to overcome this is by writing a javascript for the mouseExit event executing something like this:
if this dropdown list is open,
then  this.w = "2in";
else
this.w = "1.625in";
I am not sure how to write a jscript for the above?
(NOTE: If you see my form, I have used the above scripts for the dropdown list in "boxSubform[0]".)
4) Hiding the alternative row shadowing for hidden columns:
If you check out my form, you can notice that I have put the "close" button (button to delete table rows) on the left column and I have also put its presence to "Visible (screen only)". The parent table has got the 'alternative row shadow' checked. What I notice here is, when this page is printed, eventhough the first column's presence is set to "Visible (Screen Only)", it still prints the row shadow for this column and it looks bad. How can I fix this? Any help will be great!
I have already emailed you my new form again so you can have a look.
Thanks again Paul and I cant thank you enough for your help. I am sooo happy to see such a great support and resources available here since it can be a nightmare for some newbies like me... :-)

Similar Messages

  • Many Menu items on 4.1 is not working.

    Hi All,
    I have an application on 4.0.2 which has many menu items. (around 500 items with sub menus = which is a kind of conversion from other application)
    This application was running ok on ver 4.0.2 but when i installed ver 4.1 it and I run the application it hangs long time, memory usage on the server for Oracle increases up to 12 G (which is normally 1 G)
    If i hide the menu (with condition = show never) than everything works fine.
    What could be the problem? or where should i look to solve this problem?
    Kind Regards,
    Osman.

    Can you send a screenshot of the error? Or any LMS logs that can assit with troubleshooting? Are you able to ssh direct from the LMS server?
    Regards
    Stephen
    ==========================
    http://www.rConfig.com 
    A free, open source network device configuration management tool, customizable to your needs!
    - Always vote on an answer if you found it helpful

  • Submit button in form not working

    Hi I've created a pdf forms, the submit button created (formcentral) does not appear in adobe reader for ipad while works great in the pc version
    Is it something that will be fixed in a new version?

    We've implemented Forms Central submit but are awaiting an approval from Apple to release our latest version. I'm hopeful you'll see it by the end of the month.

  • Form: button - submit form - not working "Internet Email"

    I'm trying to create a form with a "Email" button. It works if i have a desktop client, it puts the attachment directly into a email client (entourage). In testing, I tried to Select Internet Mail as an option.. it came up with a "Save PDF Data as", and i saved it.. clicked ok... it didn't activate my gmail.
    I switched my system default mail client to be Gmail notifier... why doesn't this work?

    I figured it out... i had "Don't show again" checked.. i tried it from another mac. it explained.

  • My iPhone 4s calendar doesn't have an add " " button so I'm unable to create calendar items- Any idea how to fix this?

    My iPhone 4s calendar doesn’t have an add “+” button so I’m unable to create calendar items… Any idea how to fix this?

    Sounds like a hardwware problem.
    Make an appointment at an Apple Store if there is one nearby to confirm.

  • How to get all menu items list in blackberry curve phone

    Hai all
    i am new to Blackberry application developer. I done one application in blackberry in default simulaor, I changed my simulator to Blackberry 8900 simulator. The features is more in curve phones like instant messaging. So i need to get the full menu item list from the API. Do i neddd to change the API ?..  I wanted to get the list like .. camera,maps,contacts,messages,weblin,sms,instant messaging etc. Can anyone help me in this case. My intention to get all the menu items in a list.
    Thanks in Advance

    thank you for your solution.. my aim is list all the menu items in a drop down list. In the default simulator it is fetching all the menu items in the phone through API. But in curve 8900 it is not showing all the menu items, can u give me a suggestion
    like           ^
    camera
    contacts
    maps
    clock
    calendar  like this i need to display
    Message Edited by joedfranc on 05-30-2009 10:57 AM

  • Create Menu items from table data?

    Wondering if anyone knows of a way(if even possible) to create menu items on logon from table data where the menu data is stored?

    You'd have to make the menu code generic as well - probably the bet bet would be to have each menu item calling a common procedure but passing in the menu item selected - you'll then have to cross reference that with the current function of that menu item and do the right thing.

  • [ConfigFwk:390105]Unable to create WLS change list due to a short term automatic lock obtained by user null

    Hi,
    I am getting this error while trying to activate a session in OSB (clustered env with 3 nodes). I have a OSB project which listens to a JMS queue. I was able to create the project fine and was able to activate the session, no issues. But when I tried to update the queue name or delete the project itself, this error gets thrown:
    [ConfigFwk:390105]Unable to create WLS change list due to a short term automatic lock obtained by user null. The user has no pending changes and the lock will expire in 600 seconds. Please try again after the lock has expired.
    Retrying after those seconds takes me back to the same error but the time get's reset to 600 sec.
    I can change the code in that project and activate the session without any issues but if I change any configuration for proxy/business services or delete the project itself, i get this error. the only way to get around this issue is to clone the project and make changes to the cloned project. But, that is not the solution i am looking for as I don't want to keep a old version of the project and don't want to keep creating new queues everytime (since no two proxies can point to the same queue).
    Oh, and this happens only with the projects which deal with JMS queues.
    We are using OSB:
    Oracle Service Bus Version: [Oracle Service Bus 11.1 Sun Dec 18 03:49:34 PST 2011 1447174]
    Oracle Weblogic Server Version: [WebLogic Server 10.3.6.0.10 PSU Patch for BUG19637463 TUE NOV 04 15:54:42 IST 2014]
    Please help.
    Thanks,
    Mukund.

    Hi,
    I am getting this error while trying to activate a session in OSB (clustered env with 3 nodes). I have a OSB project which listens to a JMS queue. I was able to create the project fine and was able to activate the session, no issues. But when I tried to update the queue name or delete the project itself, this error gets thrown:
    [ConfigFwk:390105]Unable to create WLS change list due to a short term automatic lock obtained by user null. The user has no pending changes and the lock will expire in 600 seconds. Please try again after the lock has expired.
    Retrying after those seconds takes me back to the same error but the time get's reset to 600 sec.
    I can change the code in that project and activate the session without any issues but if I change any configuration for proxy/business services or delete the project itself, i get this error. the only way to get around this issue is to clone the project and make changes to the cloned project. But, that is not the solution i am looking for as I don't want to keep a old version of the project and don't want to keep creating new queues everytime (since no two proxies can point to the same queue).
    Oh, and this happens only with the projects which deal with JMS queues.
    We are using OSB:
    Oracle Service Bus Version: [Oracle Service Bus 11.1 Sun Dec 18 03:49:34 PST 2011 1447174]
    Oracle Weblogic Server Version: [WebLogic Server 10.3.6.0.10 PSU Patch for BUG19637463 TUE NOV 04 15:54:42 IST 2014]
    Please help.
    Thanks,
    Mukund.

  • Programatically creating Menu item

    Is It Possible to create Menu Items Programatically If Possible Then How to do it.
    Thanks in advance.

    Insert this code within a startup script:
        try{
            companyMainMenu=app.menus.item("$ID/Main").submenus.item("Company Name");
            companyMainMenu.title;
        } catch (e){
            companyMainMenu=app.menus.item("$ID/Main").submenus.add("Company Name");
        var Script1=new File(SCRIPTS_PATH+"Configure.jsx");
        var ScriptAction1=app.scriptMenuActions.add("Configure");
        var EventListener1=ScriptAction1.eventListeners.add("onInvoke",Script1,false);
        var utilesScriptMenuItem1=companyMainMenu.menuItems.add(ScriptAction1);
        var SubMenu; // First level submenu
        try{
            SubMenu=companyMainMenu.submenus.item("Submenu 1");
            SubMenu.title;
        } catch (e){
            SubMenu=companyMainMenu.submenus.add("Submenu 1");
        var submenuScript1=new File(SCRIPTS_PATH+"Action.jsx");
        var submenuScriptAction1=app.scriptMenuActions.add("Action");
        var submenuEventListener1=submenuScriptAction1.eventListeners.add("onInvoke",submenuScript1,f alse);
        var submenuScriptMenuItem1=SubMenu.menuItems.add(submenuScriptAction1);

  • Configure Firefox color when choosing menu item list

    Hi,
    At the moment, if I click on the Menu and scroll down and highlight a list from the Menu Item list, the highlighted portion has a white color and I can barely see it, is there anyway to change this.
    I got the same effect when I click on a link and then right-click on the mouse and choose item from the list,i.e. Open Link in New Tab etc.

    Dear Vanper,
    1. Make a Procedure with Following Code .
    2. Call it to When-new-form-instance.
    Following Code you can Refer.
    Declare
    rcg_grp RecordGroup;
    err_cd Number
    Begin
    Clear_list('TYPE');
    rcg_grp := Create_Group_from_query('GRpName','Select stu_name,Stu_code from Student_master order by Stu_name');
    if not id_null(rcg_grp) then
    err_cd := populate_group(rcg_grp);
    Popluate_list('TYPE',rcg_grp)
    else
    abort_query;
    end if;
    End;
    1. Instead list I will suggest to user Lov because Student exceed 10 or 20.
    Better to user Lov as compare than list Item.

  • Automatic Selected Item of List Builder Component Does not work (anymore)

    Hi all,
    Í'm working with Xcelsius Engage 2008 (version 5.3.2.0) and the automatic selection of an item at runtime of the list builder component does not work anymore. In a previous version it worked very well.
    Here's the case: at runtime I want that the list builder component automatically puts the first item in the list to the destination section and selects it, so that a graph can show the underlying pushed data. In the previous version it worked o.k., but now at runtime the destination section remains empty at startup. If I interactively select an item from the source section to the destination section and update the list builder, the data is shown correctly, but it must done automatically, which worked o.k. in an earlier version of Xcelsius 2008...
    This are my settings of the list builder component (which was running correctly earlier..):
    -at the general tab I defined a range of labels
    -at the general tab I defined 2 data column insertion series
    -at the behaviour-common tab I defined selected items: position mode; items: the first item of the label list; insert items at runtime
    -all of the data comes from an external xml data source
    You can find an example of the visualisation at: http://onderzoek2.evinet.nl/projecten/10169/dynarap.htm. You will see that at start-up there is no item visible and selected in the destination section of the list builder....
    I've tried every combinations of settings, build up the component from scratch, but its not working (anymore).
    Greetings Erik-Jan Vriens

    Hi njnits,
    Print view button is a standard component of Xcelsius: look at it in the IDE
    Exporting to Powerpoint is also a standard functionality, so yes. For this particular dashboard/report all data resides in an external xml-file which have to be accessible for Powerpoint
    All visualisations, not only the table,  in this/report fetch their data from an external xml-file, but a QaaWS-connection will also do the trick. You will have to write this dedicated service. In our case the xml-data is also generated automatically.
    The external data is best defined as a sort of matrix, consisting of approx. 100 columns by 1000 rows. I agree it takes a lot of Xcelsius but it does the job....
    Hopes this info helps....

  • How do I create an email list sign up form for my iWeb website?

    Well that's the question - how do I create an email list sign up form for my iWeb website?
    Could someone tell me what's the simplest way using iWeb to create an interactive option
    for users to enter their email address and the info be forwarded to me so I can add to an
    email list?
    It would be great if, since I'm using a Mac computer & iWeb, there was a way to have the
    submitted emails automatically added to a group in my Mac Addressbook.
    I got this MacBook Pro in Sept 2010 so I believe that's iWeb '08 I'm using.
    Anyway I'm thinking there should be a way to do this with some system involving an HTMK
    Widget and an email account.
    By the way this is for hosting through a 'real server', not MobileMe (which I plan to get later
    when I can afford it).
    Any help or suggestions would be appreciated.
    Mark

    Website forms require some code in a snippet and a formmail.php script on the server to process the form and send the info to the required email address. You can do all this when you switch to a "real" server.
    In the meantime you can use a form  or marketing service or, better still, an application like MailShoot which generates the form, handles the database and sends out the bulk emails.
    "I may receive some form of compensation, financial or otherwise, from my recommendation or link."

  • Why the buttons created by Acrobat XI in window do not work in android mobile or ipod touch?

    Why the buttons created by Acrobat XI in window do not work in android mobile or ipod touch?

    Hi,
    Could you please send us a test file which has those form buttons? Please email that file to us at DL-adobereader-android <[email protected]>
    Thanks,
    - Reader Mobile team

  • What to do now when my iPad won't turn on after I turn it off. It shows only the apple logo. I am sure it has above 70% charge as when I sync my iPad it shows necessary detail in iTunes. I have tried, HOME & POWER button, but did not work.

    What to do now when my iPad won't turn on after I turn it off. It shows only the apple logo. I am sure it has above 70% charge as when I sync my iPad it shows necessary detail in iTunes. I have tried, HOME & POWER button, but did not work.

    First try a Reset  ( No Data will be Lost )
    Press and hold the Sleep/Wake button and the Home button at the same time for at least Ten seconds... (But can take Longer)... until the Apple logo appears. Release the Buttons
    If no joy... Try a Restore...
    1: Connect the device to Your computer and open iTunes.
    2: If the device appears in iTunes, select and click Restore on the Summary pane.
    Restoring  >  http://support.apple.com/kb/HT1414
    Make sure you have the Current Version of iTunes Installed on your computer
    iTunes free download from www.itunes.com/download
    3: If Unable to Restore, try using the Steps in this article to force the device into Recovery Mode.
    Note on Recovery Mode.
    You may need to try this More than Once... Be sure to Follow ALL the Steps...
    After you have Recovered your Device...
    Re-Sync your Content or Restore from the most Recent Backup...
    Restore from Backup  >  http://support.apple.com/kb/ht1766

  • My speaker is not working properly in 4s if i use headphone its working now my volume increase decrease button is also not working properly how can i solve it pl help me my warranty finished

    my speaker is not working properly in 4s if i use headphone its working now my volume increase decrease button is also not working properly how can i solve it pl help me my warranty finished

    Hello. I sent my WRT1900AC V1 to Linksys four days ago (Monday) via UPS with a RMA. Linksys paid the shipping and everything. The router is still in route, and it should arrive to their offices tomorrow. Once they receive the WRT1900 AC V1, they are going to send me an EA8500 as a replacement. But I have been reading the comments about the EA8500 here in the forum and it seems to have the same problems. I guess the firmware is extremely flawed in both routers (maybe it is almost the same code?). Anyway, I will try the EA8500 and I hope it works. I bought a temporary router from Walmart and I paid $35 for it. It is a Belink N600 DB. I can't believe that a $35 router is working a lot, lot, lot better than my previous $250 WRT1900AC router. Unbelievable. If the EA8500 doesn't work, I'm going to try and get my money back from Linksys, or contact The Consumerist or someone to get my money back and get a Nighthawk instead.

Maybe you are looking for

  • 2nd gen shuffle seen by windows, but not by itunes on other computers

    Hi Everyone.. Im trying to help a friend out, I suspect his 2nd gen shuffle is hosed, but thought I'd confirm with others. He's had itunes and this shuffle for a while.. worked ok.  Stored it for a year or so, and now found that when we plug it into

  • After restore from Time Machine Software Upgrade is not working.....

    After I restored my complete system from Time Machine, some parts of it is not working and announcing problem to start, e.g. Software Update, My Day from Office 2008....what should I do?

  • MDM for Managing Master data for PP & QM Modules

    We have studied the various offerings of SAP MDM for Materials, Suppliers, Financials These are definitely areas where we would like to automate using MDM  and thereby improve Quality, Turn around Time and eliminate errors, redundancy etc. In these 

  • Labview 6.0 run-time engine will not control BKPrecision power supply.

    I created a test program in Labview 6.0 to control a BKPrecision power supply and Measurement computing DAQ in our test system. I am able to control both intsruments from my PC which has Labview loaded on it. I created an executable from the applicat

  • Help!...Playback delay in Logic Express 9

    I have been having problems with a delay in the tempo when playing back a recorded track. Latency is not an issue when recording and all sounds well through the monitors during track recording but when I play the recorded track back it is out of temp