Quantcast
Channel: SCN : All Content - SAP BusinessObjects Design Studio
Viewing all articles
Browse latest Browse all 4216

Datefield automatically Date yesterday

$
0
0

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


Viewing all articles
Browse latest Browse all 4216

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>