vanstyn / RapidApp

Turnkey ajaxy webapps
http://rapi.io
Other
48 stars 15 forks source link

Support for changing the primary key from the row page #8

Open vanstyn opened 11 years ago

vanstyn commented 11 years ago

Because of the REST style URL navigation, the primary key is part of the URL for row pages. The side effect of this is that when changing the primary key, the current URL becomes invalid because the location has changed. This was not an issue originally because query strings were used (and still are, internally, but REST paths now override)

The correct solution for this is to detect this case and then close and navigate to the new URL.

In the meantime, a cryptic error is now displayed after making the change:

Supplied/returned row mismatch. Expected 1 rows, got 0

If nothing else, there should at least be a descriptive error so the user knows what is going on.

Bug in RapidApp v0.99020