Hi Michael,
Can you please make the following change and try. I think the userId is the input variable to your scripted Calc view.
Michael An wrote:
/********* Begin Procedure Script ************/
BEGIN
-- DECLARE session_user_var VARCHAR(256) := '$$userId$$'; -- not really required, unless there is specific other use for this.
all_users = CE_COLUMN_TABLE("USER_TABLE", ["ID", "NAME", "UUID", "TYPE", "USER_ID"]);
var_out = CE_PROJECTION(:all_users, ["ID" AS "Id",
"NAME" AS "Name",
"UUID" AS "Uuid",
"TYPE" AS "Type",
"USER_ID" AS "UserId",
CE_CALC('"UserId"='':userId''', TINYINT) AS "IsMe"]);
END /********* End Procedure Script ************/