Tree Widget for Collection

99 views
Skip to first unread message

michael...@zodiac.com

unread,
Jul 24, 2014, 2:39:37 PM7/24/14
to suppor...@runmyprocess.com
Hello -

I am attempting to use the Tree widget with a collection but the API document doesn't give much detail and I can't find any tutorials or examples.

Is there any further information on this widget when used with a collection?

Or perhaps an example?

Thanks for any help.

Michael

Gareth Thiveux

unread,
Jul 28, 2014, 11:20:00 AM7/28/14
to suppor...@runmyprocess.com
Hi Michael,

I know it's not very detailled, but did you have a look at this page from the Documentation : http://docs.runmyprocess.com/User_Guide/Development_Environment/Toolbox/Web_Interfaces/Widget/Tree_Widget

You've also got the list of Tree related JS functions here : http://docs.runmyprocess.com/API_Reference/JS#tree-widget-functions

Hope it will give you some hints,
Regards,

Customer Solutions Engineer
 Fujitsu RunMyProcess
3 rue de Gramont, 75002 Paris - France

     


Fujitsu RunMyProcess user? Please add a review on GoogleApps Marketplace

Afin de contribuer au respect de l'environnement, merci de n'imprimer ce message qu'en cas de nécessité.
Be environmentally friendly: do not print this email unless it is entirely necessary.



Michael

--
Fujitsu - RunMyProcess
---
You received this message because you are subscribed to the Google Groups "RunMyProcess Support Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to supportforum...@runmyprocess.com.
To post to this group, send email to suppor...@runmyprocess.com.
Visit this group at http://groups.google.com/a/runmyprocess.com/group/supportforum/.
To view this discussion on the web visit https://groups.google.com/a/runmyprocess.com/d/msgid/supportforum/56786fbc-4f14-4b51-a6a2-1055e0c193ca%40runmyprocess.com.
For more options, visit https://groups.google.com/a/runmyprocess.com/d/optout.

Wagner, Michael

unread,
Jul 28, 2014, 11:37:21 AM7/28/14
to suppor...@runmyprocess.com
Hello Gareth -

Yes, I have read those two pages.  I wish there was some more information, like how to specify the "Children attribute" value.  I've tried everything that makes sense in that field and all I get in my trees are this:
Inline image 1

I highlighted in blue the actual contents of the first tree (collection item).

I defined the tree widget like this:
Inline image 2

I wanted the tree to expand to show the contents of the eco and ecr objects within the collection item, but I can't seem to find a way to do that.

I'd appreciate any thoughts that you may have.

Michael


You received this message because you are subscribed to a topic in the Google Groups "RunMyProcess Support Forum" group.
To unsubscribe from this topic, visit https://groups.google.com/a/runmyprocess.com/d/topic/supportforum/t71KrZUiWF4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to supportforum...@runmyprocess.com.

To post to this group, send email to suppor...@runmyprocess.com.
Visit this group at http://groups.google.com/a/runmyprocess.com/group/supportforum/.



--

MICHAEL WAGNER
PLM Systems Engineer
Zodiac Pool Systems, Inc.
2620 Commerce Way, Vista, CA 92081
michael...@zodiac.com
Ph 760-599-9600 x3087
Cell 760-473-8785

Wagner, Michael

unread,
Jul 30, 2014, 6:53:11 PM7/30/14
to suppor...@runmyprocess.com
Hello Gareth -

Do you think it would be best to wait until this widget has some documentation behind it?  I can't seem to make any progress with the existing documentation but I can keep hacking at it if the tree widget documentation is not planned.

Michael

Pray Desai

unread,
Jul 30, 2014, 8:45:11 PM7/30/14
to suppor...@runmyprocess.com
Hi Michael,

You need to have collection items in a fixed format inorder to map the parent and children labels with the tree widget attributes. You need to use same label for value and children in all records of your collection and then mention them on value and children attributes of your tree widget properties.

A freemarker script sample that adds fixed value-children format to collection :

<#assign my_object>
{"value":"node1","type":"text","children":[{"value":"Leaf1","children":[{"value":"Leaf 2"}]}]}
</#assign>
${save_object(my_object,"eco")}


Then add the attributes value and children to tree widget properties. 







If you already have collection structure ready, then you can write a javascript that reads your existing collection data and converts it into value-children format and then sets it to your tree widget. 


-- 
Regards,
Pray Desai,
Fujitsu RunMyProcess.


-----------------------------------
Reply all
Reply to author
Forward
0 new messages