Ascertaining UserID in a form session (8.03.404)

Worked like a charm Micheal.

Many thanks.

Rob Brown

Robert Brown <robertb_versa@...> wrote:
Thanks Micheal. That makes sense. I'll give it a try tomorrow.
Rob Brown

Michael McWilliams <mmcwilliams22@...> wrote:
Try this. Under Module declare the String Variable. Then on the
form load event put your code in and set the value declared at the
module. You should be able to use it for any events then..

--- In vantage@yahoogroups.com, Robert Brown <robertb_versa@...>
wrote:
>
> I'm trying to add VB code to ascertain the UserID who has launched
an application in 404. In this case the application is Supplier
Maintenance.
>
> From what I can tell viewing the UI Objects, I should be able to
add this code:
>
> '// ** Get Property
> Dim vUserdID As String = VendorForm.Session.UserID
>
> - in the Custom Module Level Variables section of the module.
>
> When I do, I get an 'object not set to an instance' error
message.
>
> That makes me think I have to declare and initialize the
VendorForm.Session object (which may also require inclusion of
Custom Assemblies - but no where in Custom Object Explorer, the
Assembly Reference Manager, or Epicor Tools User Guide does it give
any clue as to the syntax to use to do this.
>
> In fact, the lone example in the User Guide pertaining to this
very type of customization makes no mention at all of needing to do
more than declare the variable using the Dim statement above.
>
> Anyone out there no what I'm missing to make this work?
>
> Thanks
>
> Rob Brown
>
>
>
>
> ---------------------------------
> You rock. That's why Blockbuster's offering you one month of
Blockbuster Total Access, No Cost.
>
> [Non-text portions of this message have been removed]
>

---------------------------------
You rock. That's why Blockbuster's offering you one month of Blockbuster Total Access, No Cost.

[Non-text portions of this message have been removed]





__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

[Non-text portions of this message have been removed]
I'm trying to add VB code to ascertain the UserID who has launched an application in 404. In this case the application is Supplier Maintenance.

From what I can tell viewing the UI Objects, I should be able to add this code:

'// ** Get Property
Dim vUserdID As String = VendorForm.Session.UserID

- in the Custom Module Level Variables section of the module.

When I do, I get an 'object not set to an instance' error message.

That makes me think I have to declare and initialize the VendorForm.Session object (which may also require inclusion of Custom Assemblies - but no where in Custom Object Explorer, the Assembly Reference Manager, or Epicor Tools User Guide does it give any clue as to the syntax to use to do this.

In fact, the lone example in the User Guide pertaining to this very type of customization makes no mention at all of needing to do more than declare the variable using the Dim statement above.

Anyone out there no what I'm missing to make this work?

Thanks

Rob Brown




---------------------------------
You rock. That's why Blockbuster's offering you one month of Blockbuster Total Access, No Cost.

[Non-text portions of this message have been removed]
Try this. Under Module declare the String Variable. Then on the
form load event put your code in and set the value declared at the
module. You should be able to use it for any events then..

--- In vantage@yahoogroups.com, Robert Brown <robertb_versa@...>
wrote:
>
> I'm trying to add VB code to ascertain the UserID who has launched
an application in 404. In this case the application is Supplier
Maintenance.
>
> From what I can tell viewing the UI Objects, I should be able to
add this code:
>
> '// ** Get Property
> Dim vUserdID As String = VendorForm.Session.UserID
>
> - in the Custom Module Level Variables section of the module.
>
> When I do, I get an 'object not set to an instance' error
message.
>
> That makes me think I have to declare and initialize the
VendorForm.Session object (which may also require inclusion of
Custom Assemblies - but no where in Custom Object Explorer, the
Assembly Reference Manager, or Epicor Tools User Guide does it give
any clue as to the syntax to use to do this.
>
> In fact, the lone example in the User Guide pertaining to this
very type of customization makes no mention at all of needing to do
more than declare the variable using the Dim statement above.
>
> Anyone out there no what I'm missing to make this work?
>
> Thanks
>
> Rob Brown
>
>
>
>
> ---------------------------------
> You rock. That's why Blockbuster's offering you one month of
Blockbuster Total Access, No Cost.
>
> [Non-text portions of this message have been removed]
>
Thanks Micheal. That makes sense. I'll give it a try tomorrow.
Rob Brown

Michael McWilliams <mmcwilliams22@...> wrote:
Try this. Under Module declare the String Variable. Then on the
form load event put your code in and set the value declared at the
module. You should be able to use it for any events then..

--- In vantage@yahoogroups.com, Robert Brown <robertb_versa@...>
wrote:
>
> I'm trying to add VB code to ascertain the UserID who has launched
an application in 404. In this case the application is Supplier
Maintenance.
>
> From what I can tell viewing the UI Objects, I should be able to
add this code:
>
> '// ** Get Property
> Dim vUserdID As String = VendorForm.Session.UserID
>
> - in the Custom Module Level Variables section of the module.
>
> When I do, I get an 'object not set to an instance' error
message.
>
> That makes me think I have to declare and initialize the
VendorForm.Session object (which may also require inclusion of
Custom Assemblies - but no where in Custom Object Explorer, the
Assembly Reference Manager, or Epicor Tools User Guide does it give
any clue as to the syntax to use to do this.
>
> In fact, the lone example in the User Guide pertaining to this
very type of customization makes no mention at all of needing to do
more than declare the variable using the Dim statement above.
>
> Anyone out there no what I'm missing to make this work?
>
> Thanks
>
> Rob Brown
>
>
>
>
> ---------------------------------
> You rock. That's why Blockbuster's offering you one month of
Blockbuster Total Access, No Cost.
>
> [Non-text portions of this message have been removed]
>






---------------------------------
You rock. That's why Blockbuster's offering you one month of Blockbuster Total Access, No Cost.

[Non-text portions of this message have been removed]