FIXED: showCustomOnly - page header disappears [TD 2021.12380]

When using showCustomOnly, the parameter page header is no longer visible.
In previous versions (such as 2021.10330), the page tabs for custom pages would still be visible.
Is there some other new setting to control that, or is it a bug?

Canā€™t reproduce this here, Custom Tabs are showing up in Parameter COMP. Can you show your settings or a file? What are you referring to with showCustomOnly?

Steps to reproduce:

  • Create a Base COMP
  • Open Customize Component
  • Add a parameter page ā€œPage 1ā€
  • Add a parameter ā€œFooā€ in that page
  • Add another page ā€œPage 2ā€
  • Add a parameter ā€œBarā€ in that page
  • Create a text DAT with this script: op('base1').showCustomOnly=True
  • Right click and run the script
  • Select the base COMP

page page bug.toe (3.4 KB)

Looks like the Parameter COMP will show them correctly, but not the network editor.

Ok thanks, can reproduce now.

1 Like

Possibly related:
The behavior of the pageindex parameter seems to be handled inconsistently between the network editor parameter dialog and the parameter COMP if the ā€œBuilt-Inā€ toggle on the parameter COMP is switched off.
If you have a parameter COMP that has that setting switched off, and use it to select the second custom page, pageindex gets set to 1. But if you have ā€œBuilt-Inā€ switched on and select the second custom page, it will set pageindex to len(o.pages) + 1.

@tekt We just retested this issue in the latest official 2021.16410 and it is no longer reproducible. Do you still have this problem on your end?

We still have to address the ā€˜possibly relatedā€™ one.

@tekt

Possibly related:
The behavior of the pageindex parameter seems to be handled inconsistently between the network editor parameter dialog and the parameter COMP if the ā€œBuilt-Inā€ toggle on the parameter COMP is switched off.
If you have a parameter COMP that has that setting switched off, and use it to select the second custom page, pageindex gets set to 1. But if you have ā€œBuilt-Inā€ switched on and select the second custom page, it will set pageindex to len(o.pages) + 1 .

So in both cases pageindex will equal 1 whenever the second visible page is selected, whether that page is custom or built-in.

Are you instead expecting pageindex to be based on the full list of available pages so that itā€™s always constant?
For example hitting the first page could result in a value of 5?

Thanks for the clarification,
Rob.

I havenā€™t been able to reproduce this myself recently, but Iā€™ve gotten bug reports about it from one or two RayTK users. Iā€™ll try to get some details from them.

We have now changed this in our upcoming experimental build, so that pageindex will have the same value regardless of which pages are currently displayed or not.

Similary, weā€™ve added a new OP member: .currentPage which can be used to get or set the current page, even as a string.

Example: n.currentPage = ā€˜Aboutā€™

2 Likes

Awesome. Thanks!
Thatā€™ll be easier than scanning through the pages and calculating indices.