Showing posts with label expression. Show all posts
Showing posts with label expression. Show all posts

Wednesday, March 28, 2012

Precedence Constraints and Sequence Containers

I have about 12 sequence containers mapped out to execute separately based on a precedence contraint and an expression. These lie at the same level and order in my sequence. Only one of these will execute based on an expression. After any of these executes, I have a consecutive sequence container that I'm attempting to execute. I've set the precedence contraint from all twelve of the prior sequence containers to this single sequence container that I would like to run after any of the 12. My problem is that the package will only allow one of these twelve sequence containers to become a precedence of this second single sequence container at a time. The package will let me graphically attach the precedence constraint from all 12 to this single sequence container, but when the package runs, it fails to follow through to this single sequence container. I'm trying to figure out why this is the case and how I can get what I would like to work -- work. Thanks.

Double-click on one of the precendence constraints going into the single sequence container. Near the bottom you will see a drop down that allows you to set it to an OR condition (The constraints will turn into dotted lines)

This means that that will execute if ANY of its precedence cnstraints are satisfied. If you leave it set to AND, then ALL of the constraints have to be satisfied, which will never happen in your case since the other 11 sequence containers will never execute.

|||

Thanks Dave!

I saw that but wasn't sure how that worked.

Saturday, February 25, 2012

Possible BUG in RS.

When populating a matrix and having an expression to set the background of
the row , in this case I am setting alternate shading of rows to make reading
easier, I would expect the whole matrix row to to be shaded, not just the
groups in the row that have a value in them.
To simplify my descritpion here, I ask MS why does RS only allow the data
groups that have a value in them set the background to that of the expression
I specify.
Surely the group should set the background attribute I specify regardless of
a value contained in the group.
The resultant display is like a checker board effect, as groups in the row
with data will be grey background and those without the value in the same
group will remain transparent.
Has anyone else had similar issues with Matrices in RS?
cheers
PaulYou want to read the following blog article:
http://blogs.msdn.com/chrishays/archive/2004/08/30/223068.aspx
-- Robert
This posting is provided "AS IS" with no warranties, and confers no rights.
"PaulQld" <PaulQld@.discussions.microsoft.com> wrote in message
news:E2EFE16E-98F0-4DC2-A55D-40709956C697@.microsoft.com...
> When populating a matrix and having an expression to set the background of
> the row , in this case I am setting alternate shading of rows to make
> reading
> easier, I would expect the whole matrix row to to be shaded, not just the
> groups in the row that have a value in them.
> To simplify my descritpion here, I ask MS why does RS only allow the data
> groups that have a value in them set the background to that of the
> expression
> I specify.
> Surely the group should set the background attribute I specify regardless
> of
> a value contained in the group.
> The resultant display is like a checker board effect, as groups in the row
> with data will be grey background and those without the value in the same
> group will remain transparent.
> Has anyone else had similar issues with Matrices in RS?
> cheers
> Paul
>|||Robert, thankyou for your link to Chris's blogg.
Paul
"Robert Bruckner [MSFT]" wrote:
> You want to read the following blog article:
> http://blogs.msdn.com/chrishays/archive/2004/08/30/223068.aspx
> -- Robert
> This posting is provided "AS IS" with no warranties, and confers no rights.
> "PaulQld" <PaulQld@.discussions.microsoft.com> wrote in message
> news:E2EFE16E-98F0-4DC2-A55D-40709956C697@.microsoft.com...
> > When populating a matrix and having an expression to set the background of
> > the row , in this case I am setting alternate shading of rows to make
> > reading
> > easier, I would expect the whole matrix row to to be shaded, not just the
> > groups in the row that have a value in them.
> >
> > To simplify my descritpion here, I ask MS why does RS only allow the data
> > groups that have a value in them set the background to that of the
> > expression
> > I specify.
> >
> > Surely the group should set the background attribute I specify regardless
> > of
> > a value contained in the group.
> >
> > The resultant display is like a checker board effect, as groups in the row
> > with data will be grey background and those without the value in the same
> > group will remain transparent.
> >
> > Has anyone else had similar issues with Matrices in RS?
> >
> > cheers
> > Paul
> >
> >
>
>

Monday, February 20, 2012

Possible bug in RS -Using the Now function in expression in a Snap

We have created a report that creates a historical snapshot. In the header,
we use the Now vb function to return the current date/time. However, the Now
function does not evaulate at the report execution time. Rather, it seems to
evaluate upon the first opening of the report for viewing. Thus, the snapshot
might have been taken yesterday, but if I open the report in a browser (for
the first time) today, the Page Header now says today (and will always say
that).
Additionally, when you export the report to Excel, the Now evaluates
again... so you get the current date/time in the page header of the Excel
cell.
I will try using the Execution time to get around this, but thought I'd pass
this along.Currently, page headers and footers are calculated at rendering time. This
is so that we can recalculate the page numbering when the report is
repaginated. In SQL 2005, we will change this so that the HTML and GDI
renderers will do this at processing / snapshot time while page oriented
formats will do this at rendering time. In a future version, we will change
these to be static as well.
--
Brian Welcker
Group Program Manager
Microsoft SQL Server Reporting Services
This posting is provided "AS IS" with no warranties, and confers no rights.
"dbconsulting" <dbconsulting@.discussions.microsoft.com> wrote in message
news:AF88D084-DE6E-4E01-B2AE-2BFB26C1B821@.microsoft.com...
> We have created a report that creates a historical snapshot. In the
> header,
> we use the Now vb function to return the current date/time. However, the
> Now
> function does not evaulate at the report execution time. Rather, it seems
> to
> evaluate upon the first opening of the report for viewing. Thus, the
> snapshot
> might have been taken yesterday, but if I open the report in a browser
> (for
> the first time) today, the Page Header now says today (and will always say
> that).
> Additionally, when you export the report to Excel, the Now evaluates
> again... so you get the current date/time in the page header of the Excel
> cell.
> I will try using the Execution time to get around this, but thought I'd
> pass
> this along.
>|||Well said by Brian. In case you really wanna show snapshot date/time in page
header do the following-
1. Make textbox named as TextBox1 in report and make it invisble. now put
=now as expression in it.
2. In page header make new text box and use expression =ReportItems!TextBox1.Value
Above code works cause reportItems collection is evaluated and rendering
time but it picks the value from TextBox1 which was processed at the time of
snapshot creation.
Problem solved! :o)
-Suneet Mohan
"dbconsulting" wrote:
> We have created a report that creates a historical snapshot. In the header,
> we use the Now vb function to return the current date/time. However, the Now
> function does not evaulate at the report execution time. Rather, it seems to
> evaluate upon the first opening of the report for viewing. Thus, the snapshot
> might have been taken yesterday, but if I open the report in a browser (for
> the first time) today, the Page Header now says today (and will always say
> that).
> Additionally, when you export the report to Excel, the Now evaluates
> again... so you get the current date/time in the page header of the Excel
> cell.
> I will try using the Execution time to get around this, but thought I'd pass
> this along.
>|||Why not use Globals.ExecutionTime ?
On Fri, 1 Apr 2005 13:17:02 -0800, dbconsulting
<dbconsulting@.discussions.microsoft.com> wrote:
>We have created a report that creates a historical snapshot. In the header,
>we use the Now vb function to return the current date/time. However, the Now
>function does not evaulate at the report execution time. Rather, it seems to
>evaluate upon the first opening of the report for viewing. Thus, the snapshot
>might have been taken yesterday, but if I open the report in a browser (for
>the first time) today, the Page Header now says today (and will always say
>that).
>Additionally, when you export the report to Excel, the Now evaluates
>again... so you get the current date/time in the page header of the Excel
>cell.
>I will try using the Execution time to get around this, but thought I'd pass
>this along.|||Yes, using =Globals.ExecutionTime instead of =Now would be the right
solution.
-- Robert
This posting is provided "AS IS" with no warranties, and confers no rights.
"Matthew Brown" <octavius@.gmail.com> wrote in message
news:k8e251tn28vut7uk22e16h1koe1h4h94bk@.4ax.com...
> Why not use Globals.ExecutionTime ?
>
> On Fri, 1 Apr 2005 13:17:02 -0800, dbconsulting
> <dbconsulting@.discussions.microsoft.com> wrote:
>>We have created a report that creates a historical snapshot. In the
>>header,
>>we use the Now vb function to return the current date/time. However, the
>>Now
>>function does not evaulate at the report execution time. Rather, it seems
>>to
>>evaluate upon the first opening of the report for viewing. Thus, the
>>snapshot
>>might have been taken yesterday, but if I open the report in a browser
>>(for
>>the first time) today, the Page Header now says today (and will always say
>>that).
>>Additionally, when you export the report to Excel, the Now evaluates
>>again... so you get the current date/time in the page header of the Excel
>>cell.
>>I will try using the Execution time to get around this, but thought I'd
>>pass
>>this along.
>