on 02-21-2014 12:04 PM
Hi,
I need to set a variable to the current date in the On Variable Initialization,but APPLICATION.getInfo() doesn't seem to be allowed.
Are there any alternatives?
Eddy
Hi,
You can do one thing Set Variable for any dummy value in "On Variable Initialization".
Then in "On Startup" use
APPLICATION.getInfo().dateNowInternalFormat;
& Substring to get required Date format
Convert.subString(Date,0,4)
& load your data source(s) after that.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Why not use "On Startup" and set the variable value using APPLICATION.setVariableValue() after reading the current date using APPLICATION.getInfo()
Regards,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
In such case, in my view, it would be better to have this default value set from BW itself.
In anycase the current date you get in Design Studio need to be converted to BW variable input format. Doing this in DS is quite tedious as you don't have many methods to manipulate the return string/date.
Regards,
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.