E10 Quote Form Blank Title 143064


(system) #1
Many thanks !

(system) #2

Can someone please advise what the equivalent of this vb snippet would be in C#


CType(oTrans.EpiDataViews("QuoteDtl"), EpiDataView)


I have tried 


EpiDataView edvQuoteDtl = (EpiDataView)oTrans.EpiDataViews("QuoteDtl");


But it doesn't like that.


What I'm trying to do is grab the part number selected in the current form and pass it into a block of code.


While I'm at it, does anyone know of any good resource for Epicor C# ??


Thank you




(system) #3

In your public script class declare your view

                                private EpiDataView edvQuoteDtl;

 

initializecustomcode

 

                                this.edvQuoteDtl = ((EpiDataView)(this.oTrans.EpiDataViews["QuoteDtl"]));

 

to assign a value to a column would look something like this

 

edvQuoteDtl.dataView[edvQuoteDtl.Row]["ShortChar01"] = (your value goes here);

 

per your example

 

string partNum = edvQuoteDtl.dataView[edvQuoteDtl.Row]["PartNum"] =

 

 

Rob Bucek

Production Control Manager

D&S Manufacturing

301 E. Main St.

Black River Falls, WI 54615

715-284-5376 Ext. 311

Mobile: 715-896-3119

rbucek@...

Visit our newly redesigned Website at www.dsmfg.com

 

From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com]
Sent: Tuesday, September 13, 2016 8:58 AM
To: vantage@yahoogroups.com
Subject: [Vantage] E10 Quote Form

 

 

Can someone please advise what the equivalent of this vb snippet would be in C#

 

CType(oTrans.EpiDataViews("QuoteDtl"), EpiDataView)

 

I have tried 

 

EpiDataView edvQuoteDtl = (EpiDataView)oTrans.EpiDataViews("QuoteDtl");

 

But it doesn't like that.

 

What I'm trying to do is grab the part number selected in the current form and pass it into a block of code.

 

While I'm at it, does anyone know of any good resource for Epicor C# ??

 

Thank you

 

 


(system) #4

That last one should have been

 

String partNum = edvQuoteDtl.dataView[edvQuoteDtl.Row]["PartNum"] ;

 

Rob Bucek

Production Control Manager

D&S Manufacturing

301 E. Main St.

Black River Falls, WI 54615

715-284-5376 Ext. 311

Mobile: 715-896-3119

rbucek@...

Visit our newly redesigned Website at www.dsmfg.com

 

From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com]
Sent: Tuesday, September 13, 2016 9:05 AM
To: vantage@yahoogroups.com
Subject: RE: [Vantage] E10 Quote Form

 

 

In your public script class declare your view

                                private EpiDataView edvQuoteDtl;

 

initializecustomcode

 

                                this.edvQuoteDtl = ((EpiDataView)(this.oTrans.EpiDataViews["QuoteDtl"]));

 

to assign a value to a column would look something like this

 

edvQuoteDtl.dataView[edvQuoteDtl.Row]["ShortChar01"] = (your value goes here);

 

per your example

 

string partNum = edvQuoteDtl.dataView[edvQuoteDtl.Row]["PartNum"] =

 

 

Rob Bucek

Production Control Manager

D&S Manufacturing

301 E. Main St.

Black River Falls, WI 54615

715-284-5376 Ext. 311

Mobile: 715-896-3119

rbucek@...

Visit our newly redesigned Website at www.dsmfg.com

 

From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com]
Sent: Tuesday, September 13, 2016 8:58 AM
To: vantage@yahoogroups.com
Subject: [Vantage] E10 Quote Form

 

 

Can someone please advise what the equivalent of this vb snippet would be in C#

 

CType(oTrans.EpiDataViews("QuoteDtl"), EpiDataView)

 

I have tried 

 

EpiDataView edvQuoteDtl = (EpiDataView)oTrans.EpiDataViews("QuoteDtl");

 

But it doesn't like that.

 

What I'm trying to do is grab the part number selected in the current form and pass it into a block of code.

 

While I'm at it, does anyone know of any good resource for Epicor C# ??

 

Thank you