Skip to main content
5-Regular Member
November 5, 2024
Solved

Manage choices wizard tabs customization

  • November 5, 2024
  • 2 replies
  • 728 views
I am using Windchill PDMLink Release 12.1 and Datecode with CPS 12.1.2.11

For Manage Choices Wizard, there is a table builder invoked in that wizard. That table builder contains Tabs in it namely, Alternative parameter value, option code, Status parameter value, structure section value. I want to reorder that tab sequence to-be generate after opening the wizard or want to customize such that always the option code tab will be opened at the first. Relative file: ato-component.js
    Best answer by jbraga

    Hello,

     

    You are correct that ato-component.js is the relevant file for customization. The ATO.components.ChoiceComponent.renderPanelContext function handles the JSON response from the POST /Windchill/ptc1/choiceCompTabs request. You'll need to perform your own sorting/reordering on the JSON object itself (var json) or the JSON array (var tabItems) so that when the tabs are rendered they are in the desired order.

     

    Screenshot 2024-11-06 152034.png

     

    Please let me know if you have any questions regarding this and if this approach works well for you.

    2 replies

    jbraga
    jbraga21-Topaz IAnswer
    21-Topaz I
    November 6, 2024

    Hello,

     

    You are correct that ato-component.js is the relevant file for customization. The ATO.components.ChoiceComponent.renderPanelContext function handles the JSON response from the POST /Windchill/ptc1/choiceCompTabs request. You'll need to perform your own sorting/reordering on the JSON object itself (var json) or the JSON array (var tabItems) so that when the tabs are rendered they are in the desired order.

     

    Screenshot 2024-11-06 152034.png

     

    Please let me know if you have any questions regarding this and if this approach works well for you.

    Community Moderator
    November 12, 2024

    Hello @OS_11417190,

     

    It looks like you have a response from a community member. If it helped to answer your question please mark the 

    reply as the Accepted Solution. 

    Of course, if you have more to share on your issue, please let the Community know so other community members can continue to help you.

    Thanks,
    Vivek N.
    Community Moderation Team.