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

Set Current Date-7 in DateField Component

$
0
0

Hi Folks,

 

I have a requirement where in i need to set CurrentDate-7 in Datefield component. When the dashboards opens the DateField component should display May 18, 2016. Currently i have it static. DATEFIELD_1.setDate("20150525"). But i need to make it dynamic. I tried different options but unable to make it work.

 

I know the logic would be to get current date from APPLICATION.getInfo().dateNowInternalFormat and subtract it by 7. But in the process of converting the string to Int and back to String i am unable to make it work.

 

I have gone through below blog and tried to replicate it but could not make it work. Any help in this regards would be helpful.

 

 

How to display "current date -1" means yesterda... | SCN


Viewing all articles
Browse latest Browse all 4216

Trending Articles