I'm on List Page of a master-detail.
Can I change the caption of detail table dynamically on each row?
Dynamic caption detail table
-
- User
- Posts: 980
Dynamic caption detail table
-
- User
- Posts: 980
Not the field caption but (detail) table caption.
Example:
On List page,
Row 1:
(detail) table caption = "sometext"
Row 2:
(detail) table caption = "another_sometext"
Row 3:
and so on.
This code works on Language_Load server event:
$this->setTablePhrase("<detailtable>", "TblCaption", "sometext");
But this change is for ALL row.
I need something like this but for each row.
Thanks.
-
- User
- Posts: 980
Old topic and already had the solution.
The proper solution would be to hide the actual detail-table button from master List Page.
Then create another button to replace that button with ListOptions_Load() and ListOptions_Rendered().
Then run condition against a value in master-table's field, and based on that result adjust the link on ListOptions_Rendered().
This way I then had:
- A master table with multiple detail table.
- A column in master List Page, behave like detail-table button column, but with dynamic link, that point to a different detail table, that depend on a value on master table field.
No need to run setTablePhrase() at all.