Hallo Together,
in my application i have implemented a Datefield (DATEFIELD_1) and two Crosstabs:
First Crosstab contains the data i want to show in the application (Source:DS_2)
Second Crosstab contains the dimension "calendarday - yesterday" and is hidden from the application (Source: DS_4)
Now i want to set the yesterday date to the Datefield on Startup. The following Script i type
On Startup: DATEFIELD_1.setDate(DS_4.getVariableValueExt("DPONCD04"));
After select a Date from the Datefield the Crosstab changes the data. Therefore i use the following code
On Select: APPLICATION.setVariableValue("DPMNCDRD", DATEFIELD_1.getDate());
Unfortunately the code "On Startup" does not function.
Can somebody help me to get the "yesterday date" automatically on Startup?
Best regards,
Valentin