Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
how to achieve date format as
let vcurrentyear = year(Today());
let vr = '07/01/(vcurrentyear)' ;
where we want to make vcurrentyear dynamic .
What if i dont run this code :-
// Two variables below are to be commented after first load.
Let vstart = '2020-07-01 00:00:00.000';
Let vENd = '2021-06-30 00:00:00.000';
as it already had vstart and vend in the already existing code logic .
also i have doubt about storing the data every cycle data is being stored like ENC_24 and for next year we have to manually go and change it to ENC_24 and same for vstart and vend can we also automate so that each cycle it stores data in different folders and then in main app we can all data at once
STORE enc4 INTO [lib://authenticateddata/wbhi/Enc_fy24.QVD] (qvd);
Hi @ritumishra01 ,
The concept of the code is that you need an initial declaration of the entity storing the dates, and then a mechanism to update the dates yearly. If you already have initial declaration, then yes you can load the old file and then store the changed data into a new file.
In summary,
vYear = Year(Today());
vYY = Right('$(vYear)', 2);
STORE enc4 INTO [lib://authenticateddata\wbhi_$(vYear)\Enc_fy_$(vYY).qvd](qvd);
Hey thanks for your reponse
vYY = Right('$(vYear)', 2);
STORE enc4 INTO [lib://authenticateddata\wbhi_$(vYear)>\Enc_fy_$(vYY)>.qvd](qvd);
wbhi_$(vYear) - i am getting error here its saying path not found. and how we can include date there ??? thanks