Hi All,
Is it possible to add an Import button that allows uploading an Excel sheet directly into the Documents To Apply tab on the Payments and Applications screen?
Thanks.
Hi All,
Is it possible to add an Import button that allows uploading an Excel sheet directly into the Documents To Apply tab on the Payments and Applications screen?
Thanks.
Best answer by aiwan
Hi
I believe you also have to invoke the IPXPrepareItems interface.
public virtual bool PrepareImportRow(string viewName, IDictionary keys, IDictionary values)
{
if (string.Compare(viewName, "Products", true) == 0)
{
if (values.Contains("opportunityID"))
values["opportunityID"] = Quote.Current.OpportunityID;
else
values.Add("opportunityID", Quote.Current.OpportunityID);
}
return true;
}
public bool RowImporting(string viewName, object row)
{
return row == null;
}
public bool RowImported(string viewName, object row, object oldRow)
{
return oldRow == null;
}
public virtual void PrepareItems(string viewName, IEnumerable items)
{
}
This is a snippet from the QuoteMaint graph.
Hope this helps,
Aleks
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.