Quantcast
Channel: SCN: Message List - SAP HANA Developer Center
Viewing all articles
Browse latest Browse all 9165

Re: correct use of input parameter in calc view

$
0
0

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 ************/

 


Viewing all articles
Browse latest Browse all 9165

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>