![]() ![]() ![]() Width: Max(App.Width, App.MinScreenWidth)-10 Height: Max(App.Height, App.MinScreenHeight)-24 The size of the screen needs to be adjusted to accommodate the borders of the dialog - so edit the Screen Width and Height properties to be: When the dialog is opened inside the app, the recordid parameter will contain the GUID of the current record. You can replace it with the GUID of a record in your dev environment - or you could use First(Account) to get a test record. Notice that there is a hard-coded GUID there - this is simply for testing purposes when running inside the designer. Set(varSelectedRecord, LookUp(Accounts, Account = varRecordId)) Inside the App OnStart event, add the following code: Set(varRecordId, If( In order to do this, we need to get a reference to the record that the dialog is being run on. In this example, I create a dialog to update the Credit Hold flag on a record and add some notes to the Description. The page editor will open, which is essentially a single Screen canvas app. Inside the solution, select + New -> App -> Page. Open the, and open the solution that contains your model-driven app. Step 1: Add a custom page to your solution This creates a really native feel to the dialog since it's included inside the page rather than an embedded IFRAME, and the good news is that it's really easy to upgrade from the previous Canvas App dialog smart button! With the latest release of the smart buttons solution you can add a button to open a custom page as a dialog box or sidebar. Previously, I had released a Ribbon Workbench smart button that allowed opening a canvas app as a dialog via a command bar button. Now that custom pages are released (in preview), we are one step closer to the convergence towards a single app type that has the best of model-driven apps and canvas apps. Next Post Custom page dialogs inside model-driven apps using a Ribbon Workbench smart button ![]()
0 Comments
Leave a Reply. |