As for access to the id of the component in the element of the action script converter

Hello

I enclose the screenshot and the code snippet, as a result of the screenshot, I explain my problem.

input_image.JPG

Here you can see two panels with the same data, but each Panel is to have his own dataprovider. I used for combobox itemRenderer. When the type of the parameter 'Date' is selected in one of the row of each Panel, then at that time date combobox must become visible, as I'll have different date formats in the comboxbox. I used the outerDocument to call the method in the actionscript code, but I cannot access the id of the combobox of date format. As I rolled alert to check is I am able to call the method, tht works very well. Please help me how to control the visibility(visible=true/visible=false) of the list box dropdown date format on the choice of date in the parameter type combo box. Also, I paste the snippet of code here...

< mx:Script >
<! [CDATA]
Import mx.controls.Alert;
Import mx.controls.ComboBox;
Import mx.events.CloseEvent;
TO check the status on ComboBox
public void closeHandler(event:Event):void {}
Alert.Show ('Hello');
If (SelectedIndex of the ComboBox (event.target) == 1)
Alert.Show ('parentApplication.paramType')

inputGrid.paramType.visible = true;
parentApplication.comboD.visible = true;
on the other
parentApplication.comboD.visible = false;
}
[]] >
< / mx:Script >
< mx:XMLList id = 'service' xmlns = "" >
< parameter >
< parameterName > Param - 1 < / parameterName >
< comboSlctIdx > 0 < / comboSlctIdx >
< validSlctIdx > 0 < / validSlctIdx >

< / parameter >

< parameter >
< parameterName > Param - 2 < / parameterName >
< comboSlctIdx > 0 < / comboSlctIdx >
< validSlctIdx > 0 < / validSlctIdx >
< dtSlctIdx > 0 < / dtSlctIdx >

< / parameter >
< / mx:XMLList >
< mx:XMLList id = "comboDS" xmlns = "" >
< parameter >
< label > String < / label >
< data > true < / data >
< / parameter >
< parameter >
< label > Date < / label >
< data > true < / data >
< / parameter >
< parameter >
< label > Integer < / label >
< data > true < / data >
< / parameter >
< / mx:XMLList >

< mx:XMLList id = "comboV" xmlns = "" >
< parameter >
< label > required < / label >
< data > true < / data >
< / parameter >
< parameter >
< label > not required < / label >
< data > true < / data >
< / parameter >

< / mx:XMLList >

< mx:XMLList id = "comboD" xmlns = "" >
< parameter >
< label > JJ/MM/AAAA < / label >
< data > true < / data >
< / parameter >
< parameter >
< label > JJ/MM/AAAA < / label >
< data > true < / data >
< / parameter >
< parameter >
< label > AAAA/MM/JJ < / label >
< data > true < / data >
< / parameter >
< / mx:XMLList >

< mx:XMLList id = "service1" xmlns = "" >
< parameter >
< parameterName > Param - 1 < / parameterName >
< comboSlctIdx > 0 < / comboSlctIdx >
< validSlctIdx > 0 < / validSlctIdx >
< / parameter >

< parameter >
< parameterName > Param - 2 < / parameterName >
< comboSlctIdx > 0 < / comboSlctIdx >
< validSlctIdx > 0 < / validSlctIdx >
< dtSlctIdx > 0 < / dtSlctIdx >
< / parameter >
< / mx:XMLList >

< mx:XMLList id = "comboDS1" xmlns = "" >
< parameter >
< label > String < / label >
< data > true < / data >
< / parameter >
< parameter >
< label > Date < / label >
< data > true < / data >
< / parameter >
< parameter >
< label > Integer < / label >
< data > true < / data >
< / parameter >
< / mx:XMLList >

< mx:XMLList id = "comboV1" xmlns = "" >
< parameter >
< label > required < / label >
< data > true < / data >
< / parameter >
< parameter >
< label > not required < / label >
< data > true < / data >
< / parameter >

< / mx:XMLList >

< mx:XMLList id = "comboD1" xmlns = "" >
< parameter >
< label > JJ/MM/AAAA < / label >
< data > true < / data >
< / parameter >
< parameter >
< label > JJ/MM/AAAA < / label >
< data > true < / data >
< / parameter >
< parameter >
< label > AAAA/MM/JJ < / label >
< data > true < / data >
< / parameter >
< / mx:XMLList >

< mx:DataGrid id = "inputGrid" width = "100%" dataProvider = "{services}" >
< mx:columns >
< mx:DataGridColumn headerText = "Parameter name" dataField = "parameterName" fontFamily = "Arial" letterSpacing = "1" textAlign = "center" / >
< mx:DataGridColumn headerText = "Parameter Type" fontFamily = "Arial" letterSpacing = "1" textAlign = "center" >
< mx:itemRenderer >
< mx:Component >
< mx:HBox horizontalAlign = "center" >

< mx:ComboBox id = dataProvider = "{parentApplication.comboDS"paramType"}" selectedIndex = "{data.comboSlctIdx}"close = "outerDocument.closeHandler (event);" / >

< / mx:HBox >
< / mx:Component >
< / mx:itemRenderer >
< / mx:DataGridColumn >

< mx:DataGridColumn headerText = "Validation" fontFamily = "Arial" letterSpacing = "1" textAlign = "center" >
< mx:itemRenderer >
< mx:Component >
< mx:HBox horizontalAlign = "center" >
< mx:ComboBox dataProvider = "{parentApplication.comboV}" selectedIndex = "{data.validSlctIdx}" / > "
< / mx:HBox >

< / mx:Component >
< / mx:itemRenderer >
< / mx:DataGridColumn >
< mx:DataGridColumn headerText = "" >
< mx:itemRenderer >
< mx:Component >
< mx:HBox horizontalAlign = "center" >
"< mx:ComboBox id = dataProvider =" {parentApplication.comboD "dtType"} "selectedIndex =" {data.dtSlctIdx} "visible ="false"/ >
< / mx:HBox >

< / mx:Component >
< / mx:itemRenderer >
< / mx:DataGridColumn >

< / mx:columns >
< / mx:DataGrid >

Thanxs

Gerard

follow these steps:

-the change of Manager from the drop-down list type, change a property of the row (data)

change = "{Data .selectedParamType = paramType.SelectedItem.Label.ToString () ;} ', for

-Change the visible property of the combo of date:

visible = "{Data .selectedParamType =='Date ' '} ', for"

Tags: Flex

Similar Questions

  • How to keep the audit record for access to the Internet folder?

    Referring to the following link, I like to keep the audit record for access to the file from the Internet,

    Does anyone have suggestions on the option that I can put on this record?

    Thanks in advance for your suggestions

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

    Hello

    You can follow this link & check if the problem persists:

    Monitor attempts to access and change settings on your computer

    Hope the helps of information.

  • SSL certificate for access to the administration of a WSA

    Can someone point me to a guide on how to install an ssl certificate for access to the administration of a WSA?

    Curiously, all the documents that I could find so far talk of SSL certificate for HTTPS decryption...

    Page 367 of this doc.  http://www.Cisco.com/c/dam/en/us/TD/docs/security/WSA/wsa8-0/wsa8-0-6/WSA_8-0-6_User_Guide.PDF

  • What is the best way or best practices for access to the session defined in servelt pipeline component?

    Hi Experts,

    What is the best way or best practices for access to the session defined in servelt pipeline component?

    Please, share your ideas.

    Thank you

    ankV

    As performance is concerned, a lot would depend on as to how your design & logic is implemented and you presented search operations to support the specific performance problems. In fact the operation itself can be not expensive than in-house it is somewhat like a search for key/value of the objects in session/application context name. But having said that, Yes, a potential performance problem could be because it's a synchronized operation. So to avoid searches to be performed during each request, caching the results of a search of a component. And in the majority of cases to solve a 'A' component within your component, you must configure a property reference 'A' in the file properties for your component.

  • What is the Action Script (using AS2) code when you loop once a scene and then re-read and intervention

    What is the Action Script (using AS2) code when you loop once a scene and then re-read and slaughter on a certain slice?

    Basically, you need keep a count and use it as your stop control.  In the first image, it takes something to assign the value, but you do not want to assign an initial value, so you could use...

    var County;

    if(Count == undefined) {}
    Count = 0;
    } else {}
    Count ++;
    }

    Then in the frame where you want to stop after that a loop is completed you can have...

    if(Count == 1) {}

    Stop();

    }

  • Tecra M11 has a trap door for access to the hard drive?

    Can someone tell me if the Tecra M11 is equipped with a door to provide access to the hard drive?

    Previous Tecras have such a door, but I can't say for some photos of the site Web or the M11 manual if this still applies. I need to know before ordering.

    Thanks in advance for any help.

    Hello

    I put t know what you mean exactly. hatch giving access to the disk hard but the notebooks THAT HDD is placed at the bottom of the unit.
    You can easily remove the cover that secures the HARD drive Bay to get access to the internal HARD drive

    Welcome them

  • Firewall exceptions for access to the online content for first 14 elements

    Hi Adobe community.

    First 14 elements doesn't seem to be coping very well being located behind a firewall and have access to the internet (for online content) through a proxy (configured by proxy.pac... can't change that). Anyone would be able to provide the URLs/DNS names/IP addresses of the IP ports and Protocol (TCP/UDP) that I have to allow through the firewall for first Elements have access to online content?

    Thank you and congratulations in advance

    Peter

    Hi ATR & one who reads this.

    I come to the solution by using Wireshark to analyze what happens when Premiere Elements wants to download content such as 'titles and text. As mentioned previously, seems many internet traffic resumes with success the proxy settings correct and is therefore through the proxy server.

    Managed to get the Premiere Elements to download content online by allowing the following FQDN on the Cisco corporate firewall (not for the first relevant destinations are blocked on our proxy):

    HTTP static.photoshop.com

    Hope this helps someone out there.

    See you soon,.

    Peter

  • ItemRenderer for access in the spark list

    Hello

    I have a list with itemRenderers generated dynamically depending on the types of items (as a Manager who has a kind of rendering engine and the other type of employees has other types of converters). I would like to access the itemRenderer for 'selectedItem' of the list manager, but the selectedItem(item:Object) has direct access to the data item, not its rendering engine.

    I prefer to dissociate the issue of its rendering engine as much as possible.

    Sorry if this is considered to be a station of the cross as I noticed a similar to stackoverflow post. But he doesn't seem to get all the answers so far. Thank you.

    In Flex, a data element is not directly mapped a specific converter.  It's because of virtual layout converter and recycling section.  If the data element is not in sight so it will probably not a rendering that are associated with engine and it is possible for a single data item to be pushed in the instances of the rendering engine different during its lifetime (for example when scrolling of the list).  In spark's best practice is to change the data item and design your converter to detect and react to these changes, rather than interacting directly with the instance of the rendering engine.

    Check out the spec of virtualization of spark for more information on the virtual presentation and rendering recycling: http://opensource.adobe.com/wiki/display/flexsdk/Spark+Virtualization

    If you really don't want to have access to instances of the renderer you still can, but you should be only after that you have a really good understanding of what is happening.

    Here is an example, you can use the method getElementAt() of the part of skin of the dataGroup list:

    http://ns.Adobe.com/MXML/2009.
    xmlns:s = "library://ns.adobe.com/flex/spark" creationComplete = "traceRenderers ()" > "
       
            private function traceRenderers (): void {}
    for (var i: int = 0; i< list1.datagroup.numelements;="">
    trace (List1.dataGroup.getElementAt (i));
    }
    ]]>
       

       
       
           
               
                   
    [0,1,2,3,4,5,6,7,8,9,10,11,12,13]
                   

               

           

       

  • Limit the "Record Type" options in the section search for presentation of the action bar

    Is it possible to limit the options of 'Record Type' in the 'Search' section in the disposition of the action bar for users specific role.

    Thank you!

    Mahesh, if you uncheck the box to go to step 2 of the role that you would restrict access to these types of records in the section of the application and research in the action bar.

  • After you create the action script for the creation of user Oracle DB - connector DBUM

    Hello

    After we have set up a user of IOM in the database on the target system, you must insert the same user in the RLS_USER_GROUPS table. (INSERT INTO CAMPDB. The VALUES of RLS_USER_GROUPS ('DV < user name >', RLS_DEV');  )

    The requirement is available to the user of multiple databases (different values of SID). But, the user to insert in a table to a database (DB1).

    If I write an after create a file of Action with action script, it will fire for all databases?  How to trigger this script only on the DB1 database?

    (2) in the literature, it is mentioned as below

    (Q) I installed the connector only in IOM (there is no connector server). Thus, in the 3rd and 5th stage, what should I mention

    Key code?

    Decode?

    Please suggest

    Thank you

    This query has worked well.

    INSERT INTO CAMPDB. RLS_USER_GROUPS (USERNAME, GROUPNAME) VALUES ({__NAME__}, "RLS_DEV")

  • Cannot add or to see the action scripts

    Hi all

    I'm a day try to use Flash and I ran into my first problem.  I tried to add a "stop(); action to my button but I am incapable of even after selecting an image.  See the photo and I thank her for helping another noob.

    Screen Shot 2015-11-24 at 8.25.47 AM.png

    3 you do not add the action to the button rather select it on the stage of your code snippet winfdow open AND select from there.

  • How to make a reset button and add the action script to reset all my drag drop video clips

    It's HOT need help quickly by the close of business Thursday

    Hello kglad and all, I have a problem with adding a reset button for my drag and drop video clips.

    The problem is, if a student dragging a movie clip to a wrong address on the SWF, I want them to be able to hit a reset button that would lead the SWF even they opened and what would showup a page clear to restart drag them and drop exercise.

    I know how to make a button for this want just the appropriate action script to be able for the user to start over with no symbol of clip from movie on the page.

    Seal55

    You must either code to reset everything or you can reload your current page:

    loadMoveNum(this._url,0);

  • Migrate the Action Script 1.0 to 2.0

    Hello, I am migrating a flash of 1.0 to 2.0 action script application and got the following error:
    /: w = getProperty ("' / nav ', _width");
    Please, what is the solution, thanks

    AS1 used tellTarget style access to clips and buttons. I believe that used as2 syntax to point and instead of /nav, you can simply use nav (assuming that it is the name of the instance of the object you need to access the property).

  • dynamic text - defined in the action script

    I inherited a .fla file that has a movie containing the ActionScript below (see attached code). I used the debugger to find the path of a film which is created dynamically. I used also the movie Explorer to find all the possible variables and can not find where the actual text (which is what I see in the final flash) is defined/assigned.

    Ironically, when I open the .fla with a text editor file, I see the following types of assignments scattered through, but I am not able it locate these action scripts in one of the objects in the FLA:

    ...
    {onClipEvent (load)}
    ' This.Text ="Photos of leaves.
    }
    ...
    {onClipEvent (load)}
    Photos of This.Text = "Flowers"
    }
    ...

    Anyone know how I can search the .fla to find and reassign these values? It is possible that there is a built-in object that I can't edit? Pourraient values from an external file even if I don't have a .fla and it works without error when I publish?

    Gabriel

    I found where gets assigned to the variable of text...

    Given that the text has been assigned by the parent company, I went through all the object to find that one was instantiating the film containing the code mentioned above. When I found it, I looked at the code but it have no action script annotated on the timeline. By accident I clicked on the scene (at the center of the parent object, I searched for) and I just happen to have the actionscript window open when I saw the following...

    {onClipEvent (load)}
    This.Text = "Text I was looking for"
    }

    Thank you for helping me to think about it per. I forgot that the timeline does not show an 'a' on the framework if it is a keyframe to the instantiation of an object. It's a shame that these types of actionscripts are not available!

  • coldfusion.service.Mail, how to send to the action script

    How to send mails to the action by using the coldfusion.service.Mail script, class.

    I configured my confix in MXML and then try this:

    var: mail = new Mail();
    mail. Server = conf.cfServer;
                            mail.to = " [email protected] "; "
    mail. Subject = "FX";
    mail. Content = emailText.
                            mail.from= " [email protected] "; "

    How can I send the mail?

    I've never needed to use this feature, but according to the docs, you're probably after the execute() method:

    http://help.Adobe.com/en_US/FlashPlatform/reference/ActionScript/3/ColdFusion/service/MXML /Mail.html#execute%28%29

    http://help.Adobe.com/en_US/ColdFusion/9.0/developing/WSD2AA37E2-E65E-4299-BE5B-0C8ED8B2B4 B5.html

    --

    Adam

Maybe you are looking for