Problem in URL Cursor

A place for users and developers of the Xataface to discuss and receive support.

Problem in URL Cursor

Postby muzafar » Wed Oct 03, 2012 4:24 am

Greetings,

I have a custom action in which i am retrieving records from database. I have created a link on the title for the detail page. I want to know the concept of URL cursor, Because whenever I come from the custom action to record detail page, and try to edit it, after the edit form submission, it throws an error and pass the wrong ID to the hidden field, which name is "keys__id" because of the wrong cursor value in the URL. So please let me know the concept of cursor, that what exactly they are doing for cursor in Xataface.

I shall be very thankful to YOU.

Thanks,
muzafar
 
Posts: 44
Joined: Mon Nov 28, 2011 9:25 pm

Re: Problem in URL Cursor

Postby shannah » Wed Oct 03, 2012 8:15 am

The -cursor query parameter specifies the index of the record in the found set that is treated as the detail record if you view a detail view.
E.g. ?-action=view&-table=people&lastname=smith&-cursor=0
Will show the view tab for the first record in the set of people with last name smith.

E.g. ?-action=view&-table=people&lastname=smith&-cursor=5
Will show the view tab for the 6th record in the set of people with last name smith.

See http://xataface.com/wiki/URL_Conventions for more on the URL conventions and available parameters.

-Steve
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm


Return to Xataface Users

Who is online

Users browsing this forum: No registered users and 28 guests

Powered by Dataface
© 2005-2007 Steve Hannah All rights reserved