Solved

How do you pass 2 parameters in cfgridcolumn href?

Posted on 2010-09-13
11
572 Views
Last Modified: 2012-08-13
I can pass 1 value, I need to pass ACN & TDA_UIC

<cfgridcolumn name="ACN" header="ACN"  href="../MRE_ReqDetailOverviewgood_Update.cfm" hrefkey="TDA_UIC" select="false">

Then on resultspage.cfm I'm using #URL.CFGRIDKEY# to create link

Any help appreciated. - thanks.

<cfgridcolumn name="ACN" header="ACN"  href="../MRE_ReqDetailOverviewgood_Update.cfm" hrefkey="TDA_UIC" select="false">

Open in new window

0
Comment
Question by:Nigel-SA
  • 6
  • 5
11 Comments
 
LVL 19

Expert Comment

by:Bhavesh Shah
ID: 33662247
hey author,

i tried find somethng on net but unfortunate didnt found.
but i have 1 solution.....
in ur query make 1 column

ACN & '~' + TDA_UIC as LinkCOlumn

Pass this column in href.

While retriving value,use GetToken

<CFSET ACN = GetToken(GRIDKEY,1,"~")>
<CFSET TDA_UIC = GetToken(GRIDKEY,2,"~")>
0
 

Author Comment

by:Nigel-SA
ID: 33663224
Brichsoft - Thanks - I need some further guidance (novice)
in the query i get "keyword not found where expected"
none of these syntax's work, talking to oracle db:
MRE_PRIORITY_FY.TDA_UIC & '~' + MRE_PRIORITY_FY.ACN As LinkColumn,
(MRE_PRIORITY_FY.TDA_UIC) & '~' + (MRE_PRIORITY_FY.ACN) As LinkColumn,
((MRE_PRIORITY_FY.TDA_UIC) & '~' + (MRE_PRIORITY_FY.ACN)) As LinkColumn,
((MRE_PRIORITY_FY.TDA_UIC) and '~' + (MRE_PRIORITY_FY.ACN)) As LinkColumn,
0
 
LVL 19

Expert Comment

by:Bhavesh Shah
ID: 33663413

Oh....

Its my mistake...

Very sory nigel

this should work
MRE_PRIORITY_FY.TDA_UIC + '~' + MRE_PRIORITY_FY.ACN As LinkColumn,

or

check out this link as i'm not good in oracle.

http://www.codeguru.com/forum/showthread.php?t=307851


secondly, hope both columns are string
0
 

Author Comment

by:Nigel-SA
ID: 33663490
:) I tried that as well. "invalid number ", both the fields are "CHAR"s

I'll check the second option - thanks
0
 
LVL 19

Accepted Solution

by:
Bhavesh Shah earned 500 total points
ID: 33663568

I got it. :-)

Select MRE_PRIORITY_FY.TDA_UIC || '~' || MRE_PRIORITY_FY.ACN As LinkColumn


0
Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

 

Author Comment

by:Nigel-SA
ID: 33664522
Excellent - it works!  Almost there.
It passes the values toretrieve file with "Variable GRIDKEY is undefined." error - see http:
MRE_ReqDetailOverviewgood_Update.cfm?CFGRIDKEY=012009001~MCW07CAA00
I did as you suggested above:
<CFSET ACN = GetToken(GRIDKEY,1,"~")>
<CFSET TDA_UIC = GetToken(GRIDKEY,2,"~")>

Then in sql I did which does not seem correct:
WHERE MRE_REQUIREMENT.ACN ='#URL.GRIDKEY#'and MRE_REQUIREMENT.TDA_UIC = '#URL.GRIDKEY#'

Thanks for your help, this is huge for me...
0
 

Author Comment

by:Nigel-SA
ID: 33664621
:) Ok GRIDKEY needs to be CFGRIDKEY

Now, how does it distinguish the difference between CFGRIDKEY1 for ACN and CFGRIDKEY1 for TDA_UIC?

WHERE MRE_REQUIREMENT.ACN ='#URL.CFGRIDKEY#'and MRE_REQUIREMENT.TDA_UIC = '#URL.CFGRIDKEY#'
0
 
LVL 19

Expert Comment

by:Bhavesh Shah
ID: 33665425
WHERE MRE_REQUIREMENT.ACN ='#GetToken(URL.CFGRIDKEY,1,'~')#'and MRE_REQUIREMENT.TDA_UIC = '#GetToken(URL.CFGRIDKEY,2,'~')#'
0
 
LVL 19

Expert Comment

by:Bhavesh Shah
ID: 33665431

Hope this works.
0
 

Author Comment

by:Nigel-SA
ID: 33665488
Brichsoft, actually I just got this working because they're declare in the CFSET above...

WHERE MRE_REQUIREMENT.ACN ='#ACN#'and MRE_REQUIREMENT.TDA_UIC = '#TDA_UIC#'

Good job - thanks for your help
0
 

Author Closing Comment

by:Nigel-SA
ID: 33665506
Excellent support - thanks
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

The technique is by far very Simple! How we can export the ColdFusion query results to DOC file?  Well before writing this I researched a lot in Internet but did not found a good Answer anyways!  So i thought now i should share my small snippet w…
Recently while working on a project I got a very annoying cfdocument has no body error message. I had never seen this error before. So I checked the code. The code was pretty simple; it was Just showing me the cfdocumnt tag and inside that tag a …
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now