Skip navigation
kt03
Currently Being Moderated

url.CFGRIDKEY

May 18, 2012 1:43 PM

I have the cflayout area with 2 tabs.

tab1: form for user to enter information into the table.

tab2: list all records from the table.

 

From second tab, click the record id link then it displays the details on the form from tab1.

Look at the code i have on the form.cfm page below.  From list.cfm page, if i have SOURCE="form.cfm" then url.CFGRIDKEY is defined, but if i change SOURCE= "tab.cfm" then url.CFGRIDKEY is not defined.  However, either way, the debug still show

URL Parameters:

CFGRIDKEY=1

action=edit

 

Why is that happened and what should i do?

=========================

<!---tab.cfm--->

<cfajaximport tags="CFINPUT-AUTOSUGGEST, cflayout-tab,cfform,cfinput-datefield,cfgrid ">

<CFLAYOUT TYPE="TAB">

    <CFLAYOUTAREA NAME="tab1" TITLE=" Entry Form" SOURCE="form.cfm"></CFLAYOUTAREA>

    <CFLAYOUTAREA NAME="tab2" TITLE=" Lists"  SOURCE="list.cfm"></CFLAYOUTAREA>

</CFLAYOUT>

 

<!---list.cfm--->

<cfgridcolumn name="id" header="Message ID" width="50" href="tab.cfm?action=edit" hrefkey="id" />

 

 

<!---form.cfm--->

<cfif isdefined("url.CFGRIDKEY")>

yes

<cfelse>

no

</cfif>

 

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points