Fill ComboBox with external data

I have this drop-down list box:

< mx:ComboBox change = "changeEvt (event)" x = "134" y = "48" > "
< mx:Array >
< mx:Object label = 'AM' data = 'ALL' / >
< mx:Object label = "BM" data = "CM" / >
< mx:Object label = "CM" data = "FROM" / >
< / mx:Array >
< / mx:ComboBox >

I would like to do this fill a XML file, for example I import

< empTypes >
< laborClass lc = 'AM' <>/.
< laborClass lc = 'BM' <>/.
< laborClass lc = 'CM' <>/.
< / empTypes >

.. .in an XMLList, named said "empTypes" what is the syntax I use for this insert in the comboBox? I don't know how to do so that he can enter.

M.

I changed it to filter1=event.currentTarget.selectedItem.@lc; and that the time seems to work :)

Tags: Flex

Similar Questions

  • Fill ComboBox with XML data

    I would like to fill a ComboBox with data in a simple xml file like this. It's probably quite newbie question, but I couldn't find the answer to the search in this forum and the documentation up to date.


    < root >
    option 1 < item > < / item >
    option2 < item > < / item >
    Option3 < item > < / item >
    < / root >


    I would be very grateful if someone tell me how the ComboBox control to retrieve data from XML file. Thank you!

    I found a way to do it. Here is the code I use to populate a ComboBox control with dynamically loaded XML data (the XML content is in the first post).
    I'm sorry that I have opened a topic for this fundamental question. In any case I hope that the thread is useful for someone. If you think that there is something wrong with the code below, please post a reply.



    http://www.Adobe.com/2006/mxml"creationComplete ="parseXML (); » >


    public var myXML:XML
    public var myLoader:URLLoader

    function parseXML (): void {}
    myXML = new XML();
    var XML_URL:String = 'content.xml ';
    var myXMLURL:URLRequest = new URLRequest (XML_URL);
    myLoader = new URLLoader (myXMLURL);
    myLoader.addEventListener ("complete", xmlLoaded);
    }

    function xmlLoaded(evtObj:Event):void {}
    myXML = XML (myLoader.data);
    combo.dataProvider = myXML.children ();
    }

    ]]>




  • Fill ComboBoxes with some Date Formats

    Hello, I need to show the day, month and year in three separate ComboBoxes for my project. Is it possible to combine and concentrate all ComboBoxes together?  For example, I want to get all the values for the Date of the birth of three days of combo boxes, month and year.

    Can someone help me please?

    If you want your users to select date, month and year of your 3 comboboxes?  If so, you can use the following syntax and access the properties of the 3 comboboxes selectedLabel:

    Import fl.data.DataProvider;

    import flash.events.Event;

    var month is ["jan", "feb", "mar", "Apr", '' may '', "jun", "Jul", "aug", "sep", "oct", "nov", "December"];.

    var dp:DataProvider = new DataProvider (monthA);

    monthCB.dataProvider = dp;

    var dataA:Array = [];

    setDatesF (31);

    function setDatesF(n:int):void {}

    for (var i: int = 1; i<=n; i++)="">

    dataA.push (i);

    }

    DP = new DataProvider (dataA);

    dateCB.dataProvider = dp;

    }

    var yearA:Array = [];

    for (var i: int = 1900; I)<2100; i++)="">

    yearA.push (i);

    }

    DP = new DataProvider (year);

    yearCB.dataProvider = dp;

    monthCB.addEventListener (Event.CHANGE, monthF);

    function monthF(e:Event):void {}

    var d: Date = new Date (yearCB.selectedLabel, 1 + monthA.indexOf (monthCB.selectedLabel), 0);

    setDatesF (d.date);

    }

  • Fill the InDesign document with external data?

    Hi all, I hope that I ask this question in the correct forum. I'm assuming that it is a problem of script, but if not, I apologize. Anyway - wonder if this is possible and, if so, if someone could point me in the general direction of more information:

    My company occasionally asked to produce directories of employee containing information (photos, contact information, education information, etc.) on different segments of the population closes - for example, a directory can include all women of color, we can include everyone in the Los Angeles Office, etc.. I would like to find a way to 'model' it in InDesign so that the relevant info can circulate in the external data source document - for example, database SQL of the HR or perhaps a spreadsheet generated from this database. I know that we are currently able to do something similar by using Word, but the final product looks like crap.

    I don't know what that would be even called in InDesign, so any information will be greatly appreciated. I use the CS5 version. Thank you!

    I could do this by using the data merge feature. It is similar to the functionality of fusion and mail merge in word. There is a great video of how it works here: http://www.theindesigner.com/blog/episode-43-data-merge-video

    There are more complex ways using XML or the third party plug-ins, but I would try this method first.

    Colly

  • Fill Combobox with nested XML

    Hello!
    How can I fill a ComboBox with an XML retrieved via a HTTPService?

    My XML looks like

    <? XML version = "1.0" encoding = "iso-8859-1? >
    < xml >
    < node label = value '1' = 'a' / >
    < node label = value "2" = "b" >
    < node label = "21" value = "ba" / >
    < node label = '22' value = 'bb' / >
    < node label = "23" value = "bc" / >
    < / node >
    < node label = '3' value = 'c' / >
    < node label = "4" value = "d" / >
    < node label = '5' value = 'e' / >
    < / xml >

    The output you want in the drop-down list would be

    one
    b
    -ba
    -bb
    Colombia-British
    c
    d
    e

    < mx:ComboBox id = "selectedLevel" dataProvider = labelField 'structure of {}"="label"/ >

    'structure' is an XMLListcollection, looks like my Resulthandler

    structure = new XMLListCollection (event.result.node);


    Can someone give me a hint what is missing?

    Thank you.

  • Fill combobox with multiline field

    Is it possible to get a picture of a multiline text field and put this table in a ComboBox?

    I think I should use the split() function, but I don't know how to do this.

    I'm trying to find an easy way to populate a combobox control.

    This topic shows how you can split the value of the value of a field text multiline in carriage returns: http://forums.adobe.com/thread/789976

    You can then use the field setItems method to fill the list box with items area: http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/JS_API_AcroJS.88.752.html

  • Fill ComboBox with HTTPService object

    I can't for the life of find me a good example of how call a doc by HTTPService xml, then use the data to populate a combobox control. Can someone help me with this please?

    Here's what I have so far.

    Part of the XML
    <? XML version = "1.0" encoding = "utf-8"? >
    < albumdirectory >
    < id album = details '1' = "Our trip home in 2005." >
    < title >
    Cottage 2005
    < /title >
    < safety pin = "" / > "
    < photos >
    < photo details = "" > assets/gallery/nature01_sm.jpg < / photo >
    < photo details = "" > assets/gallery/nature02_sm.jpg < / photo >
    < photo details = "" > assets/gallery/nature03_sm.jpg < / photo >
    < photo details = "" > assets/gallery/nature04_sm.jpg < / photo >
    < / photos >
    < / album >
    < / albumdirectory >

    Now, here's what I have so far for the flex code.

    < mx:HTTPService
    URL = "Assets/albums. XML ".
    ID = "albumXML".
    showBusyCursor = "true" / >

    < mx:ComboBox width = "100%" height = "8%" id = "albumBox" dataProvider = "{albumXML.lastResult.albumdirectory.album}" labelField = "title" > "

    < / mx:ComboBox >

    Any help on how I can get this fact would be great! Also good resources on "How-to" small snippets would be nice too.

    Thanks for your time

    OK sorry, it works. It was actually my xml that has been ruining things.

  • ComboBox with multiple data?

    Please bear with me, I'm sure it's very simple to answer and I'll look quite stupid, but I'm new to Flex, actually I am new to programming treat all together both me some what of a simple peasant.

    I am trying to write a small application that is able to calculate the weight of a publication. To do this, I need to let the user type in the width and height, so I can work on the total area. The application can be used by - how can I put 'non technical' good people so I need to make it easier to use, but with the possibility for users to advance more to type in exact measurements.

    To provide this functionality, for I created two digital Steppers, the width and the other for the height, I have also provided a Combobox that currently lists only A6, A5 and A4. If a user selects one of the following options, it changes the width and height of the Steppers digital values to display the correct measurements for A6, A5 or A4.

    I do this with the following code (extract):

    <? XML version = "1.0" encoding = "utf-8"? >
    "" < mx:Application xmlns:mx = ' http://www.adobe.com/2006/mxml ' layout = "absolute" >

    < mx:Script >
    <! [CDATA]
    Import mx.collections.ArrayCollection;

    [Bindable]
    public var paperSizes:ArrayCollection = new collection ArrayCollection ([{label: "A6", isoWidth:105, isoHeight:148}, {label: "A5", isoWidth:148, isoHeig, ht:210}, {label: "A4", isoWidth:210, isoHeight:297}]);

    private void closeHandler(event:Event):void
    {
    pageWidth.value = ComboBox (event.target).selectedItem.isoWidth;
    pageHeight.value = ComboBox (event.target).selectedItem.isoHeight;
    }
    []] >
    < / mx:Script >

    < mx:ComboBox x = "10" y = "10" width = "157" id = "stdPaperSizes" dataProvider = "{paperSizes}" close = "closeHandler (event); "selectedIndex ="1"/ >
    < mx:NumericStepper = "175" x = "10" width = "65" minimum maximum = "0" = "1000" stepSize = "1" value = "148" id = "pageWidth" / >
    < mx:NumericStepper = "248" x = "10" width = "65" minimum maximum = "0" = "1000" stepSize = "1" value = "210" id = "pageHeight" / >

    < / mx:Application >

    My question is that I am using the ArrayCollection for Combobox collection correctly, all of the examples I've seen have something like ArrayCollection([{label:"Value1",data:1}]), all seem to have ' data: ' but this does pass a single value, I need to pass two values, the width and height. It is the right way or is there a better way to do it? Although this works perfectly well, I can't wait to have invalid or ill-structured code.

    Thanks in advance.

    As far as I see it, I see no problem with that except for the comboBox.value property would probably return null, in this case. That, of course, in your example is unable of any consequence.

  • Problem filling tabnavigator with returned data

    I'm trying to fill a tabnavigator with data. I feel that only the first tab displays data, but each subsequent tab does not work. It seems that when you click on another tab it loses the value of 'key' past. What is the reason for this and how can I fix the value of the 'key' for all tabs?

    Thank you!


    Here is my code:

    <? XML version = "1.0" encoding = "utf-8"? >
    "" "" < cfComponents:SizeableTitleWindow xmlns:mx = ' http://www.adobe.com/2006/mxml ' xmlns = "*".
    xmlns:cfComponents = "" com.adobe.ColdFusion.Components. * ""
    xmlns:cfDataGrid = "" com.adobe.ColdFusion.Components.DataGrid. * ""
    xmlns: Model = "" com.cfgenerated.Models. * ""
    xmlns:view = "" com.cfgenerated.views.detail.Movie. * ""
    creationComplete = "initComponent () '"
    explicitMaxHeight = "{Application.application.height - 50}" "
    title = "Details".
    showCloseButton = "true".
    Close = "WindowManager.Remove (this); ">


    < mx:Metadata >
    [Event ("change")]
    < / mx:Metadata >

    < mx:Script >
    <! [CDATA]
    Import mx.utils.ObjectUtil;
    Import mx.controls.Alert;
    Import mx.core.Application;
    Import mx.validators.Validator;
    import com.adobe.windowedApplication.managers.WindowManager;
    Import mx.rpc.events.ResultEvent;
    Import mx.rpc.events.FaultEvent;
    com.cfgenerated.models import. *;

    private var _key:Object;

    public function get keys (): Object {}
    return this ._key;
    }

    public function set {key(key:Object):void}
    This ._key = key;
    getItem();
    }

    private function initComponent (): void {}
    this.detailObject = new MovieDetailstblMovies();
    }

    /*
    Calls to the remote and managers call back Server
    */
    Gets an instance of the server item
    public function getItem (): void {}
    If (this ._key! = null) {}
    this.dataManager.getById (this._key);
    }
    else {}
    the key is null, then we create a new object for the operation 'Add '.
    this.detailObject = new MovieDetailstblMovies();
    }
    }

    private void saveItem(item:Object):void {}
    this.dataManager.save (item);
    }

    private void get_result(event:ResultEvent):void {}
    detail of the var: MovieDetailstblMovies = event.result as MovieDetailstblMovies;
    this.detailObject = details;
    }

    []] >
    < / mx:Script >

    < mx:RemoteObject id = "dataManager" showBusyCursor = "true" destination = "ColdFusion".
    source = "MyTest.Components.cfgenerated.MovieDetails.tblMoviesGateway" > "
    < name mx:method = "getById" result = "get_result (event)" / >
    < / mx:RemoteObject >

    <!-create a template using the AS value object class. With this the model mxml version, we can bind the form fields in the object. ->
    < model: MovieDetailstblMovies id = "detailObject" >
    < model: title > {tblMovies_title.text as String} < / template: title >
    < description: model > {tblMovies_description.text as String} < / model: description >
    < model: features > {tblMovies_features.text as String} < / model: features >
    < / template: MovieDetailstblMovies >

    < mx:TabNavigator width = '675' height = '408' >
    < mx:Canvas label = "Tab1" width = "100%" height = "100%" >
    < mx:Label text = "Title" x = "10" y = "10" / >
    < cfComponents:TextInputMask id = text = "{this.detailObject.title"tblMovies_title"}" width = "220" y = "36" x = "10" / > "
    < / mx:Canvas >
    < mx:Canvas label = "Tab2" width = "100%" height = "100%" >
    < cfComponents:TextInputMask id = text = "{this.detailObject.description"tblMovies_description"}" width = "351" height = "138" x = "10" y = "36" / > "
    < mx:Label x = "10" y = "10" text = "Description" / >
    < / mx:Canvas >
    < mx:Canvas label = "Tab 3" width = "100%" height = "100%" >
    < mx:Label text = 'Bonus' x = "10" y = "10" / >
    < cfComponents:TextInputMask id = "tblMovies_features" text = "{this.detailObject.features}" width = "291" height = "218" x = "10" y = "36" / > "
    < / mx:Canvas >
    < / mx:TabNavigator >

    < / cfComponents:SizeableTitleWindow >

    By default the TabNavigator only creates the contents of the first child. Try adding creationPolicy = "all" to the tag TabNavigator.

  • Fill ComboBox with an HTTPService object

    Hello
    I don'understant why it is not possible to get the Periodname of data field in my comboBox.
    Here is the XML returned by a php script

    < time >
    < period >
    HS summer < Periodname > < / Periodname >
    < debutPeriode > 2006 - 06 - 15 < / debutPeriode >
    < finPeriode > 2006 - 09 - 15 < / finPeriode >
    < / period >
    < period >
    < Periodname > fall < / Periodname >
    < debutPeriode > 2006 - 09 - 15 < / debutPeriode >
    < finPeriode > 2006 - 11 - 21 < / finPeriode >
    < / period >
    < / periods >

    and in my mxml file
    < mx:ComboBox = "183" x = "10" width = "120" id = "Cperiode" dataProvider = "{resperiode.lastResult.periodes.periode.nomPeriode}" > < / mx:ComboBox >

    I have this error:
    Error: Unknown property: 'Periodname '.

    If I remove Periodname I have a list of object in my combo.
    How can I get Periodname in the drop-down list?
    Sorry for my English
    Thank you for your answer

    Try changing the dataProvider and adding the labelField like this:

    The default value of comboBox for the labelField is "label", tell him that you use a different value, Periodname.

    Vygo

  • Working with external data

    My goal is to read data from a text file, say params.txt, manipulate and display the results. Sounds very simple, but the straightforwad code below does not work. Help, please.

    In my urlloader.as file I have a class called urlloader in which there is a called dataArray public array variable. I also have the statement trace: trace (dataArray [1].)

    On my stage (.fla), I have a dynamic text named mainText object. In part 1, I have the following action script:
    var loader: urlloader = new urlloader()
    loader.dataLoader)
    mainText.text = loader.dataArray [1]

    The dataArray [1] appears in the trace State, but it does not appear on stage, mainText. Why?
    Here is my script urlloader.as:
    package
    {
    import flash.display.Sprite;
    import flash.events. *;
    import flash.net.URLLoader;
    import flash.net.URLLoaderDataFormat;
    import flash.net.URLRequest;
    to import flash.net.URLVariables;
    public class urlloader extends Sprite
    {
    public var dataArray:Array
    public void dataLoader()
    {
    var request: URLRequest = new URLRequest ("params.txt");
    variable var: URLLoader = new URLLoader();
    variables.dataFormat = pouvez;
    variables.addEventListener (Event.COMPLETE, completeHandler);
    Try
    {
    variables. Load (request);
    }
    catch (error: error)
    {
    trace ("unable to load URL:" + error);
    }
    }
    private void completeHandler(event:Event):void
    {
    var loader: URLLoader = URLLoader (event.target);
    var variables: URLVariables = new URLVariables (loader.data);
    dataArray = variables.dayNames.split(",");
    trace(dataArray[1]);
    }
    }
    }

    package
    {
    import flash.display.Sprite;
    import flash.events. *;
    import flash.net.URLLoader;
    import flash.net.URLLoaderDataFormat;
    import flash.net.URLRequest;
    to import flash.net.URLVariables;
    public class urlloader extends Sprite
    {
    public var dataArray:Array
    public void dataLoader()
    {
    var request: URLRequest = new URLRequest ("params.txt");
    variable var: URLLoader = new URLLoader();
    variables.dataFormat = pouvez;
    variables.addEventListener (Event.COMPLETE, completeHandler);
    Try
    {
    variables. Load (request);
    }
    catch (error: error)
    {
    trace ("unable to load URL:" + error);
    }
    }
    private void completeHandler(event:Event):void
    {
    var loader: URLLoader = URLLoader (event.target);
    var variables: URLVariables = new URLVariables (loader.data);
    dataArray = variables.dayNames.split(",");
    dispatchEvent (new Event ("loadComplete"));
    trace(dataArray[1]);
    }
    }
    }

    in your fla

    var loader: urlloader = new urlloader()
    loader.dataLoader)
    loader.addEventListener ("loadComplete", f);

    function f (e: Event) {}
    mainText.text = loader.dataArray [1];
    }

  • [Explanation necessary] Clears the listview data and fill it again with new data

    Hello

    I correctly filled a listview in c ++, data analysed and does interesting things with it. However, I am drunk stumbling, unable to find a way delete and repopulate my display of the list...

    Question 1:

     

    1. How can after I insert data in the list view, I clear the list data and run again the same method (init) who populated the list view with the data in the first place?

    Here are the docs that I referenced and I don't understand how to implement the methods in my code.

    QList - clear() method

    https://developer.BlackBerry.com/Cascades/reference/QList.html#clear

    Using the data access Code, example
                              
    data_access/using_data_source

    GroupDataModel - Clear()

    https://developer.BlackBerry.com/Cascades/reference/bb__cascades__groupdatamodel.html#clear

    CODE

    Here is my code - filling of the display of the list of C++ and display of data in a ListView.

    MyApp.cpp

    MyApp::MyApp(bb::cascades::Application *app)
    : QObject(app){
        // create scene document from main.qml asset
            // set parent to created document to ensure it exists for the whole application lifetime
            QmlDocument *qml = QmlDocument::create("asset:///main.qml").parent(this);
    
                AbstractPane *root = qml->createRootObject();
                qml->setContextProperty("yoyo",this);
                //grab references
                list_view = root->findChild("listView");
    
                // set created root object as a scene
                app->setScene(root);
    
                mNetworkAccessManager = new QNetworkAccessManager(this);
                bool result = connect(mNetworkAccessManager, SIGNAL(finished(QNetworkReply*)), this, SLOT(requestFinished(QNetworkReply*)));
    
                 Q_ASSERT(result);
                 Q_UNUSED(result);                 json = new QFile("data/file.json");
    }
    
    void MyApp::init(){
        QNetworkRequest request = QNetworkRequest();
         // i call some service here
         mNetworkAccessManager->get(request);
    }
    
    void MyApp::requestFinished(QNetworkReply *reply){
        qDebug() << reply->error();
        qDebug() << reply->errorString();
        if (reply->error() == QNetworkReply::NoError) {
            qDebug() << "No error";
    
                    QByteArray data = reply->readAll();
    
                    if (!json->open(QIODevice::ReadWrite)) {
                        qDebug() << "Failed to open file";
                        return;
                    }
                    json->write(data);
    
            bb::data::JsonDataAccess jda;
            QVariantMap results = jda.loadFromBuffer(data).toMap();
                    QVariantList lst = jda.loadFromBuffer(data).toList();
                GroupDataModel *m = new GroupDataModel();
                       m->insertList(lst);
                       m->setGrouping(ItemGrouping::None);
                       if(list_view) list_view->setDataModel(m);
    
        }else{
            showDialog("Boo",reply->errorString());
        }
    }
    

    MyApp.hpp

    // Tabbed pane project template
    #ifndef MyApp_HPP_
    #define MyApp_HPP_
    
    #include 
    #include 
    #include 
    #include 
    #include 
    #include 
    
    namespace bb {
    namespace cascades {
    class Application;
    }
    }
    namespace bb {
    namespace data {
    class Application;
    }
    }
    
    /*!
     * @brief Application pane object
     *
     *Use this object to create and init app UI, to create context objects, to register the new meta types etc.
     */
    class MyApp: public QObject {
    Q_OBJECT
    public:
        MyApp(bb::cascades::Application *app);
        virtual ~MyApp() {
        }
        Q_INVOKABLE
        void init();
    private slots:
        void requestFinished(QNetworkReply *reply);
    private:
        QNetworkAccessManager *mNetworkAccessManager;
        QNetworkRequest *request;
        QFile *json;
        bb::cascades::ListView *list_view;
    };
    
    #endif /* MyApp_HPP_ */
    

    hand. QML

    import bb.cascades 1.0
    
    Page{
    Container {
                            background: Color.White
                            ListView {
                                id: listView
                                preferredHeight: maxHeight
                                objectName: "listView"
                                listItemComponents: [
                                    ListItemComponent {
                                        type: "item"
                                        Container {
                                            Container {
                                                Label {
                                                    text: ListItemData.id
                                                }
                                            }
    
                                        }
                                    }
                                ]
                                onTriggered: {
                                    console.log("selected_index: " + indexPath)
                                }
                                horizontalAlignment: HorizontalAlignment.Center
                                verticalAlignment: VerticalAlignment.Center
                            }
    
    }
    }
    

    Question 2:

    How reference to the ListView object with the name "listView" in different parts of the MyApp.cpp file? Is there anything else I should add to the header file to make the accessible listView?

    Question 3:

    What happens when you call the clear() method? How the data model is affected? How the user interface is affected? What happens in memory?

    Question 4:

    How do you verify that the data in the list has been deleted so that you can go ahead and fills again with new data? What is the cheque that I perform?

    I would also like to know how you manage multiple views of lists and data sources in your applications. Best practices or ideas?

    Thank you

    I was able to clear the listview with the following code, if anyone is interested.

    listView.dataModel = null
    

    The dataModel must be set to "null".

  • It is no longer possible to fill in the field "year" (Dutch: "jaar" with a date "1600" or an earlier version.)

    I used to fill in the field "jaar" with the date of origin of a piece of classical music. Many years before 1600 original parts. I spent many hours to fill the years because I have som 35000 tracks in my library. 2015 they was tgo is no longer possible to fill a date prior to 1600. Even worse: all already filled dates are missing.

    I ask reinstall the opportunity.

    lvhout wrote:

    I used to fill in the field "jaar" with the date of origin of a piece of classical music. Many years before 1600 original parts. I spent many hours to fill the years because I have som 35000 tracks in my library. 2015 they was tgo is no longer possible to fill a date prior to 1600. Even worse: all already filled dates are missing.

    I ask reinstall the opportunity.

    Lvhout,

    You seem to be the first person to notice him, but I just tried with iTunes 12.3.2 and found the same problem.

    You can send comments directly to Apple at this link:

    http://www.Apple.com/feedback/itunesapp.html

  • How to fill a field of date with today's date when the signature field is signed?

    How to fill a field of date with today's date when the signature field is signed? In the LCD, I insert a signature field and a date field, what parameters in these two fields are necessary to make this work? Is the date field, the value calculated? I tried different JS suggestions I found, but none work. In the form, I named the signature ClaimSignature field and the date in the ClaimSigDate field.

    The thought of her with a little help. In the script editor window, I selected the postSign event and added the following JS:

    Form1.Page1.ClaimSignature::postSign - (JavaScript, client)

    var date = new Date();

    var day = date.getDate ();

    var month = date.getMonth () + 1;

    var monthstring = (month, 10?) ('0' + month: month)

    year var = date.getFullYear ();

    var = year DateString + '-' + monthString + '-' + (day< 10="" "0"="" +="" day="" :="">

    ClsimSigDate.rawValue = dateString;

    I hope this helps someone else save time.

  • Do I need to use javascript to get a text field in a PDF Tue Fill form with / date of the current day?

    I have a form for booking appointments, and here the date field to fill automatically with

    today's date and print it. I put in the format of the text field 'Date' and when I place the cursor in the

    today's date date field, poster. It disappears as soon as I tab to the next field.

    This action does need a javascript script to fill and print today's date? If Yes, where can I find that?

    Or y at - it another way to fit the text field (not counting as the current date by typing) to get the current date?

    Thank you.

    Ali

    using iMac 2.93 GHz Intel Core 2 Duo 8 GB | OS Snow Leopard 10.6.8 | Acrobat 8 Pro

    See example Acrobat JavaScript by Chris Dahl. The script can be an action script open document level or page to insert the date when the PDF file is open or use as a print action to fill the date just before printing the form. And the formatting of the field is 'None' because JavaScript applies the formatting.

Maybe you are looking for