Friday, March 30, 2012
Hide Parameter field, rc:parameters ?
I want to reference from one reports to another and I don't want my users to
see the parameters used. In case of a url-reference I can use the
rc:parameters = false to disable the parameter field in the viewer.
How can I reach the very same behaviour when I reference from one report to
another (navigation) ?
Thanks in advance,
CarstenHow r u using the reference to another report? is it through a web link?
or a child report?
"Carsten Schlotmann" <cschlotmann@.dornbracht.de> wrote in message
news:e5XZHl2rEHA.516@.TK2MSFTNGP09.phx.gbl...
> Hi,
> I want to reference from one reports to another and I don't want my users
> to
> see the parameters used. In case of a url-reference I can use the
> rc:parameters = false to disable the parameter field in the viewer.
> How can I reach the very same behaviour when I reference from one report
> to
> another (navigation) ?
> Thanks in advance,
> Carsten
>|||Hi,
it is through a child report.
Regards,
Carsten
"avnrao" <avn@.newsgroups.com> schrieb im Newsbeitrag
news:uaKHoo5rEHA.3588@.tk2msftngp13.phx.gbl...
> How r u using the reference to another report? is it through a web link?
> or a child report?
> "Carsten Schlotmann" <cschlotmann@.dornbracht.de> wrote in message
> news:e5XZHl2rEHA.516@.TK2MSFTNGP09.phx.gbl...
> > Hi,
> >
> > I want to reference from one reports to another and I don't want my
users
> > to
> > see the parameters used. In case of a url-reference I can use the
> > rc:parameters = false to disable the parameter field in the viewer.
> > How can I reach the very same behaviour when I reference from one report
> > to
> > another (navigation) ?
> >
> > Thanks in advance,
> > Carsten
> >
> >
>
hide parameter field
Thanks.You could always call the report from a URL and NOT show the parameter
bar... and in SP1 you may hide individual parameters.
--
Wayne Snyder, MCDBA, SQL Server MVP
Mariner, Charlotte, NC
www.mariner-usa.com
(Please respond only to the newsgroups.)
I support the Professional Association of SQL Server (PASS) and it's
community of SQL Server professionals.
www.sqlpass.org
<AG>; "NLB d.d." <AGNLBdd@.discussions.microsoft.com> wrote in message
news:E55FF6A7-3BDD-411B-87FB-AE4EF548E053@.microsoft.com...
> Is it possible to hide or disable some fileds of parameters on report?
> Thanks.
>|||Hi AG:
Make sure you have SP1 for reporting services:
http://www.microsoft.com/downloads/details.aspx?familyid=580febf7-2972-40e7-bccf-6cd90ac2f464&displaylang=en
From the SP1 readme:
"Previously, the only way to hide a parameter value was to clear the
Prompt User check box in the Parameters properties page. However, a
side effect of clearing the check box was that you could no longer
specify a parameter value for the report at run time. This limitation
has been removed. In SP1, you can clear the Prompt User check box to
hide the parameter fields and values in the report. Doing so does not
introduce restrictions on how you subsequently set the parameter value
externally at run time."
HTH,
--
Scott
http://www.OdeToCode.com
On Mon, 2 Aug 2004 02:15:03 -0700, AG, NLB d.d.
<AGNLBdd@.discussions.microsoft.com> wrote:
>Is it possible to hide or disable some fileds of parameters on report?
>Thanks.
>
hide field from user
I have an app that connects to sqlepress. When run the field are loaded from the db. There are some fields that I don't want some of the users to see. Is there a way to do this without hardcoding the 'username' in the applicaton ?
I looked at the explicit permissions for username for the particular table, but I don't understand some of the terms listed.
Alter
Control
References
View definition
Normally you do this by creating a View that exposes just the columns that you want to show to the users. I don't know of any way to control column level access by user, particularly if you don't tell SQL who the users is. I would say that you create specific groups to control access level, then build Views with the right set of columns for each group. Then you can call the appropriate View based on the group membership.
Mike
sqlWednesday, March 28, 2012
Hide Calculations for some users
Hi,
anyone know if it is possible to secure some calculated measures from different users?
I have a calculated field in the cube that I just want to show for one user.
I guess I need to write some MDX in the "Allow reading of cube content" under Edit Cell data when I edit the role.
Someone have any suggestions?
I found a solution! =)
If you want to hide the measure TB this is the code that you write in the "Allow reading of cube content" under Cell Data.
Code Snippet
Not Measures.CurrentMember IS Measures.TB
Hide Calculations for some users
Hi,
anyone know if it is possible to secure some calculated measures from different users?
I have a calculated field in the cube that I just want to show for one user.
I guess I need to write some MDX in the "Allow reading of cube content" under Edit Cell data when I edit the role.
Someone have any suggestions?
I found a solution! =)
If you want to hide the measure TB this is the code that you write in the "Allow reading of cube content" under Cell Data.
Code Snippet
Not Measures.CurrentMember IS Measures.TB
sqlMonday, March 26, 2012
Hide and Show Background image dynamically
field called watermark. I have not found a way to create an expresion
or code that would allow me to display this background image on some
pages based on the water mark field. Is it possible to do this?I have been working hard to try to figure this out. I would really
appreciate any help. I need to be able to stamp certain pages on a
multiple paged report with a watermark that says "PAST DUE".
Thanks in advance for any help you can give me|||> I have been working hard to try to figure this out. I would really
> appreciate any help. I need to be able to stamp certain pages on a
> multiple paged report with a watermark that says "PAST DUE".
We use an expression in the background image property of the Report Body.
This is how we do it:
=IIF(your condition, "image name", Nothing)
Hope this works for you...
MK
hide a database image when there is no image in database
report that is connected with the image database field (carrying image
details in bits) what i want is to hide the image in report when the
image field in database is null (image database field is 0x00 when it
contains NO IMAGE)
i m trying to put following expression in the HIDDEN property of the
IMAGE in the report :
=iif(Fields!image.value=NOTHING,true,false)
but it says that this expression cant b put probably (rather surely)
coz of the datatype of image database field (BIT) so plz help me out
how to do that i ve also tried
iif ( isnothing(Fields!image.value)=NOTHING,true,false)
then it doesnt give error but it always return NON-NULL VALUE (ie
always returns false part of the expression) even the image database
field is EMPTY is (0x00)
how to resolve that issue any suggestion
thanx in advanceHey Spirits,
How about changing your SQL query to something like this:
SELECT imgImage, CASE WHEN imgImage IS NULL THEN 0 ELSE 1 END AS
bitImageExists
FROM tblSomethingImage
And then set the Hidden expression for the image to
"=IIf(Fields!bitImageExists.Value = 1, False, True)"?
Cheers,
-Geoff R G Williams
Primal Blaze Ltd.
"** Spirits **" <muhammadhammad78@.gmail.com> wrote in message
news:1124863203.576215.182520@.g47g2000cwa.googlegroups.com...
> well i ve an image field in database and then using an image in a
> report that is connected with the image database field (carrying image
> details in bits) what i want is to hide the image in report when the
> image field in database is null (image database field is 0x00 when it
> contains NO IMAGE)
> i m trying to put following expression in the HIDDEN property of the
> IMAGE in the report :
> =iif(Fields!image.value=NOTHING,true,false)
> but it says that this expression cant b put probably (rather surely)
> coz of the datatype of image database field (BIT) so plz help me out
> how to do that i ve also tried
> iif ( isnothing(Fields!image.value)=NOTHING,true,false)
> then it doesnt give error but it always return NON-NULL VALUE (ie
> always returns false part of the expression) even the image database
> field is EMPTY is (0x00)
> how to resolve that issue any suggestion
> thanx in advance
>|||geoff thanx for concern actually the solution u provided wont work as
i ve tried that n then i got another solution to my problem n i m
sharing it with u it is as followed
well in sql server there is a function named DATALENGTH(ImageDataField)
and returns no of bytes occupied by the image
u should use this to check how many bytes r of a pic better to make a
calculated field in ur data set
then use this calculated field to hid or show the image in the report
by using the following expression in the HIDDEN property of the IMAGE
=iif(imagelengthfield.value=1,true,false)
when image wont b avaiable ur this calculated field ll return 1
otherwise some bigger value representing bytes of the image
u can further go to restrict data set by using
datalength(imageDatabaseField)>1 to come up in the dataset of the
report with the records having images only
choice is urs
take care
regards
Friday, March 23, 2012
hidden field populating header/footer trick not working
Well, just switched the conditional visibility so that rect1 would go on page 2 and rect2 on page one, and guess what? Now these fields on invisible on rect1 and visible on rect2! So it has to do with the page number! Wow, how weird! Anyone see this before and is there any workaround?
|||
Expressions in the page header/footer can only reference report items on the current page. One thing to check is whether the hidden textbox in the report body is repeated on both pages? If the textbox only appears on the first page, expressions in the header/footer for the second page would always get a null value for this textbox.
sqlhidden field populating header/footer trick not working
Well, just switched the conditional visibility so that rect1 would go on page 2 and rect2 on page one, and guess what? Now these fields on invisible on rect1 and visible on rect2! So it has to do with the page number! Wow, how weird! Anyone see this before and is there any workaround?
|||
Expressions in the page header/footer can only reference report items on the current page. One thing to check is whether the hidden textbox in the report body is repeated on both pages? If the textbox only appears on the first page, expressions in the header/footer for the second page would always get a null value for this textbox.
Hidden expression with dates?
Hi! How to write the syntax when you try to compare the dates. In this case I try to check if the date is empty(then it's 1/1/1900) then the field should be hidden. This is what I tried but didn't succeed:
=iif(Fields!ModifiedDate.Value="1/1/1900",true,false)
You can convert your string value ('1/1/1900') to a date with the CDate() function. With this you can compare the to value's with each other.|||
Jan Pieter Posthuma wrote:
You can convert your string value ('1/1/1900') to a date with the CDate() function. With this you can compare the to value's with each other.
Thanks for the post but unfortunately I didn't get it. The main problem is syntax - I don't know where to use Cdate() -function. I tried this:
=iif(Cdate(Fields!modifiedDate).Value) > "1/1/1900",false,true)
the compiler didn't like it :)
Can you give me an example?
|||It just the otherway round: =iif(Fields!modifiedDate.Value=CDate("1/1/1900"), false, true)
Monday, March 19, 2012
Hi
I have a field that I would like to only display the date as mm/dd/yyyy. Current field shows mm/dd/yyyy hh:mm:ss AM.
I would most likely create a view that will create a field that will display the date only.
Answered there: http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=619822&SiteID=1hi
I am new in the SQL server field and i tried to solve the problem of
deadlocking.
Please help me in resolving the deadlock in step by step process.
Thank you
ABiAbi
Since you have not mentioend what is the version are you using?
http://blogs.msdn.com/bartd/archive.../09/747119.aspx
"Abi" <abi.chapagai@.gmail.com> wrote in message
news:1159853389.087757.64370@.m7g2000cwm.googlegroups.com...
> Hi
> I am new in the SQL server field and i tried to solve the problem of
> deadlocking.
> Please help me in resolving the deadlock in step by step process.
>
> Thank you
> ABi
>|||Boy that is a pretty vanilla request there. The topic of deadlock
resolution can go from database design to proper indexing to locking levels,
etc.
I think you would best learn from the hundreds of articles and websites that
already cover this topic on the Internet.
"Abi" <abi.chapagai@.gmail.com> wrote in message
news:1159853389.087757.64370@.m7g2000cwm.googlegroups.com...
> Hi
> I am new in the SQL server field and i tried to solve the problem of
> deadlocking.
> Please help me in resolving the deadlock in step by step process.
>
> Thank you
> ABi
>|||Hi,
Go thru this URL. This say the methods to troubleshoot deadlocking.
http://www.sql-server-performance.com/deadlocks.asp
Thanks
Hari
"Abi" <abi.chapagai@.gmail.com> wrote in message
news:1159853389.087757.64370@.m7g2000cwm.googlegroups.com...
> Hi
> I am new in the SQL server field and i tried to solve the problem of
> deadlocking.
> Please help me in resolving the deadlock in step by step process.
>
> Thank you
> ABi
>|||sp_who2
"Abi" <abi.chapagai@.gmail.com> wrote in message
news:1159853389.087757.64370@.m7g2000cwm.googlegroups.com...
> Hi
> I am new in the SQL server field and i tried to solve the problem of
> deadlocking.
> Please help me in resolving the deadlock in step by step process.
>
> Thank you
> ABi
>|||There are actually a couple better than sp_who and sp_who2 at:
http://www.sqlservercentral.com/Scr...20&categoryid=1
I've used the new sp_who3 and sp_what (my favorite). Check 'em out - very
nice.
"Mike C#" <xyz@.xyz.com> wrote in message
news:krFUg.778$iS5.121@.newsfe11.lga...
> sp_who2
>
> "Abi" <abi.chapagai@.gmail.com> wrote in message
> news:1159853389.087757.64370@.m7g2000cwm.googlegroups.com...
>
Wednesday, March 7, 2012
HELP: update a table from a text file
text file. I retrieved the contents of the text file FROM the entry
but now that I edited them, I want to put them back.
This text file has only a single entry in it. No row/column
delimeters needed.I tried using the Enterprise Manager import data
wizard but it doesn't do what I want.
I guess the sql statement would look something like this:
Update mytable
Set data = contents of textfile
WHERE data LIKE '%uniquething%'
HELP
JohnYou could set up a linked server to the text file and read the value in
TSQL. Pls have a look at the example "F. Using the Microsoft OLE DB Provider
for Jet to access a text file" at
http://msdn2.microsoft.com/en-us/library/ms190479.aspx for more info.
Cheers,
Paul Ibison SQL Server MVP, www.replicationanswers.com
HELP: update a table from a text file
text file. I retrieved the contents of the text file FROM the entry
but now that I edited them, I want to put them back.
This text file has only a single entry in it. No row/column
delimeters needed.I tried using the Enterprise Manager import data
wizard but it doesn't do what I want.
I guess the sql statement would look something like this:
Update mytable
Set data = contents of textfile
WHERE data LIKE '%uniquething%'
HELP
John
You could set up a linked server to the text file and read the value in
TSQL. Pls have a look at the example "F. Using the Microsoft OLE DB Provider
for Jet to access a text file" at
http://msdn2.microsoft.com/en-us/library/ms190479.aspx for more info.
Cheers,
Paul Ibison SQL Server MVP, www.replicationanswers.com
HELP: Text Field data type in SQL Server
It has multi-line.
Id like to copy / paste this text in a SQL Server table field.
I guess the field must be of a Text Data Type.
I tried it and it retains only the first line.
How can I paste that multimeline text from the SQL Server tools?
I tried from Management Studio but it does not work.
txs for your answer
In past I have used bulk insert to copy text file data into SQL server
text field. Are you specifying any delimiter or terminator for text
file?
HELP: Text Field data type in SQL Server
It has multi-line.
Id like to copy / paste this text in a SQL Server table field.
I guess the field must be of a Text Data Type.
I tried it and it retains only the first line.
How can I paste that multimeline text from the SQL Server tools?
I tried from Management Studio but it does not work.
txs for your answerIn past I have used bulk insert to copy text file data into SQL server
text field. Are you specifying any delimiter or terminator for text
file?
HELP: Text Field data type in SQL Server
It has multi-line.
Id like to copy / paste this text in a SQL Server table field.
I guess the field must be of a Text Data Type.
I tried it and it retains only the first line.
How can I paste that multimeline text from the SQL Server tools?
I tried from Management Studio but it does not work.
txs for your answerIn past I have used bulk insert to copy text file data into SQL server
text field. Are you specifying any delimiter or terminator for text
file?
Monday, February 27, 2012
Help: sort by total field
Exmpl:
one one.one 10
one.two 20
TOTAL 30 <--(*)
two two.one 40
TOTAL 40 <--(*)
TOTAL 70
Thank You!!!
I'm also interested in this. Did you find a soln?|||
Please read my response with a sample on your other thread: http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=409872&SiteID=1&mode=1
-- Robert
Help: sort by total field
Exmpl:
one one.one 10
one.two 20
TOTAL 30 <--(*)
two two.one 40
TOTAL 40 <--(*)
TOTAL 70
Thank You!!!
I'm also interested in this. Did you find a soln?|||
Please read my response with a sample on your other thread: http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=409872&SiteID=1&mode=1
-- Robert
Friday, February 24, 2012
Help: Join few records in a same field and same database table.
Hi guys,
I need urgent help here. How to join few records in a same field and same database table. For example:
id sequence_no itemcode description
1 1 APP Apple
1 2 BNN Banana
2 1 ORG Orange
What is the sql query that will return row as follow:
id description
1 Apple Banana
2 Orange
Thank you in advance guys...
hi, you can try this-- create a function
CREATE FUNCTION dbo.GetFruitSequence
(
@.id int
)
RETURNS varchar(100)
AS
BEGIN
DECLARE @.FruitSequence varchar(100)
SET @.FruitSequence = ''
SELECT @.FruitSequence = @.FruitSequence + [description] + ', '
FROM Fruits
WHERE [id] = @.id
ORDER BY
[sequence_no]
IF @.FruitSequence <> '' SET @.FruitSequence = LEFT(@.FruitSequence, LEN(@.FruitSequence) - 1)
RETURN @.FruitSequence
END
GO
-- to use the function
SELECT DISTINCT [id]
, dbo.GetFruitSequence([id]) as [description]
FROM Fruits
ORDER BY
[id]
GO|||Thank you Rhamille|||
You can use the following query in SQL Server 2005
Code Snippet
Create Table #itemdata (
[id] int ,
[sequence_no] int ,
[itemcode] Varchar(100) ,
[description] Varchar(100)
);
Insert Into #itemdata Values('1','1','APP','Apple');
Insert Into #itemdata Values('1','2','BNN','Banana');
Insert Into #itemdata Values('2','1','ORG','Orange');
Select
id
,(Select [description] + ' ' as [text()] From #itemdata as Sub Where Sub.id=Main.id For XML Path(''), ELEMENTS) as List
From
#itemdata as Main