If some has noticed that if you are using SQLServer variable type
Uniqueidentifier. In a stored procedure you insert a row in table using
stored procedure (spr_INSERTPERSON) and then use the GUID (PK) inserted
in same page. Code is given below.
DECLARE @PersonID uniqueidentifier
SET @PersonID = NewID()
SELECT @PersonID PersonID
INSERT INTO
tb_Person( PK_Person_ID,
PersonRefNumber,
FK_PersonStatus_ID)
VALUES
(
@PersonID,
@ReferenceNumber,
@PersonStatusID
)
Now in my cf page if I use this variable PersonID in CFMODULE or
CFLOCATION it wont work so I've to set it locally.
e.g.
METHOD 1: <CFModule Template="" PersonID="#spr_INSERTPERON.PersonID#">
(It gives error unidentified variable SPR_INSERPERON.PersonID)
METHOD 2: if I use <CFSet newPersonID = "#spr_INSERPERON.PersonID#">
<CFModule Template="" PersonID="#newPersonID#"> (It
Works)
Problem is that we have installed MX recently. Now in my application
there are lots of pages using METHOD1 which would be absoulte nightmare
to find and amend. Is it bug in MX or I am doing something extremely
stupid? But thing is it was working perfect with method1 with CF5.0. One
more thing if variable type is int or something then also it works
perfect with METHOD1 with MX.
Shahzad Butt (Development Engineer)
JJ FastFood Distribution Ltd.
Office: +44 (0) 1992 701 722
Mobile: +44 (0) 7803 584 873
Fax: +44 (0) 1992 701 604
7 Solar Way, Innova Park, Enfield, London, EN3 7XY
**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.
www.mimesweeper.com
**********************************************************************
______________________________________________________________________
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists