-
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 5 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,47 @@ | ||
| namespace D4P.CCMS.PTEApps; | ||
|
|
||
| page 62030 "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(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 begin | ||
| IsolatedStorage.Set(Rec.ID, InputToken.GetToken()) | ||
TowerMyhrer marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| end; | ||
| end; | ||
| } | ||
| } | ||
| } | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,37 @@ | ||
| namespace D4P.CCMS.PTEApps; | ||
| table 62006 "D4P BC DevOps Organization" | ||
| { | ||
| DataClassification = CustomerContent; | ||
| Caption = 'D365BC DevOps Organization'; | ||
|
|
||
TowerMyhrer marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| fields | ||
| { | ||
| field(1; ID; Code[20]) | ||
TowerMyhrer marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| { | ||
| Caption = 'ID'; | ||
| ToolTip = 'Specifies the unique identifier for the DevOps organization.'; | ||
| } | ||
| field(2; Name; Text[100]) | ||
| { | ||
| Caption = 'Name'; | ||
| ToolTip = 'Specifies the name of the DevOps organization.'; | ||
| } | ||
| } | ||
|
|
||
| keys | ||
| { | ||
| key(PK; ID) | ||
| { | ||
| Clustered = true; | ||
| } | ||
| } | ||
|
|
||
| trigger OnDelete() | ||
| begin | ||
| if IsolatedStorage.Contains(Rec.ID) then | ||
| IsolatedStorage.Delete(Rec.ID); | ||
TowerMyhrer marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| end; | ||
|
|
||
|
|
||
|
|
||
TowerMyhrer marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| } | ||
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,32 @@ | ||||||||||||||||||||||||||||||||||||||||||
| namespace D4P.CCMS.PTEApps; | ||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||
| page 62031 "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; | ||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||
TowerMyhrer marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||
| var | ||||||||||||||||||||||||||||||||||||||||||
| Token: Text[250]; | ||||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
15
to
26
|
||||||||||||||||||||||||||||||||||||||||||
| field(Token; TokenPlain) | |
| { | |
| Caption = 'Personal Access Token'; | |
| ToolTip = 'Specifies the Personal Access Token for DevOps organization access.'; | |
| MultiLine = true; | |
| ExtendedDatatype = Masked; | |
| trigger OnValidate() | |
| begin | |
| Token := TokenPlain; | |
| end; | |
| } | |
| } | |
| } | |
| } | |
| var | |
| Token: SecretText; | |
| TokenPlain: Text[250]; |
TowerMyhrer marked this conversation as resolved.
Outdated
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,85 @@ | ||
| namespace D4P.CCMS.PTEApps; | ||
|
|
||
| using D4P.CCMS.Nuget; | ||
| table 62007 "D4P BC PTE App" | ||
| { | ||
| DataClassification = CustomerContent; | ||
| Caption = 'D365BC PTE App'; | ||
| drilldownpageid = "D4P BC PTE Apps List"; | ||
TowerMyhrer marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| LookupPageId = "D4P BC PTE Apps List"; | ||
|
|
||
| fields | ||
| { | ||
| field(1; "PTE ID"; Guid) | ||
| { | ||
| Caption = 'PTE ID'; | ||
TowerMyhrer marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| } | ||
| field(2; "PTE Name"; Text[100]) | ||
| { | ||
| Caption = 'PTE Name'; | ||
TowerMyhrer marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| } | ||
| field(4; "Range From"; Integer) | ||
| { | ||
| Caption = 'Range From'; | ||
TowerMyhrer marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| } | ||
| field(5; "Range To"; Integer) | ||
| { | ||
| Caption = 'Range To'; | ||
TowerMyhrer marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| } | ||
| field(6; "Latest App Version"; Text[50]) | ||
| { | ||
| Caption = 'App Version'; | ||
| ToolTip = 'Specifies the latest version of the PTE app.'; | ||
| } | ||
| field(7; DevOps; enum "D4P BC DevOps Environments") | ||
TowerMyhrer marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| { | ||
| Caption = 'DevOps Environment'; | ||
| ToolTip = 'Specifies the DevOps environment associated with the PTE app.'; | ||
TowerMyhrer marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| } | ||
| field(8; "DevOps Organization"; Text[100]) | ||
TowerMyhrer marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
TowerMyhrer marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| { | ||
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
|
||
| TableRelation = "D4P BC DevOps Organization".ID; | ||
| } | ||
| field(9; "DevOps Package"; Text[100]) | ||
TowerMyhrer marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| { | ||
| Caption = 'Repository'; | ||
| ToolTip = 'Specifies the repository associated with the PTE app.'; | ||
| } | ||
| field(10; "DevOps Feed"; Text[100]) | ||
| { | ||
| Caption = 'Feed'; | ||
| ToolTip = 'Specifies the feed associated with the PTE app.'; | ||
| } | ||
| field(11; "NuGet Package Name"; Text[250]) | ||
| { | ||
| Caption = 'NuGet Package Name'; | ||
| ToolTip = 'Specifies the NuGet package name of the PTE app.'; | ||
| } | ||
| } | ||
|
|
||
| keys | ||
| { | ||
| key(PK; "PTE ID") | ||
| { | ||
| Clustered = true; | ||
| } | ||
| } | ||
|
|
||
| fieldgroups | ||
| { | ||
| fieldgroup(DropDown; "PTE ID", "PTE Name") | ||
| { } | ||
| fieldgroup(Brick; "PTE ID", "PTE Name") | ||
| { } | ||
| } | ||
| trigger OnDelete() | ||
| var | ||
| PTEAppVersion: Record "D4P BC PTE App Version"; | ||
| begin | ||
| PTEAppVersion.SetRange("PTE ID", Rec."PTE ID"); | ||
| if not PTEAppVersion.IsEmpty() then | ||
| PTEAppVersion.DeleteAll(); | ||
TowerMyhrer marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| end; | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,87 @@ | ||
| namespace D4P.CCMS.PTEApps; | ||
| page 62028 "D4P BC PTE App Card" | ||
| { | ||
| ApplicationArea = All; | ||
| Caption = 'D365BC PTE Apps Card'; | ||
TowerMyhrer marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| PageType = Card; | ||
| SourceTable = "D4P BC PTE App"; | ||
|
|
||
| layout | ||
| { | ||
| area(Content) | ||
| { | ||
| group(General) | ||
| { | ||
| Caption = 'General'; | ||
|
|
||
| field("PTE ID"; Rec."PTE ID") | ||
| { | ||
| } | ||
| field("PTE Name"; Rec."PTE Name") | ||
| { | ||
| } | ||
| field("App Version"; Rec."Latest App Version") | ||
| { | ||
| } | ||
| } | ||
| group(DevOpsGroup) | ||
| { | ||
| Caption = 'DevOps'; | ||
|
|
||
| field("Range From"; Rec."Range From") | ||
TowerMyhrer marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| { | ||
| } | ||
| field("Range To"; Rec."Range To") | ||
| { | ||
| } | ||
| field(DevOps; Rec.DevOps) | ||
| { | ||
| } | ||
| field("DevOps Organization"; Rec."DevOps Organization") | ||
| { | ||
| } | ||
| field("DevOps Package"; Rec."DevOps Package") | ||
| { | ||
TowerMyhrer marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| Visible = DevOpsPackageVisible; | ||
| } | ||
| field("DevOps Feed"; Rec."DevOps Feed") | ||
| { | ||
| Visible = DevopsFeedVisible; | ||
| } | ||
| field("NuGet Package Name"; Rec."NuGet Package Name") | ||
| { | ||
| } | ||
| } | ||
| } | ||
|
|
||
| area(FactBoxes) | ||
| { | ||
| part(PTEAppVersionsFactBox; "D4P PTE App Versions FactBox") | ||
| { | ||
| Caption = 'Versions'; | ||
| ApplicationArea = All; | ||
TowerMyhrer marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| SubPageLink = "PTE ID" = field("PTE ID"); | ||
| } | ||
| } | ||
| } | ||
|
|
||
| trigger OnAfterGetRecord() | ||
| begin | ||
| SetVisibleFields(); | ||
| end; | ||
|
|
||
| local procedure SetVisibleFields() | ||
| begin | ||
| if Rec.DevOps = Rec.DevOps::Azure then begin | ||
| DevOpsPackageVisible := true; | ||
| DevopsFeedVisible := true; | ||
| end else begin | ||
| DevOpsPackageVisible := false; | ||
| DevopsFeedVisible := false; | ||
| end; | ||
| end; | ||
|
|
||
| var | ||
| DevOpsPackageVisible: Boolean; | ||
| DevopsFeedVisible: Boolean; | ||
| } | ||
Uh oh!
There was an error while loading. Please reload this page.