@resconet/jsbridge 18.1.0-beta.2 → 18.1.9
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 +13 -9
- package/src/JSBridge.js +7 -11
package/package.json
CHANGED
package/src/JSBridge.d.ts
CHANGED
|
@@ -1006,7 +1006,7 @@ declare namespace MobileCRM {
|
|
|
1006
1006
|
* Executes the mobile reporting request which produces the mobile report document of given format.
|
|
1007
1007
|
* @param fetch The fetch XML defining the entity (entities) query used as report input.
|
|
1008
1008
|
* @param reportXML The mobile report XML definition which can be loaded from the resco_report entity or constructed dynamically. Ignored if IsExportOnly parameter is true.
|
|
1009
|
-
* @param reportFormat Report format: Pdf (default), Html, Excel,
|
|
1009
|
+
* @param reportFormat Report format: Pdf (default), Html, Excel, Word.
|
|
1010
1010
|
* @param isExportOnly If true then ReportXml is optional. The default is false.
|
|
1011
1011
|
* @param isOnline Indicates whether the report should be run against the online data or local database. The default is current application mode.
|
|
1012
1012
|
* @param outputFile The full path to the output file. If omitted a temp file is created. The output path is always passed to the success callback.
|
|
@@ -1031,7 +1031,7 @@ declare namespace MobileCRM {
|
|
|
1031
1031
|
* Executes the mobile reporting request which produces the mobile report document of given format.
|
|
1032
1032
|
* @param fetch The fetch XML defining the entity (entities) query used as report input.
|
|
1033
1033
|
* @param reportXML The mobile report XML definition which can be loaded from the resco_report entity or constructed dynamically. Ignored if IsExportOnly parameter is true.
|
|
1034
|
-
* @param reportFormat Report format: Pdf (default), Html, Excel,
|
|
1034
|
+
* @param reportFormat Report format: Pdf (default), Html, Excel, Word.
|
|
1035
1035
|
* @param isExportOnly If true then ReportXml is optional. The default is false.
|
|
1036
1036
|
* @param isOnline Indicates whether the report should be run against the online data or local database. The default is current application mode.
|
|
1037
1037
|
* @param outputFile The full path to the output file. If omitted a temp file is created. The output path is always passed to the success callback.
|
|
@@ -1054,7 +1054,7 @@ declare namespace MobileCRM {
|
|
|
1054
1054
|
source: string | Reference;
|
|
1055
1055
|
/** The identifier of report template as its string record ID, exact logical name, {@link MobileCRM.Reference} or actual xml definition of report.*/
|
|
1056
1056
|
template: string | Reference;
|
|
1057
|
-
/** Optional code of report format. Supported values are: Pdf (default), Html, Excel,
|
|
1057
|
+
/** Optional code of report format. Supported values are: Pdf (default), Html, Excel, Word. */
|
|
1058
1058
|
format = "Pdf";
|
|
1059
1059
|
/** Optional custom name of report file or its full path. If not provided, default report name and path are used.
|
|
1060
1060
|
* When using full path, it is recommended to place it in {@link MobileCRM.Configuration.storageDirectory}. */
|
|
@@ -2210,18 +2210,22 @@ declare module MobileCRM.UI {
|
|
|
2210
2210
|
public static openSalesEntityDetail(detail: MobileCRM.DynamicEntity, errorCallback: (err?: string) => void);
|
|
2211
2211
|
/**
|
|
2212
2212
|
* @since 18.0
|
|
2213
|
-
*
|
|
2214
|
-
* The clearance will
|
|
2215
|
-
* or 'Block save during sync and prevent sync while form is open'".
|
|
2216
|
-
*
|
|
2213
|
+
* Provides means to control concurrent access to data by form logic and background sync.
|
|
2214
|
+
* This method obtains a clearance to perform data manipulation. The clearance will be obtained when background sync is not running, or form sync behavior is configured as 'No action'.
|
|
2215
|
+
* If background sync is running and form sync behavior is configured to 'Block save during sync' or 'Block save during sync and prevent sync while form is open'", the clearance is not obtained.
|
|
2216
|
+
* Each obtained clearance must be dutifully released using leaveUiTransaction().
|
|
2217
|
+
* It is possible to call this method multiple times, but each call reserves its own internal clearance, so there must be the same number of calls to leaveUiTransaction to properly release clearance and allow background sync.
|
|
2217
2218
|
* @returns true if form can give the clearance, false if it is not possible at this time.
|
|
2218
2219
|
*/
|
|
2219
2220
|
public static tryEnterUiTransaction(): Promise<boolean>;
|
|
2220
2221
|
/**
|
|
2221
2222
|
* @since 18.0
|
|
2222
|
-
*
|
|
2223
|
+
* Provides means to control concurrent access to data by form logic and background sync.
|
|
2224
|
+
* This method releases the last clearance obtained by successful call to tryEnterUiTransaction.
|
|
2225
|
+
* Can be called even if all clearances are already released or were not obtained at all.
|
|
2226
|
+
* See tryEnterUiTransaction for more info.
|
|
2223
2227
|
*/
|
|
2224
|
-
public static leaveUiTransaction(): Promise
|
|
2228
|
+
public static leaveUiTransaction(): Promise<void>;
|
|
2225
2229
|
/**
|
|
2226
2230
|
* @since 9.3
|
|
2227
2231
|
* Binds or unbinds the handler for onSelectedViewChanged event on EntityForm.
|
package/src/JSBridge.js
CHANGED
|
@@ -4479,7 +4479,7 @@
|
|
|
4479
4479
|
/// <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>
|
|
4480
4480
|
/// <param name="fetch" type="String">The fetch XML defining the entity (entities) query used as report input.</param>
|
|
4481
4481
|
/// <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>
|
|
4482
|
-
/// <param name="reportFormat" type="String">Report format: Pdf (default), Html, Excel,
|
|
4482
|
+
/// <param name="reportFormat" type="String">Report format: Pdf (default), Html, Excel, Word.</param>
|
|
4483
4483
|
/// <param name="isExportOnly" type="Boolean">If true then ReportXml is optional. The default is false.</param>
|
|
4484
4484
|
/// <param name="isOnline" type="Boolean">Indicates whether the report should be run against the online data or local database. The default is current application mode.</param>
|
|
4485
4485
|
/// <param name="outputFile" type="String">The full path to the output file. If omitted a temp file is created. The output path is always passed to the success callback.</param>
|
|
@@ -4499,7 +4499,7 @@
|
|
|
4499
4499
|
/// <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>
|
|
4500
4500
|
/// <param name="fetch" type="String">The fetch XML defining the entity (entities) query used as report input.</param>
|
|
4501
4501
|
/// <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>
|
|
4502
|
-
/// <param name="reportFormat" type="String">Report format: Pdf (default), Html, Excel,
|
|
4502
|
+
/// <param name="reportFormat" type="String">Report format: Pdf (default), Html, Excel, Word.</param>
|
|
4503
4503
|
/// <param name="isExportOnly" type="Boolean">If true then ReportXml is optional. The default is false.</param>
|
|
4504
4504
|
/// <param name="isOnline" type="Boolean">Indicates whether the report should be run against the online data or local database. The default is current application mode.</param>
|
|
4505
4505
|
/// <param name="outputFile" type="String">The full path to the output file. If omitted a temp file is created.</param>
|
|
@@ -4515,7 +4515,7 @@
|
|
|
4515
4515
|
/// <summary>[v18.0] The request class specifying behavior of MobileCRM.MobileReport.generateReportAsync function.</summary>
|
|
4516
4516
|
/// <param name="source" type="String | MobileCRM.Reference">The identifier of report source record(s) as MobileCRM.Reference or fetch in its xml representation.</param>
|
|
4517
4517
|
/// <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>
|
|
4518
|
-
/// <param name="format" type="String">Optional code of report format. Supported values are: Pdf (default), Html, Excel,
|
|
4518
|
+
/// <param name="format" type="String">Optional code of report format. Supported values are: Pdf (default), Html, Excel, Word.</param>
|
|
4519
4519
|
/// <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>
|
|
4520
4520
|
/// <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>
|
|
4521
4521
|
/// <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>
|
|
@@ -5905,18 +5905,14 @@
|
|
|
5905
5905
|
/// <param name="errorCallback" type="function(errorMsg)">The errorCallback which is called asynchronously in case of error.</param>
|
|
5906
5906
|
MobileCRM.bridge.invokeMethodAsync("EntityForm", "ShowEntityDetailDialog", [detail.id], null, errorCallback, null);
|
|
5907
5907
|
};
|
|
5908
|
-
/// <summary>[v18.0] Obtains a clearance to perform manipulation with data.
|
|
5909
|
-
/// The clearance must be dutifully released using leaveUiTransaction() when manipulation is finished.
|
|
5910
|
-
/// The clearance will not be obtained if background sync is running and form sync behavior is configured to 'Block save during sync'
|
|
5911
|
-
/// or 'Block save during sync and prevent sync while form is open'".
|
|
5912
|
-
/// If form sync behavior is configured as 'No action', the clearance is always obtained.
|
|
5913
|
-
/// </summary>
|
|
5914
|
-
/// <returns>Returns true if form can give the clearance, false if it is not possible at this time.</returns>
|
|
5915
5908
|
MobileCRM.UI.EntityForm.tryEnterUiTransaction = function () {
|
|
5909
|
+
/// <summary>[v18.0] Provides means to control concurrent access to data by form logic and background sync. This method obtains a clearance to perform data manipulation. The clearance will be obtained when background sync is not running, or form sync behavior is configured as 'No action'. If background sync is running and form sync behavior is configured to 'Block save during sync' or 'Block save during sync and prevent sync while form is open'", the clearance is not obtained. Each obtained clearance must be dutifully released using leaveUiTransaction(). It is possible to call this method multiple times, but each call reserves its own internal clearance, so there must be the same number of calls to leaveUiTransaction to properly release clearance and allow background sync.</summary>
|
|
5910
|
+
/// <returns type="Promise<boolean>">Returns true if clearance is obtained, false if it is not possible at this time.</returns>
|
|
5916
5911
|
return MobileCRM.bridge.invokeCommandPromise("tryEnterUiTransaction");
|
|
5917
5912
|
};
|
|
5918
|
-
/// <summary>[v18.0] Notifies UI form that clearance obtained using successful call to tryEnterUiTransaction() is no longer needed, because data manipulation is complete.</summary>
|
|
5919
5913
|
MobileCRM.UI.EntityForm.leaveUiTransaction = function () {
|
|
5914
|
+
/// <summary>[v18.0] Provides means to control concurrent access to data by form logic and background sync. This method releases the last clearance obtained by successful call to tryEnterUiTransaction. Can be called even if all clearances are already released or were not obtained at all. See tryEnterUiTransaction for more info.</summary>
|
|
5915
|
+
/// <returns type="Promise<void>">Returns an awaitable promise.</returns>
|
|
5920
5916
|
return MobileCRM.bridge.invokeCommandPromise("leaveUiTransaction");
|
|
5921
5917
|
};
|
|
5922
5918
|
// MobileCRM.UI.EntityForm.DetailCollection
|