Part Advisor Customization

Looks like I got it to at least compile with this:

Epicor.Mfg.UI.App.PartAdvisor.InvoiceDockPanel DockPanel = (Epicor.Mfg.UI.App.PartAdvisor.InvoiceDockPanel)csm.GetNativeControlReference("EpiGUID");
DockPanel.Visible = found;

Tyler Tisdale l IT Systems Administrator
ULTRAX Aerospace l 4200 NE Sun Court, Lee's Summit, MO 64064
t: 816-214-9999 l f: 816-214-9998 l e: ttisdale@...<mailto:ttisdale@...>

From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf Of Tyler Tisdale
Sent: Wednesday, June 26, 2013 1:21 PM
To: vantage@yahoogroups.com
Subject: RE: [Vantage] Part Advisor Customization



Thanks I must have looked at that DataSet name about 20 times.

Any thoughts on why I'm still getting the error below?

Error: CS0246 - line 49 (216) - The type or namespace name 'invoiceDockPanel1' could not be found (are you missing a using directive or an assembly reference?)
Error: CS0246 - line 49 (216) - The type or namespace name 'invoiceDockPanel1' could not be found (are you missing a using directive or an assembly reference?)

Here is the customization:

public void InitializeCustomCode()
{
// ** Wizard Insert Location - Do not delete 'Begin/End Wizard Added Variable Initialization' lines **
// Begin Wizard Added Variable Initialization

// End Wizard Added Variable Initialization

// Begin Wizard Added Custom Method Calls

// End Wizard Added Custom Method Calls
DynamicQuery _dq = new DynamicQuery(((Session)oTrans.Session).ConnectionPool);
DataSet ds = _dq.ExecuteByID("BAQID");
bool found=false;
foreach(DataRow dr in ds.Tables[0].Rows)
{
if(dr["UserFile.DcdUserID"].ToString().ToUpper().Equals(((Session)oTrans.Session).UserID.ToUpper()))
{
found=true;
}
}
invoiceDockPanel1 DockPanel = (invoiceDockPanel1)csm.GetNativeControlReference("EpiGUID");
DockPanel.Visible = found;

}

Tyler Tisdale l IT Systems Administrator
ULTRAX Aerospace l 4200 NE Sun Court, Lee's Summit, MO 64064
t: 816-214-9999 l f: 816-214-9998 l e: ttisdale@...<mailto:ttisdale%40ultraxinc.com><mailto:ttisdale@...<mailto:ttisdale%40ultraxinc.com>>

From: vantage@yahoogroups.com<mailto:vantage%40yahoogroups.com> [mailto:vantage@yahoogroups.com<mailto:vantage%40yahoogroups.com>] On Behalf Of Ted Koch
Sent: Wednesday, June 26, 2013 12:17 PM
To: vantage@yahoogroups.com<mailto:vantage%40yahoogroups.com>
Subject: Re: [Vantage] Part Advisor Customization

Try DataSet (case sensitive).

To get an instance of the panel do this:

invoiceDockPanel1 DockPanel = (invoiceDockPanel1)csm.GetNativeControlReference("EpiGUID");
DockPanel.Visible = found;

________________________________
From: ultrax_tyler <ttisdale@...<mailto:ttisdale%40ultraxinc.com><mailto:ttisdale%40ultraxinc.com>>
To: vantage@yahoogroups.com<mailto:vantage%40yahoogroups.com><mailto:vantage%40yahoogroups.com>
Sent: Wednesday, June 26, 2013 1:03 PM
Subject: [Vantage] Part Advisor Customization

I was wondering if anyone could help me with a quick customization. Basically I was tasked with hiding the "Profitable?" tab for most users.
So I found this youtube clip on button security by user.

http://www.youtube.com/watch?v=Blhr7YwD0Qg

So I tried just making a few adjustments to work with the visibility property of the tab. It looks like I am running into 2 small compile issues.

Error: CS0246 - line 40 (207) - The type or namespace name 'Dataset' could not be found (are you missing a using directive or an assembly reference?)
Error: CS0103 - line 49 (216) - The name 'invoiceDockPanel1' does not exist in the current context

These are my references at the top of the script editor:
using System;
using System.ComponentModel;
using System.Data;
using System.Diagnostics;
using System.Windows.Forms;
using Epicor.Mfg.BO;
using Epicor.Mfg.UI;
using Epicor.Mfg.UI.Adapters;
using Epicor.Mfg.UI.Customization;
using Epicor.Mfg.UI.ExtendedProps;
using Epicor.Mfg.UI.FormFunctions;
using Epicor.Mfg.UI.FrameWork;
using Epicor.Mfg.UI.Searches;
using Epicor.Mfg.Core;

I got the name of the tab from the properties window and was hoping I would just be able to do:

invoiceDockPanel1.Visable=found; (Where found is a bool of true)

Am I missing something simple?

------------------------------------

Useful links for the Yahoo!Groups Vantage Board are: ( Note: You must have already linked your email address to a yahoo id to enable access. )
(1) To access the Files Section of our Yahoo!Group for Report Builder and Crystal Reports and other 'goodies', please goto: http://groups.yahoo.com/group/vantage/files/.<http://groups.yahoo.com/group/vantage/files/><http://groups.yahoo.com/group/vantage/files/>
(2) To search through old msg's goto: http://groups.yahoo.com/group/vantage/messages
(3) To view links to Vendors that provide Vantage services goto: http://groups.yahoo.com/group/vantage/linksYahoo! Groups Links

[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]
I was wondering if anyone could help me with a quick customization. Basically I was tasked with hiding the "Profitable?" tab for most users.
So I found this youtube clip on button security by user.

http://www.youtube.com/watch?v=Blhr7YwD0Qg

So I tried just making a few adjustments to work with the visibility property of the tab. It looks like I am running into 2 small compile issues.

Error: CS0246 - line 40 (207) - The type or namespace name 'Dataset' could not be found (are you missing a using directive or an assembly reference?)
Error: CS0103 - line 49 (216) - The name 'invoiceDockPanel1' does not exist in the current context

These are my references at the top of the script editor:
using System;
using System.ComponentModel;
using System.Data;
using System.Diagnostics;
using System.Windows.Forms;
using Epicor.Mfg.BO;
using Epicor.Mfg.UI;
using Epicor.Mfg.UI.Adapters;
using Epicor.Mfg.UI.Customization;
using Epicor.Mfg.UI.ExtendedProps;
using Epicor.Mfg.UI.FormFunctions;
using Epicor.Mfg.UI.FrameWork;
using Epicor.Mfg.UI.Searches;
using Epicor.Mfg.Core;

I got the name of the tab from the properties window and was hoping I would just be able to do:

invoiceDockPanel1.Visable=found; (Where found is a bool of true)

Am I missing something simple?
Try DataSet (case sensitive).

To get an instance of the panel do this:

invoiceDockPanel1 DockPanel = (invoiceDockPanel1)csm.GetNativeControlReference("EpiGUID");
DockPanel.Visible = found;




________________________________
From: ultrax_tyler <ttisdale@...>
To: vantage@yahoogroups.com
Sent: Wednesday, June 26, 2013 1:03 PM
Subject: [Vantage] Part Advisor Customization


I was wondering if anyone could help me with a quick customization. Basically I was tasked with hiding the "Profitable?" tab for most users.
So I found this youtube clip on button security by user.

http://www.youtube.com/watch?v=Blhr7YwD0Qg

So I tried just making a few adjustments to work with the visibility property of the tab. It looks like I am running into 2 small compile issues.

Error: CS0246 - line 40 (207) - The type or namespace name 'Dataset' could not be found (are you missing a using directive or an assembly reference?)
Error: CS0103 - line 49 (216) - The name 'invoiceDockPanel1' does not exist in the current context

These are my references at the top of the script editor:
using System;
using System.ComponentModel;
using System.Data;
using System.Diagnostics;
using System.Windows.Forms;
using Epicor.Mfg.BO;
using Epicor.Mfg.UI;
using Epicor.Mfg.UI.Adapters;
using Epicor.Mfg.UI.Customization;
using Epicor.Mfg.UI.ExtendedProps;
using Epicor.Mfg.UI.FormFunctions;
using Epicor.Mfg.UI.FrameWork;
using Epicor.Mfg.UI.Searches;
using Epicor.Mfg.Core;

I got the name of the tab from the properties window and was hoping I would just be able to do:

invoiceDockPanel1.Visable=found; (Where found is a bool of true)

Am I missing something simple?



------------------------------------

Useful links for the Yahoo!Groups Vantage Board are: ( Note:Â You must have already linked your email address to a yahoo id to enable access. )
(1) To access the Files Section of our Yahoo!Group for Report Builder and Crystal Reports and other 'goodies', please goto: http://groups.yahoo.com/group/vantage/files/.
(2) To search through old msg's goto: http://groups.yahoo.com/group/vantage/messages
(3) To view links to Vendors that provide Vantage services goto: http://groups.yahoo.com/group/vantage/linksYahoo! Groups Links



[Non-text portions of this message have been removed]
Thanks I must have looked at that DataSet name about 20 times.

Any thoughts on why I'm still getting the error below?

Error: CS0246 - line 49 (216) - The type or namespace name 'invoiceDockPanel1' could not be found (are you missing a using directive or an assembly reference?)
Error: CS0246 - line 49 (216) - The type or namespace name 'invoiceDockPanel1' could not be found (are you missing a using directive or an assembly reference?)

Here is the customization:

public void InitializeCustomCode()
{
// ** Wizard Insert Location - Do not delete 'Begin/End Wizard Added Variable Initialization' lines **
// Begin Wizard Added Variable Initialization

// End Wizard Added Variable Initialization

// Begin Wizard Added Custom Method Calls

// End Wizard Added Custom Method Calls
DynamicQuery _dq = new DynamicQuery(((Session)oTrans.Session).ConnectionPool);
DataSet ds = _dq.ExecuteByID("BAQID");
bool found=false;
foreach(DataRow dr in ds.Tables[0].Rows)
{
if(dr["UserFile.DcdUserID"].ToString().ToUpper().Equals(((Session)oTrans.Session).UserID.ToUpper()))
{
found=true;
}
}
invoiceDockPanel1 DockPanel = (invoiceDockPanel1)csm.GetNativeControlReference("EpiGUID");
DockPanel.Visible = found;

}



Tyler Tisdale l IT Systems Administrator
ULTRAX Aerospace l 4200 NE Sun Court, Lee's Summit, MO 64064
t: 816-214-9999 l f: 816-214-9998 l e: ttisdale@...<mailto:ttisdale@...>

From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf Of Ted Koch
Sent: Wednesday, June 26, 2013 12:17 PM
To: vantage@yahoogroups.com
Subject: Re: [Vantage] Part Advisor Customization



Try DataSet (case sensitive).

To get an instance of the panel do this:

invoiceDockPanel1 DockPanel = (invoiceDockPanel1)csm.GetNativeControlReference("EpiGUID");
DockPanel.Visible = found;

________________________________
From: ultrax_tyler <ttisdale@...<mailto:ttisdale%40ultraxinc.com>>
To: vantage@yahoogroups.com<mailto:vantage%40yahoogroups.com>
Sent: Wednesday, June 26, 2013 1:03 PM
Subject: [Vantage] Part Advisor Customization


I was wondering if anyone could help me with a quick customization. Basically I was tasked with hiding the "Profitable?" tab for most users.
So I found this youtube clip on button security by user.

http://www.youtube.com/watch?v=Blhr7YwD0Qg

So I tried just making a few adjustments to work with the visibility property of the tab. It looks like I am running into 2 small compile issues.

Error: CS0246 - line 40 (207) - The type or namespace name 'Dataset' could not be found (are you missing a using directive or an assembly reference?)
Error: CS0103 - line 49 (216) - The name 'invoiceDockPanel1' does not exist in the current context

These are my references at the top of the script editor:
using System;
using System.ComponentModel;
using System.Data;
using System.Diagnostics;
using System.Windows.Forms;
using Epicor.Mfg.BO;
using Epicor.Mfg.UI;
using Epicor.Mfg.UI.Adapters;
using Epicor.Mfg.UI.Customization;
using Epicor.Mfg.UI.ExtendedProps;
using Epicor.Mfg.UI.FormFunctions;
using Epicor.Mfg.UI.FrameWork;
using Epicor.Mfg.UI.Searches;
using Epicor.Mfg.Core;

I got the name of the tab from the properties window and was hoping I would just be able to do:

invoiceDockPanel1.Visable=found; (Where found is a bool of true)

Am I missing something simple?

------------------------------------

Useful links for the Yahoo!Groups Vantage Board are: ( Note: You must have already linked your email address to a yahoo id to enable access. )
(1) To access the Files Section of our Yahoo!Group for Report Builder and Crystal Reports and other 'goodies', please goto: http://groups.yahoo.com/group/vantage/files/.<http://groups.yahoo.com/group/vantage/files/>
(2) To search through old msg's goto: http://groups.yahoo.com/group/vantage/messages
(3) To view links to Vendors that provide Vantage services goto: http://groups.yahoo.com/group/vantage/linksYahoo! Groups Links

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



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