Forum Discussion

Breton's avatar
Breton
Ideator III
3 years ago

How to export TOC with Sort = CUSTOM

Hello,

I'm able to export my TOC correctly with Sort = "alphebatical".


But I don't find which object I need to export to have my new TOC with sort = "Custom".
I tought it was included in com.aras.innovator.cui_default.toc.xml....but No !

Which one is it ?

Thanks

7 Replies

  • Hello,

    To export a TOC with a custom sort order, you need to modify the "com.aras.innovator.cui_default.toc.xml" file. This file contains the structure and content of the TOC. To customize the sort order, you can add a "sortOrder" attribute to the "TOCItem" element in the XML file and set its value to the desired order.

    To export the modified TOC, you can use the same method that you used to export the TOC with alphabetical sort. However, you need to make sure that you select the modified XML file containing the custom sort order.

    It's important to note that modifying the default TOC file may affect other users who are using the same TOC. It's recommended to create a copy of the file and modify it instead of modifying the original file.

    I hope this helps.! 

  • Hi Breton,

    com.aras.innovator.cui_default.toc is just the replacement of the "Categories" List from I12 and I11. 

    There is not special saving location. The "custom" mode is just a trick. By default Innovator sorts alphabetical. If custom is enabled, Innovator sorts by the sort_order used for the CommandBarItem in the corresponding TOC-CommandBarSections. So as soon you export your CUI items, you automatically rebuild the "Custom" sorting.

    This is stuff you learn, when building your own self-update concept [emoticon:0e469978eb8947d18b9c41123db3725a] (But answer can be wrong anyway, cause I so far haven´t imported/exported the TOC. Let me know if it makes sense....)

    Angela

    • Breton's avatar
      Breton
      Ideator III

      Hello, thank you for your answer. :-)

      But, when I install a new platform (example: OPER), I have to MANUALLY adjust the Custom parameter in the TOC management to have the correct order.

      Is it possible to have the correct sort without manually updating the parameter after deployment?
      THANKS

      FB

      • angela's avatar
        angela
        Catalyst II

        You ask the right question, but I do not have the right answer.

        This task is one part of my update concept were I still don´t know if I automate it by script or manually adjust the TOC after deployment. 

        To my current (!!!) knowledge, you need to update the sort_order of com.aras.innovator.cui_default.toc AND sort_order of the individual TOC sections of each ItemType.

        So theoretically you only have to merge sort_order of table CommandBarSectionItem, cause this table contains all elements. Maybe just merge the table completely with SQL. You could maybe also use an AML script to update the items to the new target values. 

        If you have a subscription, ask Aras! You will not be the only person that is interested in this one, so I see a big chance they will provide a generic script for this task. --->  “Awesome idea with the custom TOC but how on earth do you expect us to import/export these data?”