Showing posts with label instead. Show all posts
Showing posts with label instead. Show all posts

Wednesday, March 21, 2012

Displaying values in list from Left-Right instead of Right-Left

Hi,

I want to display values in a listbox from left to right instead of top to bottom.

Instead of displaying values like this

D001

D002

D003

D004

..

..

..

I should display

D001 D002 D003 D004 D005 D001 D002 D003 D004 D005 D001 D002 D003 D004 D005

D001 D002 D003 D004 D005 D001 D002 D003 D004 D005 D001 D002 D003 D004 D005

D001 D002 D003 D004 D005 D001 D002 D003

I also should restrict the length of the listbox. Maximum of 20 values only should displayed per row.

Is there any way to acheive this ? Either using Table or Matrix dataregion ? Or concatinating string in a textbox ?

Regards,

I have done something similar for a mailing label report. i had to create a list box for each section LTR then when my data is returned i determine which list to put it into based off the record number.

Example: My report has 3 list controls placed next to each other.

Record Number Data

1 Blah 1

2 Blah 2

3 Blah 3

4 Blah 4

5 Blah 5

... ...

Record number 1 display in Fist list control, record number 2 displays in second list control, record number 3 displays in third list control, record number 4 display as second record in first list control, record number 5 displays as second record in second list control, and etc.

Eample Filter on List Control: =Code.SetColumn(CLng(Fields!ColumnFilter.Value),3) = 2

SetColumn Code:

Shared Function SetColumn(ByVal row As Integer, ByVal ColumnCount As Integer) As String
Dim RetVal As Integer = row

While RetVal > ColumnCount
If ColumnCount >= RetVal Then Exit While
RetVal = RetVal - ColumnCount
End While

Return RetVal
End Function

Also to return the sequential number with your data set look into SQL 2005 Ranking functions.

|||

Hi,

I was able to acheive this as follows -

1. Add a Matrix control. Add required field in column grouping of matrix. (Dynamic columns)
2. Add a ListBox control. Include Matrix inside the Listbox.
3. Edit details of Listbox to add a group expression =RowNumber(Nothing) / 15. (15 is number of columns to be displayed)
4. Add a Matrix column group expression as your Listbox group expression.
=RowNumber("list1_Details_Group"). Now your matrix should contain 2 group expressions. (1 for Phone # and other for controling no. of columns).

Regards,
Chiro

|||

I dont understand how you can have the expression in step 3 -

=RowNumber(Nothing) / 15

|||I think the technique is similar to the HorizontalTables example in Chric Hays Sleazy Hacks Blog. There's a working example you can download from http://blogs.msdn.com/chrishays/archive/2004/07/23/HorizontalTables.aspx

Sunday, March 11, 2012

Displaying numbers like 05 instead of 5

Hi,
In my database I have a table with two digit integers.
When I make a query, I would like see something like this
01
02
03
04
05
06
...
10
11
12
instead of
1
2
3
4
5
6
...
10
11
12
Is there a function for doing that?
Thanks!declare @.i int
set @.i = 3
select @.i, right('00' + convert(varchar(4),@.i),2)
-- --
3 03
Roy Harvey
Beacon Falls, CT
On Mon, 03 Jul 2006 12:35:49 -0400, LEM <anonymous@.nospam.com> wrote:

>Hi,
>In my database I have a table with two digit integers.
>When I make a query, I would like see something like this
>01
>02
>03
>04
>05
>06
>...
>10
>11
>12
>
>instead of
>1
>2
>3
>4
>5
>6
>...
>10
>11
>12
>Is there a function for doing that?
>Thanks!|||Thanks Roy!|||select right( '00' + convert(varchar(2),ColumnName),2)
example
declare @.i int
select @.i =9
select right( '00' + convert(varchar(2),@.i),2)
Denis the SQL Menace
http://sqlservercode.blogspot.com/
LEM wrote:
> Hi,
> In my database I have a table with two digit integers.
> When I make a query, I would like see something like this
> 01
> 02
> 03
> 04
> 05
> 06
> ...
> 10
> 11
> 12
>
> instead of
> 1
> 2
> 3
> 4
> 5
> 6
> ...
> 10
> 11
> 12
> Is there a function for doing that?
> Thanks!|||Okay so I was fashionably late since Roy Harvey already gave the answer
(even used the same variable name)
Denis the SQL Menace
http://sqlservercode.blogspot.com/
SQL Menace wrote:
> select right( '00' + convert(varchar(2),ColumnName),2)
> example
> declare @.i int
> select @.i =9
> select right( '00' + convert(varchar(2),@.i),2)
> Denis the SQL Menace
> http://sqlservercode.blogspot.com/
>
> LEM wrote:

Displaying member name instead of key in query

In the tools that I have used for getting generated MDX queries (Query Analyzer, Proclarity, Excel) the query always seems to show the key value instead of the member name.

Is it possible or is there a query tool that will generate queries with the member name instead?

See example:

[Organization].&[152551]

Should read

[Organization].[By Division]

thanks,

Andrew

Set "MemberNamesUnique" to True for a particular attribute. That should do it|||

Thanks! Didn't even have to reprocess!

cheers,

Andrew

Wednesday, March 7, 2012

Displaying a zero instead of NULL

I am using the expression below to display a zero (number 0) instead of NULL
=IIF(ISNOTHING(SUM(FIELDS!Dis.Value)),0, SUM(FIELDS!Dis.Value))
Whats wrong in this ? It gives me a blank but NO ERROR ..
ThanksYou can't sum a Null value - it doesn't result in a null, just an error. You
need to say:
=Sum(IIf(IsNothing(Fields!Dis.Value),0,Fields!Dis.Value)
--
Brian Welcker
Group Program Manager
Microsoft SQL Server
This posting is provided "AS IS" with no warranties, and confers no rights.
"Asim" <Asim@.discussions.microsoft.com> wrote in message
news:13D84407-7151-44BE-A276-A3D557FFFC95@.microsoft.com...
>I am using the expression below to display a zero (number 0) instead of
>NULL
> =IIF(ISNOTHING(SUM(FIELDS!Dis.Value)),0, SUM(FIELDS!Dis.Value))
> Whats wrong in this ? It gives me a blank but NO ERROR ..
> Thanks
>|||You could also use the ISNULL function to make nulls 0
SELECT ISNULL(FeildName,0) From TABLE
"Asim" <Asim@.discussions.microsoft.com> wrote in message
news:13D84407-7151-44BE-A276-A3D557FFFC95@.microsoft.com...
> I am using the expression below to display a zero (number 0) instead of
NULL
> =IIF(ISNOTHING(SUM(FIELDS!Dis.Value)),0, SUM(FIELDS!Dis.Value))
> Whats wrong in this ? It gives me a blank but NO ERROR ..
> Thanks
>|||Correct Anwer is:
=IIF(ISNOTHING(Sum(Fields!Dis.Value)),0,(Sum(Fields!Dis.Value)))
"Asim" wrote:
> I am using the expression below to display a zero (number 0) instead of NULL
> =IIF(ISNOTHING(SUM(FIELDS!Dis.Value)),0, SUM(FIELDS!Dis.Value))
> Whats wrong in this ? It gives me a blank but NO ERROR ..
> Thanks
>

Saturday, February 25, 2012

displaying 0's instead of blank cells , in a report?

Anyone know a way of doing this?
Basically in cells where there is no results, I get blanks and I think 0's
would be a lot nicer.=iif(Fields!Fieldname.Value is nothing, 0, Fields!Fieldname.Value)
or you can return the 0 in your data source query. For example if using SQL
Server,
select isnull(Columnname,0) AS MyColumn, ... FROM Mytable
HTH
Charles Kangai, MCT, MCDBA
"Matt Swift" wrote:
> Anyone know a way of doing this?
> Basically in cells where there is no results, I get blanks and I think 0's
> would be a lot nicer.
>
>

Friday, February 24, 2012

display text in html format

hi,
i have a column with text "<b>test</b>."
how can i display the "test" as bold instead of <b>test</b>
cynthiaselect the text box >> select B in the formatting toolbar or select the format option and the click the bold option.|||but then i'll be forever bold, m i right?

the data i'm going to display are in html format. for example, <b>test</b><u>under</u>. base on the data, the crystal report display the data in html format.

any idea?

Sunday, February 19, 2012

Display of reports on browser with Custom Assembly

Hi friends,

We are using SQL Server Reportin Services 2005 (SSRS) for development of our reports instead of Crystal Reports. As per our clients requirement we want to make all reports dynamic eg. whatever background color user select should appear for that report etc etc.

So for this we have written one function and created DLL for that. Now we are refering that DLL in all our reports as Assembly Name in Reports \ Report Properties \ Referance. We have stored that DLL at two different locations also

C:\Program Files \Microsoft SQL Server\MSSQL.3\Reporting Services\ReportServer\bin

C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\PrivateAssemblies

so when we run our reports from Preview tab DLL is just wroking fine.

But when we deploy all our report on Brwoser and when we try to execute them from browser DLL is now working i.e no function value is working. only normal report without styleing is coming.

So can anyone help me out coz this is very argent

any help will be greatly appreciated

RTFM ;)

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/RSPROG/htm/rsp_prog_rdl_6d0i.asp

especially:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/RSPROG/htm/rsp_prog_rdl_0so6.asp

I gave my custom assembly FullTrust:

<CodeGroup class="UnionCodeGroup"
version="1"
PermissionSetName="FullTrust"
Name="MyNewCodeGroup"
Description="A special code group for my custom assembly.">
<IMembershipCondition class="UrlMembershipCondition"
version="1"
Url="C:\Program Files\Microsoft SQL Server\MSSQL\Reporting Services\ReportServer\bin\MyAssembly.dll"/>
</CodeGroup>

Friday, February 17, 2012

Display Negative in Brackets

Sorry for the accounting type question, how do you get a negative inside
brackets instead of with a "-"?
E.g. (200.25) instead of -200.25
Any help would be appreciated.What version of RS are you using? I currently have reports in RS 2005
that are formatted as Currency (c) and if the number is negative it
will render as (34.00). I can't remember if RS 2000 did this.|||You need to put formating like this
###0.00;(###0.00)
Look in help for more info on formating numbers..
Stjepan
"Are friends electric?" <Arefriendselectric@.discussions.microsoft.com> wrote
in message news:8BC96D0C-6B8B-4210-9F0A-1B48F945FD4A@.microsoft.com...
> Sorry for the accounting type question, how do you get a negative inside
> brackets instead of with a "-"?
> E.g. (200.25) instead of -200.25
> Any help would be appreciated.

Tuesday, February 14, 2012

display filter info in Report Builder

hi all,

is it possible to display the value of filter on the report (Report Builder) instead of displaying

Filter: Productions with: All of (Month in (prompted))

which is not informative. ?

thanks !

This is not supported by the auto-generated filter descriptions. However, a workaround is described here:

http://blogs.msdn.com/bobmeyers/archive/2006/03/26/561147.aspx

|||

Hi Bob,

thanks a lot for the info. was looking high and low in help file and even online but couldn't get anything.

however, i have problem displaying the parameter value if it's in text format.

i've tried writing the following expressions

=String.format("Property: ", Parameters!Property.Value)

="Property: " & Parameters!Property.Value

but they won't work.

thanks..

|||

Hi Bob,

will this solution that you suggested work with parameters which have multiple selections?

Thanks!

|||I've never tried it. You might need to use the String.Join method to get the values into a single string.

display data without auto grouping in report builder

I have a report built by report builder. When I run report several column
data did not show repeated data on each row. Instead it just show one time
and the other repeated data field just auto merged with the first cell. Is
there any way to show each row data no matter it is the same as the one in
the cell above?
Example now I see:
Type City State
HSLA PHILADELPHIA PA
NORCROSS GA
PAOLI PA
PAOLI PA
What I want to get is:
HSLA PHILADELPHIA PA
HSLA NORCROSS GA
HSLA PAOLI PA
HSLA PAOLI PA
Is it possible to do that in "design report" or after hit "Run Report"? I
don't want the auto grouping in adhoc report. Please HELP! I really
appreciate it.I figured it out. The column is shown in the group if you click 'sort and
group'. Just drag all the fields you want and drop them on the table so that
the group is created in entity name instead of the individual field names.
"Daisy" wrote:
> I have a report built by report builder. When I run report several column
> data did not show repeated data on each row. Instead it just show one time
> and the other repeated data field just auto merged with the first cell. Is
> there any way to show each row data no matter it is the same as the one in
> the cell above?
> Example now I see:
> Type City State
> HSLA PHILADELPHIA PA
> NORCROSS GA
> PAOLI PA
> PAOLI PA
> What I want to get is:
> HSLA PHILADELPHIA PA
> HSLA NORCROSS GA
> HSLA PAOLI PA
> HSLA PAOLI PA
> Is it possible to do that in "design report" or after hit "Run Report"? I
> don't want the auto grouping in adhoc report. Please HELP! I really
> appreciate it.
>