I am having an issue with the tab text updating its record count
For example
I have the main form related to a projects table. This project then has a related tab with a number of orders associated to it which comes from a view.
The tab text is:
Orders (%%project_to_v_orders.maxRecordIndex%%)
This works fine when the form first opens, but does not update when the user goes to the next record.
I have also tried to place it into a calculation which doesn’t update correctly either. The calculation is correct, but the text itself is not updating.
eg. Orders (%%order_count_calc%%)
paulc:
The tab text is:
Orders (%%project_to_v_orders.maxRecordIndex%%)
This works fine when the form first opens, but does not update when the user goes to the next record.
Which next record do you mean?
this is project is the main with a tab panel orders right?
and the tab panel orders has that text?
If i walk through the projects, then i see the tab text constantly updated with the max record index of the relation.
paulc:
I have also tried to place it into a calculation which doesn’t update correctly either. The calculation is correct, but the text itself is not updating.
eg. Orders (%%order_count_calc%%)
Am I doing something incorrectly?
so that calculation is a calc of projects?
Then also it works fine.
What doesnt work if you say:
Orders (%%project_to_v_orders.selectecIndex%%)
and then you change the selection of that related foundset inside the tabpanel
Tab text is only updated for the main form changes.
Thanks for the reply to my question. I am currently moving our application to Servoy 5.1.4 from 4.1.7 and this no longer appears to be an issue.
The situation was that there was a parent form based on table A. Then two tab panels both based on table A. The tab panel on the left (sort of a navigation type pane) would have rows of records in a foundset. As the user selected a record in the list on the tab panel on the left, the foundset selected record for table A would change for all elements on the form. The left tab panel consisted of a details for the record selected in table A and the child tabs on this form were other related data. When this was changing, the child tabs had a maxRecordIndex to show the users how many records there are for this particular record.
So for example, the main form is based on projects. The left tab would have a list of project records. The user would select project ABC from the left hand list and would see all the details of that project on the right tab. In the right tab there would be children tabs. The user could then see how many orders there were for a particular project, or how many child records, by looking at the tab text Orders (%%project_to_v_orders.maxRecordIndex%%).
Again, while moving to Servoy 5.1.4, it looks like this is no longer an issue, just wanted to give some information to make it more clear for any future reference.