.ExecuteStmt solo me acepta un string en el constructor y no acepta parametros
AxaptaRecord axRecord;
string tableName = "CustTable";
try
{
System.Net.NetworkCredential nc = new System.Net.NetworkCredential("wsconectorax", "wsc0n3ct@x*", "genesiscr.local");
axp = new Bcn.Axapta();
axp.LogonAs(nc.UserName, "genesiscr.local", nc, "jsm", "", "JSM@genesiscrax:2711", ConfigurationManager.AppSettings["AxCfgFile"]);
Label2.Text = "succes logonax"+ nc.UserName + nc.Password + nc.Domain;
// DynAx.LogonAs("ritchie.funes", "", nc, "", "", "", "");
Label2.Text = "succes"+ Label2.Text;
// DynAx.Logoff();
Label2.Text = "loggoff succes" + Label2.Text;
using (axRecord = axp.CreateAxaptaRecord(tableName))
{
// Execute a query to retrieve an editable record where the StatGroupName is “High Priority Customer”.
axRecord.ExecuteStmt("select forUpdate * from %1 where %1.AccountNum == '000001'" ); // porque me da error al momento de hacer esa consulta de axapta en c#
// If the record is found then delete the record.
if (axRecord.Found)
{
// Start a transaction that can be committed.
axp.TTSBegin();
axRecord.Delete();
// Commit the transaction.
axp.TTSCommit();
}
}
}
catch (Exception ex)
{
Label2.Text = ex.ToString() +" "+ ex.Message;
}
sera posible que se pueda modificar este metodo .ExecuteStmt para que reciba un string y un axrecord
Hilo iniciado por
Ritchie Funes Garcia
hace 7 años
0