Lasso Soft Inc. > Home

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.

Lasso 9 Issues



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.

Comments

11 Jul, 2012 by Rachel Guthrie
To add to "what has changed" then lower priority until added for compatibiltiy - then remove from What has changed
26 Mar, 2013 by Rachel Guthrie
Working with Brad to edit this on the site.
26 Mar, 2013 by Brad Lindsay
After Verifying the issue still remains in 9.2.5, I edited the migration page to reflect this as a change in Lasso 9 for now.
Please log in to your LassoSoft account to comment

LassoSoft Inc. > Home

 

 

©LassoSoft Inc 2015 | Web Development by Treefrog Inc | PrivacyLegal terms and Shipping | Contact LassoSoft