-
Notifications
You must be signed in to change notification settings - Fork 50
PTE Apps and Nuget for getting versions #73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
d30ab05
f2ab3cb
69bed70
db35dd2
27412e8
4a9813b
4bc7959
578132a
fe16715
c70d216
205be64
471a02a
1d688b8
0b0dfbb
f7d003b
afa8529
9670bd4
d9c854d
59aeaa4
d860170
ff062e6
ade7e15
440e523
06aad87
f81a8fd
4958802
a9a59df
9962c4e
adc9bab
eabaaad
c177eea
05e19e4
47f7b82
37e3bab
9b9694c
7fd4a56
0cdcd9f
d1f3d80
96688b1
7c30ce5
f1086d2
a959d4f
1797d2f
f868723
3356574
2a03324
80a3478
81acaec
c2e01c7
60b0c5a
79942d2
a7b08f7
61d9c25
b400aa6
6ef799f
fb1c482
8f28401
fe6b92a
16523f2
4e34d2f
aa5fb85
f4740e1
71abb08
62c2ec0
3872cd3
bd80487
32f299c
d6ced9c
9a04be6
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,49 @@ | ||
| namespace D4P.CCMS.PTEApps; | ||
|
|
||
| page 62036 "D4P BC DevOps Org. List" | ||
| { | ||
| ApplicationArea = All; | ||
| Caption = 'D365BC DevOps Organization List'; | ||
| PageType = List; | ||
| SourceTable = "D4P BC DevOps Organization"; | ||
| UsageCategory = Administration; | ||
|
|
||
| layout | ||
| { | ||
| area(Content) | ||
| { | ||
| repeater(General) | ||
| { | ||
| field(DevOps; Rec."DevOps Environment") | ||
| { | ||
| } | ||
| field(ID; Rec.ID) | ||
| { | ||
| } | ||
| field(Name; Rec.Name) | ||
| { | ||
| } | ||
| } | ||
| } | ||
| } | ||
|
|
||
| actions | ||
| { | ||
| area(Processing) | ||
| { | ||
| action(ImportToken) | ||
| { | ||
| Caption = 'Import Token'; | ||
| ApplicationArea = All; | ||
| Image = CodesList; | ||
| trigger OnAction() | ||
| var | ||
| InputToken: Page "D4P BC Input Token"; | ||
| begin | ||
| if InputToken.RunModal() = Action::OK then | ||
| IsolatedStorage.Set(StrSubstNo('%1-%2', Rec."DevOps Environment", Rec.ID), InputToken.GetToken()); | ||
| end; | ||
| } | ||
| } | ||
| } | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,46 @@ | ||
| namespace D4P.CCMS.PTEApps; | ||
|
|
||
| using D4P.CCMS.Nuget; | ||
| table 62006 "D4P BC DevOps Organization" | ||
| { | ||
| DataClassification = CustomerContent; | ||
| Caption = 'D365BC DevOps Organization'; | ||
| LookupPageId = "D4P BC DevOps Org. List"; | ||
| DrillDownPageId = "D4P BC DevOps Org. List"; | ||
|
|
||
TowerMyhrer marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| fields | ||
| { | ||
| field(1; "DevOps Environment"; Enum "D4P BC DevOps Environment") | ||
| { | ||
| Caption = 'DevOps Environment'; | ||
| ToolTip = 'Specifies the environment for the DevOps organization.'; | ||
| } | ||
| field(2; ID; Code[20]) | ||
| { | ||
| Caption = 'ID'; | ||
| ToolTip = 'Specifies the unique identifier for the DevOps organization.'; | ||
| } | ||
| field(3; Name; Text[128]) | ||
| { | ||
| Caption = 'Name'; | ||
| ToolTip = 'Specifies the name of the DevOps organization.'; | ||
| } | ||
| } | ||
|
|
||
| keys | ||
| { | ||
| key(PK; "DevOps Environment", ID) | ||
| { | ||
| Clustered = true; | ||
| } | ||
| } | ||
|
|
||
| trigger OnDelete() | ||
| var | ||
| TokenKey: Text; | ||
| begin | ||
| TokenKey := StrSubstNo('%1-%2', Format(Rec."DevOps Environment"), Rec.ID); | ||
| if IsolatedStorage.Contains(TokenKey) then | ||
| IsolatedStorage.Delete(TokenKey); | ||
| end; | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,32 @@ | ||
| namespace D4P.CCMS.PTEApps; | ||
|
|
||
| page 62050 "D4P BC Input Token" | ||
| { | ||
| ApplicationArea = All; | ||
| Caption = 'D365BC Input Token'; | ||
| PageType = StandardDialog; | ||
|
|
||
| layout | ||
| { | ||
| area(Content) | ||
| { | ||
| group(General) | ||
| { | ||
| field(Token; Token) | ||
| { | ||
| Caption = 'Personal Access Token'; | ||
| ToolTip = 'Specifies the Personal Access Token for DevOps organization access.'; | ||
| MultiLine = true; | ||
| } | ||
| } | ||
| } | ||
| } | ||
|
|
||
| var | ||
| Token: Text[250]; | ||
|
|
||
| procedure GetToken(): SecretText | ||
| begin | ||
| exit(Token); | ||
| end; | ||
TowerMyhrer marked this conversation as resolved.
Show resolved
Hide resolved
TowerMyhrer marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,99 @@ | ||
| namespace D4P.CCMS.PTEApps; | ||
|
|
||
| using D4P.CCMS.Nuget; | ||
| table 62007 "D4P BC PTE App" | ||
| { | ||
| DataClassification = CustomerContent; | ||
| Caption = 'D365BC PTE App'; | ||
| DrillDownPageId = "D4P BC PTE App List"; | ||
| LookupPageId = "D4P BC PTE App List"; | ||
|
|
||
| fields | ||
| { | ||
| field(1; "ID"; Guid) | ||
| { | ||
| Caption = 'ID'; | ||
| ToolTip = 'Specifies the ID of the Per Tenant Extension.'; | ||
| } | ||
| field(2; "Name"; Text[100]) | ||
| { | ||
| Caption = 'Name'; | ||
| ToolTip = 'Specifies the name of the Per Tenant Extension.'; | ||
| } | ||
| field(3; "Latest App Version"; Text[50]) | ||
| { | ||
| Caption = 'App Version'; | ||
| ToolTip = 'Specifies the latest version of the PTE app.'; | ||
| } | ||
| field(4; "DevOps Environment"; Enum "D4P BC DevOps Environment") | ||
| { | ||
| Caption = 'DevOps Environment'; | ||
| ToolTip = 'Specifies the DevOps environment associated with the PTE app.'; | ||
TowerMyhrer marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| trigger OnValidate() | ||
| begin | ||
| if Rec."DevOps Environment" <> xRec."DevOps Environment" then | ||
| ClearFieldsOnDevOpsChange(); | ||
| end; | ||
| } | ||
| field(5; "DevOps Organization"; Text[100]) | ||
| { | ||
TowerMyhrer marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| Caption = 'Organization'; | ||
| ToolTip = 'Specifies the organization associated with the PTE app.'; | ||
TowerMyhrer marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| trigger OnLookup() | ||
| var | ||
| DevOpsOrganization: Record "D4P BC DevOps Organization"; | ||
| begin | ||
| DevOpsOrganization.SetRange("DevOps Environment", Rec."DevOps Environment"); | ||
| if Page.RunModal(Page::"D4P BC DevOps Org. List", DevOpsOrganization) = Action::LookupOK then | ||
| Rec."DevOps Organization" := DevOpsOrganization.ID; | ||
| end; | ||
| } | ||
| field(6; "DevOps Package"; Text[100]) | ||
| { | ||
| Caption = 'Package'; | ||
| ToolTip = 'Specifies the package associated with the PTE app.'; | ||
TowerMyhrer marked this conversation as resolved.
Show resolved
Hide resolved
TowerMyhrer marked this conversation as resolved.
Show resolved
Hide resolved
TowerMyhrer marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| } | ||
| field(7; "DevOps Feed"; Text[100]) | ||
| { | ||
| Caption = 'Feed'; | ||
| ToolTip = 'Specifies the feed associated with the PTE app.'; | ||
| } | ||
| field(8; "NuGet Package Name"; Text[250]) | ||
| { | ||
| Caption = 'NuGet Package Name'; | ||
| ToolTip = 'Specifies the NuGet package name of the PTE app.'; | ||
| } | ||
| } | ||
|
|
||
| keys | ||
| { | ||
| key(PK; "ID") | ||
| { | ||
| Clustered = true; | ||
| } | ||
| } | ||
|
|
||
| fieldgroups | ||
| { | ||
| fieldgroup(DropDown; "ID", "Name") | ||
| { } | ||
| fieldgroup(Brick; "ID", "Name") | ||
| { } | ||
| } | ||
| trigger OnDelete() | ||
| var | ||
| PTEAppVersion: Record "D4P BC PTE App Version"; | ||
| begin | ||
| PTEAppVersion.SetRange("PTE ID", Rec."ID"); | ||
| if not PTEAppVersion.IsEmpty() then | ||
| PTEAppVersion.DeleteAll(true); | ||
TowerMyhrer marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| end; | ||
|
|
||
| local procedure ClearFieldsOnDevOpsChange() | ||
| begin | ||
| Rec."DevOps Organization" := ''; | ||
| Rec."DevOps Feed" := ''; | ||
| Rec."DevOps Package" := ''; | ||
| Rec."NuGet Package Name" := ''; | ||
TowerMyhrer marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| end; | ||
| } | ||
Uh oh!
There was an error while loading. Please reload this page.