Forum Discussion
Tree are my nemesis in 2022.
TGV in Forms is not super hard to do. You use a html element that carries an empty iframe. Then use the standard Method produced by TGV but connect the TGV to the iframe instead of populating a pop-up dialog. I remember there is even some sample on Github (was a question by another user somewhere).
But no: I so far didn´t succeed to make it lightweight without the toolbar and stuff.
In general I am constantly looking for easy to use solutions to build custom trees.
The shown approach by alaxala would be perfect, if AML would return us the levels. Which lead to this unsolved question:
https://community.aras.com/f/development/37188/how-to-get-level-depth-of-items-returned-from-an-getitemrepeatconfig-aml-query
Other tree design are supported by Aras, but they all require much investigations:
https://community.aras.com/f/development/36981/tgvgrids-vs-treegridviews---what-is-the-difference-and-which-one-is-intended-to-be-used
It would be cool if we could add more custom elements in the tgv...
https://community.aras.com/f/development/5565/tree-grid-view-tgv-how-i-can-render-a-cell-as-an-icon-image
The tree I work on right now required a lot of custom elements like images, input fields, button, links, etc. . In this case I ended up using an external jquery library for rendering the tree. In my case the data was federated from another database via SQL. So in this case was able to do the level calculation with SQL. But I would be happy to know an easy way to do it without SQL. Aras TGVs calculate levels, but the used code is very inflexible in the moment.
So I hope you now have get some inspiration about trees in the Forms. I anyone knows even more variants please let me know [emoticon:6d505171faa4497c85c5ca27290c555d]
Hi Alaxala,
I had seen your attempts to post something. I even had seen your samples. But of course I closed the window in between.
I assume your post was classified as spam. The forum use very strict filters since the spam war last year ago. Unfortunately Aras doesn´t seem to actively monitor this forum anymore, so I don´t think anyone of them will help. The last time I tried to write to the Aras Labs team I was more or less ghosted.
I know that you have posted some AML query and an XSL transformation and something else that I don´t remember.
The main question for me is right now, how to make the XSL transformation inside of a Javascript function?
There is one Innovator Method for XSLT transformation, e.g.
aras.applyXsltString(res, xsl_stylesheet);
Problem: This one relies on a "Report" Item to carry the stylesheet. I don´t want to use a Report item. We maybe can store the XSL file inside of the codetree, e.g. as seen here: https://www.w3schools.com/xml/xsl_client.asp . But I don´t have much experience with XSL transformations.