view session id on form

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

When my users open the main form on my apps, I like to create a session id
and assign it to the form, and display it to the viewer. During work I save
the session id with certain records that are created.

But I have a hard time getting the session id to display!

My apps start by opening a login form to get the employee id, then creates a
session record, fetchs the session id just created, opens the main form and
sets the public session id property to the proper session id.

But I can't get the session id to display on the main form! By the time the
session id property is set the controls have already been displayed, meaning
that when I attempt to update the control with Myform.txtMySession =
Myform.MySession, the sessionid property has not yet been set by the calling
form, and when the form is finally open, there is no event that fires after
the session id property has been set, so the text box never shows the
(internal) session id.

Any ideas of how to get the session id property into the text box that wants
to display the id?

Thanks in advance for your help

Fred
 
There are an number of possibilities here. How does the form get the
sessionID? You mentioned a calling form. Have your tried passing the
sessionID from the calling form with OpenArgs?

Look at some of the events fired when loading or opening the form. Could
you put something there that would give you the sessionID.

The last resort would be to hide the form until the sessionID is in place
and then show it.

Don't know if I helped, but good luck.
 
Back
Top