Skip to content

Commit 0e7d46d

Browse files
authored
Add files via upload
1 parent 4b7f184 commit 0e7d46d

File tree

6 files changed

+1818
-81
lines changed

6 files changed

+1818
-81
lines changed

js/drb.dom.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -471,6 +471,13 @@ DRB.DOM.FetchXML.Span = { Id: "span_fetchxml", Name: "Fetch XML" };
471471
DRB.DOM.FetchXML.Editor = { Id: "editor_fetchxml", Class: "code_editor" };
472472
// #endregion
473473

474+
// SDK
475+
DRB.DOM.SDK = {};
476+
DRB.DOM.SDK.Div = { Id: "div_sdk" };
477+
DRB.DOM.SDK.Span = { Id: "span_sdk", Name: "C# SDK" };
478+
DRB.DOM.SDK.Editor = { Id: "editor_sdk", Class: "code_editor" };
479+
// #endregion
480+
474481
// #region Dataverse Execute
475482
// Dataverse Custom API
476483
DRB.DOM.DataverseCustomAPI = {};

js/drb.generatecode.js

Lines changed: 892 additions & 40 deletions
Large diffs are not rendered by default.

js/drb.initialize.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -402,6 +402,7 @@ DRB.DefineOperations = function () {
402402
DRB.Settings.Tabs.push({ Id: "code_fetchxml", Name: "FetchXML", GenerateCode: true, ShowEditor: true, EditorMode: "xml", CopyCode: true, SendFetchXML: true, ShowWarning: true, WarningFetchXML: true, EnabledRequests: ["retrievesingle", "retrievemultiple"] });
403403
DRB.Settings.Tabs.push({ Id: "code_powerquery", Name: "Power Query (M)", GenerateCode: true, EmptyDiv: true, EnabledRequests: ["retrievemultiple"] });
404404
DRB.Settings.Tabs.push({ Id: "code_grid", Name: "Grid", GenerateCode: true, RefreshGrid: true, EmptyDiv: true, EnabledRequests: ["retrievemultiple"] });
405+
DRB.Settings.Tabs.push({ Id: "code_sdk", Name: "C# SDK", ShowEditor: true, EditorMode: "csharp", GenerateCode: true, CopyCode: true, EmptyDiv: true, ShowWarning: true, WarningSDK: true, EnabledRequests: ["retrievesingle", "create", "update", "delete", "associate", "disassociate", "predefinedquery", "executeworkflow", "managefiledata", "manageimagedata"] });
405406

406407
var tabs_Request = DRB.UI.CreateTabs(DRB.DOM.TabsRequest.Id, DRB.Settings.Tabs);
407408
var tabs_Content = DRB.UI.CreateTabContents(DRB.DOM.TabsContent.Id, DRB.Settings.Tabs);
@@ -529,7 +530,7 @@ DRB.InsertMainBodyContent = function () {
529530
*/
530531
DRB.Initialize = async function () {
531532
// DRB Version
532-
var drbVersion = "1.0.0.42";
533+
var drbVersion = "1.0.0.43";
533534
document.title = document.title + " " + drbVersion;
534535
$("#" + DRB.DOM.VersionSpan.Id).html(drbVersion);
535536

js/drb.logic.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -432,6 +432,7 @@ DRB.Logic.CompleteInitialize = function () {
432432
var warningEditor = "NOTE: console.log messages will appear inside the Results tab";
433433
var warningResults = "NOTE: Due to asynchronous calls the output can appear later";
434434
var warningFetchXML = "NOTE: Inside DRB for XrmToolBox you can send the code to <a target='_blank' href='https://fetchxmlbuilder.com'>FetchXML Builder</a>";
435+
var warningSDK = "NOTE: the C# SDK syntax is experimental";
435436
// warnings when DRB is running outside a managed solution
436437
if (DRB.Xrm.IsXTBMode() || DRB.Xrm.IsBEMode() || DRB.Xrm.IsJWTMode() || DRB.Xrm.IsDVDTMode()) {
437438
if (DRB.Xrm.IsXTBMode()) {
@@ -480,6 +481,9 @@ DRB.Logic.CompleteInitialize = function () {
480481
$("#" + DRB.DOM.TabsWarning.Id + tab.Id).append(btn_copyFetchXML);
481482
}
482483
}
484+
}
485+
if (DRB.Utilities.HasValue(tab.WarningSDK) && tab.WarningSDK === true) {
486+
$("#" + DRB.DOM.TabsWarning.Id + tab.Id).html(warningSDK);
483487
}
484488
}
485489
});

0 commit comments

Comments
 (0)