Skip to content

Commit 094d5d0

Browse files
committed
added all the methods from microsoft powerapps documentation that i could find. Several methods need to be checked for returns values and what kind of objects they take as input since i didn't have a lot of experience with this when I started making the changes. appsidepane still needs quite a lot of work. A lot is by my best estimation expected to work.
1 parent dc493e4 commit 094d5d0

5 files changed

Lines changed: 408 additions & 152 deletions

File tree

src/XrmDefinitelyTyped/IntermediateRepresentation.fs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,8 @@ type XrmForm = {
124124
attributes: XrmFormAttribute list
125125
controls: XrmFormControl list
126126
tabs: XrmFormTab list
127+
128+
127129
}
128130

129131

src/XrmDefinitelyTyped/Resources/Extensions/xrm_ext_9-.d.ts

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -499,9 +499,9 @@ declare namespace Xrm {
499499

500500
interface WebResource {
501501
/**
502-
* The type of the page.
502+
* Specify "webresource".
503503
*/
504-
pageType: "webresource";
504+
pageType: string;
505505

506506
/**
507507
* The name of the web resource to load.
@@ -513,6 +513,18 @@ declare namespace Xrm {
513513
*/
514514
data?: string;
515515
}
516+
517+
interface Dashboard {
518+
/**
519+
* Specify "dashboard"
520+
*/
521+
pageType: string;
522+
523+
/**
524+
* The ID of the dashboard to load. If you don't specify the ID, navigates to the default dashboard.
525+
*/
526+
dashboardId: string;
527+
}
516528

517529
const enum NavigationOptionsTarget {
518530
PageInline = 1,
@@ -574,7 +586,7 @@ declare namespace Xrm {
574586
* @param pageInput Input about the page to navigate to. The object definition changes depending on the type of page to navigate to: entity list or HTML web resource.
575587
* @param navigationOptions Options for navigating to a page: whether to open inline or in a dialog. If you don't specify this parameter, page is opened inline by default.
576588
*/
577-
navigateTo(pageInput: EntityRecord | EntityList | WebResource, navigationOptions?: NavigationOptions): Promise<undefined>;
589+
navigateTo(pageInput: EntityRecord | EntityList | WebResource| Dashboard, navigationOptions?: NavigationOptions): Promise<undefined>;
578590

579591
/**
580592
* Displays an alert dialog containing a message and a button.

0 commit comments

Comments
 (0)