The OneStream Community is temporarily frozen until June 29th due to the ongoing maintenance. Please read the blog post here to learn more.
Forum Discussion
egoodwin
2 years agoNew Contributor II
Passing OS Version Number as a Dashboard Parameter
I'm trying to create a Dashboard parameter that has the OS Version number of the application. I would have thought that something like Dim osVersion As String = OneStream.Shared.Common.GeneralString...
- 2 years ago
This should work:
dim version as String = Onestream.Shared.Common.XFVersionInfo.XFVersionFrom the XFVersionInfo you can get a couple of other related version-information:
DanielWillis
2 years agoValued Contributor
Not sure what you're doing exactly and it isn't what you asked but just thought I'd share as I can't see it documented anywhere. There are some https://learn.microsoft.com/en-us/cpp/preprocessor/preprocessor-directives?view=msvc-170 for 8.0 you can use if you want to make it easier to manage/compile version specific code:
- ONESTREAM8_0_0
- ONESTREAM8_0_0_OR_GREATER
#If ONESTREAM8_0_0_OR_GREATER Then
' do exciting new stuff
#Else
' do boring old stuff
#End If
- FrankDK2 years agoContributor
Interesting. Where did you pick that up, and do you have other hidden gems that could be useful?
And btw, good coder humor with " ' do boring old stuff" 😁
- DanielWillis2 years agoValued Contributor
FrankDK wrote:
Interesting. Where did you pick that up, and do you have other hidden gems that could be useful?
I had to fly 20 hours from Sydney to Orlando for Wave to find out 😅
I actually didn't realise it was a 'hidden gem'. I was going to link to the documentation and when I went to find it there was nothing I could find! Its definitely frustrating finding out there is something you should/could have been using but just needed to get lucky and have someone who knows share the knowledge.
- FrankDK2 years agoContributor
That explains - I did not go to Wave 😄
On another thread, I actually did stumble over your gem in one of the PDF's on the v8 upgrade documents. Cheers
Related Content
- 3 years agoAnonymous