I figured my problem out. I added a Business Logic Method Call to getdata on the case number. Then inside the code that that wizard added I put in the code to launch the website with the custom URL I needed. This also worked with launching a message box. I then put this method in a button to call it. It works well and will not perform anything if there is no case number available.
Jordan
Jordan
--- In vantage@yahoogroups.com, Jordan Klassen <jordan.k@...> wrote:
>
> I cannot seem to get this to work. I keep trying to at least pull in the HDCaseNum and show if via a messagebox when a button is pushed. But there does not seem to be a way to get the HDCaseNum outside of a method. If I try to make the method a string then this.oTrans errors out. I have tried various Business Logic Method Calls to no avail. Are there any more examples or tips to at the very least pull in the HDCaseNum from the Help Desk table?
>
> Thanks,
> Jordan
>
>
>
> ________________________________
> [Bully Dog Logo]<http://www.bullydog.com>
> Jordan Klassen | Information Technology
> TEL: 940-783-9914 ext: 1828
>
> ________________________________
>
> Confidentiality Notice: The information contained in this electronic message is privileged and confidential information intended only for the use of the individual entity or entities named as recipient or recipients. If the reader is not the intended recipient, you are hereby notified that any dissemination, distribution or copy of this communication is strictly prohibited. If you have received this communication in error, please notify the sender immediately by electronic mail and permanently delete this message from your computer system. Thank you.
>
> Disclaimer added by CodeTwo Exchange Rules 2010
> www.codetwo.com<http://www.codetwo.com/?sts=1048>
>
> From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf Of Jordan Klassen
> Sent: Tuesday, April 16, 2013 11:55 AM
> To: vantage@yahoogroups.com
> Subject: [Vantage] RE: C# Help Desk Customization
>
>
>
> Thank You very much, I will try to get it from here.
>
> Jordan
>
>
>
> ________________________________
> [Bully Dog Logo]<http://www.bullydog.com>
> Jordan Klassen | Information Technology
> TEL: 940-783-9914 ext: 1828
>
> ________________________________
>
> Confidentiality Notice: The information contained in this electronic message is privileged and confidential information intended only for the use of the individual entity or entities named as recipient or recipients. If the reader is not the intended recipient, you are hereby notified that any dissemination, distribution or copy of this communication is strictly prohibited. If you have received this communication in error, please notify the sender immediately by electronic mail and permanently delete this message from your computer system. Thank you.
>
> Disclaimer added by CodeTwo Exchange Rules 2010
> www.codetwo.com<http://www.codetwo.com/?sts=1048>
>
> From: vantage@yahoogroups.com<mailto:vantage%40yahoogroups.com> [mailto:vantage@yahoogroups.com<mailto:vantage%40yahoogroups.com>] On Behalf Of Joshua Giese
> Sent: Tuesday, April 16, 2013 11:54 AM
> To: vantage@yahoogroups.com<mailto:vantage%40yahoogroups.com>
> Subject: Re: [Vantage] RE: C# Help Desk Customization
>
>
>
>
> // ** Wizard Insert Location - Do Not Remove 'Begin/End Wizard Added Module Level Variables' Comments! **
> // Begin Wizard Added Module Level Variables **
>
> private EpiDataView _edvDBField;
> // End Wizard Added Module Level Variables **
>
> // Add Custom Module Level Variables Here **
> private WebBrowser _wbColXRef;
> private String _strDDUrl;
>
> public void InitializeCustomCode()
> {
> // ** Wizard Insert Location - Do not delete 'Begin/End Wizard Added Variable Initialization' lines **
> // Begin Wizard Added Variable Initialization
>
> this._edvDBField = ((EpiDataView)(this.oTrans.EpiDataViews["DBField"]));
> this._edvDBField.EpiViewNotification += new EpiViewNotification(this.edvDBField_EpiViewNotification);
> // End Wizard Added Variable Initialization
>
> // Begin Wizard Added Custom Method Calls
>
> // End Wizard Added Custom Method Calls
> _wbColXRef = new WebBrowser();
> _strDDUrl = "http://epidd.wisconsinconverting.com/Mfgsys/00-cross-";
> }
>
> public void DestroyCustomCode()
> {
> // ** Wizard Insert Location - Do not delete 'Begin/End Wizard Added Object Disposal' lines **
> // Begin Wizard Added Object Disposal
>
> this._edvDBField.EpiViewNotification -= new EpiViewNotification(this.edvDBField_EpiViewNotification);
> this._edvDBField = null;
> // End Wizard Added Object Disposal
>
> // Begin Custom Code Disposal
>
> // End Custom Code Disposal
> _wbColXRef.Dispose();
> _wbColXRef = null;
> _strDDUrl = null;
> }
>
> private void DataDictViewerForm_Load(object sender, EventArgs args)
> {
> _wbColXRef.Dock = DockStyle.Fill;
> colsRevLookup.Controls.Add(_wbColXRef);
> }
>
> private void edvDBField_EpiViewNotification(EpiDataView view, EpiNotifyArgs args)
> {
> // ** Argument Properties and Uses **
> // view.dataView[args.Row]["FieldName"]
> // args.Row, args.Column, args.Sender, args.NotifyType
> // NotifyType.Initialize, NotifyType.AddRow, NotifyType.DeleteRow, NotifyType.InitLastView, NotifyType.InitAndResetTreeNodes
> if ((args.NotifyType == EpiTransaction.NotifyType.Initialize))
> {
> if ((args.Row > -1))
> {
> string field = view.dataView[args.Row]["FieldName"].ToString().ToLower();
> _wbColXRef.Navigate(_strDDUrl + field.Substring(0, 1) + ".html#" + field);
> }
> }
> }
>
> Joshua Giese
>
> CTO
>
> 920.437.6400 Ext. 337
>
> Site ID: 27450-E905700B2-SQL64
>
> ----- Original Message -----
>
> From: "Jordan Klassen" <jordan.k@...<mailto:jordan.k%40bullydog.com><mailto:jordan.k%40bullydog.com>>
> To: vantage@yahoogroups.com<mailto:vantage%40yahoogroups.com><mailto:vantage%40yahoogroups.com>
> Sent: Tuesday, April 16, 2013 12:48:29 PM
> Subject: [Vantage] RE: C# Help Desk Customization
>
> Any chance there is an example of this somewhere, particularly the coding for the EpiDataView?
>
> Thanks,
> Jordan
>
> ________________________________
> [Bully Dog Logo]< http://www.bullydog.com >
> Jordan Klassen | Information Technology
> TEL: 940-783-9914 ext: 1828
>
> ________________________________
>
> Confidentiality Notice: The information contained in this electronic message is privileged and confidential information intended only for the use of the individual entity or entities named as recipient or recipients. If the reader is not the intended recipient, you are hereby notified that any dissemination, distribution or copy of this communication is strictly prohibited. If you have received this communication in error, please notify the sender immediately by electronic mail and permanently delete this message from your computer system. Thank you.
>
> Disclaimer added by CodeTwo Exchange Rules 2010
> www.codetwo.com<<http://www.codetwo.com%3c> http://www.codetwo.com/?sts=1048 >
>
> From: vantage@yahoogroups.com<mailto:vantage%40yahoogroups.com><mailto:vantage%40yahoogroups.com> [mailto: vantage@yahoogroups.com<mailto:vantage%40yahoogroups.com><mailto:vantage%40yahoogroups.com> ] On Behalf Of Joshua Giese
> Sent: Tuesday, April 16, 2013 10:55 AM
> To: vantage@yahoogroups.com<mailto:vantage%40yahoogroups.com><mailto:vantage%40yahoogroups.com>
> Subject: Re: [Vantage] C# Help Desk Customization
>
> use the datagrid view to append the value of X field onto your webpage URL. i.g. http://myexternalpage.local/somepage.ext?epivalue=dataviewvalue then use the value of epivalue to do what you need in the pre processor of your choice
>
> Joshua Giese
>
> CTO
>
> 920.437.6400 Ext. 337
>
> Site ID: 27450-E905700B2-SQL64
>
> ----- Original Message -----
>
> From: "jordan.bullydog" < jordan.k@...<mailto:jordan.k%40bullydog.com><mailto:jordan.k%40bullydog.com> <mailto:jordan.k%40bullydog.com>>
> To: vantage@yahoogroups.com<mailto:vantage%40yahoogroups.com><mailto:vantage%40yahoogroups.com> <mailto:vantage%40yahoogroups.com>
> Sent: Tuesday, April 16, 2013 11:22:12 AM
> Subject: [Vantage] C# Help Desk Customization
>
> In the case entry, I have a button that when clicked opens an external webpage. What I want to be able to do, is to grab the Case number from the case and insert it into the URL of the website that is accessed when the button is pressed. Any tips for doing this?
>
> Epicor 9.05.701, SQL
>
> Thanks,
> Jordan
>
> [Non-text portions of this message have been removed]
>
> [Non-text portions of this message have been removed]
>
> [Non-text portions of this message have been removed]
>
>
> [Non-text portions of this message have been removed]
>
>
>
> [Non-text portions of this message have been removed]
>