Module3 Day1 Task1 StepByStepGuide Trisha
Module3 Day1 Task1 StepByStepGuide Trisha
PREPARED BY:
TRISHA NICOLE L. REMINAJES
PRACTICE TASK:
To successfully complete tasks on queries in Module 3, use data processor
Download Query Console QueryConsole_en.epf for debugging your queries.
Make sure you create queries for the provided infobase Download Infobase for
Queries InfoBaseForQueries.dt.
You can add user data for this database to let queries work as designed.
In case you use a different information database for these tasks, you get zero
points.
TASK 1:
Create an external data processor that sums up totals in all Purchases and Sales documents.
Integrate calculator functionality into the data processor.
SOLUTIONS:
→ → →
→ →
Step 1: Restore the infobase for Queries InfoBaseForQueries.dt File Right Click
Open New File then Select External Data Processor Click OK.
01
Step 2: Create a Form then named it as Calculator. Then 3 windows will appear. Create
fields for TotalPurchases, TotalSales, FirstNumber, Operator and Results. Drag
them to Form.
Step 3: In commands, Create numbers 0-9 buttons for calculator. Just redo what we did in
this number One
02
Step 4: Create commands for operators and equal sign. Do the same thing to other
operations.
Commands:
03
Step 6: Add the following codes:
04
Codes for Clear button:
Additional codes for Total of Purchases, Total of Sales, and checking symbols
05
Step 7: Drag all of fields and commands to the Form.
Step 8:. Save the data base configuration by pressing F7 key on keyboard.
06
DEMONSTRATION OF SOLUTIONS:
Execute the queries
Step 1: To check if the calculator is working, Click start debugging the infobase
Step 2: Wait for the application to run/display on screen. Go to File and open the external
data processor we created.
07
Step 3: A warning message will appear. Click YES.
08
Step 4: Try to add two numbers. Here's the example:
100 + 98 = 198
09