Page 1 of 1

Problem in URL Cursor

PostPosted: Wed Oct 03, 2012 4:24 am
by muzafar
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,

Re: Problem in URL Cursor

PostPosted: Wed Oct 03, 2012 8:15 am
by shannah
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