-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added page extension for Sales Order page to display customer sales d…
…etails, created a query to retrieve customer sales by quantity, and developed a codeunit to filter and display customer sales greater than 10.
- Loading branch information
Showing
13 changed files
with
72 additions
and
10 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
.vscode/.alcache/cache_363cd60157ad15db640be9bafdfaa8bb5cc485eb23cb764a80031f05f8cd82bd.json
Large diffs are not rendered by default.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
...alcache/cache_363cd60157ad15db640be9bafdfaa8bb5cc485eb23cb764a80031f05f8cd82bdevents.json
Large diffs are not rendered by default.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
.vscode/.alcache/cache_77eab916888f94e5db4be34a863cd3dd4e55242014d4675ed9b96d92429fd914.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{"Path":"","Timestamp":1717751496500,"Items":[],"CreatedwithVersion":"0.2.4"} | ||
{"Path":"","Timestamp":1718884524409,"Items":[],"CreatedwithVersion":"0.2.4"} |
2 changes: 1 addition & 1 deletion
2
...alcache/cache_77eab916888f94e5db4be34a863cd3dd4e55242014d4675ed9b96d92429fd914events.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{"Path":"","Timestamp":1717751496500,"Items":[],"CreatedwithVersion":"0.2.4"} | ||
{"Path":"","Timestamp":1718884524409,"Items":[],"CreatedwithVersion":"0.2.4"} |
2 changes: 1 addition & 1 deletion
2
.vscode/.alcache/cache_9f961d14eb43da38330767169203dcb5f3408976b49eaac3172552c308346d98.json
Large diffs are not rendered by default.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
...alcache/cache_9f961d14eb43da38330767169203dcb5f3408976b49eaac3172552c308346d98events.json
Large diffs are not rendered by default.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
.vscode/.alcache/cache_e816a3b4c4e6877f602691bd44cefbb4660e909183471c675a9b8b90a2c9ad4e.json
Large diffs are not rendered by default.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
...alcache/cache_e816a3b4c4e6877f602691bd44cefbb4660e909183471c675a9b8b90a2c9ad4eevents.json
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
// This is a codeunit to filter and display customer sales greater than 10. | ||
codeunit 50107 MyCodeunit | ||
{ | ||
// This is the main trigger that gets executed when the codeunit is run. | ||
trigger OnRun() | ||
begin | ||
// We're setting a filter on the CustomerQuery to only include records where the Quantity is greater than 10. | ||
CustomerQuery.SetFilter(Quantity, '>10'); | ||
// We're opening the query to prepare it for reading. | ||
CustomerQuery.Open(); | ||
// We're reading each record in the query and executing the code inside the loop. | ||
while CustomerQuery.Read do begin | ||
// We're displaying a message for each record, showing the customer name and quantity. | ||
Message(Textbox, CustomerQuery.CustName, CustomerQuery.Quantity); | ||
end; | ||
// We're closing the query after it has been processed. | ||
CustomerQuery.Close(); | ||
end; | ||
|
||
// This is a variable declaration for the query. | ||
var | ||
CustomerQuery: Query "Customer Sales by quantity"; | ||
|
||
// This is a variable declaration for the message format. | ||
Textbox: TextConst ENU = 'Customer name = %1, Quantity =%2,'; | ||
} |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
pageextension 50107 SalesCustomer extends "Sales Order" | ||
{ | ||
layout | ||
{ | ||
// Add changes to page layout here | ||
} | ||
|
||
actions | ||
{ | ||
addafter(AssemblyOrders) | ||
{ | ||
action("Customer Sales Quantity") | ||
{ | ||
ApplicationArea = All; | ||
Caption = 'Customer Details'; | ||
Image = Customer; | ||
Promoted = true; | ||
PromotedCategory = New; | ||
|
||
trigger OnAction() | ||
var | ||
MyCodeunit: Codeunit 50107; | ||
begin | ||
Clear(MyCodeunit); | ||
MyCodeunit.Run(); | ||
end; | ||
} | ||
} | ||
// Add changes to page actions here | ||
} | ||
|
||
var | ||
myInt: Integer; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters