Customization Form Objects

If you looking for controls on the form, you can access them directly. You can find the control name in developer mode by selecting the control and viewing the properties.


String theBuyerID=txtBuyerID.Text;



From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf Of Greg Payne
Sent: Wednesday, February 08, 2012 1:35 PM
To: vantage@yahoogroups.com
Subject: [Vantage] Customization Form Objects



Forgive me as I am not a .NET person and this is my first customization in Epicor.

I am working on POsuggEntryform, but my question is for any form. I have searched the object explorer and looked thru the ICE books and have no clue how to find the variables that are in the form.

I found POSuggEntryForm.Session.UserID for the user id that opens the form from another post in the group, but I want to set values based on the BuyerID that was used to open the form.

Where or how are these found?

Thanks for your help.

Greg Payne

________________________________
CONFIDENTIALITY NOTICE

The information contained in this communication, including attachments, is privileged and confidential. It is intended only for the exclusive use of the addressee. If the reader of this message is not the intended recipient, or the employee or agent responsible for delivering it to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify us at (727) 578-6258 and immediately delete the communication.

"This (document/presentation) may contain technical data as defined in the International Traffic In Arms Regulations (ITAR) 22 CFR 120.10. Export of this material is restricted by the Arms Export Control Act (22 U.S.C. 2751 et seq.) and may not be exported to foreign persons without prior approval form the U.S. Department of State."

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



[Non-text portions of this message have been removed]
Forgive me as I am not a .NET person and this is my first customization in Epicor.

I am working on POsuggEntryform, but my question is for any form. I have searched the object explorer and looked thru the ICE books and have no clue how to find the variables that are in the form.

I found POSuggEntryForm.Session.UserID for the user id that opens the form from another post in the group, but I want to set values based on the BuyerID that was used to open the form.

Where or how are these found?

Thanks for your help.

Greg Payne

________________________________
CONFIDENTIALITY NOTICE

The information contained in this communication, including attachments, is privileged and confidential. It is intended only for the exclusive use of the addressee. If the reader of this message is not the intended recipient, or the employee or agent responsible for delivering it to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify us at (727) 578-6258 and immediately delete the communication.

"This (document/presentation) may contain technical data as defined in the International Traffic In Arms Regulations (ITAR) 22 CFR 120.10. Export of this material is restricted by the Arms Export Control Act (22 U.S.C. 2751 et seq.) and may not be exported to foreign persons without prior approval form the U.S. Department of State."


[Non-text portions of this message have been removed]
As far as im aware, there isn't a native association between buyer ID and user ID. That being said you can always create one using UD fields in either the buyer maint. form, or even the user maint. form. However you want to maintain that, you would then bring in the references to the form you use for that relationship and perform a query based on user ID. A sample lookup to a row in another dataset (form event could be 'Form Load') might look something like this (this is very untested)..

Dim struser As String = POSuggEntryForm.Session.UserID
Dim whereClauseA As String = "Character01 = '" & struser & "'"
Dim dsBuyerWorkBench As DataSet = Epicor.Mfg.UI.FormFunctions.SearchFunctions.listLookup(oTrans, "BuyerWorkBenchAdapter", recSelecteda, False, whereClauseA)
If (recSelecteda) Then

"do stuff here"

End If


there are probably other methods...



Rob Bucek
Production Control Manager
PH: (715) 284-5376 ext 311
Mobile: (715)896-0590
FAX: (715)284-4084
[Description: cid:1.234354861@...]<http://www.dsmfg.com/>
(Click the logo to view our site)<http://www.dsmfg.com/>

From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf Of Greg Payne
Sent: Wednesday, February 08, 2012 12:35 PM
To: vantage@yahoogroups.com
Subject: [Vantage] Customization Form Objects



Forgive me as I am not a .NET person and this is my first customization in Epicor.

I am working on POsuggEntryform, but my question is for any form. I have searched the object explorer and looked thru the ICE books and have no clue how to find the variables that are in the form.

I found POSuggEntryForm.Session.UserID for the user id that opens the form from another post in the group, but I want to set values based on the BuyerID that was used to open the form.

Where or how are these found?

Thanks for your help.

Greg Payne

________________________________
CONFIDENTIALITY NOTICE

The information contained in this communication, including attachments, is privileged and confidential. It is intended only for the exclusive use of the addressee. If the reader of this message is not the intended recipient, or the employee or agent responsible for delivering it to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify us at (727) 578-6258 and immediately delete the communication.

"This (document/presentation) may contain technical data as defined in the International Traffic In Arms Regulations (ITAR) 22 CFR 120.10. Export of this material is restricted by the Arms Export Control Act (22 U.S.C. 2751 et seq.) and may not be exported to foreign persons without prior approval form the U.S. Department of State."

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



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