Hi All,
I am using SL2011. In Journal Transaction screen , I have added a new Custom Field(batch.user5). How can I get the current user name to the custom field who has been logged in by changing the default property?
But through below VBA coding i am able to get the Current user name and set this value to default :
Private Sub xuser1_Default(OldValue As String, retval As Integer)
Dim strUserId As String
Call GetBufferValue("bPes.UserId", strUserId)
Call SetBufferValue("BBatch.user5", strUserId)
Call SetObjectValue("xuser1", strUserId)
Call DispFields("form1", "xuser1")
End Sub
Kindly please guide me Why i am not able to get the current user name by changing the default property of custom filed?
*This post is locked for comments