Skip to Content
Jul 21, 2020 at 01:40 AM

AssetRevaluation Form_DataAddAfter not giving pVal.ObjectKey

107 Views Last edit Jul 21, 2020 at 03:50 AM 2 rev

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;
                docEntry = int.Parse(pVal.ObjectKey);
            var tmp = GlobalCompany.oCompany.GetNewObjectKey();
            //close form