RhinoTrac
LassoSoft Ticket Tracking System
NOTE: If you are using Lasso Server 9.3 please Log your ticket directly via the LUX admin as this will give us more information about your issue.
Ticket #7394: Can't access a field value after -add in an inline
- Reported by:
- Paul Higgins
- Date:
- 30 May, 2012
- Priority:
- minor
- Component:
- Lasso 9
- Version:
- 9.1.5
- Keywords:
- Platform:
var('mysqlAlpha') = array( -datasource='MySQLDS', -name='127.0.0.1', -port='3306', -username='lasso_no_delete', -password='tk-421' );
var('myMainConnection') = array( -keyField='id', -database='infoBaseFPDS', -table = 'fpdsDataImportLog');
var('addArray') = array();
$addArray->insert( 'startDateTime' = date_format( date, '%Q %T') );
$addArray->insert( -add );
inline( $myMainConnection,
-host = $mysqlAlpha,
$addArray);
var('importLogID') = field('id');
'<hr>'; 'This is the add part <br>';
error_currenterror;
'<br>';
action_statement;
'<hr>';
$importLogID;
/inline;
the $importLogID will be blank
you have to use this:
var('importLogID') = keyfield_value;
Then you will have the field('id') available.
Please log in to your LassoSoft account to comment
Comments