"No records matched your request" non-empty tables

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

Postby shannah » Fri Oct 09, 2009 8:45 am

You could also create a View of your table but with different column names, and use that in your application instead.
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm

Postby dfondente » Fri Oct 09, 2009 9:05 am

I will try the View approach and see if I can get that working. Thanks very much for the suggestions.
dfondente
 
Posts: 9
Joined: Wed Oct 07, 2009 2:54 pm

Postby dfondente » Fri Oct 09, 2009 10:30 am

I am still planning on investigating a solution using MySQL Views (not sure if this will be feasible), and also the possibility of adding a new parameter to fields.ini to allow an "alias" for a table name (so problematic tables names such as "locale" can still be used).

In the meantime, if anyone else comes across this issue with a "locale" field, placing the following in the index.php for your application makes the table records visible, allows you to search for values in the "locale" field, etc:

Code: Select all
$arrayOfValidLocaleValues = [VALID LOCALE VALUES HERE];
if ( isset($_REQUEST['locale']) and !in_array($_REQUEST['locale'], $arrayOfValidLocaleValues) ){
    unset($_REQUEST['locale']);
    if ( $_POST ) $_REQUEST['locale'] = $_POST['locale'];
    if ( $_GET ) $_REQUEST['locale'] = $_GET['locale'];
}
dfondente
 
Posts: 9
Joined: Wed Oct 07, 2009 2:54 pm

Postby shannah » Wed Oct 14, 2009 11:52 am

I have changed Xataface to draw its query parameters from the GET and POST arrays rather than the REQUEST array. It will be available in the next release, or you can download the latest Dataface/Application.php file from svn.

This will fix this problem without requiring the workaround.

http://weblite.ca/svn/dataface/core/tru ... cation.php
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm

Previous

Return to Xataface Users

Who is online

Users browsing this forum: No registered users and 20 guests

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