Wrox Programmer Forums
|
BOOK: Professional SQL Server Reporting Services ISBN: 0-7645-6878-7
This is the forum to discuss the Wrox book Professional SQL ServerReporting Services by Paul Turley, Todd Bryant, James Counihan, George McKee, Dave DuVarney; ISBN: 9780764568787
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional SQL Server Reporting Services ISBN: 0-7645-6878-7 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 6th, 2004, 01:44 PM
Authorized User
 
Join Date: Jun 2004
Posts: 50
Thanks: 0
Thanked 0 Times in 0 Posts
Default Refer to Textbox.value in report

I don't HAVE to do this, but the amount of code in the work-around is getting rediculous.

I have a report that uses a number of data sets (5 actually). I want to be able to pull a value from a text field that (if we render from top to bottom) already has a value.

Textbox1 contains a number, I want to use that number in calculations that I make in a table later in the report (Textbox1 is not in a table, just on the page). Textbox 3 contains another number (Textbox1 + textbox2 values from dataset etc.).

Is there anyway to refer to the values in those boxes the way I can in ASP.net? I have tried Textbox1.value, textbox.Textbox1.value, Textbox1.Text...

I just keep getting an error saying it is undeclared.

I can't find in the BOL how to use global memory variables (which might be a way around this), or how to refer to the content of a text box.

Anyone have an idea how to do this?

Sandy Murdock MCP
__________________
Sandy Murdock MCP
 
Old August 9th, 2004, 12:53 PM
Authorized User
 
Join Date: Jul 2004
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Jmurdock: Did you find a way to solve the problem you posted here? I have similar question, I want to associate user input validation (javascript)to the text box. But, if we can not even get the value of the text box.... .do you mind sharing what you found related this issue? thanks.

 
Old August 10th, 2004, 08:09 AM
Authorized User
 
Join Date: Jun 2004
Posts: 50
Thanks: 0
Thanked 0 Times in 0 Posts
Default

What I ended up doing is using the function (button, option...) and instead of referring to the text boxes I got the values from the appropriate data-set and re-did the math.

It's more typing but I got it to work. (It's not very elegant either).

I still don't know how to set up global memory variables (if it's possible) and would still like to if/how I can work with session variables of my own.



Sandy Murdock MCP
 
Old September 24th, 2004, 08:32 AM
Registered User
 
Join Date: Sep 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

You can reference the value of a textbox by using 'ReportItems!textbox1.Value'






Similar Threads
Thread Thread Starter Forum Replies Last Post
Refer to Rows and Columns RayL Access VBA 3 May 23rd, 2007 09:13 AM
Refer to a cell with a DataView bufanator VB.NET 2002/2003 Basics 2 January 11th, 2007 04:55 PM
refer to subform values stepdev Access VBA 2 December 7th, 2006 12:13 PM
how to refer another form khautinh General .NET 2 March 17th, 2004 01:29 PM
How to refer assemblies which are in GAC ? kishore_peddi C# 0 October 12th, 2003 09:09 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.