Skip to content

Commit 98aabef

Browse files
authored
Merge pull request #176 from Acumatica/feature/EDU-9556-2026R1-T210-Course-Update-Code-Snippets
EDU-9636: Added the autogenerated Master and Details view to RSSVRepairPriceMaint graph
2 parents 60f2720 + c25bfd7 commit 98aabef

9 files changed

Lines changed: 145 additions & 1 deletion

File tree

Customization/T210/CodeSnippets/Step2.1.1/RSSVRepairPriceMaint.cs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,21 @@ public class RSSVRepairPriceMaint :
99
{
1010
#region Data Views
1111
public SelectFrom<RSSVRepairPrice>.View RepairPrices = null!;
12+
13+
public PXFilter<MasterTable> MasterView;
14+
public PXFilter<DetailsTable> DetailsView;
15+
16+
[Serializable]
17+
public class MasterTable : PXBqlTable, IBqlTable
18+
{
19+
20+
}
21+
22+
[Serializable]
23+
public class DetailsTable : PXBqlTable, IBqlTable
24+
{
25+
26+
}
1227
#endregion
1328
}
1429
}

Customization/T210/CodeSnippets/Step2.1.2/RSSVRepairPriceMaint.cs

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,22 @@ public SelectFrom<RSSVRepairItem>.
1818
IsEqual<RSSVRepairPrice.deviceID.FromCurrent>>>.View
1919
RepairItems = null!;
2020
////////// The end of added code
21+
22+
public PXFilter<MasterTable> MasterView;
23+
public PXFilter<DetailsTable> DetailsView;
24+
25+
[Serializable]
26+
public class MasterTable : PXBqlTable, IBqlTable
27+
{
28+
29+
}
30+
31+
[Serializable]
32+
public class DetailsTable : PXBqlTable, IBqlTable
33+
{
34+
35+
}
36+
2137
#endregion
2238
}
2339
}

Customization/T210/CodeSnippets/Step2.2.2/RSSVRepairPriceMaint.cs

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,22 @@ public SelectFrom<RSSVRepairItem>.
1717
And<RSSVRepairItem.deviceID.
1818
IsEqual<RSSVRepairPrice.deviceID.FromCurrent>>>.View
1919
RepairItems = null!;
20+
21+
public PXFilter<MasterTable> MasterView;
22+
public PXFilter<DetailsTable> DetailsView;
23+
24+
[Serializable]
25+
public class MasterTable : PXBqlTable, IBqlTable
26+
{
27+
28+
}
29+
30+
[Serializable]
31+
public class DetailsTable : PXBqlTable, IBqlTable
32+
{
33+
34+
}
35+
2036
#endregion
2137

2238
////////// The added code
@@ -36,7 +52,8 @@ protected void _(Events.FieldUpdated<RSSVRepairItem,
3652
as InventoryItem;
3753
//Copy the repair item type from the stock item to the row.
3854
var itemExt = item?.GetExtension<InventoryItemExt>();
39-
if (itemExt != null) e.Cache.SetValueExt<RSSVRepairItem.repairItemType>(
55+
if (itemExt != null)
56+
e.Cache.SetValueExt<RSSVRepairItem.repairItemType>(
4057
row, itemExt.UsrRepairItemType);
4158
}
4259
//Trigger the FieldDefaulting event handler for basePrice.

Customization/T210/CodeSnippets/Step2.2.3/RSSVRepairPriceMaint.cs

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,22 @@ public SelectFrom<RSSVRepairItem>.
2020
And<RSSVRepairItem.deviceID.
2121
IsEqual<RSSVRepairPrice.deviceID.FromCurrent>>>.View
2222
RepairItems = null!;
23+
24+
public PXFilter<MasterTable> MasterView;
25+
public PXFilter<DetailsTable> DetailsView;
26+
27+
[Serializable]
28+
public class MasterTable : PXBqlTable, IBqlTable
29+
{
30+
31+
}
32+
33+
[Serializable]
34+
public class DetailsTable : PXBqlTable, IBqlTable
35+
{
36+
37+
}
38+
2339
#endregion
2440

2541
#region Event Handlers

Customization/T210/CodeSnippets/Step2.2.4/RSSVRepairPriceMaint.cs

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,22 @@ public SelectFrom<RSSVRepairItem>.
1818
And<RSSVRepairItem.deviceID.
1919
IsEqual<RSSVRepairPrice.deviceID.FromCurrent>>>.View
2020
RepairItems = null!;
21+
22+
public PXFilter<MasterTable> MasterView;
23+
public PXFilter<DetailsTable> DetailsView;
24+
25+
[Serializable]
26+
public class MasterTable : PXBqlTable, IBqlTable
27+
{
28+
29+
}
30+
31+
[Serializable]
32+
public class DetailsTable : PXBqlTable, IBqlTable
33+
{
34+
35+
}
36+
2137
#endregion
2238

2339
#region Event Handlers

Customization/T210/CodeSnippets/Step4.1.1/RSSVRepairPriceMaint.cs

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,22 @@ public SelectFrom<RSSVLabor>.
2626
IsEqual<RSSVRepairPrice.serviceID.FromCurrent>>>.View
2727
Labor = null!;
2828
////////// The end of added code
29+
30+
public PXFilter<MasterTable> MasterView;
31+
public PXFilter<DetailsTable> DetailsView;
32+
33+
[Serializable]
34+
public class MasterTable : PXBqlTable, IBqlTable
35+
{
36+
37+
}
38+
39+
[Serializable]
40+
public class DetailsTable : PXBqlTable, IBqlTable
41+
{
42+
43+
}
44+
2945
#endregion
3046

3147
#region Event Handlers

Customization/T210/CodeSnippets/Step4.2.1/RSSVRepairPriceMaint.cs

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,22 @@ public SelectFrom<RSSVWarranty>.
3434
OrderBy<RSSVWarranty.defaultWarranty.Desc>.View
3535
Warranty = null!;
3636
////////// The end of added code
37+
38+
public PXFilter<MasterTable> MasterView;
39+
public PXFilter<DetailsTable> DetailsView;
40+
41+
[Serializable]
42+
public class MasterTable : PXBqlTable, IBqlTable
43+
{
44+
45+
}
46+
47+
[Serializable]
48+
public class DetailsTable : PXBqlTable, IBqlTable
49+
{
50+
51+
}
52+
3753
#endregion
3854

3955
#region Event Handlers

Customization/T210/CodeSnippets/Step4.2.2/RSSVRepairPriceMaint.cs

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,22 @@ public SelectFrom<ContractTemplate>.
4242
Where<ContractTemplate.contractCD.IsEqual<defaultWarranty>>.
4343
View DefaultWarranty = null!;
4444
////////// The end of added code
45+
46+
public PXFilter<MasterTable> MasterView;
47+
public PXFilter<DetailsTable> DetailsView;
48+
49+
[Serializable]
50+
public class MasterTable : PXBqlTable, IBqlTable
51+
{
52+
53+
}
54+
55+
[Serializable]
56+
public class DetailsTable : PXBqlTable, IBqlTable
57+
{
58+
59+
}
60+
4561
#endregion
4662

4763
#region Event Handlers

Customization/T210/CodeSnippets/Step4.2.3/RSSVRepairPriceMaint.cs

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,22 @@ public SelectFrom<RSSVWarranty>.
3939
public SelectFrom<ContractTemplate>.
4040
Where<ContractTemplate.contractCD.IsEqual<defaultWarranty>>.
4141
View DefaultWarranty = null!;
42+
43+
public PXFilter<MasterTable> MasterView;
44+
public PXFilter<DetailsTable> DetailsView;
45+
46+
[Serializable]
47+
public class MasterTable : PXBqlTable, IBqlTable
48+
{
49+
50+
}
51+
52+
[Serializable]
53+
public class DetailsTable : PXBqlTable, IBqlTable
54+
{
55+
56+
}
57+
4258
#endregion
4359

4460
#region Event Handlers

0 commit comments

Comments
 (0)