Hi,
I am creating a POC for using PAL and BFL functions. We want to expose them as Odata service in order to be consumed from our UI application.
I created a simple ABC analysis model for Customer grouping using AFM modeler. It generated the required SQL code and I am able to execute it from the editor and the result table is populated as expected. However in order to consumed from UI app, I made following changes.
1. I converted the local temporary table to a normal column table and inserted the required control values.
2. I created a script based calc view and tried to call the generated stored procedure.
I get below error while activation: Deploy Calculation View: SQL: transaction rolled back by an internal error: feature not supported: Only table variable is allowed in input parameter in a nested call
So I created table variables for the required input tables and tried to pass it to the stored procedure, however the stored procedure did not populate the result table. Also since calc view are Read Only stored procedure, how can we delete the data from the result table before running the stored procedure?
I would appreciate if anyone can share their experience while trying to call AFM model from calculation view and exposing it as OData service.
Thanks,
Aamod.