Adding a new document from a project doesn’t bring the contact and company links through

This will be fixed in the next release of eLink 2008. However, in the meantime you can fix it by adding the following script to the script editor in eConfig:

function EditInitializedDocument(EditID, Inserted)
{
if (!Inserted) return
var ProjetDoc = LinkSession.EditDetailDataSet(EditID, tgProject)

if (ProjetDoc.RecordCount == 0) return
var Projet = LinkSession.BeginEdit(tgProject, ProjetDoc.FieldByName(‘IDPROJECT’).AsFloat)

// Copy
LinkSession.CopyDetail(EditID, Projet, tgCompany)
LinkSession.CopyDetail(EditID, Projet, tgContact)
// Search for project details
var ProjetInfo = LinkSession.Consult(tgProject,ProjetDoc.FieldByName(‘IDPROJECT’).AsFloat)
LinkSession.EndEdit(Projet)
}

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>