The easiest way to create dynamic buttons from table data is using records from the table itself.
Create a Cartesian relationship (x operator between any two fields) to the DamageCode table. If desired, add a portal filter like
DamageCode_Cartesian::usageCount > someHardcodedNumber
or do not hard-code that number, but put it into a global Utility table.
Either way, in the portal you can display the code name and turn that field into a button that selects/sets the code.
You could also add a field to toggle the filter, with the modified portal filter expression
LayoutTable::gAllDamageCodes or DamageCode_Cartesian::usageCount > someHardcodedNumber
so that when gAllDamagesCodes is empty or set to 0, the other part of the OR expression is ignored, and every record is displayed.
To get a layout like in your screenshot, use three portals with five records on display, each with a different start row.
I think I understand.. Ill work on that now... thanks much
What you are looking for can be done. I would use button bars and it would need some scripts or calcs and hide calculations.
The button text would need to be variables. Hide any segment that has a variable ="".
Another option would be to use a portal that is formatted to work like buttons, but you would have a single list of coeds and not 3 wide without a lot of work.
Multiple portal as suggest will also work.
thanks again... I got it from your direction.. works great.