Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
How can I get the value of the selected date in Date Piker and then insert it in the SQL query to pass it as a procedure parameter?
Hello,
I am not 100% sure what is your exact use case scenario, however based on the information that you shared I believe that this use case scenario is not possible.
Allow me to elaborate in detail to my hypothesis:
I hope that this information was helpful. In case I have misunderstood the use case scenario, please elaborate in details by providing additional information. However, if it has helped you resolve the issue, addressed your concerns or at least pointed you in the right direction, please mark it as Accepted Solution to give further visibility to other community members.
---
I created two variables in the worksheet, and got the start and end dates from the Data Picker, but how do I get these dates in the script?
My Script in bottom:
SET vQVDPath = 'D:/QlikSense';
LET sLocalTimeZone = TimeZone();
LET sStartDate = Date(Min([%Master Calendar Date])); //'Kyiv'
LET sEndDate = Date(Max([%Master Calendar Date]));
LET Str = 'EXEC dbIdc.dbo.sp_EmsGetMVAData ''2022-05-24 00:00:00'', ''2022-05-25 23:59:59'', ''CNT_003-FT01''';
// 'EXEC dbIdc.dbo.sp_EmsGetMVADatav '''& [sStartDate] &''', '''& [sEndDate] &''','&'''CNT_003-FT01''';
LIB CONNECT TO 'PLANTIT';
MVA:
LOAD *;
SQL $(Str);
STORE * FROM MVA INTO 'lib://QVD/MVA.qvd';
You might want to use ODAG
https://www.youtube.com/watch?v=Ft3I00-g4H4