$app->getRecord() always get the last record
Posted: Tue May 04, 2010 3:25 pm
I did some testing and found that the following code would output the different message when creating a new record:
The output would look like this:
Is it what xataface supposed to do? If it is, why?
- Code: Select all
function field1__permissions(&$record){
$app =& Dataface_Application::getInstance();
$rec = $app->getRecord();
vardump($record->val(primary_id'));
echo "<br />";
vardump($rec->val('primary_id'));
}
The output would look like this:
- Code: Select all
string(4) "1957"
NULL
Is it what xataface supposed to do? If it is, why?