It seems like you didn't even read what I said.
Let me try again, in little pieces:
1) you can embed SQL code in your XS app
2) Calc Views are not executed thru CALL statements but rather SELECT, as actual views
3) you can see the SELECT statement for querying a given Calc View in the Data Preview
4) Again, I'm not saying to use the Data Preview, but to use the same SELECT statement it does - or at least to start from it
5) you can copy that code into an SQL Editor screen and tweak the statement to your desired output
6) when you're done, use that SELECT statement in your .xsjs file.
Best,
Henrique.