A .projection file is the API layer between the Aurena UI and the Oracle database. It declares what data sets are available, how entities are structured, and what server-side actions and functions can be called. One .client file consumes exactly one projection via its projection <Name>; declaration.
The Marble compiler doesn’t enforce section ordering, but Developer Studio and the team convention expect entityset declarations at the top and grouped constructs below. Keeping this order makes file comparisons and code reviews much easier.
The @DynamicComponentDependency Annotation
When your projection uses constructs from an optional IFS component (one that may not be installed on every customer’s system), wrap the include fragment with this annotation:
@DynamicComponentDependency PROJinclude fragment ProjectLovSelector;@DynamicComponentDependency CBSINTinclude fragment ScheduleBatchBalanceDialog;
Missing Annotation = Compile Error on Minimal Installs
If you reference an entity or fragment from an optional component without @DynamicComponentDependency, the build will fail on installations that don’t have that component. Always check whether a component is optional before referencing its constructs.
------------------------------------------------------------------------------------------------------ Date Sign History-- ---------- ------ ------------------------------------------------------------------------------- 200325 SUPMLK Bug 153028, Added DefaultRevAltInfo structure and GetDefaultRevisions function.----------------------------------------------------------------------------------------------------projection BatchBalanceHandling; -- File name without extensioncomponent SHPORD; -- Shop Order componentlayer Core; -- IFS base code (use Cust for customizations)description "View BatchBalanceNode"; -- Shown in Developer Studiocategory Users; -- Visible to end users in Aurenainclude fragment ManufStructAltBuildLovSelector; -- Required LOV fragmentsinclude fragment PartRevisionDateLov3Selector;include fragment InventoryPartLov20Selector;include fragment BatchBalanceOrdersAvailableSelector;include fragment UserAllowedSiteLovSelector;include fragment PartRevisionDateLov2Selector;include fragment ManufStructAltStateLovSelector;-- Fragments for Supply/Demand Detailinclude fragment ShopOrderRequisitionRelease;@DynamicComponentDependency PROJ -- PROJ component may not be installedinclude fragment ActivityTreeNavSelector;@DynamicComponentDependency PROJinclude fragment ProjectQryFullAccessSelector;@DynamicComponentDependency PROJinclude fragment ProjectLovSelector;@DynamicComponentDependency CBSINT -- CBS Integration also optionalinclude fragment ScheduleBatchBalanceDialog;include fragment BatchBalanceNodeInitialCheck; -- Security check fragment----------------------------- MAIN ENTRY POINTS -----------------------------entityset BatchBalanceSet for BatchBalance; -- Primary data setentityset BatchBalanceNodeSet for BatchBalanceNode;entityset BatchBalanceDemandAvailableSet for BatchBalanceDemandAvailable;entityset ShopOrderPropVirtualSet for ShopOrderPropVirtual;
Patterns & Tips
Naming Convention: Projection = Screen Name + "Handling"
By convention, projection files are named <ScreenName>Handling.projection. The paired client file is named <ScreenName>.client. A dialog or assistant handler is named <DialogName>Handling.projection. This makes it easy to find the projection for any client file.
Customer Projections Use a Ti Prefix and -Cust Suffix
Customer-layer files follow the pattern Ti<Feature>-Cust.projection with layer Cust; in the header. This distinguishes them from Core files and prevents naming collisions when IFS adds new base projections.
Fragment vs. Projection Include
include fragment in a projection pulls in only the PROJECTION FRAGMENTS section of the fragment file (the data constructs). The CLIENT FRAGMENTS section is pulled in by the .client file’s own include fragment declaration.
See Also
Entityset — the main entry point declared right after the header
Entity — most common construct inside a projection