@resconet/jsbridge 18.0.0-beta.3 → 18.0.0-beta.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/JSBridge.d.ts +77 -3
- package/src/JSBridge.js +64 -8
package/package.json
CHANGED
package/src/JSBridge.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// JSBridge.js TypeScript definition file
|
|
2
|
-
// (c)
|
|
2
|
+
// (c) 2024 Resco
|
|
3
3
|
|
|
4
4
|
/* eslint-disable @typescript-eslint/ban-types */
|
|
5
5
|
/* eslint-disable @typescript-eslint/prefer-namespace-keyword */
|
|
@@ -1001,6 +1001,7 @@ declare namespace MobileCRM {
|
|
|
1001
1001
|
*/
|
|
1002
1002
|
class MobileReport {
|
|
1003
1003
|
/**
|
|
1004
|
+
* @deprecated Please use {@link generateReportAsync} instead.
|
|
1004
1005
|
* @since 9.1
|
|
1005
1006
|
* Executes the mobile reporting request which produces the mobile report document of given format.
|
|
1006
1007
|
* @param fetch The fetch XML defining the entity (entities) query used as report input.
|
|
@@ -1025,6 +1026,7 @@ declare namespace MobileCRM {
|
|
|
1025
1026
|
scope?: any
|
|
1026
1027
|
);
|
|
1027
1028
|
/**
|
|
1029
|
+
* @deprecated Please use {@link generateReportAsync} instead.
|
|
1028
1030
|
* @since 9.1
|
|
1029
1031
|
* Executes the mobile reporting request which produces the mobile report document of given format.
|
|
1030
1032
|
* @param fetch The fetch XML defining the entity (entities) query used as report input.
|
|
@@ -1043,6 +1045,50 @@ declare namespace MobileCRM {
|
|
|
1043
1045
|
isOnline: boolean,
|
|
1044
1046
|
outputFile: string
|
|
1045
1047
|
): Promise<string>;
|
|
1048
|
+
|
|
1049
|
+
/**
|
|
1050
|
+
* The request class specifying behavior of {@link generateReportAsync} function.
|
|
1051
|
+
*/
|
|
1052
|
+
static GenerateReportRequest = class {
|
|
1053
|
+
/** The identifier of report source record(s) as {@link MobileCRM.Reference} or fetch in its xml representation. */
|
|
1054
|
+
source: string | Reference;
|
|
1055
|
+
/** The identifier of report template as its string record ID, exact logical name, {@link MobileCRM.Reference} or actual xml definition of report.*/
|
|
1056
|
+
template: string | Reference;
|
|
1057
|
+
/** Optional code of report format. Supported values are: Pdf (default), Html, Excel, Text. */
|
|
1058
|
+
format = "Pdf";
|
|
1059
|
+
/** Optional custom name of report file or its full path. If not provided, default report name and path are used.
|
|
1060
|
+
* When using full path, it is recommended to place it in {@link MobileCRM.Configuration.storageDirectory}. */
|
|
1061
|
+
customNameOrPath: string;
|
|
1062
|
+
/** Optional iso code (e.g. 'en-US') of report language. Currently it only works for reports on localized Questionnaires. */
|
|
1063
|
+
languageCode: string | undefined;
|
|
1064
|
+
/** Optional custom message displayed to user while report is being generated.
|
|
1065
|
+
* When null or empty string is provided, default message is shown. When undefined, shows no wait message. */
|
|
1066
|
+
waitMessage: string | undefined;
|
|
1067
|
+
/** Optionally specifies if report should be created in Online, or Offline mode. If undefined, the mode in which app is currently running is used. */
|
|
1068
|
+
isOnline: boolean | undefined;
|
|
1069
|
+
/** A {@link MobileCRM.Reference} to parent record. If provided, method will generate new attachment record and link it to the parent record. */
|
|
1070
|
+
attachTo: Reference | undefined;
|
|
1071
|
+
/**
|
|
1072
|
+
* When {@link attachmentRecord} is provided, optionally specifies the type of attachment entity.
|
|
1073
|
+
* If not specified, the default attachment entity is created. */
|
|
1074
|
+
attachmentEntity: string | undefined;
|
|
1075
|
+
};
|
|
1076
|
+
/**
|
|
1077
|
+
* The result class for {@link generateReportAsync} function.
|
|
1078
|
+
*/
|
|
1079
|
+
static GenerateReportResult = class {
|
|
1080
|
+
/** The full file path to generated report. Not present if {@link GenerateReportRequest.attachTo} is provided. */
|
|
1081
|
+
outputReportPath: string | undefined;
|
|
1082
|
+
/** The reference to attachment record containing the generated report. Only present if {@link GenerateReportRequest.attachTo} is provided.*/
|
|
1083
|
+
attachmentRecord: Reference | undefined;
|
|
1084
|
+
};
|
|
1085
|
+
/**
|
|
1086
|
+
* @since 18.0
|
|
1087
|
+
* Generates the mobile report based on provided request parameters. The generated report will be saved to file system or attached to a record.
|
|
1088
|
+
* @param request The request specifying the details of how the report will be created.
|
|
1089
|
+
* @returns The promise with the result object.
|
|
1090
|
+
*/
|
|
1091
|
+
static generateReportAsync(request: MobileCRM.MobileReport.GenerateReportRequest): Promise<MobileCRM.MobileReport.GenerateReportResult>;
|
|
1046
1092
|
/**
|
|
1047
1093
|
* @since 10.1
|
|
1048
1094
|
* Shows new MobileReport form. Source for the report can be defined either as list of MobileCRM.Reference objects or as FetchXML query.
|
|
@@ -1853,9 +1899,16 @@ declare module MobileCRM.UI {
|
|
|
1853
1899
|
* @param index Item index on the view.
|
|
1854
1900
|
* @param dialogSetup Lookup setup for modal lookup dialog.
|
|
1855
1901
|
* @param inlinePickSetup Optional setup for inline lookup picker. Leave empty to use the same setup as modal dialog.
|
|
1856
|
-
* @param dialogOnly
|
|
1902
|
+
* @param dialogOnly Optional - indicates whether to allow the inline picker. Set "true" to disable the inline picker and always use the modal dialog. Set "false" to allow the inline picker. Default value is "false".
|
|
1903
|
+
* @param allowCreateNew Optional - [18.0+] indicates whether to allow creation of new items. Default value is "true".
|
|
1857
1904
|
*/
|
|
1858
|
-
updateLinkItemViews(
|
|
1905
|
+
updateLinkItemViews(
|
|
1906
|
+
index: number,
|
|
1907
|
+
dialogSetup: DetailViewItems.LookupSetup,
|
|
1908
|
+
inlinePickSetup?: DetailViewItems.LookupSetup,
|
|
1909
|
+
dialogOnly?: boolean = false,
|
|
1910
|
+
allowCreateNew?: boolean = true
|
|
1911
|
+
);
|
|
1859
1912
|
/**
|
|
1860
1913
|
* @since 13.1
|
|
1861
1914
|
* Add detail item to desired position in to grid.
|
|
@@ -2088,6 +2141,21 @@ declare module MobileCRM.UI {
|
|
|
2088
2141
|
errorCallback?: (err: string) => void,
|
|
2089
2142
|
scope?: any
|
|
2090
2143
|
);
|
|
2144
|
+
/**
|
|
2145
|
+
* @since 18.0
|
|
2146
|
+
* Sets the field value on entity record shown on this EntityForm.
|
|
2147
|
+
* @param fieldName Logical name of the field that has to be changed.
|
|
2148
|
+
* @param value New value of entity field with given name.
|
|
2149
|
+
* @returns A promise resolved with boolean result of native field setter.
|
|
2150
|
+
*/
|
|
2151
|
+
public static setFieldValue(fieldName: string, value: any): Promise<boolean>;
|
|
2152
|
+
/**
|
|
2153
|
+
* @since 18.0
|
|
2154
|
+
* Sets several field values on entity record loaded on this EntityForm.
|
|
2155
|
+
* @param changes An object defining field changes that has to be done on form entity.
|
|
2156
|
+
* @returns A promise resolved with boolean result of native field setter.
|
|
2157
|
+
*/
|
|
2158
|
+
public static setFieldValues(changes: { [fieldName: string]: any }): Promise<boolean>;
|
|
2091
2159
|
/**
|
|
2092
2160
|
* Binds or unbinds the handler for EntityForm command.
|
|
2093
2161
|
* @param command The name of the EntityForm command.
|
|
@@ -2255,6 +2323,7 @@ declare module MobileCRM.UI {
|
|
|
2255
2323
|
*/
|
|
2256
2324
|
public static requestObject(callback: (entityList: EntityList) => void, errorCallback?: (err: string) => void, scope?: any);
|
|
2257
2325
|
/**
|
|
2326
|
+
* @deprecated Use {@link setDataSourceFactory} instead.
|
|
2258
2327
|
* Sets the entity list data source replacement.
|
|
2259
2328
|
* @see Data source must be set during the document load stage and must not be delayed. It is used only if the entity view iFrame is marked as data source provider in Woodford.
|
|
2260
2329
|
* @param dataSource A data source object implementing the DynamicEntity list loading routine.
|
|
@@ -2489,6 +2558,11 @@ declare module MobileCRM.UI {
|
|
|
2489
2558
|
questionnaire: DynamicEntity;
|
|
2490
2559
|
/** Custom event context */
|
|
2491
2560
|
context: any;
|
|
2561
|
+
/**
|
|
2562
|
+
* @since 18.0
|
|
2563
|
+
* Language of the questionnaire
|
|
2564
|
+
*/
|
|
2565
|
+
language: string;
|
|
2492
2566
|
|
|
2493
2567
|
/**
|
|
2494
2568
|
* Stops the onSave validation and optionally causes an error message to be displayed.
|
package/src/JSBridge.js
CHANGED
|
@@ -2892,13 +2892,13 @@
|
|
|
2892
2892
|
/// <param name="success" type="function(String)">A callback function for successful asynchronous result. The <b>result</b> argument will carry the XML representation of the Fetch object.</param>
|
|
2893
2893
|
/// <param name="failed" type="function(error)">A callback function for command failure. The <b>error</b> argument will carry the error message.</param>
|
|
2894
2894
|
/// <param name="scope" type="">A scope for calling the callbacks; set "null" to call the callbacks in global scope.</param>
|
|
2895
|
-
var reqParams = this._constructFetchParams();
|
|
2895
|
+
var reqParams = JSON.stringify(this._constructFetchParams());
|
|
2896
2896
|
MobileCRM.bridge.command("fetchToXml", reqParams, success, failed, scope);
|
|
2897
2897
|
};
|
|
2898
2898
|
MobileCRM.FetchXml.Fetch.prototype.serializeToXmlAsync = function () {
|
|
2899
2899
|
/// <summary>[v10.0] Serializes the Fetch object to XML.</summary>
|
|
2900
2900
|
/// <returns type="Promise<string>">A Promise object which will be resolved with the XML representation of this Fetch object.</returns>
|
|
2901
|
-
var reqParams = this._constructFetchParams();
|
|
2901
|
+
var reqParams = JSON.stringify(this._constructFetchParams());
|
|
2902
2902
|
return MobileCRM.bridge.invokeCommandPromise("fetchToXml", reqParams);
|
|
2903
2903
|
};
|
|
2904
2904
|
// MobileCRM.FetchXml.Entity
|
|
@@ -3927,17 +3927,22 @@
|
|
|
3927
3927
|
//this.items[index].value = defaultValue !== undefined ? defaultValue : listDataSource[Object.keys(listDataSource)[0]];
|
|
3928
3928
|
MobileCRM.bridge.command("detailViewAction", JSON.stringify(data));
|
|
3929
3929
|
};
|
|
3930
|
-
MobileCRM.UI._DetailView.prototype.updateLinkItemViews = function (index, dialogSetup, inlinePickSetup, dialogOnly) {
|
|
3930
|
+
MobileCRM.UI._DetailView.prototype.updateLinkItemViews = function (index, dialogSetup, inlinePickSetup, dialogOnly, allowCreateNew) {
|
|
3931
3931
|
/// <summary>[v10.1] Changes the <see cref="MobileCRM.UI.DetailViewItems.ComboBoxItem">ComboBoxItem</see> views and/or filters.</summary>
|
|
3932
3932
|
/// <param name="index" type="Number">Item index on the view.</param>
|
|
3933
3933
|
/// <param name="dialogSetup" type="MobileCRM.UI.DetailViewItems.LookupSetup">Lookup setup for modal lookup dialog.</param>
|
|
3934
3934
|
/// <param name="inlinePickSetup" type="MobileCRM.UI.DetailViewItems.LookupSetup">Optional setup for inline lookup picker. Leave empty to use the same setup as modal dialog.</param>
|
|
3935
|
-
/// <param name="dialogOnly" type="Boolean">
|
|
3935
|
+
/// <param name="dialogOnly" type="Boolean">Optional - indicates whether to allow the inline picker. Set **true** to disable the inline picker and always use the modal dialog. Set **false**; to allow the inline picker. Default value is **true**</param>
|
|
3936
|
+
/// <param name="allowCreateNew" type="Boolean">Optional - [v18.0] Indicates whether to allow creation of new items. Default value is **true**.</param>
|
|
3936
3937
|
var xml = "<lookup>";
|
|
3937
3938
|
xml += dialogSetup._serialize();
|
|
3938
3939
|
if (!dialogOnly && inlinePickSetup) {
|
|
3939
3940
|
xml += inlinePickSetup._serialize();
|
|
3940
3941
|
}
|
|
3942
|
+
if (allowCreateNew === undefined || allowCreateNew === null) {
|
|
3943
|
+
allowCreateNew = true;
|
|
3944
|
+
}
|
|
3945
|
+
xml += "<createNew>" + (allowCreateNew ? 1 : 0) + "</createNew>";
|
|
3941
3946
|
xml += "<dialog>" + (dialogOnly ? 1 : 0) + "</dialog>";
|
|
3942
3947
|
xml += "</lookup>";
|
|
3943
3948
|
var data = {
|
|
@@ -4470,7 +4475,7 @@
|
|
|
4470
4475
|
MobileCRM.bridge.command("showReport", JSON.stringify(params), success, failed, scope);
|
|
4471
4476
|
};
|
|
4472
4477
|
MobileCRM.MobileReport.runReport = function (fetch, reportXML, reportFormat, isExportOnly, isOnline, outputFile, success, failed, scope) {
|
|
4473
|
-
/// <summary>[v9.1] Executes the mobile reporting request which produces the mobile report document of given format.</summary>
|
|
4478
|
+
/// <summary>[v9.1] Deprecated: please use MobileCRM.MobileReport.generateReportAsync instead. Executes the mobile reporting request which produces the mobile report document of given format.</summary>
|
|
4474
4479
|
/// <param name="fetch" type="String">The fetch XML defining the entity (entities) query used as report input.</param>
|
|
4475
4480
|
/// <param name="reportXML" type="String">The mobile report XML definition which can be loaded from the resco_report entity or constructed dynamically. Ignored if IsExportOnly parameter is true.</param>
|
|
4476
4481
|
/// <param name="reportFormat" type="String">Report format: Pdf (default), Html, Excel, Text.</param>
|
|
@@ -4490,7 +4495,7 @@
|
|
|
4490
4495
|
MobileCRM.bridge.command("runMobileReportAsync", JSON.stringify(params), success, failed, scope);
|
|
4491
4496
|
};
|
|
4492
4497
|
MobileCRM.MobileReport.runReportAsync = function (fetch, reportXML, reportFormat, isExportOnly, isOnline, outputFile) {
|
|
4493
|
-
/// <summary>[v9.1] Executes the mobile reporting request which produces the mobile report document of given format.</summary>
|
|
4498
|
+
/// <summary>[v9.1] Deprecated: please use MobileCRM.MobileReport.generateReportAsync instead. Executes the mobile reporting request which produces the mobile report document of given format.</summary>
|
|
4494
4499
|
/// <param name="fetch" type="String">The fetch XML defining the entity (entities) query used as report input.</param>
|
|
4495
4500
|
/// <param name="reportXML" type="String">The mobile report XML definition which can be loaded from the resco_mobilereport entity or constructed dynamically. Ignored if IsExportOnly parameter is true.</param>
|
|
4496
4501
|
/// <param name="reportFormat" type="String">Report format: Pdf (default), Html, Excel, Text.</param>
|
|
@@ -4504,6 +4509,42 @@
|
|
|
4504
4509
|
});
|
|
4505
4510
|
});
|
|
4506
4511
|
};
|
|
4512
|
+
|
|
4513
|
+
MobileCRM.MobileReport.GenerateReportRequest = function () {
|
|
4514
|
+
/// <summary>[v18.0] The request class specifying behavior of MobileCRM.MobileReport.generateReportAsync function.</summary>
|
|
4515
|
+
/// <param name="source" type="String | MobileCRM.Reference">The identifier of report source record(s) as MobileCRM.Reference or fetch in its xml representation.</param>
|
|
4516
|
+
/// <param name="template" type="String | MobileCRM.Reference">The identifier of report template as its string record ID, exact logical name, MobileCRM.Reference or actual xml definition of report.</param>
|
|
4517
|
+
/// <param name="format" type="String">Optional code of report format. Supported values are: Pdf (default), Html, Excel, Text.</param>
|
|
4518
|
+
/// <param name="customNameOrPath" type="String">Optional custom name of report file or its full path. If not provided, default report name and path are used. When using full path, it is recommended to place it in MobileCRM.Configuration.storageDirectory.</param>
|
|
4519
|
+
/// <param name="languageCode" type="String">Optional iso code (e.g. "en-US") of report language. Currently it only works for reports on localized Questionnaires.</param>
|
|
4520
|
+
/// <param name="waitMessage" type="String">Optional custom message displayed to user while report is being generated. When null or empty string is provided, default message is shown. When undefined, shows no wait message.</param>
|
|
4521
|
+
/// <param name="isOnline" type="Boolean">Optionally specifies if report should be created in Online, or Offline mode. If undefined, the mode in which app is currently running is used.</param>
|
|
4522
|
+
/// <param name="attachTo" type="MobileCRM.Reference">A MobileCRM.Reference to parent record. If provided, method will generate new attachment record and link it to the parent record.</param>
|
|
4523
|
+
/// <param name="attachmentEntity" type="String">When attachmentRecord is provided, optionally specifies the type of attachment entity. If not specified, the default attachment entity is created.</param>
|
|
4524
|
+
this.source = undefined;
|
|
4525
|
+
this.template = undefined;
|
|
4526
|
+
this.format = "Pdf";
|
|
4527
|
+
this.customNameOrPath = undefined;
|
|
4528
|
+
this.languageCode = undefined;
|
|
4529
|
+
this.waitMessage = undefined;
|
|
4530
|
+
this.isOnline = undefined;
|
|
4531
|
+
this.attachTo = undefined;
|
|
4532
|
+
this.attachmentEntity = undefined;
|
|
4533
|
+
};
|
|
4534
|
+
MobileCRM.MobileReport.GenerateReportResult = function () {
|
|
4535
|
+
/// <summary>[v18.0] The result class for MobileCRM.MobileReport.generateReportAsync function.</summary>
|
|
4536
|
+
/// <param name="outputReportPath" type="String">The full file path to generated report. Not present if MobileCRM.MobileReport.GenerateReportRequest.attachTo is provided.</param>
|
|
4537
|
+
/// <param name="attachmentRecord" type="MobileCRM.Reference">The reference to attachment record containing the generated report. Only present if MobileCRM.MobileReport.GenerateReportRequest.attachTo is provided.</param>
|
|
4538
|
+
this.outputReportPath = undefined;
|
|
4539
|
+
this.attachmentRecord = undefined;
|
|
4540
|
+
};
|
|
4541
|
+
MobileCRM.MobileReport.generateReportAsync = async function (request) {
|
|
4542
|
+
/// <summary>[v18.0] Generates the mobile report based on provided request parameters. The generated report will be saved to file system or attached to a record.</summary>
|
|
4543
|
+
/// <param name="request" type="MobileCRM.MobileReport.GenerateReportRequest">The request specifying the details of how the report will be created.</param>
|
|
4544
|
+
/// <returns type="MobileCRM.MobileReport.GenerateReportResult">The promise with <see cref="MobileCRM.MobileReport.GenerateReportResult">GenerateReportResult</see> object.</returns>
|
|
4545
|
+
return MobileCRM.bridge.invokeCommandPromise("generateMobileReportAsync", JSON.stringify(request));
|
|
4546
|
+
};
|
|
4547
|
+
|
|
4507
4548
|
MobileCRM.MobileReport.showForm = function (report, source, fetchXml, failed, scope) {
|
|
4508
4549
|
/// <summary>[v10.1] Shows new MobileReport form. Source for the report can be defined either as list of <see cref="MobileCRM.Reference">MobileCRM.Reference</see> objects or as FetchXML query.</summary>
|
|
4509
4550
|
/// <remarks>If both types of source are passed, user can select which one to use.</remarks>
|
|
@@ -4840,7 +4881,7 @@
|
|
|
4840
4881
|
);
|
|
4841
4882
|
};
|
|
4842
4883
|
MobileCRM.UI.EntityList.setDataSource = function (dataSource) {
|
|
4843
|
-
/// <summary>Sets the entity list data source replacement.</summary>
|
|
4884
|
+
/// <summary>Deprecated: Please use setDataSourceFactory instead. Sets the entity list data source replacement.</summary>
|
|
4844
4885
|
/// <remarks><p>Data source must be set during the document load stage and must not be delayed.</p><p>It is used only if the entity view iFrame is marked as data source provider in Woodford.</p></remarks>
|
|
4845
4886
|
/// <param name="dataSource" type="MobileCRM.UI.ListDataSource">A data source object implementing the DynamicEntity list loading routine.</param>
|
|
4846
4887
|
MobileCRM.UI.EntityList._dataSource = dataSource;
|
|
@@ -4994,7 +5035,7 @@
|
|
|
4994
5035
|
// MobileCRM.UI.ListDataSource
|
|
4995
5036
|
MobileCRM.UI.ListDataSource = function () {
|
|
4996
5037
|
/// <summary>The data source loading routine implementation.</summary>
|
|
4997
|
-
/// <remarks><p>An instance of this object can be used to supply the data source for <see cref="MobileCRM.UI.EntityList.
|
|
5038
|
+
/// <remarks><p>An instance of this object can be used to supply the data source for <see cref="MobileCRM.UI.EntityList.setDataSourceFactory">MobileCRM.UI.EntityList.setDataSourceFactory</see> function.</p><p>The instance of this object is valid only if the method loadNextChunk is implemented. See example <see cref="MobileCRM.UI.EntityList.setDataSourceFactory">here</see>.</p></remarks>
|
|
4998
5039
|
/// <field name="chunkSize" type="Number">Controls the number of entities loaded in once.</field>
|
|
4999
5040
|
/// <field name="fetch" type="MobileCRM.FetchXml.Fetch">Gets the original fetch request for this list view.</field>
|
|
5000
5041
|
/// <field name="loadNextChunk" type="function(page, count)">Controls the number of entities loaded in once. It is called from native code to get chunk (array) of <see cref="MobileCRM.DynamicEntity">DynamicEntities</see>. The chunk is defined by 1-based page number and the desired count which corresponds to the value of chunkSize property.</field>
|
|
@@ -5689,6 +5730,21 @@
|
|
|
5689
5730
|
/// <param name="scope" type="Object">The scope for callback.</param>
|
|
5690
5731
|
MobileCRM.bridge.invokeMethodAsync("EntityForm", "LoadView", [tabName, load], undefined, errorCallback, scope);
|
|
5691
5732
|
};
|
|
5733
|
+
MobileCRM.UI.EntityForm.setFieldValue = function (fieldName, value) {
|
|
5734
|
+
/// <summary>[v18.0] Sets the field value on entity record shown on this EntityForm.</summary>
|
|
5735
|
+
/// <param name="fieldName" type="String">Logical name of the field that has to be changed.</param>
|
|
5736
|
+
/// <param name="value" type="any">New value of entity field with given name.</param>
|
|
5737
|
+
/// <returns type="Promise<boolean>">A promise resolved with boolean result of native field setter.</returns>
|
|
5738
|
+
var obj = {};
|
|
5739
|
+
obj[fieldName] = value;
|
|
5740
|
+
return MobileCRM.UI.EntityForm.setFieldValues(obj);
|
|
5741
|
+
};
|
|
5742
|
+
MobileCRM.UI.EntityForm.setFieldValues = function (changes) {
|
|
5743
|
+
/// <summary>[v18.0] Sets several field values on entity record loaded on this EntityForm.</summary>
|
|
5744
|
+
/// <param name="changes" type="{ [fieldName: string]: any }">An object defining field changes that has to be done on form entity record.</param>
|
|
5745
|
+
/// <returns type="Promise<boolean>">A promise resolved with boolean result of native field setter.</returns>
|
|
5746
|
+
return MobileCRM.bridge.invokeCommandPromise("setFormEntityFields", JSON.stringify(changes));
|
|
5747
|
+
};
|
|
5692
5748
|
MobileCRM.UI.EntityForm.requestObject = function (callback, errorCallback, scope) {
|
|
5693
5749
|
/// <summary>Requests the managed EntityForm object.</summary>
|
|
5694
5750
|
/// <remarks>Method initiates an asynchronous request which either ends with calling the <b>errorCallback</b> or with calling the <b>callback</b> with Javascript version of EntityForm object. See <see cref="MobileCRM.Bridge.requestObject">MobileCRM.Bridge.requestObject</see> for further details.</remarks>
|