] ]

 
] ] ]
]
Top 5 Recent Posts ]
View Last Post CF developer East Sussex needed
Last Post By: Guests
Forum: Employers

Posted: 10 August 2010 at: 6:06pm

View Last Post Related selects using bind and cfc
Last Post By: Oyster
Forum: Coldfusion Programming

Posted: 01 July 2010 at: 6:18pm

View Last Post Table layout query
Last Post By: Clarkee21
Forum: HOW TO

Posted: 22 June 2010 at: 3:15pm

View Last Post CF developer required Immediately
Last Post By: jeromesmith
Forum: Employers

Posted: 25 May 2010 at: 8:53am

View Last Post ColdFusion Developer- 9 Month Contract
Last Post By: Ryanadams100
Forum: Employers

Posted: 21 April 2010 at: 4:18pm

]
] ]

] ] ]
]
Welcome Guest ]
Name:
Pass:
Auto Login
Add me to Active Users list
Yes  No

Forgot password? | Register
]
] ]

] ] ]
]
Online Activity ]
People Online: 7
Guest(s): 7
Member(s): 0
Memberships: 2472
The Newest Member is patidarvijay
Most Online: 60
Occured: 22 October 2009
Members[0], Guests[60]
]
] ]

] ] ]
]
Member(s) Visited ]
Total: 0 
No matches found
]
] ]

   
Coldfusion Programming
 CFDeveloper - Coldfusion developer community » Coldfusion Programming
Subject Topic: Recordset paging Post ReplyPost New Topic
Forum Jump  
] ] ]
]
Author
Message Prev Topic | Next Topic 
Oyster
Senior Member
Avatar

Senior Member

Joined: 18 March 2005
National Flag of United States United States
Posts: 190
Gender: Female
Posted: 30 October 2009 at 3:54pm | IP Logged Quote Oyster

Can someone please tell me why I can only navigate through my record set if the query doesn't contain parameters?  When I pass parameters via a search form,  my records will display.  But, when I click my navigation button "Next" , I get an error message telling me that "element fishfamily is undefined".  I tried caching the query results hoping that I would be able to scroll though the record set without resending the query.  It appears to me that this is not happening, and that when I click the "Next" button, the query is resubmtted.  Since "fishfamily" is an empty parameter, the query bombs.

Help is appreciated!!!

Here's my code: (Look at the file attached to my December posting for this code along with the solution.)



Edited by Oyster on 16 December 2009 at 4:09pm


__________________
Si hoc legere scis, nimium eruditionis habes.
Back to Top Printable version View Oyster's Profile Search for other posts by Oyster
 
siew
Newbie


Newbie

Joined: 03 January 2007
National Flag of United Kingdom United Kingdom
Posts: 11
Gender: Female
Posted: 30 October 2009 at 9:29pm | IP Logged Quote siew

Looks like you are missing a hidden field on the fishFamily in the form, if it is a url link, you need to get the fishFamily value to pass in as a url parameter
Back to Top Printable version View siew's Profile Search for other posts by siew
 
Oyster
Senior Member
Avatar

Senior Member

Joined: 18 March 2005
National Flag of United States United States
Posts: 190
Gender: Female
Posted: 05 November 2009 at 2:30pm | IP Logged Quote Oyster

Thanks Siew,

I'm not passing any url parameters.  The values are passed by the calling form by means of form fields:

<cfform action="the_paging_page.cfm" datasource="stuff">

<select name="fishfamily">
        <option value="">-- list --      <cfoutput query="getfamily">
<!---<option value="#getfamily.family#">#lcase(getfamily.family)#  ;     </cfoutput>--->
<option value="#getfamily.family#">#getfamily.family#       </cfoutput>
      </select>

It seems that I somehow need to capture the values from the calling page so that they can be resued by the action page. 



__________________
Si hoc legere scis, nimium eruditionis habes.
Back to Top Printable version View Oyster's Profile Search for other posts by Oyster
 
Russ
Admin Group
Avatar

Admin Group
Snake

Joined: 23 January 2005
National Flag of United Kingdom United Kingdom
Posts: 633
Gender: Male
Posted: 08 November 2009 at 3:18pm | IP Logged Quote Russ

You have this

 

<cfif form.fishfamily neq "">

            and family = '#form.fishfamily#'

            </cfif>

 

so form.fishfamily must exist.

If you are clicking a link, then the form is not submitted so u get an error.

 

if you want to use both form and url then you need to make sure all the variables exist in both scopes. Or simply stick to using only forms. When clicking a page link, you can use javascript to pass the page number into a hidden field and then submit the form.

Remember that not scoping your variables means that cf will search all scopes, which is one way to use both form or url, but could result in values being pulled from another scope. Another alternative is to copy the form and url into a custom scope and use that instead. This is how fusebox used to do it with formurltoattributes.

Perhaps this article may help

 

http://www.coldfusionjedi.com/index.cfm/2006/4/24/ColdFusion -and-Pagination



__________________
Russ Michaels
CFDeveloper Administrator
my blog: <a href="http://russ.michaels.me.uk/">russ.michaels.me.uk< ;/a>
Back to Top Printable version View Russ's Profile Search for other posts by Russ Visit Russ's Homepage
 
Oyster
Senior Member
Avatar

Senior Member

Joined: 18 March 2005
National Flag of United States United States
Posts: 190
Gender: Female
Posted: 16 December 2009 at 4:08pm | IP Logged Quote Oyster

I finally figured out how to do this in last month (Nov. 2009).   I created client variables in script mentioned in my script (see my first posting).

See this file to see how I set up my client variables.
 2009-12-16_160645_pagination.txt



__________________
Si hoc legere scis, nimium eruditionis habes.
Back to Top Printable version View Oyster's Profile Search for other posts by Oyster
 
]
] ]
Forum Jump  

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic

] ] ]
]
  ]
Printable version Printable version
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum
]
] ]

] ] ]
]
This page was generated in 1.1250 seconds. ©2004 cfdeveloper.co.uk
]
] ]