Bonjour,
Nous souhaitons afficher la valeur d’un champ appartenant à la base de Sage Gestion Commercial ligne 100 dans Sage CRM.
Pour cela, nous avons créé un script dans Administration/Personnalisation/Société/ « nom d’un champ » /CreateScript:
We would like to display in SAGE CRM a value(field – the revenue of a customer in 2009) which is coming from the ERP SAGE Line 100. For that we wrote a script to get the value but it does not work:
var strSQL = "SELECT CRM_PROFIL.dbo.Company.Comp_Name, CRM_PROFIL.dbo.Company.comp_codecomptable, PROFIL2.dbo.F_COMPTET.CAHTNET2009
FROM CRM_PROFIL.dbo.Company LEFT OUTER JOIN
PROFIL2.dbo.F_COMPTET ON PROFIL2.dbo.F_COMPTET.CT_NUM = CRM_PROFIL.dbo.Company.comp_codecomptable
where CRM_PROFIL.dbo.Company.comp_codecomptable = '"+eWare.getContextInfo("CRM_PROFIL.dbo.Company","CRM_PROFIL.dbo.Company.comp_codecomptable")+"'";
var Query = eWare.CreateQueryObj(strSQL);
Query.SelectSQL();
if (!Query.bof)
{
errorstr = "Test affichage du CA - "+Query(PROFIL2.dbo.F_COMPTET.CAHTNET2009);
//defaultValue = parseFloat(Query(PROFIL2.dbo.F_COMPTET.CAHTNET2009));
value = Query(PROFIL2.dbo.F_COMPTET.CAHTNET2009);
}
if anybody has some ideas to solve this problem i twill be great
Mais ce script retourne l’erreur suivante :
and the error code is the following :
comp_achat_n jscript error: Constante chaîne non terminée Line: 2 Char: 148
Pourriez-vous nous aider ?
Cdlt,
Benoit EDDE
Profil informatique

