Extend Storage and Access for Quotation Data
Key Lesson: Extend an existing **Server Data Store** and its **Access Control** coverage when new Entities are added to the application.
Before building the Request Quotations Screen, add the quotation Entities to the configuration created in Create Server Data Store and Configure Access Control. Reuse PurchaseDB and PurchasingAppAC; this step extends those objects rather than creating another Server Data Store or Access Control component.
The Quotation and QuotationItem Entities and their relationships must already exist.
1. Add the quotation Entities to PurchaseDB
Section titled “1. Add the quotation Entities to PurchaseDB”- Go to Design → Object Types → ServerDataStore and open PurchaseDB.
- Under Entity configurations, use SELECT ENTITIES to add the quotation Entities:
| Entity | Selection |
|---|---|
| Purchasing.Quotation | Selected |
| Purchasing.QuotationItem | Selected |
Keep Purchasing.PurchaseRequest and Purchasing.PurchaseRequestItem selected. After each new Entity is selected, it appears under CONFIGURATION. Leave its configuration settings at their default values except for the currency precision setting below.
2. Configure quotation currency precision
Section titled “2. Configure quotation currency precision”Under CONFIGURATION, set Precision to 2 for the quotation item’s persisted unit price:
| Entity property | Precision |
|---|---|
| Purchasing.QuotationItem.unitPrice | 2 |
Retain the existing precision of 2 for Purchasing.PurchaseRequestItem.budgetAmount and leave the remaining Entity configuration settings unchanged.
Save and close the editor.
3. Confirm quotation Access Control coverage
Section titled “3. Confirm quotation Access Control coverage”- Go to Design → Object Types → Access Control and open PurchasingAppAC.
- In the ServerDataStore tab, confirm that PurchaseDB remains linked to this Access Control object.
- Click PurchaseDB to open its generated code editor.
- Check that
Purchasing.QuotationandPurchasing.QuotationItemare listed alongsidePurchasing.PurchaseRequestandPurchasing.PurchaseRequestItem. - Leave the existing access rules unchanged, including the Process-start rules configured earlier in Connect and Test Request Submission.
Note
This check confirms that the existing Access Control configuration covers the newly persisted quotation Entities. Generated restrictions do not grant permissions automatically; do not add blanket permissions without verified access requirements.