-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
50 changed files
with
2,763 additions
and
2,288 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
webpack.config.js | ||
webpack.config.ts | ||
bin/*.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
/* This is a generated file, please regenerate and do not modify */ | ||
|
||
import {EntityAttributeNames} from './Entity.enum'; | ||
import FormContext = Xrm.FormContext; | ||
|
||
export class EntityFormContext {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
/* This is a generated file, please regenerate and do not modify */ | ||
|
||
import {EntityAttributeNames} from './Entity.enum'; | ||
import {EntityFormContext} from '../Entity.formContext'; | ||
import FormContext = Xrm.FormContext; | ||
|
||
export class EntityFormContext {} | ||
export class FormNameFormContext extends EntityFormContext {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,24 @@ | ||
import {EntityForm} from './Entity.form'; | ||
|
||
export const Form = { | ||
// In D365 Form specify Form onLoad function: <%= publisher %>.<%= namespace %>.Entity.Form.onLoad | ||
// In D365 Form '<%= formname %>' specify Form onLoad function: <%= publisher %>.<%= namespace %>.Entity.Form.onLoad | ||
onLoad: async (executionContext: Xrm.Events.EventContext): Promise<void> => { | ||
return EntityForm.onLoad(executionContext); | ||
} | ||
}; | ||
|
||
export const Ribbon = { | ||
// In Ribbon WorkBench specify function: <%= publisher %>.<%= namespace %>.Entity.Ribbon.myRibbonMethod | ||
// In Ribbon WorkBench specify function: <%= publisher %>.<%= namespace %>.Entity.Ribbon.myRibbonMethod1 | ||
// In Ribbon WorkBench specify Xrm Parameter 'Primary Control', which is formContext | ||
myRibbonMethod: (formContext: Xrm.FormContext): void => { | ||
myRibbonMethod1: (formContext: Xrm.FormContext): void => { | ||
console.log(formContext); // Prevent linting error | ||
// EntityForm.myFormMethod(formContext); | ||
}, | ||
|
||
// In Ribbon WorkBench specify function: <%= publisher %>.<%= namespace %>.Entity.Ribbon.myRibbonMethod2 | ||
// In Ribbon WorkBench specify Xrm Parameter 'Primary Control', which is gridControl | ||
myRibbonMethod2: (gridControl: Xrm.Controls.GridControl): void => { | ||
console.log(gridControl); // Prevent linting error | ||
// EntityForm.myFormMethod(gridControl); | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"forms": [], | ||
"webresources": [] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
/* This is a generated file, please regenerate and do not modify */ | ||
/* eslint-disable max-len */ | ||
|
||
type ComponentStateValues = 0 | 1 | 2 | 3; | ||
|
||
interface EnvironmentVariableModel extends Model { | ||
// Attributes for $select | ||
environmentvariablevalueid?: string; // PrimaryIdAttribute | ||
schemaname?: string; // PrimaryNameAttribute | ||
introducedversion?: string; | ||
componentstate?: ComponentStateValues; | ||
value?: string; | ||
environmentvariabledefinitionid?: string; | ||
overwritetime?: string; | ||
solutionid?: string; | ||
environmentvariablevalueidunique?: string; | ||
ismanaged?: boolean; | ||
|
||
// NavigationProperties for $expand | ||
// EnvironmentVariableDefinitionId?: EnvironmentVariableDefinitionModel; // entity EnvironmentVariableDefinition needs to be generated | ||
} | ||
|
||
/* eslint-enable max-len */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
/* This is a generated file, please regenerate and do not modify */ | ||
|
||
import {WebApi} from '../WebApi/WebApi'; | ||
|
||
export class EnvironmentVariableService { | ||
private static logicalName = 'environmentvariablevalue'; | ||
private static async retrieveMultipleRecords(multipleSystemQueryOptions: MultipleSystemQueryOptions): Promise<EnvironmentVariableModel[]> { | ||
return WebApi.retrieveMultipleRecords(EnvironmentVariableService.logicalName, multipleSystemQueryOptions); | ||
} | ||
|
||
private static async getEnvironmentVariableValue(schemaname: string): Promise<EnvironmentVariableModel> { | ||
const environmentvariabledefinitions = await WebApi.retrieveMultipleRecords('environmentvariabledefinition', { | ||
select: ['environmentvariabledefinitionid'], | ||
filters: [{ | ||
conditions: [{ | ||
attribute: 'schemaname', | ||
value: schemaname | ||
}] | ||
}] | ||
}); | ||
const environmentvariabledefinition = environmentvariabledefinitions[0] as {environmentvariabledefinitionid: string}; | ||
const environmentVariableValues = await EnvironmentVariableService.retrieveMultipleRecords({ | ||
select: ['value'], | ||
filters: [{ | ||
conditions: [{ | ||
attribute: 'environmentvariabledefinitionid', | ||
value: environmentvariabledefinition.environmentvariabledefinitionid | ||
}] | ||
}] | ||
}); | ||
return environmentVariableValues[0]; | ||
} | ||
} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
webpack.config.js | ||
webpack.config.ts | ||
karma.conf.js | ||
test-main.js | ||
postcss.config.js | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.