UNPKG

@primno/core

Version:

Front-end framework for Model-Driven Apps of Power Apps and Dynamics 365.

41 lines (40 loc) 1.25 kB
/// <reference types="xrm" /> import { ControlType, Control, PageType } from "../typing"; /** Indicates whether the form is a Uci form */ export declare function isUci(): boolean; /** * Indicates whether the context is of type grid or form. * @context context */ export declare function getControlType(context: any): ControlType | undefined; /** * Gets the id of the application. * @returns */ export declare function getAppId(): Promise<string>; /** * Gets the table name of the current page. * @returns Table name */ export declare function getPageTableName(): string; /** * Gets the page type (record or list). */ export declare function getPageType(): PageType; /** * Gets the name of the table from the given control. * @param control */ export declare function getTableName(control: Control): string; /** * Gets the context of the form from the given event. * Returns null if the form context is not found. * @param eventCtx */ export declare function getFormContext(eventCtx: Xrm.Events.EventContext | Xrm.FormContext): Xrm.FormContext | null; /** * Gets the Guid of the form. * @param formContext Form context * @returns Guid of form */ export declare function getFormId(formContext: Xrm.FormContext): string | undefined;