Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi All,
I have a textbox which has an expression to bring back the results of an expression,
Is there anyway to use that result in another expression? I have searched through the threads and seen GetFieldValue() but nothing seems to work.
If it is a lost cause, what alternatives do people use?
Thanks Again
Toby
Toby
If your expression was
today()
Then you could set that as an expression :
set vToday = today() ;
And display it in a Text Box using a dollar expansion :
= $(vToday)
And in a second Text Box reuse the dollar expansion and add 22 days to it :
=date ( $(vToday) + 22 )
See mock up qvw attached.
Post up an example if you can
Hi Joe
Example would be that I have a text box which produces a value of 10.
I then want to reference that result of 10 in another expression.
Is this possible?
Toby
Toby
If your expression was
today()
Then you could set that as an expression :
set vToday = today() ;
And display it in a Text Box using a dollar expansion :
= $(vToday)
And in a second Text Box reuse the dollar expansion and add 22 days to it :
=date ( $(vToday) + 22 )
See mock up qvw attached.
HI Toby,
sorry if I have misunderstood, but can't you just incorporate the text box expression elsewhere? Or use the text box expression results stored as a variable?
Andy
Hi Andrew
The storing as variable thing I think is the answer but being new I am still learning the ropes (I have Business Objects background)
Toby
Thanks Bill I have had a quick play but either the Friday fatigue or stupidity but where do you declare the expression?
Mine is
count({<DateRaisedIMS={"=Year(DateRaisedIMS) = year(Today())"},ValueID={'*24*'}, IncidentType={'*Accident*'}, ListTitle={'*Employee*'}>}ValueID)
Just worked this out so thank you Bill!!! You are a legend!
Glad you managed to sort it! Have a good one
Andy
Thanks Andy and thanks for taking the time to answer my question
Have a great weekend.
Toby