Bob Cergol wrote:Hi Carsten,
Regarding DD inheritance, something as "simple" as cloning the data dictionary as part of a "save as" of an existing DAI view would likely serve most of my needs -- if that's a quicker, more flexible alternative than having true inheritance. I see that unlike SQL views, DAI views cannot be based on other DAI views. However you can copy existing views to new views using "save as" and then modify them as needed -- so effectively the same result.
Bob
Hi Bob,
We've added a new feature to allow that Dynamic AI SQL views can be included into other Dynamic AI SQL views. Using the syntax: @DYNAMIC_AI_SQL_VIEW:1717@ you can get the source SQL from the view ID 1717 inserted at runtime.
Like:
SELECT O.[OrderID], O.[OrderDate], O.[Customer], O.[Product], O.[SalesPerson], O.[SalesPrice], O.[Quantity], O.[CostPrice], O.[VAT]
FROM Orders O
WHERE O.[OrderID] in (SELECT orderID from (
@DYNAMIC_AI_SQL_VIEW:1717@
))
becomes:
SELECT O.[OrderID], O.[OrderDate], O.[Customer], O.[Product], O.[SalesPerson], O.[SalesPrice], O.[Quantity], O.[CostPrice], O.[VAT]
FROM Orders O
WHERE O.[OrderID] in (SELECT orderID from (
SELECT O.[OrderID], O.[OrderDate], O.[Customer], O.[Product], O.[SalesPerson], O.[SalesPrice], O.[Quantity], O.[CostPrice], O.[VAT], O.[Invoicedate]
FROM Orders O))
The RightID's are visible on mouse-over on the views in the explore menu. Dynamic AI Join-builder joins can be inserted this way as well.
Will be available with next build.
Best regards,
Carsten