Explore the Output UI¶
Overview¶
The part page is essential as it shows temporary project plan proposals created by the Copilot. It works together with the main prompt dialog page to manage project data until the user decides to save these into Business Central as actual projects.
Part Page Components¶
The output UI is made up of two main parts:
-
Table (
GPT Copilot Job Proposal): A temporary table that stores the project plans generated by the Copilot. This table has various fields detailing each task or job, such as job descriptions, dates, and resource categories. -
Part Page (
Copilot Job Proposal Subpart): A ListPart type page that displays data from theGPT Copilot Job Proposaltable, allowing for detailed review and interaction with the project data.
Explore Part Page¶
1: Open Part Page File¶
- Location: Go to the
"\src\2-PlanningCopilot\PromptDialog\CopilotJobProposalSubpart.Page.al"file in your project directory.
2: Understand the Page¶
- Key Aspects: The page is configured to display each task or job as part of the project proposal. Fields like "Job Task No.", "Task Description", and "Action Description Preview" provide a summary of each job's scope and details.
3: Implement Procedures¶
- Load: This procedure loads project proposals from the temporary table to the part page. It moves all records from the
GPT Copilot Job Proposaltable to the page for you to see. - GetRecords: This handles fetching all records from the part page, especially useful when you decide to save the temporary proposals as permanent records in Business Central.
Next Steps¶
Now that you understand how to explore and interact with the part page, you can move on to implementing the AI logic that will populate this page with data from your copilot.