Discussion:
How do I display the current user EmplID?
(too old to reply)
Girac B
2009-09-17 02:57:01 UTC
Permalink
Hello all
My requirement is to display the EmplID on my form and write to the record.
I have tried the following display method but receive compile errors.

display EmplID displayemplID()
{
return EmplTable::find(this.displayemplID).EmplID;
}

How can I accomplish this?

Regards
mic
2009-09-17 08:59:06 UTC
Permalink
hi

to get the emplid from the current user use this:

return empltable::userId2EmplId(curuserid());

or from the current record:

return empltable::userId2EmplId(datasourcename.createdby)

greez
mic
Girac B
2009-09-18 00:15:01 UTC
Permalink
That did the job. thanks
Post by mic
hi
return empltable::userId2EmplId(curuserid());
return empltable::userId2EmplId(datasourcename.createdby)
greez
mic
e***@gmail.com
2014-08-14 22:41:22 UTC
Permalink
empltable::userId2EmplId(curuserid());

It works for me!!. Thank you so much "mic"

Loading...