How Flex tree control using click folder event pass coldfusion to get dynamiclly data?

Hi friends...

IAM using flex tree control data from the coldfusion file to display the grid. As I click on the folder in the tree to change the dynamics of the grid data.

How to pass the folderId of coldfusion file... Is this possible?... Means gives examples please...

Someone help me...

Regarding.,.

Lingu...

When you set the dataProvider for your tree control, you actually pass an array or arraycollection collection or whatever to this property. The table contains objects from your server, right? Each object must contain a property with the id of file, something like:

var arr:Array = [{id: 1, folderID: 34, name: "...}] "}, {id: 2, folderID: 4, name:"...} »},...] ;

Now, when you click on an item in your tree or your dataGrid, you can access the id of file by:

myTree.selectedItem.folderID

Hope this helps

Dany

Tags: Flex

Similar Questions

  • How can I control mouse click event (properly) in a multidimensional array?

    Hi all!

    I have a question about the use of the events of mouse clicks in a multidimensional array (or a '2D' table that we refer to them in Java and C++).

    Background

    I have an array of objects of each with a corresponding mouse click event. Each object is stored in a place between [0] [0] and [5] [8] (so a 9 x 6 grid) and has the specific column and thus associated line number (i.e. tile [2] [4] has a 2 line number and a column 4 number, even if it's on the third row, fifth column). With each click of mouse, the tile that is selected is stored in a temporary table. Table is disabled if a tile is clicked that is not a value line or column equal to, less than or more 1 with the currently targeted tile (i.e. clicking tile [1] [1] clears the table is there are no stored tiles bearing the number of row/column)

    [0] [0] [0] [1] [0] [2],

    [1] [0], [1] [1], [1] [2],

    [2] [0] [2] [1], [2] [2]

    (or any column/line contiguous with another tile stored in the array, which means that the newly selected tile must only be sharing a border with one of the tiles of the temp table but not necessarily with the last tile stored).

    Question

    What is somehow clean and tidy this programming in AS3? Here are some parts of my code (although the mouse click event is not finished/working correctly):

    service public tileClick(e:MouseEvent):void
    {
    var tile: Object = e.currentTarget;

    tileSelect.push (uint (tile.currentFrameLabel));
    selectArr.push (tile);

    If (tile.select.visible is false)
    {
    Tile.Select.Visible = true;
    }
    on the other
    {
    Tile.Select.Visible = false;
    }
    for (var i: uint = 0; i < selectArr.length; i ++)
    {
    If ((tile.rowN == selectArr [i].rowN-1) |)
    (tile.rowN == selectArr [i] .rowN).
    (tile.rowN is .rowN selectArr [i] + 1))
    {
    If ((tile.colN == selectArr [i].colN-1) |)
    (tile.colN == selectArr [i] .colN).
    (tile.colN is .colN selectArr [i] + 1))
    {
    trace ("jackpot!" + i);
    }
    }
    on the other
    {
    for (var ii:uint = 0; ii < 1; ii ++)
    {
    for (var iii:uint = 0; iii < selectArr.length; iii ++)
    {
    selectArr [iii].select.visible = false;
    }
    selectArr = [];
    trace ("Err!");
    }
    }
    }
    }

    so, no matter what tiles are clicked, you only added to selectArr?  That is to say, if someone clicks on tiles randomly contiguous or not, what they added to selectArr?  If so, let the way you have it but change contigF().

    If you want to add a tile of selectArr if selectArr is empty, and when the user click on a tile adjacent selectArr, move the push() method to run If contigF() returns true and change contigF() to:

    function contigF(tile:DisplayObject):Boolean {}

    {if(selectArr.Length==0)}

    Returns true;

    }

    for (var i: int = 0; i<>

    if(Tile!=selectArr[i]&&math.) ABS (selectArr [i] .rowN - Tile.rowN)<2&&Math.abs(selectArr[i].colN><>

    Returns true;

    }

    }

    Returns false;

    }

  • Tree control double-click the default behavior

    Hi all

    Tree control has a default behavior that expand / reduce point when the double click event occurs on the parent element.

    How can I to avoid this behavior to use double custom click event without open close nodes?

    Thank you

    concerning

    Thanks, but I found solution filtering point open / close item events as in the image.

    Concerning

  • Tree control double-click functionality

    Hi all

    I'm trying to get a tree control for operating a business structure, and I can't seem to get the Double click call node in my tags to the output shaft.   Anyone know what I do wrong?

    Thank you

    Derek

    Never changed a version before, does this work?

  • I have 7 user folders in C:\Documents and Settings and a single user account. How can I assign the right folder to my account and get rid of the others?

    Recently I got a video card break down. Repair technology installed a new and created a new Documents and Settings folder, which is now using my user account. I don't want these settings, I want the 'old'.

    Please write the command NET USER (at a command prompt) and report the output of the command.

    To find out what profile folder the user uses the command DEFINE the USER.

    To get a list of all users and their profile folders use the script VBS here: shows all the SIDS of the user with the path to copy and paste the script (in the box) to a Notepad file and then save it with a .vbs extension and run it.

    Set up your computer so that it uses an automatic connection, and when you get to the login screen just enter the user name and password of the account you want to use, and you should still be able to open a session with him.  To change the automatic logon settings type control userpasswords2 in the box run from the start menu and select (put a check mark) the option "users must enter a user name and password...". ».  If you use the 'Welcome' screen, you can press Ctrl + Alt + Delete twice to get the login screen and you can then enter the user name and password.

    To remove an unwanted user account and its associated user files use the applet in the control panel user accounts, don't forget about your actions before you delete a user account and its files, it is a one-way street and destruction will be permanent.

    John

  • Redirect control using click in a State different os the same page

    Hi all

    I want to build an application to add text. It's like when I click a button say ADDTEXT it will be op [en a popup windoew and I'll write my text and press OK button to close that.] When I close the popup, you'll see the text on my page of the editor. Now, I created two States is beginning where the ADDTEXT button located in the other State (named addText) I put all accessiories to change the text like: color change, change of font etc.

    Now I want to redirect control the text "addText" to the same momet I click the OK button. I am not able to make this change. Please help me with this.

    Thank you

    Lali.

    have you tried

    currentState="stateName";
    

    ?

  • Newbie: After I have import using FDM, what should I do to get the data in HFM?

    Hello

    Anyone know what I should do next? Y at - it an article or document that can help me?

    Thank you very much for your time!

    Hello

    I just posted a new blog entry for beginners:

    akafdmee.blogspot.com/2014/09/IM-new-to-fdmee-part-1-How-do-i-start.html

    It is for FDMEE but also valid for classical FDM.

    Basically, to load data, you will need to do the following:

    1 set your import format

    2. set your mappings

    Then run the workflow:

    1 import

    2 validate

    3 export/load

    If all goes well, data will be loaded to your target.

    I hope this helps.

  • How to control the display of the level of xml in the Tree control?

    I want to display xml nodes in the Flex tree control. for example, the XML file to display contains the nodes of level 5, level 1 (root node), level 2,..., 5 (leaf) level, but I want to only display level 1, level 2, level 3 without display of level 4, level 5 knots, anyone can tell how realize that with tree control? Thank you.

    Ward

    Custom ITreeDataDescriptor.  Probably substitute getChilden() and

    hasChildren()

  • How to get the dates of discontinuity

    If there is discontinuity in dates how we write the query...
    I need to get the dates and the dates of discontinuity.
    I / p:

    item_no first_date second_date
    1 January 1, 10 Aug 1, 10

    1-01 - 7.-10 1er January 11

    1 February 1, 11 1 July 11
    "
    "
    "
    o/p:

    1 1 January 10 01 - aug - 10

    1 02-aug-10 (first_date + 1) 31-aug-10(second_date-1) - dates of discontinuity

    1-01 - sep - 10 (second_date) 1st January 11

    1 January 2, 11 January 31, 11

    1 February 1, 11 1 July 11

    '
    '
    '
    Please let me know is possible
    SQL> select  *
      2    from  tbl
      3  /
    
            ID FIRST_DAT SECOND_DA
    ---------- --------- ---------
             1 01-JAN-10 01-AUG-10
             1 01-SEP-10 01-JAN-11
             1 01-FEB-11 01-JUL-11
    
    SQL> with t1 as (
      2              select  tbl.*,
      3                      lag(second_date) over(partition by id order by first_date) prev_second_date
      4                from  tbl
      5             ),
      6       t2 as (
      7               select  *
      8                 from  tbl
      9              union all
     10               select  id,
     11                       prev_second_date + 1,
     12                       first_date - 1
     13                 from  t1
     14                 where prev_second_date + 1 < first_date
     15             )
     16  select  *
     17    from  t2
     18    order by id,
     19             first_date
     20  /
    
            ID FIRST_DAT SECOND_DA
    ---------- --------- ---------
             1 01-JAN-10 01-AUG-10
             1 02-AUG-10 31-AUG-10
             1 01-SEP-10 01-JAN-11
             1 02-JAN-11 31-JAN-11
             1 01-FEB-11 01-JUL-11
    
    SQL>  
    

    SY.

  • How can I control the properties of tree using Cairngorm MVC?

    I'm trying a few properties of a component of the tree using properties in the control template.

    For example, I have the following properties:

    public var hierarchyTreeOpenItems:Array / * object * / = [];
    public var hierarchyTreeSelectedItems:Array / * object * / = [];
    public var hierarchyTreeFirstVisibleItem:Object;

    And I refer to them as follows:

    "" < mx:Tree xmlns:mx = ' http://www.adobe.com/2006/mxml '
    Width = "100%" height = "100%" borderStyle = "solid".
    dataProvider = "{__model.hierarchyData}" "
    firstVisibleItem = "{__model.hierarchyTreeFirstVisibleItem}" "
    openItems = "{__model.hierarchyTreeOpenItems}" "
    selectedItems = "{__model.hierarchyTreeSelectedItems}" / > "

    I'm setting these properties in a command generated by the initialization event of my Application. The openItems works, but I can't get the tree to select the specified items, or I can get it to reach the position of the firstVisibleItem.

    Any thoughts on why this is happening and how I can make it work?

    Thank you.

    I fixed it. I put the properties in a different order (openItems, then selectedItems, and then firstVisibleItem) and perform a validateNow() on the tree when one of these properties are updated.

    Seems to work...

  • How do you get the tag line in last-one click on a tree control?

    The API for tree controls is infuriatingly obtuse.

    In response to an event initiated by the tree control, I need to query the currently selected item in the tree and get his tag, so I can handle the element and its children. How this is done? I found the method of 'Set the tag', but there is no Tag «get» In fact, the only way to get the tag of any element seems to be through the 'Point to the column line' method, which takes a pair of coordinates entry component! It's confusing!

    Oh hell. Value of tree is the tag of the element currently selected. It's so easy that I never thought to look there for it, given the complexity of almost all other actions in the API.

    * sigh *.

  • How can I make multiple selections in a tree by using &lt; shift &gt; click

    I feel like I'm something obvious missing here, but I searched a bit around without solution.

    I have a tree with checkboxes (ATTR_SHOW_MARKS is enabled). I am able to select multiple items in the list (ATTR_SELECTION_MODE is VAL_SELECTION_MULTIPLE). click work to select several, but my question is, when you use click it only marks (as in the boxes of checks) on the first and last items. The others are selected but not verified.

    Is there an option I'm missing here, or I don't have to write code to manually mark? If I need to write the code, is the best way to check the State KEYPRESS if EVENT_SELECTION_CHANGE?

    Thanks in advance,

    Chris

    You can try to define ATTR_DRAGGABLE_MARKS and see if it suits your needs.

    If you really want to set the status of the brand by using , then Yes, you will need to write the code to do. You can use GetGlobalMouseState to get if the SHIFT key is down.

  • MX Tree control point events


    How do I make for each item in the tree control to have events like an event click or something like that.
    So when the user choose an item in the Tree control, I need to show a panel with additional options and the same as the other points... the click event should present different options.

    Kind regards...


    < mx:Tree id = "TreeProject".
    width = "326".
    height = "395".
    labelField="@label".
    showRoot = 'true '.
    defaultLeafIcon = "{myDefaultLeafIcon}".
    folderOpenIcon = "{myFolderOpenIcon}".
    folderClosedIcon = "{myFolderClosedIcon}" >

    < mx:dataProvider >
    < mx:XMLListCollection id = "ProjectTree" >
    < mx:XMLList >
    < record label = "Project name" >
    < record label = "Page of home" >
    < label folder = "Slide Show" / >
    < record label = "Other file" >
    < / case >
    < / case >
    < / case >
    < / mx:XMLList >
    < / mx:XMLListCollection >
    < / mx:dataProvider >
    < / mx:Tree >

    evsPeart,

    Is this something like the following for you?

  • How to force a mouse click event?

    How can I force a click event of mouse anywhere on the page?

    The application is not updated to point up what a user clicks somewhere in the Flex/Flash application. But you can apparently write a javascript function to set the focus on the player on the timing of the charges (and then use callLater()).

    Check out this thread where I got some tips: http://www.nabble.com/-flex_india:17015 - text-entry-cursor - td20828507.html

    Let me know if that helps...

    Ben Edwards

  • Click on event for datagrid checkbox control

    Greetings,

    I would like to be able to present the State of a cell in a datagrid when clicked through a HTTPService or what sound you have, but I'm having a time difficult to understand how the itemEditEnd event. Here's what I thought about so far:

    <? XML version = "1.0"? >
    "" < mx:Application xmlns:mx = ' http://www.adobe.com/2006/mxml " height ="700"width ="700">

    < mx:Script >
    <! [CDATA]

    Import mx.controls.Alert;
    Import mx.events.DataGridEvent;
    Import mx.controls.CheckBox;



    [Bindable]
    public var myDP:Array =]
    {label1: "Order #2314", contact: "John Doe", as: 3, solddate: new Date (2005, 0, 1), sent: true},
    [{label1: "Order #2315", contact: 'Jane Doe', as: 3, solddate: new Date (2005, 0, 5), sent: false}] ;

    public void EditFunction(event:DataGridEvent):void
    {
    var myCheckBox:Boolean is CheckBox (myDG.itemEditorInstance) .selected;.
    var newVal:Boolean = myCheckBox;
    Alert.Show (String (newVal));
    }

    []] >
    < / mx:Script >

    < mx:DataGrid id = "myDG" dataProvider = variableRowHeight "{merge}" = "true" width = "500" height = "250" editable = "true" itemEditEnd = "EditFunction (event); ">
    < mx:columns >
    < mx:DataGridColumn dataField = "label1" headerText = "Order #" editable = "false" / >
    < mx:DataGridColumn dataField = "as" headerText = "Quantity" itemEditor = "mx.controls.NumericStepper" editorDataField = "value" / > "
    < mx:DataGridColumn dataField = "solddate" headerText = "Date" itemRenderer = "mx.controls.DateField" rendererIsEditor = "true" editorDataField = "selectedDate" / > "
    < mx:DataGridColumn dataField = "Sent" itemRenderer = "mx.controls.CheckBox" rendererIsEditor = "true" editorDataField = "selected" / > "
    < / mx:columns >
    < / mx:DataGrid >
    < / mx:Application >

    I have a version that uses a "submit" button and cycles just through the matrix, but want to send the label1 data values and the check box when the user clicks the check box. Any ideas would be greatly appreciated!

    Figured that it based on the example of hsivaram:

    CheckRenderer.mxml
    ------------------------------------------------

    http://www.Adobe.com/2006/mxml"width ="400"height ="300">

    public var _sel:Boolean
    public var _ix:Number
    override public function set data(value:Object):void
    {
    _sel = value. Data;
    _ix value = .idx
    CX. Selected = _sel
    }
    ]]>


    Main.MXML
    -----------------------------------

    http://www.Adobe.com/2006/mxml"layout ="absolute"creationComplete =" setData () ">"

    Import mx.collections.ArrayCollection;
    Import mx.controls.Alert;

    public var arr:ArrayCollection

    public void setData (): void
    {
    ARR = new ArrayCollection()
    for (var i: int = 0; i<>
    {
    arr.addItem ({label: "image" +(i+1), data:false,idx:i})})
    }
    dg.dataProvider = arr;
    }

    public void modifyData(ix:Number,sel:Boolean):void
    {
    dg.dataProvider.getItemAt (ix) .data = salt
    Alert.Show (dg.dataProvider.getItemAt (ix) .label + ":" + dg.dataProvider.getItemAt (ix) .data);
    }
    ]]>







Maybe you are looking for

  • Problem with keyboard: some keys return two, not one, characters

    I have a MacBook Air 11 '' mid-2012 128 GB SSD model running OS X Yosemite 10.10.5 and my keyboard has developed a strange problem occultation key repeat.  Whenever you press the "3" button, the system generates thus simultaneously a '3' and '6 '.  T

  • Cropping at random Flash

    Help, all the flash videos are cropping at random. Also, when I go fullscreen, video does not fill the entire as screen it used to. I still see the black frame on all sides. It happens only on Firefox. I tried to uninstall flash and firefox and then

  • VI refuses to run when the published network shared variable is not available

    I have a VI of logging data on my PC that gathers data from several sources, including several shared variable published network hosted on an RT target. The problem I have is that the data logger VI refuses to start if the target RT is disabled and t

  • Example of 3D picture control

    Hi all I recently (like less than a month ago) came across a post from one of the engineers OR. It is an implementation of a game like asteroids 3D with a spaceship fly around and one layer of stars scrolling below. Try try try and I can't find it on

  • Where is my space Windows Client?

    Hi, I still do not understand what is the meaning of the Windows client area or where is it in the laptop? This is the Windows client area in my laptop or anywhere where I can find?Where to find it? Thanks for listening. .