HI All,
we are using the b1studio to get the system form for asset revaluation, after adding the document, we need to get the doc entry of the document added. For this we usually use the event 'form data add after'
public override void OnInitializeFormEvents() { this.DataAddAfter += new DataAddAfterHandler(this.Form_DataAddAfter); }
in the below event
pVal.ObjectKey is returning empty
similarly oCompany.GetNewObjectKey() is too giving empty.
Is there any other way to get this information?
private void Form_DataAddAfter(ref BusinessObjectInfo pVal) { var docEntry = 0; if(pVal.ActionSuccess) docEntry = int.Parse(pVal.ObjectKey); var tmp = GlobalCompany.oCompany.GetNewObjectKey(); //close form this.UIAPIRawForm.Close(); }