Skip to content

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”
  1. Go to Design → Object Types → ServerDataStore and open PurchaseDB.
  2. Under Entity configurations, use SELECT ENTITIES to add the quotation Entities:
EntitySelection
Purchasing.QuotationSelected
Purchasing.QuotationItemSelected

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.

Under CONFIGURATION, set Precision to 2 for the quotation item’s persisted unit price:

Entity propertyPrecision
Purchasing.QuotationItem.unitPrice2

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”
  1. Go to Design → Object Types → Access Control and open PurchasingAppAC.
  2. In the ServerDataStore tab, confirm that PurchaseDB remains linked to this Access Control object.
  3. Click PurchaseDB to open its generated code editor.
  4. Check that Purchasing.Quotation and Purchasing.QuotationItem are listed alongside Purchasing.PurchaseRequest and Purchasing.PurchaseRequestItem.
  5. 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.