?
Solved

How do you pass 2 parameters in cfgridcolumn href?

Posted on 2010-09-13
11
Medium Priority
?
596 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
How To Install Bash on Windows 10

Windows’ budding partnership with Canonical has certainly led to some great improvements. One of them being the ability to use Bash on your Windows machine without third party applications! This might be one of the greatest things a cloud engineer in a Windows environment can do!

 

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 2000 total points
ID: 33663568

I got it. :-)

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


0
 

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

Monthly Recap

May was a big month for new releases from Linux Academy! Take a look at what our team built recently in our blog. You can access the newest releases from our blog.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Sometimes databases have MILLIONS of records and we need a way to quickly query that table to return the results me need. Sure you could use CFQUERY but it takes too long when there are millions of records. That is why SOLR was invented. Please …
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 …
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
Suggested Courses
Course of the Month8 days, 16 hours left to enroll

764 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