Create a button that opens a XML data file

I have a PDF form that was created in LifeCycle Designer. I want to have a button that when you click on it, it will open the "select File window" so that you can then import an XML data file to the PDF form.
You can do this option manually when you are Adobe Reader in the Form by clicking Advanced, Data, Import Data to Form.
I want to automate that by just clicking a button. Does anyone know the script to use behind the button to make this work. It's gotta be easy but I can't figure out how to bring up the "Select File Window"
Can anyone help.
Thanks
Sean

Hi Sean,
You can import an XML data file by clicking a button, with following code:
xfa.host.importData();

Similar Messages

  • Create a Button that Opens a Specific Web Link from a Dropdown Box

    Hi guys.  My main question is, how do I make a Button that opens a specific Web Link, depending on the URL selected in a Dropdown box?
    Example:
    I'm a comlpete newbie and need a code sample of how this would work!  Thanks!
    I have a couple other questions which are related to this. 
    1) Is it possible to hide the URL in the Dropdown list, and only show the Name, so for examlpe, it would only list Hotmail, Gmail, Yahoo, and not the www....com?
    2) Another more advanced question is, once the web link is opened, is it possible to have adobe input or fill-in the Login and Password fields into the website and then hit "Enter" for you.  The Username and Password would be stored somewhere in adobe and would depend on the weblink opened. So for example: When you open Hotmail, it would use the following; Username:[email protected] and Password:password1, but if you opened Gmail, it would use a different Username and Password stored for Gmail.
    3) Finally, out of curiousity, is it possible to have adobe extract data from a website, and fill them into an adobe form?  This maybe over my head, but any starting point or examples would be of great help!

    Use something like this as the button's MouseUp action:
    app.launchURL(this.getField("URL Dropdown").value));
    To answer your other questions:
    1) Yes. Place the URL as the export value of each option, and the name of the site as the display value. The code I provided can remain the same.
    2) No.
    3) Might be possible, but it's very tricky. The way to do it would be to convert the website to a PDF, process that PDF to extract the data from it, and then use that to populate the form fields. That would require quite advanced scripting knowledge, but it could be possible.

  • I need to create a button that links to another swf file...

    i'm creating my first website, and, for each menu item, i am
    creating a new flash document... is this the correct way to create
    a multi-page website?
    plus: how to create a button that links to a jpg, thanks!
    jane

    Creating separate swf's these days as far as I know is
    considered to be a better practice than using the "scenes" that are
    in Flash. The reason is you can load various sections of your
    entire Flash entity rather than the user downloading everything at
    once.
    But, it also depends on the complexity of where your menu
    items are leading. If they are simple enough, then there may be no
    need to create new documents.
    To create a button that links to a jpeg, try this.
    Whatever graphic you're using for the button, select it and
    hit F8 to convert it to a movie clip. Once it's in your library,
    click on your new movie clip on the stage and give it an instance
    name in the properties window.
    Click the first frame in your timeline (preferably on a layer
    named "actions") and put this example in for the actionscript:
    //buttonName is the instance name you gave it
    //.onPress tells Flash when buttonName is pressed then do
    what's
    //inside the brackets of the function
    buttonName.onPress = function (){
    //getURL is the Flash function that will load your
    picture.jpg
    //_blank is the target. e.g. _blank, _self etc.
    getURL("picture.jpg", "_blank");
    }

  • Hwo to create a button that opens a popup

    Hallo,
    I wanna create a button on a page (thats not the problem) that opens a popup where data from a table (two rows) is in.
    I found different documents but nothing that really solves the problem.
    Any idea and helps is really appreciated.
    Thanks and regards, Jade

    Hi Jade
    I'm not sure what documents you've looked and why they haven't helped you. To call any page as a popup, you just need to run some javascript:
    <script type="text/javascript">
    function callMyPopup () {
    var url;
    url = 'f?p=&APP_ID.:123:&APP_SESSION.';
    w = open(url,"winLov","Scrollbars=1,resizable=1,width=800,height=600");
    if (w.opener == null)
      w.opener = self;
    w.focus();
    </script>
    and you button should call the javascript function:onClick="javascript:callMyPopup();"
    I tend to put things like this in A tags on my page.
    Is there something further that you need to do with the popup report?  Do you need to set some value to filter the report and/or return a selected value from the report back to the calling page?
    Andy                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • XML Data File With Namespace

    Hi,
    I'm trying to create a template with the below xml data file. However, I'm struggling to get any of the field to show up in the report output. Does any have the same issue?
    <ns0:getCommunityPhaseMasterResponseElement xsi:type="ns0:CVO_CommunityPhaseMaster" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ns0="http://oracle.e1.bssv.JP57M011/types/">
    <ns0:e1MessageList/>
    <ns0:routingCode xsi:nil="1"/>
    <ns0:integrationErrors xsi:type="ns0:CVO_IntegrationErrorsList">
    <ns0:transmissionAck xsi:type="ns0:CVO_TransmissionAck">
    <ns0:transmissionStatus>0</ns0:transmissionStatus>
    <ns0:transmissionId xsi:nil="1"/>
    </ns0:transmissionAck>
    <ns0:transmissionHeader xsi:type="ns0:CVO_TransmissionHeader">
    <ns0:routingCode xsi:nil="1"/>
    <ns0:originatingSystem xsi:nil="1"/>
    <ns0:transmissionUser xsi:nil="1"/>
    <ns0:transmissionDate xsi:nil="1"/>
    </ns0:transmissionHeader>
    </ns0:integrationErrors>
    <ns0:communityPhaseResult xsi:type="ns0:CVO_CommunityPhaseResult">
    <ns0:warrantyBusinessUnit> 11019999</ns0:warrantyBusinessUnit>
    <ns0:statusCode1>1</ns0:statusCode1>
    <ns0:averageOtherRevenue05>0.00</ns0:averageOtherRevenue05>
    <ns0:amountUserDefinedAmount06>0.00</ns0:amountUserDefinedAmount06>
    <ns0:dateCreated>2003-01-08T00:00:00.000-08:00</ns0:dateCreated>
    <ns0:planMasterProductType_Desc>Single Family Detached </ns0:planMasterProductType_Desc>
    <ns0:numberOfStartedLots>0</ns0:numberOfStartedLots>
    <ns0:amountUserDefinedAmount03>0.00</ns0:amountUserDefinedAmount03>
    <ns0:averageCostPercent5>0.00</ns0:averageCostPercent5>
    <ns0:addressNumberCommunity12>0</ns0:addressNumberCommunity12>
    <ns0:averageOtherRevenue04>10.00</ns0:averageOtherRevenue04>
    <ns0:addressNumberSalesOffice>0</ns0:addressNumberSalesOffice>
    <ns0:averageCostPercent3>0.00</ns0:averageCostPercent3>
    <ns0:addressNumberUserReserved02>0</ns0:addressNumberUserReserved02>
    <ns0:amountUserDefinedAmount10>0.0000</ns0:amountUserDefinedAmount10>
    <ns0:addressNumberCommunity07>1000571</ns0:addressNumberCommunity07>
    <ns0:statusCode2> </ns0:statusCode2>
    <ns0:timeCreated>142446</ns0:timeCreated>
    <ns0:statusCode3> </ns0:statusCode3>
    <ns0:addressNumberCommunity10>120006</ns0:addressNumberCommunity10>
    <ns0:homeBuilderRuleTypeConstruction_Desc>Detailed Construction. </ns0:homeBuilderRuleTypeConstruction_Desc>
    <ns0:planMasterProductType>SFD</ns0:planMasterProductType>
    <ns0:addressNumberCommunity05>1000643</ns0:addressNumberCommunity05>
    <ns0:numberOfSoldLots>0</ns0:numberOfSoldLots>
    <ns0:workStationId>T60-JVL </ns0:workStationId>
    <ns0:addressNumberCommunity02>120005</ns0:addressNumberCommunity02>
    <ns0:addressNumberUserReserved03>0</ns0:addressNumberUserReserved03>
    <ns0:addressNumberCommunity14>0</ns0:addressNumberCommunity14>
    <ns0:statusCode4> </ns0:statusCode4>
    <ns0:homeBuilderRuleTypeSales>100</ns0:homeBuilderRuleTypeSales>
    <ns0:addressNumberCommunity06>1000580</ns0:addressNumberCommunity06>
    <ns0:numberOfPhases>0</ns0:numberOfPhases>
    <ns0:addressNumberCommunity17>0</ns0:addressNumberCommunity17>
    <ns0:originalWorkStationId>TP23-GLENN</ns0:originalWorkStationId>
    <ns0:userDate7 xsi:nil="1"/>
    <ns0:addressNumberCommunity13>0</ns0:addressNumberCommunity13>
    <ns0:averageOtherCost04>5000.00</ns0:averageOtherCost04>
    <ns0:addressNumberUserReserved05>0</ns0:addressNumberUserReserved05>
    <ns0:amountUserDefinedAmount02>0.00</ns0:amountUserDefinedAmount02>
    <ns0:averageOtherCost03>10000.00</ns0:averageOtherCost03>
    <ns0:addressNumberConstructionOffice>0</ns0:addressNumberConstructionOffice>
    <ns0:amountUserDefinedAmount08>0.00</ns0:amountUserDefinedAmount08>
    <ns0:createdByUser>GLENN </ns0:createdByUser>
    <ns0:community> 11010000</ns0:community>
    <ns0:planMasterProductGroup> </ns0:planMasterProductGroup>
    <ns0:amountUserDefinedAmount09>0.00</ns0:amountUserDefinedAmount09>
    <ns0:userDate6 xsi:nil="1"/>
    <ns0:addressNumberCommunity16>0</ns0:addressNumberCommunity16>
    <ns0:addressNumberCommunity04>120002</ns0:addressNumberCommunity04>
    <ns0:addressNumberCommunity15>0</ns0:addressNumberCommunity15>
    <ns0:homeBuilderArea>110</ns0:homeBuilderArea>
    <ns0:numberOfLots>52</ns0:numberOfLots>
    <ns0:constructionSequence>048</ns0:constructionSequence>
    <ns0:incomeStatementBusinessUnit> 110110</ns0:incomeStatementBusinessUnit>
    <ns0:statusCode5> </ns0:statusCode5>
    <ns0:addressNumberCommunity18>0</ns0:addressNumberCommunity18>
    <ns0:amountFuture1>0</ns0:amountFuture1>
    <ns0:amountUserDefinedAmount07>0.00</ns0:amountUserDefinedAmount07>
    <ns0:addressNumberUserReserved01>0</ns0:addressNumberUserReserved01>
    <ns0:amountFuture2>0</ns0:amountFuture2>
    <ns0:addressNumberCommunity11>0</ns0:addressNumberCommunity11>
    <ns0:amountFuture3>0</ns0:amountFuture3>
    <ns0:averageCostPercent9>0.00</ns0:averageCostPercent9>
    <ns0:userDate2 xsi:nil="1"/>
    <ns0:description001>Treybrooke Village </ns0:description001>
    <ns0:amountFuture5>0</ns0:amountFuture5>
    <ns0:homeBuilderArea_Desc>Northwood Washington Division</ns0:homeBuilderArea_Desc>
    <ns0:dateUpdated>2008-10-27T00:00:00.000-07:00</ns0:dateUpdated>
    <ns0:averageOtherCost01>30000.00</ns0:averageOtherCost01>
    <ns0:addressNumberCommunity>1000141</ns0:addressNumberCommunity>
    <ns0:userDate8 xsi:nil="1"/>
    <ns0:numberOfClosedLots>0</ns0:numberOfClosedLots>
    <ns0:userDate9 xsi:nil="1"/>
    <ns0:addressNumberCommunity03>120004</ns0:addressNumberCommunity03>
    <ns0:averageCostPercent8>0.00</ns0:averageCostPercent8>
    <ns0:phase>000</ns0:phase>
    <ns0:averageOtherCost02>15000.00</ns0:averageOtherCost02>
    <ns0:programId>EP44H101 </ns0:programId>
    <ns0:addressNumberCommunity20>0</ns0:addressNumberCommunity20>
    <ns0:updatedByUser>JOE </ns0:updatedByUser>
    <ns0:homeBuilderRuleTypeSales_Desc>JDE Builder Standard </ns0:homeBuilderRuleTypeSales_Desc>
    <ns0:numberOfFinishedLots>0</ns0:numberOfFinishedLots>
    <ns0:averageCostPercent1>10.00</ns0:averageCostPercent1>
    <ns0:amountUserDefinedAmount01>0.00</ns0:amountUserDefinedAmount01>
    <ns0:addressNumberCommunity19>0</ns0:addressNumberCommunity19>
    <ns0:averageCostPercent7>0.00</ns0:averageCostPercent7>
    <ns0:amountUserDefinedAmount05>0.00</ns0:amountUserDefinedAmount05>
    <ns0:schedulingEnabled>0</ns0:schedulingEnabled>
    <ns0:userDate1>2004-02-16T00:00:00.000-08:00</ns0:userDate1>
    <ns0:averageCostPercent6>0.00</ns0:averageCostPercent6>
    <ns0:addressNumberCommunity01>1000686</ns0:addressNumberCommunity01>
    <ns0:homeBuilderRuleTypeConstruction>400</ns0:homeBuilderRuleTypeConstruction>
    <ns0:addressNumberUserReserved04>0</ns0:addressNumberUserReserved04>
    <ns0:addressNumberCommunity08>1000678</ns0:addressNumberCommunity08>
    <ns0:addressNumberCommunity09>120003</ns0:addressNumberCommunity09>
    <ns0:averageOtherCost05>0.00</ns0:averageOtherCost05>
    <ns0:closingWorksheetTemplate>TMP - 110 </ns0:closingWorksheetTemplate>
    <ns0:averageOtherRevenue03>100.00</ns0:averageOtherRevenue03>
    <ns0:planMasterProductGroup_Desc xsi:nil="1"/>
    <ns0:timeLastUpdated>193819</ns0:timeLastUpdated>
    <ns0:userDate10 xsi:nil="1"/>
    <ns0:userDate3 xsi:nil="1"/>
    <ns0:amountFuture4>0</ns0:amountFuture4>
    <ns0:averageOtherRevenue01>10000.00</ns0:averageOtherRevenue01>
    <ns0:originalProgramId>EP44H101 </ns0:originalProgramId>
    <ns0:phaseEnablingFlag>0</ns0:phaseEnablingFlag>
    <ns0:userDate4 xsi:nil="1"/>
    <ns0:averageOtherRevenue02>1000.00</ns0:averageOtherRevenue02>
    <ns0:userDate5 xsi:nil="1"/>
    <ns0:averageCostPercent10>0.00</ns0:averageCostPercent10>
    <ns0:amountUserDefinedAmount04>0.00</ns0:amountUserDefinedAmount04>
    <ns0:averageCostPercent4>0.00</ns0:averageCostPercent4>
    <ns0:averageCostPercent2>5.00</ns0:averageCostPercent2>
    </ns0:communityPhaseResult>
    </ns0:getCommunityPhaseMasterResponseElement>

    Yes, but probably for a different reason: limit of 63 columns for a table.
    Can you simply the XML source, make it look like the millions of examples in the documentation in terms of tags/structure?

  • How to create a button that Copies subform data and paste it to a new page?

    Hi , I'm want to create a button that when clicked copys all the data from the feilds of a subform off the previous page and paste it into current page.
    I have used Steve's "Simple table.pdf example" to add a subform called DecorationDetail that has a button that adds an instance when clicked.
    Contained in the decorationdetail subform are feilds named Quantity, Description,UnitPrice etc. and a delete instance button.
    So when the first page is filled out, and a second page with blank duplicate feilds is added by a add page button. I want to be able to click a button
    positioned at the end of the row of feilds, and it then copies the same subform data from the previous coresponding page and pastes it into the current page subform feilds.
    Hope this make sense?. A step by step guide would be greatly appreciated!!!.

    Hi,
    Does this article provide you with some clues? http://www.perfectwebtutorials.com/2011/how-to-create-simple-contact-form-in-flash/
    Thanks,
    Preran

  • I need instructions on how to create a button that will email a pdf form to someone else on a websit

    I NEED ASSISTANCE CREATING A BUTTON THAT WILL EMAIL A PDF FORM FROM A WEBSITE TO WHOEVER THE VIEWER WANTS TO

    Just a bit more info. E-mail can be used, but has potential problems -- often related to the client machine that you have no control over. Use the data submissions (either FDF or XML) rather than the full PDF so you do not have to deal with Reader Rights and the related license issues. The FDF and XML data files are easily imported into the original form so that you see what the client sees. With those aspects in mind, just go ahead and try one. Be aware that you can add form fields using the form tools in the Advanced Editing tools, OR use the forms menu that will take you to Designer. You might want to try both to see the pros and cons. Be sure to keep such a test simple so you are not wasting time on your final form just for testing. I typically create a 1 page form that has all of the possible fields for such a test.

  • Need to create a button to open an URL

    Hi, everyone:
    I want to create a button that response opening a webpage. How? someone can help me?
    Thanx
    Khriz

    Hey ! Go for this , this is very easy !!
    public void actionPerformed(ActionEvent ae)
        // showContent is a button
       if( ae.getSource()==showContent)
          try
            Process process = Runtime.getRuntime().exec("start www.yahoo.com");
          catch(Exception e)
    }

  • Creating a button that will Copy my view from so I can paste it to MS Word

    Is there a way I can create a button that will copy my view from so I can paste it MS Word?
    I know I can select the entire form and copy and paste it, but is there a way to do it via a button similar to my "Print Form" button?
    Thank you.

    so there isn't a button that will copy the text my view form?
    instead of highlighting the data I want to easily copy it so I can paste it on a word document
    I came up with a script that when a item is highlighted I click the copy to clipboard and it copies the item.
    <script type="text/javascript">
    function CopyToClipboard()
    CopiedTxt = document.selection.createRange();
    CopiedTxt.execCommand("Copy");
    </script>
    but is there a way I can put in the script the area I want to start the copy from instead of highlighting the text first?
     

  • Is there a way to create a button that links to a website?

    Is there a way to create a button that links to a website?
    I was reading up that it's possible to this with menus, and tracks but can you do it with a button and how?
    I am hoping to create a button that people viewing my discs on a computer can click on the link and their web browser will pop up and take them to a website.
    Any help is appreciated.
    Thanks.
    -Fraky

    dvd@ccess questions are being asked once a week on this forum, so I'll repeat why it's useless:
    - Mac users have to enable the feature in the preferences of DVD Player in order to for the links to work.
    - PC users have to install a small application on their PC, and they have to reboot the PC in order for the links to work.
    - On top of this, it's still unreliable, and may not work on some computers.
    It's a dog: Don't use it.

  • How to create text buttons that link to video?

    I've finally gotten around to trying DVD SP, and even though I read the whole manual, it's not at all clear if, or how, you can create text buttons that link to the video you want to play, without displaying a clip of that video in the button itself.
    I have no problem creating a text button, but I can't change the font, and editing is counter-intuitive, unlike iDVD. I'd use iDVD, but it doesn't accept .m2v files, and it seems to think that my 6 videos of about 43 minutes each are too large for a DVD+DL disc, so it won't let me burn it or save it as a disc image.
    Does anyone have a way out of this conundrum, or am I SOL?
    Mulder

    It really isn't that hard!
    As Drew said, go into your menu and click and drag to create a button rectangle. With the button highlighted, look in the property inspector at the bottom and type in the text that you want to use. Ensure that you 'include in button highlight' and then set the colour choice for selected and activated.
    What you get is a simple line of text which illuminates when you roll over it, and changes colour when you click on it.
    Once that is done, click on the button area again and set the target to go to the piece of video that you want to have play back.
    You should also set the menu call and end jump on that track to make sure your viewer can get back to the menu.
    Once that is done the menu will show as a simple piece of text (more buttons means more bits of text, and the first button will be highlighted by default) and no video will play until the button is activated.
    DVDSP is definitely a steeper learning curve than iDVD but for very good reasons. You get far greater control and access to far more advanced features in DVDSP. This means that some things will seem harder, whereas in fact they are just different and the process for achieving the result you want is different. Much of what you want to know is in the manual and also in the tutorials which came with the app. Failing that there are several good online spaces where you can find a lot more information... not least of which is right here, of course!

  • Is there a way to create a button that works the same as the ImageField?

    I am trying to create a button that acts like the ImageField tool. I want to be able to click on the button and it will direct me to browse for my photo that I want to attach.
    I am using LiveCycle. (I am a nooby and have limited skills when it comes to script)
    The ImageField function is to complex of a function for the use on my IPAD (PDF Expert APP). I can create a photo button using Adobe Form Creater and it works fine with the below script:
    event.target.buttonImportIcon ();
    This is a mouseup Action Event.
    My form that has been created in LiveCycle works perfectly on my IPad, except the photos. If I can simplify the function of the photos to act more like the Adobe Form Creater tool, then perhaps it will all work together.
    Any ideas, or is this just a waste of time? I have created the form over using Adobe Form Creater, but it has some limitations that make it not function as nice as LiveCycle's form.
    Thanks

    Not in Acrobat unless your image is already in the PDF format.
    This is a feature of forms created with LiveCycle Designer.

  • Running iOS 10.6.8 on a MacBook. Suddenly Moneydance will not open my account data files. Does anyone know how I can access that information again!?

    I'm running iOS 10.6.8 on a MacBook.  Yesterday (08/15/14) a software program, Moneydance, stopped opening my account data files.  I've tried various ways of accessing them, but the software program is asking me to open an entirely new account (I only see the "Welcome" page).  I can see files in my library, but they are grayed out. I am also trying to get help from the Software manufacturer.  Could this be a software update complication?

    Contact the program developer. Unless you did something yourself, I would suspect that the program developer made some sort of change. Without knowing anything about the application, it is a guess to try to determine what happened.
    Barry

  • Acrobat 9.0 Std - How do I create a button that will show / hide the menu bar?

    In Adobe Acrobat 8, I was able to create a button that would show the menu bar using Link Properties. In version 9.0, the option I used is missing.
    The other view options are there under "Execute a menu item": View > Toolbars > File, Edit, etc.
    Any help would be greatly appreciated - thanks!

    In Adobe Acrobat 8, I was able to create a button that would show the menu bar using Link Properties. In version 9.0, the option I used is missing.
    The other view options are there under "Execute a menu item": View > Toolbars > File, Edit, etc.
    Any help would be greatly appreciated - thanks!

  • In DPS/Indesign for iPad - How can i create a button that once tapped, will pre-populate an email?

    In DPS/Indesign for iPad - How can i create a button that once tapped, will pre-populate an email? like when you tap a recipe in Marth Stewart Every Day Food for example....

    http://forums.adobe.com/message/4190932

Maybe you are looking for

  • Power factor, reactive, active and apparent power

    Good morning, I have a VI that make some math calc and give me the power factor from the system, but when I'm trying to show it in a waveform graph I have some problems. First I have to fix the scale: -1 to 1  Second that you all know if the values g

  • Async to Sync Scenario Issue

    Hi ALL, My Scenario is Sender Idoc and Receiver is SOAP (Webservices).my sender is Async but my receiver is Sync system ..My Receiver SOAP system is sending a Response acknowledgment..which i dont want to in my sender.. Every time i trigger message i

  • How to change the button's clicked color

    Dear all, How to change the button's clicked color I want it to be white in color as my button's background color is white Thanks

  • Problem with Flash Media Encoder

    We're having problems trying to use Flash Media Encoder in conjunction with an Opsrey 230 card. The device shows up in the Encoding Options panel but when we try to change any settings we get the following error "Problem with video capture device. Pl

  • Appointments one hour ahead of appointments created in iCloud - both before *and* after the shift from daylight savings time

    I am in the CET timezone and my Lumia 925 on 8.1 has consistently shown appointments one hour ahead of appointments created in iCloud - both before and after the shift from daylight savings time here. My disappointment is compounded by the fact that