Hello
I am required to execute a BAQ(External) to get some info required by the configurator methods. I am trying a Server UD Method to execute this BAQ but failing completely.
I’ve done this in customization, but it seems I must do it differently in the script editor for this UD methods.
First I tried the usual DynamicQueryAdapter way, but it seems that is not available in Ice.BO.Contracts.DynamicQuery since it says it is not found.
I’ve seen some references using GetService which seems to work, but the BAQ methods from this way of doing it fail because they seem to use Ice.Tablesets.QueryExecutionTableset instead of the common QueryExecutionDataSet.
Then I tried it with Ice.Tablesets but something is different and support is not responding yet, so I though I might try here.
Ice.Contracts.DynamicQuerySvcContract baqService;
baqService = Ice.Assemblies.ServiceRenderer.GetService<Ice.Contracts.DynamicQuerySvcContract>(Db);
QueryExecutionTableset qets = baqService.GetQueryExecutionParametersByID("gi_ObtenerTiempoLaminadoPza");
So far, good no sintax error
But if I try to clear the ExecutionParameter table and set my parameters,
qets.ExecutionParameter.Clear();
qets.ExecutionParameter.AddExecutionParameterRow("Alto", medMayor, "decimal", false, null, "A");
I get a that ExecutionParameter doesn’t have the AddExecutionParameterRow.
If I try directly adding rows, it says the Rows.Add method is not available also.
If I try changing the parameters that are already in the table, I get that I cant’ convert string to int
qets.Tables["ExecutionParameter"].Rows[0].Item["RowMod"] = "A";
That comes from the Tables[“ExecutionParameter”] it seems the reference by Name doesn’t work…
So I am completely lost in this, any help would be greatly appreciated.