Flex tree with checkbox
I'm using a tree to show a filesystem structure.
I have to let users select which "folders" select and which not inisde the tree.
I was thinking to add checkboxes to the tree labels. Is it possible?
something like this?
http://www.sephiroth.it/test/flex/3/treecheckbox/index.html
source:
http://www.sephiroth.it/file_detail.php?id=151#
Similar Messages
-
How to make a prog. Tree with Checkbox in JSF?
I am facing prob. to how to dev. prog. which contain Tree with Checkbox .
I want to use checkbox because whatever comes under any directory in Tree is selected if I select perticular folder from Tree?
Can you guide me guys ?
Ur help is needed to me.
Thanks,
Harshal JoshiI have worked whith JSF-s CheckBox components , It has a problem, when I used it with tables and Trees, so I think this components needs to develop.
enyone has other ideas about it, and knows how to do it? -
Adf Tree with checkboxes beside..
Hi All....
I have a requirement to make an application in adf (in j dev) where in i want a tree structure, beside each node in my tree,there should be 6 coloumns with checkboxes(the checked or unchecked values should get reflected in a DB table).Is it possible?and if yes,can u tell me any tutorial or a direction,as to how to proceed?
I could make a tree structure,but that doesnt serve my need.:(
Please help....
Waiting for your posts...
Thank you!!!!:)Check out SRDemo, there is an example of something similar there.
-
Tree with checkbox for each level
1. I have a tree an I want to add a check box to every node. I saw this fonctionality with Java and with a lot of programs (install with choises). I don't know if this is possible with FORMS. If not how knows a solution for this problem ?
2. My tree is based to a SELECT and I want to add a parent for my tree
and I don't know how to do it. The problem is this : the value for each node from the first level IS NULL.
Thanks
ByeI need this functionality because I have to select data's from a tree with 3 or 4 levels (like in the install software when we select to install only what we need).
There is a lot of information and it's difficult to display all of it in the screen. -
hello!
i have seen the same topic here, but i can't find it again!
can anybody help me?no, i mean a "real" tree..
or is there a possibility to show the data with spaces in front, like
aaaa
bbbb
ccccc
dddd -
How to use Flex Components with Flash?
Hi!!
I found a lot of very useful components in the web, but they are all for Flex, is it possible to use Flex Components with Flash IDE?
Thanks !!!
jenry
PS: this is one of the components I need to use (a tree with checkbox nodes)
http://www.sephiroth.it/file_detail.php?pageNum_comments=30&id=151
another one:
http://www.darronschall.com/weblog/2006/09/a-flex-2-checked-tree-control-component.cfmFlex components are delivered as SWCs just like Flash components, but the
SWC format is incompatible with the Flash IDE.
Also, the default fl.. components in the Flash IDE are incompatible with
Flex components.
You should be able to load a Flex SWF into a Flash SWF as long as you aren't
using fl.. components in the Flash SWF. If the Flex SWF overlays things
in your Flash SWF then it might block interaction, but otherwise it
shouldn't. I don't think the statement you quoted is true for all
configurations.
But loading a Flex SWF into a Flash SWF isn't going to help you use those
Flex components from your Flash IDE. Try Flash Builder 4 to build out the
Flex portion of your application. I haven't tried it myself, but it I think
it is supposed to have better integration with Flash. -
how do you dynamically populate nodes in the Flex tree with data from a database?
For example... if I have a node for Groups and a database for names of groups... how would I populate the child nodes of the Groups folder with the names of the groups in the database?alright i'll experiment. you may be able to help me understand why this isn't working though... this is the route i was going down:
i wanted to convert this mxml to actionscript and bind it to the tree (so i can add results from my dataprovider):
<mx:XMLListCollection id="treeData">
<mx:source>
<mx:XMLList>
<node label="Items">
<node label="Open"/>
<node label="In Progress"/>
</node>
</mx:XMLList>
</mx:source>
</mx:XMLListCollection>
and i was trying this code to make it bindable:
var stringData:String = '<node label="Items">' + '<node label="Open"/>' + '<node label="In Progress"/>'
+ '</node>';
var treeData= new XMLList(stringData);
but when i use actionscript to create the treeData variable... and use {treeData} as the binding data... nothing shows in my tree. -
Issue with child items of flex tree using QTP
Hi,
We are trying to automate Flex web application using QTP10.
We are facing below issue with Flex tree when we try to automate a scenario of selecting a child item displayed in flex tree.
Issue:
On recording the step of selecting an item from Flex tree using QTP, the script displayed is .Select Index1. But when we replay it back no action is being performed.
Also on object spy we are able to navigate only till flex tree and we are not able to spy child items of flex tree.On the web page the child items are displayed as radio buttons/checkboxes.
Please provide a solution for me to this problem.
ThanksHi,
You could perform a HTTP trace (using HTTP watch) and compare the OCI data in POST method for both users (the correct and incorrect ones).
Perhaps there is some additional/missing information being passed from catalog to SRM.
Kind regards,
Ricardo -
CheckBox node tree with two diferent kind of nodes
Hai ,
I need to build a check box tree with two different kind of nodes , Child and Parent nodes .
CheckBox node tree with two diferent kind of nodes.
HOw will i write the renderer and editor for this ?Study the method getTreeCellRendererComponent() of the class DefaultTreeCellRenderer.
-
ALV Tree with editable checkbox
Hi all,
I have a ALV Tree with editable checkbox (for all the parent & leaf nodes) , as one of the column.On clicking of a button in toolbar , i should get the nodes which are checked in checkbox.
But the problem is i am not able to get the nodes which are checked through checkbox in the PAI of the screen,when the button is clicked.
I tried using
CALL METHOD wf_tree->get_checked_items
IMPORTING
et_checked_items = lint_selected_node.
but the return table is not containing any entries , even if check boxes are checked in ALV tree.I tried the GET_CHECKED_ITEMS method in event handler method of AFTER_USER_COMMAND and also CHECKBOX_CHANGE , but no success.
lfs_item_layout-fieldname = 'CHECK'.
lfs_item_layout-class = cl_gui_column_tree=>item_class_checkbox.
lfs_item_layout-editable = 'X'.
lfs_item_layout-CHOSEN = 'X'.
APPEND lfs_item_layout TO lint_item_layout.
CALL METHOD wf_tree->add_node
EXPORTING
i_relat_node_key = p_lfs_final_key
i_relationship = cl_gui_column_tree=>relat_last_child
i_node_text = l_node_text
is_outtab_line = p_gfs_final
is_node_layout = lfs_node
it_item_layout = lint_item_layout
IMPORTING
e_new_node_key = p_loc_qmnum_key.
Friends ,if you can suggest something.
Thanks
Abhijeethi ,
i have written below code for registering the CHECKBOX_CHANGE event of CL_GUI_ALV_TREE.
APPEND lfs_event TO lint_events.
lfs_event-eventid = cl_gui_column_tree=>eventid_CHECKBOX_CHANGE.
APPEND lfs_event TO lint_events.
CALL METHOD wf_tree->set_registered_events
EXPORTING
events = lint_events
EXCEPTIONS
cntl_error = 1
cntl_system_error = 2
illegal_event_combination = 3.
IF sy-subrc EQ 0.
* MESSAGE X208(00) WITH 'ERROR'. "#EC NOTEXT
ENDIF.
SET HANDLER lo_event_receiver->handle_checkbox_change FOR wf_tree.
* SET HANDLER lo_event_receiver->handle_button_click FOR wf_tree.
ENDIF.
Also according to below code , i have put a break point in the event handler method of CHECKBOX_CHANGE event , so that control shall come here when check box is checked on ALV tree ...
CLASS lcl_event_receiver DEFINITION.
PUBLIC SECTION.
METHODS:
* handle_checkbox_change FOR EVENT checkbox_change OF cl_gui_alv_tree,
* importing fcode.
* handle_button_click FOR EVENT AFTER_USER_COMMAND OF cl_gui_alv_tree
* IMPORTING ucomm,
handle_CHECKBOX_CHANGE for event checkbox_change of cl_gui_alv_tree
importing CHECKED
FIELDNAME
NODE_KEY.
ENDCLASS. "lcl_event_receiver DEFINITION
* CLASS lcl_event_receiver IMPLEMENTATION
CLASS lcl_event_receiver IMPLEMENTATION.
METHOD handle_checkbox_change.
data : lint_selected_node TYPE LVC_T_CHIT.
BREAK abhijeetg.
* CHECKED
* FIELDNAME
* NODE_KEY
* case fcode.
* when 'SELALL'.
* perform select_all.
* CALL METHOD WF_TREE->GET_OUTTAB_LINE
* EXPORTING
* I_NODE_KEY =
** IMPORTING
** e_outtab_line =
** e_node_text =
** et_item_layout =
** es_node_layout =
** EXCEPTIONS
** node_not_found = 1
** others = 2
* IF SY-SUBRC <> 0.
** MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
** WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
* ENDIF.
* call method cl_gui_cfw=>dispatch.
CALL METHOD wf_tree->get_checked_items
IMPORTING
et_checked_items = lint_selected_node.
break abhijeetg.
ENDMETHOD.
ENDCLASS.
So according to you , I should get the control in the break point , but its not happening with this .. any thing missing ???
Edited by: abhijeet_7013 on Jun 21, 2011 10:31 PM -
Christmas Tree Table with checkboxes
I am using the JTable (CTTable, CTTableCellRenderer, and VisibleTableModelEvent) found at http://java.sun.com/products/jfc/tsc/articles/ChristmasTree/.
The problem that I am having is that I inserted a column with checkboxes. In that column, it shows the text value (true/false) instead of the checkbox. When I click on a cell in the column, it shows the checkbox while the mouse button is depressed. After clicking on the cell, the checkbox disappears and the value changes (example: if it was false before clicking, it becomes true after clicking).
Also, I have tried using my table with the standard JTable class and the checkboxes work correctly.Thanks Frank.
You are correct I am setting the Bind variable via client method dropped as default activity in TF.
I tried to utilize ensureVariableManager method in VOImpl and setting the Variable Value but when I try accessing the value of bind variable via get<BindVariableName>
I end up in stackOverFlow error.
Then I tried to override execute query by putting this lines before super.executeQuery();
ensureVariableManager().setVariableValue("BindVariableName", value);
but I guess this is not setting the Bind Variable too..
What am I doing wrong ?
Amit -
Displaying a jtree with checkboxes and enabling some default checkboxes
I have created a jtree displaying a list of nodes hierarchically ,and created a checkbox for each node as well.
My problem is having created the jtree with checkboxes i need to have some of the nodes in the hierarchy checked by default on first launch of the gui.To do this i read a list of treepaths from a file and would want to traverse the tree and enable the node after finding it,which is what i am having issue with.
Your solution would be appreciated as i am a newbie and having got this far, feel like i need some back up :)
Thanks & Regards
ShashiI have created a jtree displaying a list of nodes hierarchically ,and created a checkbox for each node as well.
My problem is having created the jtree with checkboxes i need to have some of the nodes in the hierarchy checked by default on first launch of the gui.To do this i read a list of treepaths from a file and would want to traverse the tree and enable the node after finding it,which is what i am having issue with.
Your solution would be appreciated as i am a newbie and having got this far, feel like i need some back up :)
Thanks & Regards
Shashi -
Populate Flex Tree from Java Code (Database)
Hi
Can someone please help me? I'm very new to using flex. I'm
basically trying to create a tree that is populated from data in my
database. I am using hibernate to fetch that data.
The plan is to basically create the tree in Java code (since
I don't want any processing done on the client PC) and then pass
this to the flex tree (or an actionscript data structure that is
compatible as the tree datasource)
I am creating the java tree using DocumentImpl. Is this
correct? What class would work?
Element e = null;
Node n = null;
Document xmldoc= new DocumentImpl();
Element root = xmldoc.createElement("USERS");quote:
Originally posted by:
ntsiii
Stop running and get a map (read the documents)
This is hardly a useful comment and must discourage new users
from asking questions. If you think the documentation relating to
the use of the tree control is straightforward then I beg to
differ.
If you are aware of a clear example of how to use the data
tree with a php backend returning a remote data object please
enlighten me. Meanwhile I continue my search but not within the
livedocs.
One site I have found that may be of use is
http://flexdiary.blogspot.com/2009/01/lazy-loading-tree-example-file-posted.html
Not everyone is an expert. -
Flex tree control expanditem dynamically..?
Hi All.,
I have using tree control using to display. when i pass the data with folder id dynamically to expanding particular child node of tree.
How to extarct tree with dynamic...?
Below sample coding.....
<mx:tree id="folderTree" />
folderid=2618;
callLater(expandTree, [folderid]);
private function expandTree(folderid: Object) : void
folderTree.expandChildrenOf(folderTree.getChildAt(0), true);
folderTree.selectedItem = folderid;
but not extracting tree.
anyone help this problem
With Regards.,
LingsThanks buddy for the answer.
Unfortunately the answer came after quite long time of posting the message. Anyway I was able to open a tree on demand using HttpService and due to my new requirement I changed it to RemoteObject.
I my latest change I am able to populate tree nodes on demand and also the same solution if getting update from server via JMS using Consumer object.
I kind a like this solution because it took me good amount of effort to find the right solution.
If any one is intersted the he/she can reply to the post and I can provide code here or may at some location so that it can be easily downloaded.
The solution is Flex-Grails combination.
Thanks everybody. -
how we can show the following data in a flex tree (without having any
label field) ?
<?xml version="1.0"?>
<rootNode>
<childNode>
< subchildNode >
<valueNode>1000</valueNode >
< valueNode >999-888-777</valueNode >
< valueNode >STORTZ</valueNode >
< valueNode >PAM STORTZ</valueNode >
< valueNode >88 ST. MORTON ROAD</valueNode>
</subchildNode>
</childNode >
</rootNode >as is - no how
wrap those xml chunk with a class having clear public properties like:
public class dataRecord {
protected var xml:XML;
function dataRecord(xml:XML) {
this.xml = xml;
public function get id ():String {
return XML(xml.descendants("valueNode")[0]).toString();
// and so on
simpliest way is to change xml structure to use attributes than wrapping that thing with AS code, it's time consuming and non efficient.
Maybe you are looking for
-
How to block a number from calling
How do I block a specific number from calling my phone? I have a 4S
-
I have vertical lines when printing even after changing cartridges.
I have vertical lines when printing even after changing cartridges. There are no lines when copying, faxing or scanning, only printing. I have cleaned the glass, scanner and even dusted where the toner cartride slides in. Any suggestions?
-
Thinking about getting a time capsule. Difficult to set up?
Thinking about getting a Time Capsule. Difficult to set up?
-
Click to Enable - How to Kill this?
I've created a flash intro, but you get the "Click to activate and use this control" alt text that comes up. Unless you click on the intro all my popup menu's do this flash thing(like they are reloading) when ever you rollover them. It sucks and both
-
How to rid ipad3 of cannot connect to itunes store
I have tried all the suggestions on the web including those on apple support but I am still unable to get rid of "cannot connect to itunes store" as a small window in the center off my ipad 3. Have changed DNS, Time and checked that I have i0S6.0.1 s