fschop
Junior Member
Posts: 2
Registered: 11/25/2002
Member Is Offline
|
posted on 11/25/2002 at 09:50 PM |
|
|
Icon per item
Is it possible to put the icons in the ITEMS table, instead of the tpl table?
That way, I would be able to define a different icon for every entry.
Frank.
|
|
|
Ulukai
Member
Posts: 40
Registered: 11/27/2002
Location: Frankfurt, Germany
Member Is Offline
|
| posted on 11/27/2002 at 11:47 AM |
|
|
Iīm trying to do kind of what you seem to need.
The idea is that I have "classes" of entries or nodes and want to display different icons for those classes.
Iīll post how to do it, when I have finished working on it. At the first glance it is no problem. Only a few changes in the code.
If you need to have a new icon for each entry, thatīs no problem too.
CU
Ulukai
|
|
|
Ulukai
Member
Posts: 40
Registered: 11/27/2002
Location: Frankfurt, Germany
Member Is Offline
|
| posted on 11/27/2002 at 11:59 AM |
|
|
finished
Hi, I have finished the code changings. If you are interested, let me know, I could send you the whole code which makes it easier than to describe the
changes line per line.
CU
Ulukai
|
|
|
Ahmad
Newbie
Posts: 1
Registered: 12/7/2002
Member Is Offline
|
posted on 12/7/2002 at 05:25 AM |
|
|
icon per item
Hi Ulukai,
i would appreciate it if you can send me the modified code you have made so that the tree can dispaly different icons for every item......I will even
appreciate it more if you have the code to dynamically populate the tree from MS Access tables.
|
|
|
Ulukai
Member
Posts: 40
Registered: 11/27/2002
Location: Frankfurt, Germany
Member Is Offline
|
| posted on 12/9/2002 at 07:26 AM |
|
|
No problem, Iīll send you the code in a few hours (we have some server-problems here at the moment).
I filled the tree with a result table from a SAP BAPI. Donīt know how to fill it with MS Access tables, cause I use HtmlBusiness here for solving that
problem.
|
|
|
Xande
Junior Member
Posts: 2
Registered: 12/11/2002
Member Is Offline
|
posted on 12/11/2002 at 12:07 AM |
|
|
Hi Ulukai,
If you can also send me the code for using different icons for each entry I would appreciate a lot!!!
Thanx in advance,
Xande
|
|
|
mek
Newbie
Posts: 1
Registered: 12/12/2002
Member Is Offline
|
| posted on 12/12/2002 at 02:48 PM |
|
|
Hi, Ulukai
Why not publish it on this forum as an attached zip file?
/mek
|
|
|
Ulukai
Member
Posts: 40
Registered: 11/27/2002
Location: Frankfurt, Germany
Member Is Offline
|
| posted on 12/13/2002 at 12:41 PM |
|
|
ok, Itīll be present as a zip at this place next week.
CU
Ulukai
|
|
|
Ulukai
Member
Posts: 40
Registered: 11/27/2002
Location: Frankfurt, Germany
Member Is Offline
|
posted on 12/13/2002 at 04:43 PM |
|
|
Ok, here it is. I hope the documentation is alright; I made some changes after documenting it.
NOTE: You may not use the old tree-item table. Also, as I needed to fill the tree dynamically, thereīs no tree_items.js coming with this zip. Have a
look at the html and js files to learn how to fill the tree. (It is documented)
NOTE: Thereīs also a fastmctree.js coming with the zip. You may use this tree as a multiple-choice-tree.
When using the multiple-choice-tree, donīt put a link inside the tree-items-array but replace it by an Id.
To get the user-selection, simply call myTree.getSelection();
This will give you an array with the selected elements (The Ids you specified instead of links).
You may add extra-icons as a "suffix" for each tree-entry. They may link to different locations and may have different targets.
See the documentation for more details.
A last note: The icons, I use are directly taken from SAP HR/3. Iīm not sure about the rights to use them. Please replace them by your own.
Have fun:)
Ulukai
Attachment: export.ZIP (12.94kb)
This file has been downloaded 592 times
|
|
|
Xande
Junior Member
Posts: 2
Registered: 12/11/2002
Member Is Offline
|
posted on 12/15/2002 at 01:05 PM |
|
|
Thanx a lot!
Nice work! Another idea for a cool implementation is to have another parameter (boolean - true/false) on each node to specify if you want that node to
be open or closed by default!
Thanx again,
Xande
|
|
|