[FX.php List] Multiple Record edit

William Downs william.downs at gmail.com
Tue Jun 26 10:52:53 MDT 2007


Hi There

I am new to this list, and rather new to FX.php / Filemaker.

I am having an issue with a multiple record edit - the foundContacts
are supposed to receive a new SalesID.

Code:
$foundContacts = $assignConResult['data'];

if ( is_array ($foundContacts) ) {
	$theRecIDs = array();
   foreach ($foundContacts as $key => $value) {
   array_push ($theRecIDs,$value['recid'][0]);
			}
	}

$counter = 0;

while ($counter < $countSelected) {

	$fmTarget 	= 'NeSales.fp7';
	$groupSize	= 'all';
	$assignNew[$counter] = new FX($serverIP,$webCompanionPort,'FMPro7');
	$assignNew[$counter]->SetDBData($fmTarget,'WebAssign',$groupSize);
	$assignNew[$counter]->SetDBPassword($webPassword,$webUser);
	$assignNew[$counter]->AddDBParam('-recid',$theRecIDs['recid'][$counter]);
	$assignNew[$counter]->AddDBParam('fkSales',$newSalesID);
	
	$assignNewEdit[$counter]=$assignNew[$counter]->FMEdit();
	
$counter++;
}

Perhaps someone would be kind enough to point out what I am doing
wrong - the recid's are not being sent to the database. Any help
greatly appreciated

William


More information about the FX.php_List mailing list