I have a form users can fill in, and want automatically to save the UserID into the table... is their any built-in function like CurrData() for date to get the current user ID?
p.s.: I know it's possible to set in the action of the submit of the form the form mandatory User Is to the session variable... But wondering if their is a shortcut
session.userid is the logged in userid..
But what should be the DataType then of the field, i mean I created an attribute in the entity with type User Identifier.. but on that type it's not allowed to pass a default value... so where do you bind the session.userid to the attribute of the entity? In your Action on submit?
Before your CreateorUpdate operation you can assign value to database variable as session.userid.