Compilation error C#


Thanks, Ted. I will give it a shot.

---In vantage@yahoogroups.com, <tkoch77@...> wrote :

C# is case sensitive.

ttPart_Row.RowMod.ToUpper() == "A" is the correct way.

Also, further down it should be ttPartRow.PartNum

From: "ddellaquila@... [vantage]" <vantage@yahoogroups.com>
To: vantage@yahoogroups.com
Sent: Monday, September 15, 2014 2:52 PM
Subject: [Vantage] Compilation error C#

#ygrps-yiv-424783546 #ygrps-yiv-424783546ygrps-yiv-1243839016 #ygrps-yiv-424783546ygrps-yiv-1243839016yiv4754252631 #ygrps-yiv-424783546ygrps-yiv-1243839016yiv4754252631 .ygrps-yiv-424783546ygrps-yiv-1243839016yiv4754252631ygrp-photo-title{ clear:both;font-size:smaller;height:15px;overflow:hidden;text-align:center;width:75px;} #ygrps-yiv-424783546 #ygrps-yiv-424783546ygrps-yiv-1243839016 #ygrps-yiv-424783546ygrps-yiv-1243839016yiv4754252631 div.ygrps-yiv-424783546ygrps-yiv-1243839016yiv4754252631ygrp-photo{ background-position:center;background-repeat:no-repeat;background-color:white;border:1px solid black;height:62px;width:62px;}

#ygrps-yiv-424783546 #ygrps-yiv-424783546ygrps-yiv-1243839016 #ygrps-yiv-424783546ygrps-yiv-1243839016yiv4754252631 div.ygrps-yiv-424783546ygrps-yiv-1243839016yiv4754252631photo-title
a,
#ygrps-yiv-424783546 #ygrps-yiv-424783546ygrps-yiv-1243839016 #ygrps-yiv-424783546ygrps-yiv-1243839016yiv4754252631 div.ygrps-yiv-424783546ygrps-yiv-1243839016yiv4754252631photo-title a:active,
#ygrps-yiv-424783546 #ygrps-yiv-424783546ygrps-yiv-1243839016 #ygrps-yiv-424783546ygrps-yiv-1243839016yiv4754252631 div.ygrps-yiv-424783546ygrps-yiv-1243839016yiv4754252631photo-title a:hover,
#ygrps-yiv-424783546 #ygrps-yiv-424783546ygrps-yiv-1243839016 #ygrps-yiv-424783546ygrps-yiv-1243839016yiv4754252631 div.ygrps-yiv-424783546ygrps-yiv-1243839016yiv4754252631photo-title a:visited {
text-decoration:none;}

#ygrps-yiv-424783546 #ygrps-yiv-424783546ygrps-yiv-1243839016 #ygrps-yiv-424783546ygrps-yiv-1243839016yiv4754252631 div.ygrps-yiv-424783546ygrps-yiv-1243839016yiv4754252631attach-table div.ygrps-yiv-424783546ygrps-yiv-1243839016yiv4754252631attach-row {
clear:both;}

#ygrps-yiv-424783546 #ygrps-yiv-424783546ygrps-yiv-1243839016 #ygrps-yiv-424783546ygrps-yiv-1243839016yiv4754252631 div.ygrps-yiv-424783546ygrps-yiv-1243839016yiv4754252631attach-table div.ygrps-yiv-424783546ygrps-yiv-1243839016yiv4754252631attach-row div {
float:left;}

#ygrps-yiv-424783546 #ygrps-yiv-424783546ygrps-yiv-1243839016 #ygrps-yiv-424783546ygrps-yiv-1243839016yiv4754252631 p {
clear:both;padding:15px 0 3px 0;overflow:hidden;}

#ygrps-yiv-424783546 #ygrps-yiv-424783546ygrps-yiv-1243839016 #ygrps-yiv-424783546ygrps-yiv-1243839016yiv4754252631 div.ygrps-yiv-424783546ygrps-yiv-1243839016yiv4754252631ygrp-file {
width:30px;}
#ygrps-yiv-424783546 #ygrps-yiv-424783546ygrps-yiv-1243839016 #ygrps-yiv-424783546ygrps-yiv-1243839016yiv4754252631 div.ygrps-yiv-424783546ygrps-yiv-1243839016yiv4754252631attach-table div.ygrps-yiv-424783546ygrps-yiv-1243839016yiv4754252631attach-row div div a {
text-decoration:none;}

#ygrps-yiv-424783546 #ygrps-yiv-424783546ygrps-yiv-1243839016 #ygrps-yiv-424783546ygrps-yiv-1243839016yiv4754252631 div.ygrps-yiv-424783546ygrps-yiv-1243839016yiv4754252631attach-table div.ygrps-yiv-424783546ygrps-yiv-1243839016yiv4754252631attach-row div div span {
font-weight:normal;}

#ygrps-yiv-424783546 #ygrps-yiv-424783546ygrps-yiv-1243839016 #ygrps-yiv-424783546ygrps-yiv-1243839016yiv4754252631 div.ygrps-yiv-424783546ygrps-yiv-1243839016yiv4754252631ygrp-file-title {
font-weight:bold;}
#ygrps-yiv-424783546 #ygrps-yiv-424783546ygrps-yiv-1243839016 #ygrps-yiv-424783546ygrps-yiv-1243839016yiv4754252631 #ygrps-yiv-424783546ygrps-yiv-1243839016yiv4754252631ygrp-mkp {
border:1px solid #d8d8d8;font-family:Arial;margin:10px 0;padding:0 10px;}

#ygrps-yiv-424783546 #ygrps-yiv-424783546ygrps-yiv-1243839016 #ygrps-yiv-424783546ygrps-yiv-1243839016yiv4754252631 #ygrps-yiv-424783546ygrps-yiv-1243839016yiv4754252631ygrp-mkp hr {
border:1px solid #d8d8d8;}

#ygrps-yiv-424783546 #ygrps-yiv-424783546ygrps-yiv-1243839016 #ygrps-yiv-424783546ygrps-yiv-1243839016yiv4754252631 #ygrps-yiv-424783546ygrps-yiv-1243839016yiv4754252631ygrp-mkp #ygrps-yiv-424783546ygrps-yiv-1243839016yiv4754252631hd {
color:#628c2a;font-size:85%;font-weight:700;line-height:122%;margin:10px 0;}

#ygrps-yiv-424783546 #ygrps-yiv-424783546ygrps-yiv-1243839016 #ygrps-yiv-424783546ygrps-yiv-1243839016yiv4754252631 #ygrps-yiv-424783546ygrps-yiv-1243839016yiv4754252631ygrp-mkp #ygrps-yiv-424783546ygrps-yiv-1243839016yiv4754252631ads {
margin-bottom:10px;}

#ygrps-yiv-424783546 #ygrps-yiv-424783546ygrps-yiv-1243839016 #ygrps-yiv-424783546ygrps-yiv-1243839016yiv4754252631 #ygrps-yiv-424783546ygrps-yiv-1243839016yiv4754252631ygrp-mkp .ygrps-yiv-424783546ygrps-yiv-1243839016yiv4754252631ad {
padding:0 0;}

#ygrps-yiv-424783546 #ygrps-yiv-424783546ygrps-yiv-1243839016 #ygrps-yiv-424783546ygrps-yiv-1243839016yiv4754252631 #ygrps-yiv-424783546ygrps-yiv-1243839016yiv4754252631ygrp-mkp .ygrps-yiv-424783546ygrps-yiv-1243839016yiv4754252631ad p {
margin:0;}

#ygrps-yiv-424783546 #ygrps-yiv-424783546ygrps-yiv-1243839016 #ygrps-yiv-424783546ygrps-yiv-1243839016yiv4754252631 #ygrps-yiv-424783546ygrps-yiv-1243839016yiv4754252631ygrp-mkp .ygrps-yiv-424783546ygrps-yiv-1243839016yiv4754252631ad a {
color:#0000ff;text-decoration:none;}



Hi All,
I am trying to build in 10 a simple BPM to Capitalize the Part Number. Since it was working fine in Progress, I wanted to convert the following snippet of ABL code to C# which uses the Method Code Part.Update:

for each ttPart where (ttPart.rowmod = ‘A’ or ttPart.rowmod = ‘U’)no-lock:
assign ttPart.partnum = CAPS(ttPart.partnum).
end.

I tried using the ICE 3.0 Migration, both online and offline, but either I do not get an answer from the tool (time-out), or just get errors.

Anyways, here is the C# code I have so far:

foreach (var ttPart_iterator in(from ttPart_Row in ttPart
        where (ttPart_Row.rowmod == “A” || ttPart_Row.rowmod == “U”)
        select ttPart_Row))
           
{
            Part ttPartRow = ttPart_iterator;
            ttPartRow.partnum = ttPartRow.partnum.ToUpper();
            }

But, when saving the Method Directive, and compiling, I receive the following error:

Server Side Exception
There is at least one compilation error.
Exception caught in: Epicor.ServiceModel
Error Detail
============
Description:  There is at least one compilation error.
Details: 
Error CS1061: ‘Erp.Tablesets.PartRow’ does not contain a definition for ‘rowmod’ and no extension method ‘rowmod’ accepting a first argument of type ‘Erp.Tablesets.PartRow’ could be found (are you missing a using directive or an assembly reference?) [Part.Update.cs(518,27)]
Error CS1061:
‘Erp.Tablesets.PartRow’ does not contain a definition for ‘rowmod’ and no extension method ‘rowmod’ accepting a first argument of type ‘Erp.Tablesets.PartRow’ could be found (are you missing a using directive or an assembly reference?) [Part.Update.cs(518,55)]

Any idea of what I maybe missing?

Regards,
Daniel Dell’Aquila




Hi All,

I am trying to build in 10 a simple BPM to Capitalize the Part Number. Since it was working fine in Progress, I wanted to convert the following snippet of ABL code to C# which uses the Method Code Part.Update:


for each ttPart where (ttPart.rowmod = 'A' or ttPart.rowmod = 'U')no-lock:
assign ttPart.partnum = CAPS(ttPart.partnum).
end.


I tried using the ICE 3.0 Migration, both online and offline, but either I do not get an answer from the tool (time-out), or just get errors.


Anyways, here is the C# code I have so far:


foreach (var ttPart_iterator in(from ttPart_Row in ttPart
        where (ttPart_Row.rowmod == "A" || ttPart_Row.rowmod == "U")
        select ttPart_Row))
            {
            Part ttPartRow = ttPart_iterator;
            ttPartRow.partnum = ttPartRow.partnum.ToUpper();
            }


But, when saving the Method Directive, and compiling, I receive the following error:


Server Side Exception

There is at least one compilation error.

Exception caught in: Epicor.ServiceModel

Error Detail
============
Description:  There is at least one compilation error.
Details: 
Error CS1061: 'Erp.Tablesets.PartRow' does not contain a definition for 'rowmod' and no extension method 'rowmod' accepting a first argument of type 'Erp.Tablesets.PartRow' could be found (are you missing a using directive or an assembly reference?) [Part.Update.cs(518,27)]
Error CS1061: 'Erp.Tablesets.PartRow' does not contain a definition for 'rowmod' and no extension method 'rowmod' accepting a first argument of type 'Erp.Tablesets.PartRow' could be found (are you missing a using directive or an assembly reference?) [Part.Update.cs(518,55)]


Any idea of what I maybe missing?


Regards,
Daniel Dell’Aquila

C# is case sensitive.

ttPart_Row.RowMod.ToUpper() == "A" is the correct way.

Also, further down it should be ttPartRow.PartNum


From: "ddellaquila@... [vantage]" <vantage@yahoogroups.com>
To: vantage@yahoogroups.com
Sent: Monday, September 15, 2014 2:52 PM
Subject: [Vantage] Compilation error C#



Hi All,
I am trying to build in 10 a simple BPM to Capitalize the Part Number. Since it was working fine in Progress, I wanted to convert the following snippet of ABL code to C# which uses the Method Code Part.Update:

for each ttPart where (ttPart.rowmod = 'A' or ttPart.rowmod = 'U')no-lock:
assign ttPart.partnum = CAPS(ttPart.partnum).
end.

I tried using the ICE 3.0 Migration, both online and offline, but either I do not get an answer from the tool (time-out), or just get errors.

Anyways, here is the C# code I have so far:

foreach (var ttPart_iterator in(from ttPart_Row in ttPart
        where (ttPart_Row.rowmod == "A" || ttPart_Row.rowmod == "U")
        select ttPart_Row))
            {
            Part ttPartRow = ttPart_iterator;
            ttPartRow.partnum = ttPartRow.partnum.ToUpper();
            }

But, when saving the Method Directive, and compiling, I receive the following error:

Server Side Exception
There is at least one compilation error.
Exception caught in: Epicor.ServiceModel
Error Detail
============
Description:  There is at least one compilation error.
Details: 
Error CS1061: 'Erp.Tablesets.PartRow' does not contain a definition for 'rowmod' and no extension method 'rowmod' accepting a first argument of type 'Erp.Tablesets.PartRow' could be found (are you missing a using directive or an assembly reference?) [Part.Update.cs(518,27)]
Error CS1061: 'Erp.Tablesets.PartRow' does not contain a definition for 'rowmod' and no extension method 'rowmod' accepting a first argument of type 'Erp.Tablesets.PartRow' could be found (are you missing a using directive or an assembly reference?) [Part.Update.cs(518,55)]

Any idea of what I maybe missing?

Regards,
Daniel Dell’Aquila