Adding a new document from a project doesn't bring the contact and company links throughThis is a featured page

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)
}


petejenkins
petejenkins
Latest page update: made by petejenkins , Sep 18 2008, 3:53 AM EDT (about this update About This Update petejenkins Moved from: eLink 2008.1.0.0 - petejenkins

No content added or deleted.

- complete history)
Keyword tags: None
More Info: links to this page
There are no threads for this page.  Be the first to start a new thread.