Showing posts with label display. Show all posts
Showing posts with label display. Show all posts

Wednesday, March 21, 2012

Data display in table

Hi,

I have a result set from a store procedure which looks like this.

Column1 Column2 Column3

A 1 lit1

A 1 Rep2

A 1 Reg3

B 2 ram1

B 2 lim2

I want to show data in my table like this:

Column1 Column2 Column3

A 1 lit1; Rep2;Reg3

B 2 ram1;lim2

Can anyone tell me how I can do this?

Thanks

Ashwini

Hi,

While getting the result from the database you can do one thing i.e write a Scalar valued function which will take the Column 1 value in that stored procedure write the logic to get the Column3 values separated by semi colon like this

ALTER FUNCTION [dbo].[GetColumn3]

(

@.Column1 bigint //here datatype of your column

)

RETURNS varchar(max)

AS

BEGIN

DECLARE @.Result varchar(max)

SET @.Result = ''

--Select all Column3 into a string seperated by ';' for a column1

SELECT @.Result = @.Result + CONVERT(VARCHAR(MAX), p.Column3) + ', '

from //your table table1

WHERE

AND table1.(Your Column name here) = @.Column1

//This code to remove your last semi colon

IF @.Result != ''

SELECT @.Result= SUBSTRING(@.Result , 1, LEN(@.Result )-1)

RETURN @.Result

END

and call that function in your main Select query:

Select Column1,Column2 , dbo.GetColumn3(Column1) as Column3

From table1

joins

Where Conditions

Hope this helps.

sql

Data Display in Reports based on windows Authentication ID

Hi Experts,

I have a reporting scenario, where the reports are fetched from Analysis Services.

The reports should display data only spcecific to that user.

All users except those in admin roles should be validated using the Windows Authentication ID and data specific to them has to be displayed.

Any pointers/suggestions on how to implement this in Reporting services/ Analysis Services 2005 would be highly appreciated

Thanks,

Hi,

Easier said than done. I guess that the easier path would be to use data filtering based on parameters values limited by userid.

It depends, if you access cubes directly as well, i.e. from Excel, then that would be different. You would have to create custom MDX dimension access formulas based on roles and map these roles to Windows groups.

Assuming you are only going after AS data from RS, then you would still need to create an access policy.

i.e. you can segregate access to data slices based on membership to Windows groups.

We have found that using cumulative membership to groups was the most flexible and did not require too many groups.

You have to find a way to load LDAP (or Windows AD groups and membership) data, then each time an user access the report, you use the userid info to check what is the acceptable list of values for your parameters.

This way, a given user will be able to see and select only parameters values acceptable for her job function.

That is quite a lot of code, functions and procedures to write, no quick fix.

First thing first, you need the AD or LDAP data, there are quite a few ways to get it. I remember that SQL Server magazine ran an article a few month ago about getting it with a SSIS package.

You can also settle for another easier way, like calling Exporter Pro from a Windows scheduled task. Exporter Pro is part of the Hyena software.

Your question is not the type of question where a quick and precise answer is available. I can only give some high level clues. The rest would take time and require insider knowledge of your situation and requirements.

Hope it helps somehow

Philippe

data display

Hi fys,
table Structure,
Table-Name:style
style-name component
aaa 1
aaa 2
aaa 3
aaa 4
aaa 5
aaa 1
aaa 2
aaa 3
aaa 4
aaa 5
aaa 1
aaa 2
aaa 3
aaa 4
aaa 5

In Crystal report the display format should be :
maximum column fixed is 6
maximum row fixed is 16

stylename and component to concatenate (ie) aaa1,aaa2... and display

Finally the display format should be:

aaa1 aaa2 aaa3 aaa4 aaa5 aaa1
aaa2 aaa3 aaa4 aaa5 aaa1 aaa2
aaa3 aaa4 aaa5 aaa1 aaa2 aaa3
aaa4 aaa5What Are You Trying To Ask??!!!!!!!!!!!!!!!!!!!!!!!|||I think you want to add a text box to the details section and drag both fields into it.
In the section expert, choose the details section and check the Format with multiple columns box. A new 'Layout' tab appears and in there set the printing direction to across then down, and play with the width / gap settings untill you get what you are after.

Tuesday, February 14, 2012

Customizing Report Manager Interface

Is it possible to customize the Reporting Services Report Manager interface?
What I am wanting to do is display the reports in a tree view.On Tue, 17 Aug 2004 23:43:02 -0700, Mick B <Mick
B@.discussions.microsoft.com> wrote:
>Is it possible to customize the Reporting Services Report Manager interface?
>What I am wanting to do is display the reports in a tree view.
Hi Mick:
I have an article showing how to do this with the web service API:
SQL Reporting Services Tree Navigation Sample
http://odetocode.com/Articles/95.aspx
--
Scott
http://www.OdeToCode.com