Is there a lightweight way to display Tree-Grid-Data in Forms?

Hi community,

I am playing around with displaying some data structure as Tree-Grid-View in Forms. The amount of data is very small.

Normally we can display Tree-Grid-View data in relationships or pop-up dialogs. But I don´t want that users have to click around every time they need to see the data. It´s data that´s useful for daily work, so it would be super useful when it´s directly accessible within the Form.

I discovered that it is possible to display Tree-Grid-Views in Forms. But from my POV the regular TGV layout is a little bit too heavy for my use case. I only want to display a small amount of data (only one data column, not much levels). Basically I just need the TGV data, no toolbar, no headers, no actions. Just a simple view to the data.

Does anyone now a more lightweight rendering variants for TGVs?

Thanks for any input!

Angela

Parents
  • 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 Smiley



  • 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.

Reply
  • 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.

Children
No Data