Hello,
in v11 we use an AppStudio Script to define the current calendar week and write this value into the variable gv_DWEEK. Here the function of the script in v11:
if datepart("ww",date(),2,2) < 10 then
SetGlobalVariable "gv_DWEEK", "[DWEEK].[All].[0"&datepart("ww",date(),2,2)&"]"
else
SetGlobalVariable "gv_DWEEK", "[DWEEK].[All].["&datepart("ww",date(),2,2)&"]"
end if
In v12 scripting is no longer available, so we have to replace this function. How can I do that? Do I need an APE script, or is this something that can be done directly in the report action?
Best regards, Daniela