Model link field usualy opens model detail page in old cc 1 style.
For the most models we implement custom JS pages (e.g. using CRUD framework)
Is there a way to map such a JS page to model so that any model link on any page will open this custom JS page?
Yes, the following JavaScript code can be used on the page:
One.PageMgr.regDetail('TMS.SampleModel', 'TMS.SampleModelPanel');
where
TMS is the module prefix
SampleModel - model level type name
TMS.SampleModelPanel - page constructor name
Note that panel should be provided as a string, not function.
Yes, the following JavaScript code can be used on the page:
One.PageMgr.regDetail('TMS.SampleModel', 'TMS.SampleModelPanel');
where
TMS is the module prefix
SampleModel - model level type name
TMS.SampleModelPanel - page constructor name
Note that panel should be givean as a string, not function.