I'm building a model driven app with a menu consisting in responsive Canvas Pages, one for each table and table forms for the detail page of each table. I'm using custom pages because I'm building an easier experience with custom filters, way faster to set compared to the default UI the table view.
For the moment, I'm only able to navigate to a specific record of the table: Navigate(ThisItem) and to navigate to the default view: Navigate(TableName).
Is there a way to move from one custom page to the other using the Navigate function?
Thanks in advance.
//Get Record
Set(projectRecord, First(Project, etc));
//Provide Record & Navigate
Navigate(
projectRecord,
{Page: 'Custom Page Name'}
);
Then on Target Custom Page:
use :
Param("etn") to get passed entityname
Param("id") to get passed entity id
We cant pass in anything else, but hopefully this is all we need for most scenarios
I think I found a solution: I'm using the Patch function to create a record as the argument for the Navigate(). It works, takes me to the model driven app form. The only issue is that if I go back without saving it still create an empty records.
To overcome this issue I'm trying detecting the empty records (checks if the primary name is empty with odata filter: new_name eq '') with a Power Automate flow and deleting it but the flow won't get triggered both in "create" and "update or create" mode. Any suggestion on how to fix this?
Its a tricky one, I mean you could show/hide tabs with each of these canvas app within them based on the state of a field in the model driven but that involves more development. Attempting the pass data between canvas app and parent model driven app via javascript etc.
Another question I have: from the Cavas Page, if I wanted to create a new record how do I navigate the form to do so?
I know how to navigate from one screen to the other. I was looking for a way to navigate from a Canvas Page (each with a single screen) to the other so I can leverage the model driven app navigation instead of creating another navigation inside the Canvas Page.
If you looking to navigate between canvas screens try this:
Add a screen to a canvas app and navigate between screens - Power Apps | Microsoft Learn
Navigating between actual canvas apps may prove difficult as they are self contained.
Please post your Navigate expression code so far.
It works from the Canvas Pages to the model driven app form and view but I would like to know if it is possible to navigate from one canvas page to another canvas page. If yes, how?
Edit: I just realized that " Navigate(PageName) " takes me to the selected custom page.
Afternoon Francesco, what happens when you attempt to navigate at the moment?
WarrenBelz
211
Most Valuable Professional
MS.Ragavendar
108
stampcoin
80