axapta:
Code:
<?php
$axapta = new COM('AxaptaCOMConnector.Axapta2');
$axapta->Logon2
('user', 'pass', '', '', '', '', 't:\batch\axapta\axapta copy
nl.axc');
$record = $axapta->CreateRecord('CustTable');
$axapta->TTSBegin();
$record->ExecuteStmt("SELECT FORUPDATE %1 WHERE %1.AccountNum
== '3200000780'");
$record->put_Field('Name','somevalue');
$record->Update();
$axapta->TTSCommit();
$axapta->Logoff();
?>
When I run it I get this error:
Quote:
Warning: (null)(): Unable to lookup put_field: Unknown name. in
C:\web\update3.php on line 9
I also tried to use get_Field instead of put_Field but it gives the
same error.
When I use:
Code:
$record->Field('Name') = 'somevalue';
is get this error:
Quote:
Parse error: syntax error, unexpected '=' in C:\web\update3.php on
line 9
I have no problems using select queries and displaying data. I'm just
stuck changing and saving the data to axapta.
Anyone knows something that could help me or am I just overlooking
something?
Thx in advance.
SPONSORED LINKS
Computer part | Programming languages | Microsoft axapta |
Support exchange |
YAHOO! GROUPS LINKS
- Visit your group "development-axapta" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.