Hi Krishna
I did create a query with a mandatory variable fro 0CALYEAR. Then created a Design Studio App based on the query. My Data Source is defined as Load in Script: false.
I do populate my variable in my app On Variable Initialization event:
APPLICATION.setVaraibleValue("0P_CALYE"."2012");
Also my app Force Prompt at startup is set to false.
When I execute my app on the BI Platform, prompts are not shown at startup and query result set is produced for the value ("2012") I set at On Variable Initialization event.
If I change my app Force Prompt at startup is set to true. Then prompts are shown on startup and the variable is pre-populated with the value I set at On Variable Initialization event.
Check the syntax of your setVariableValue statements as parameters order seems to be incorrect. First parameter is the variable technical name then the value you would like to set.
Regards
Carlos Weffer