Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
GuidoPreite authored Apr 8, 2023
1 parent 4b7f184 commit 0e7d46d
Show file tree
Hide file tree
Showing 6 changed files with 1,818 additions and 81 deletions.
7 changes: 7 additions & 0 deletions js/drb.dom.js
Original file line number Diff line number Diff line change
Expand Up @@ -471,6 +471,13 @@ DRB.DOM.FetchXML.Span = { Id: "span_fetchxml", Name: "Fetch XML" };
DRB.DOM.FetchXML.Editor = { Id: "editor_fetchxml", Class: "code_editor" };
// #endregion

// SDK
DRB.DOM.SDK = {};
DRB.DOM.SDK.Div = { Id: "div_sdk" };
DRB.DOM.SDK.Span = { Id: "span_sdk", Name: "C# SDK" };
DRB.DOM.SDK.Editor = { Id: "editor_sdk", Class: "code_editor" };
// #endregion

// #region Dataverse Execute
// Dataverse Custom API
DRB.DOM.DataverseCustomAPI = {};
Expand Down
932 changes: 892 additions & 40 deletions js/drb.generatecode.js

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion js/drb.initialize.js
Original file line number Diff line number Diff line change
Expand Up @@ -402,6 +402,7 @@ DRB.DefineOperations = function () {
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"] });
DRB.Settings.Tabs.push({ Id: "code_powerquery", Name: "Power Query (M)", GenerateCode: true, EmptyDiv: true, EnabledRequests: ["retrievemultiple"] });
DRB.Settings.Tabs.push({ Id: "code_grid", Name: "Grid", GenerateCode: true, RefreshGrid: true, EmptyDiv: true, EnabledRequests: ["retrievemultiple"] });
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"] });

var tabs_Request = DRB.UI.CreateTabs(DRB.DOM.TabsRequest.Id, DRB.Settings.Tabs);
var tabs_Content = DRB.UI.CreateTabContents(DRB.DOM.TabsContent.Id, DRB.Settings.Tabs);
Expand Down Expand Up @@ -529,7 +530,7 @@ DRB.InsertMainBodyContent = function () {
*/
DRB.Initialize = async function () {
// DRB Version
var drbVersion = "1.0.0.42";
var drbVersion = "1.0.0.43";
document.title = document.title + " " + drbVersion;
$("#" + DRB.DOM.VersionSpan.Id).html(drbVersion);

Expand Down
4 changes: 4 additions & 0 deletions js/drb.logic.js
Original file line number Diff line number Diff line change
Expand Up @@ -432,6 +432,7 @@ DRB.Logic.CompleteInitialize = function () {
var warningEditor = "NOTE: console.log messages will appear inside the Results tab";
var warningResults = "NOTE: Due to asynchronous calls the output can appear later";
var warningFetchXML = "NOTE: Inside DRB for XrmToolBox you can send the code to <a target='_blank' href='https://fetchxmlbuilder.com'>FetchXML Builder</a>";
var warningSDK = "NOTE: the C# SDK syntax is experimental";
// warnings when DRB is running outside a managed solution
if (DRB.Xrm.IsXTBMode() || DRB.Xrm.IsBEMode() || DRB.Xrm.IsJWTMode() || DRB.Xrm.IsDVDTMode()) {
if (DRB.Xrm.IsXTBMode()) {
Expand Down Expand Up @@ -480,6 +481,9 @@ DRB.Logic.CompleteInitialize = function () {
$("#" + DRB.DOM.TabsWarning.Id + tab.Id).append(btn_copyFetchXML);
}
}
}
if (DRB.Utilities.HasValue(tab.WarningSDK) && tab.WarningSDK === true) {
$("#" + DRB.DOM.TabsWarning.Id + tab.Id).html(warningSDK);
}
}
});
Expand Down
Loading

0 comments on commit 0e7d46d

Please sign in to comment.