Convertigo Public Knowledge base
Code to ClearDataSource and RootPage
If you want to write your own code to perform a ClearDataSource and a RootPage, here is the code to write:
page.deleteListen(['<project_name.sequence_name>']);
page.routerProvider.setRoot('<page_name>', <{data_object}>, <options>);
For example, in a customAction component, under an onClick event, you may write:
page.deleteListen(['root_clear.get_people']);
page.routerProvider.setRoot('Page1_code', {id: 5}, null);
(c) Convertigo 2023 https://www.convertigo.com