<div id="ygrps-yiv-1679900564yiv4561858795ygrp-text">
<div id="ygrps-yiv-1679900564yui_3_16_0_1_1426597527748_2171">Thanks Rob,
I realized that I should have provided more information.
More specifically is that I need to select the UD records associated with the sales order, do something, and then delete the records.
For example:
foreach (var UD11_iterator in (from UD11_Row in Db.UD11
where UD11_Row.Company == Session.CompanyID
&& UD11_Row.Number05 == iOrderNum
select UD11_Row))
{
//do something
//delete UD11 record after doing something
}
Is there a way to delete the UD11 record as I loop through them? I couldn’t figure out what assembly has the ErpContext object to see what methods are available.
Joe Rojas | Director of Information Technology | Mats Inc
dir: 781-573-0291 | cell: 781-408-9278 | fax: 781-232-5191
addr: 179 Campanelli Pkwy | Stoughton | MA | 02072-3734
jrojas@... | www.matsinc.com
Ask us about our clean, green and beautiful matting and flooring
[cid:0e6c6a.png@c09da60b.499c1b15]
This message is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake. Please note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the company.
From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com]
Sent: Monday, March 16, 2015 6:09 PM
To: 'vantage@yahoogroups.com'
Subject: [Vantage] RE: E10: Delete Rows from UD Table
You could just truncate it with SQL, either through C# in a client side cust or a BPM fired Service Connect workflow using a DB operation. There are tons of examples of how to execute SQL through C# on your friend google.
Rob Bucek
Production Control Manager
PH: (715) 284-5376 ext 311
Mobile: (715)896-3119
FAX: (715)284-4084
[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]
Sent: Monday, March 16, 2015 4:01 PM
To: vantage@yahoogroups.com
Subject: [Vantage] E10: Delete Rows from UD Table
Hello,
I have a UD table that stores information related to a sales order.
When the sales order is closed, I want the UD records to be delete.
These records are not valuable so I would just like to delete them from the table directly as opposed to using the UD BO.
Does someone have a code snippet, that can be shared, showing how to do this?
Joe Rojas | Director of Information Technology | Mats Inc
dir: 781-573-0291 | cell: 781-408-9278 | fax: 781-232-5191
addr: 179 Campanelli Pkwy | Stoughton | MA | 02072-3734
jrojas@... | www.matsinc.com
Ask us about our clean, green and beautiful matting and flooring
[cid:917295.png@e8533c33.4086110c]
This message is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake. Please note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the company.
[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]
</div>
<div style="height:0px;color:rgb(255, 255, 255);"></div></div>
#ygrps-yiv-1679900564 #ygrps-yiv-1679900564yiv4561858795 #ygrps-yiv-1679900564yiv4561858795 --
#ygrps-yiv-1679900564yiv4561858795ygrp-mkp {
border:1px solid #d8d8d8;font-family:Arial;margin:10px 0;padding:0 10px;}
#ygrps-yiv-1679900564 #ygrps-yiv-1679900564yiv4561858795 #ygrps-yiv-1679900564yiv4561858795ygrp-mkp hr {
border:1px solid #d8d8d8;}
#ygrps-yiv-1679900564 #ygrps-yiv-1679900564yiv4561858795 #ygrps-yiv-1679900564yiv4561858795ygrp-mkp #ygrps-yiv-1679900564yiv4561858795hd {
color:#628c2a;font-size:85%;font-weight:700;line-height:122%;margin:10px 0;}
#ygrps-yiv-1679900564 #ygrps-yiv-1679900564yiv4561858795 #ygrps-yiv-1679900564yiv4561858795ygrp-mkp #ygrps-yiv-1679900564yiv4561858795ads {
margin-bottom:10px;}
#ygrps-yiv-1679900564 #ygrps-yiv-1679900564yiv4561858795 #ygrps-yiv-1679900564yiv4561858795ygrp-mkp .ygrps-yiv-1679900564yiv4561858795ad {
padding:0 0;}
#ygrps-yiv-1679900564 #ygrps-yiv-1679900564yiv4561858795 #ygrps-yiv-1679900564yiv4561858795ygrp-mkp .ygrps-yiv-1679900564yiv4561858795ad p {
margin:0;}
#ygrps-yiv-1679900564 #ygrps-yiv-1679900564yiv4561858795 #ygrps-yiv-1679900564yiv4561858795ygrp-mkp .ygrps-yiv-1679900564yiv4561858795ad a {
color:#0000ff;text-decoration:none;}
#ygrps-yiv-1679900564 #ygrps-yiv-1679900564yiv4561858795 #ygrps-yiv-1679900564yiv4561858795ygrp-sponsor #ygrps-yiv-1679900564yiv4561858795ygrp-lc {
font-family:Arial;}
#ygrps-yiv-1679900564 #ygrps-yiv-1679900564yiv4561858795 #ygrps-yiv-1679900564yiv4561858795ygrp-sponsor #ygrps-yiv-1679900564yiv4561858795ygrp-lc #ygrps-yiv-1679900564yiv4561858795hd {
margin:10px 0px;font-weight:700;font-size:78%;line-height:122%;}
#ygrps-yiv-1679900564 #ygrps-yiv-1679900564yiv4561858795 #ygrps-yiv-1679900564yiv4561858795ygrp-sponsor #ygrps-yiv-1679900564yiv4561858795ygrp-lc .ygrps-yiv-1679900564yiv4561858795ad {
margin-bottom:10px;padding:0 0;}
#ygrps-yiv-1679900564 #ygrps-yiv-1679900564yiv4561858795 #ygrps-yiv-1679900564yiv4561858795actions {
font-family:Verdana;font-size:11px;padding:10px 0;}
#ygrps-yiv-1679900564 #ygrps-yiv-1679900564yiv4561858795 #ygrps-yiv-1679900564yiv4561858795activity {
background-color:#e0ecee;float:left;font-family:Verdana;font-size:10px;padding:10px;}
#ygrps-yiv-1679900564 #ygrps-yiv-1679900564yiv4561858795 #ygrps-yiv-1679900564yiv4561858795activity span {
font-weight:700;}
#ygrps-yiv-1679900564 #ygrps-yiv-1679900564yiv4561858795 #ygrps-yiv-1679900564yiv4561858795activity span:first-child {
text-transform:uppercase;}
#ygrps-yiv-1679900564 #ygrps-yiv-1679900564yiv4561858795 #ygrps-yiv-1679900564yiv4561858795activity span a {
color:#5085b6;text-decoration:none;}
#ygrps-yiv-1679900564 #ygrps-yiv-1679900564yiv4561858795 #ygrps-yiv-1679900564yiv4561858795activity span span {
color:#ff7900;}
#ygrps-yiv-1679900564 #ygrps-yiv-1679900564yiv4561858795 #ygrps-yiv-1679900564yiv4561858795activity span .ygrps-yiv-1679900564yiv4561858795underline {
text-decoration:underline;}
#ygrps-yiv-1679900564 #ygrps-yiv-1679900564yiv4561858795 .ygrps-yiv-1679900564yiv4561858795attach {
clear:both;display:table;font-family:Arial;font-size:12px;padding:10px 0;width:400px;}
#ygrps-yiv-1679900564 #ygrps-yiv-1679900564yiv4561858795 .ygrps-yiv-1679900564yiv4561858795attach div a {
text-decoration:none;}
#ygrps-yiv-1679900564 #ygrps-yiv-1679900564yiv4561858795 .ygrps-yiv-1679900564yiv4561858795attach img {
border:none;padding-right:5px;}
#ygrps-yiv-1679900564 #ygrps-yiv-1679900564yiv4561858795 .ygrps-yiv-1679900564yiv4561858795attach label {
display:block;margin-bottom:5px;}
#ygrps-yiv-1679900564 #ygrps-yiv-1679900564yiv4561858795 .ygrps-yiv-1679900564yiv4561858795attach label a {
text-decoration:none;}
#ygrps-yiv-1679900564 #ygrps-yiv-1679900564yiv4561858795 blockquote {
margin:0 0 0 4px;}
#ygrps-yiv-1679900564 #ygrps-yiv-1679900564yiv4561858795 .ygrps-yiv-1679900564yiv4561858795bold {
font-family:Arial;font-size:13px;font-weight:700;}
#ygrps-yiv-1679900564 #ygrps-yiv-1679900564yiv4561858795 .ygrps-yiv-1679900564yiv4561858795bold a {
text-decoration:none;}
#ygrps-yiv-1679900564 #ygrps-yiv-1679900564yiv4561858795 dd.ygrps-yiv-1679900564yiv4561858795last p a {
font-family:Verdana;font-weight:700;}
#ygrps-yiv-1679900564 #ygrps-yiv-1679900564yiv4561858795 dd.ygrps-yiv-1679900564yiv4561858795last p span {
margin-right:10px;font-family:Verdana;font-weight:700;}
#ygrps-yiv-1679900564 #ygrps-yiv-1679900564yiv4561858795 dd.ygrps-yiv-1679900564yiv4561858795last p span.ygrps-yiv-1679900564yiv4561858795yshortcuts {
margin-right:0;}
#ygrps-yiv-1679900564 #ygrps-yiv-1679900564yiv4561858795 div.ygrps-yiv-1679900564yiv4561858795attach-table div div a {
text-decoration:none;}
#ygrps-yiv-1679900564 #ygrps-yiv-1679900564yiv4561858795 div.ygrps-yiv-1679900564yiv4561858795attach-table {
width:400px;}
#ygrps-yiv-1679900564 #ygrps-yiv-1679900564yiv4561858795 div.ygrps-yiv-1679900564yiv4561858795file-title a, #ygrps-yiv-1679900564 #ygrps-yiv-1679900564yiv4561858795 div.ygrps-yiv-1679900564yiv4561858795file-title a:active, #ygrps-yiv-1679900564 #ygrps-yiv-1679900564yiv4561858795 div.ygrps-yiv-1679900564yiv4561858795file-title a:hover, #ygrps-yiv-1679900564 #ygrps-yiv-1679900564yiv4561858795 div.ygrps-yiv-1679900564yiv4561858795file-title a:visited {
text-decoration:none;}
#ygrps-yiv-1679900564 #ygrps-yiv-1679900564yiv4561858795 div.ygrps-yiv-1679900564yiv4561858795photo-title a, #ygrps-yiv-1679900564 #ygrps-yiv-1679900564yiv4561858795 div.ygrps-yiv-1679900564yiv4561858795photo-title a:active, #ygrps-yiv-1679900564 #ygrps-yiv-1679900564yiv4561858795 div.ygrps-yiv-1679900564yiv4561858795photo-title a:hover, #ygrps-yiv-1679900564 #ygrps-yiv-1679900564yiv4561858795 div.ygrps-yiv-1679900564yiv4561858795photo-title a:visited {
text-decoration:none;}
#ygrps-yiv-1679900564 #ygrps-yiv-1679900564yiv4561858795 div#ygrps-yiv-1679900564yiv4561858795ygrp-mlmsg #ygrps-yiv-1679900564yiv4561858795ygrp-msg p a span.ygrps-yiv-1679900564yiv4561858795yshortcuts {
font-family:Verdana;font-size:10px;font-weight:normal;}
#ygrps-yiv-1679900564 #ygrps-yiv-1679900564yiv4561858795 .ygrps-yiv-1679900564yiv4561858795green {
color:#628c2a;}
#ygrps-yiv-1679900564 #ygrps-yiv-1679900564yiv4561858795 .ygrps-yiv-1679900564yiv4561858795MsoNormal {
margin:0 0 0 0;}
#ygrps-yiv-1679900564 #ygrps-yiv-1679900564yiv4561858795 o {
font-size:0;}
#ygrps-yiv-1679900564 #ygrps-yiv-1679900564yiv4561858795 #ygrps-yiv-1679900564yiv4561858795photos div {
float:left;width:72px;}
#ygrps-yiv-1679900564 #ygrps-yiv-1679900564yiv4561858795 #ygrps-yiv-1679900564yiv4561858795photos div div {
border:1px solid #666666;height:62px;overflow:hidden;width:62px;}
#ygrps-yiv-1679900564 #ygrps-yiv-1679900564yiv4561858795 #ygrps-yiv-1679900564yiv4561858795photos div label {
color:#666666;font-size:10px;overflow:hidden;text-align:center;white-space:nowrap;width:64px;}
#ygrps-yiv-1679900564 #ygrps-yiv-1679900564yiv4561858795 #ygrps-yiv-1679900564yiv4561858795reco-category {
font-size:77%;}
#ygrps-yiv-1679900564 #ygrps-yiv-1679900564yiv4561858795 #ygrps-yiv-1679900564yiv4561858795reco-desc {
font-size:77%;}
#ygrps-yiv-1679900564 #ygrps-yiv-1679900564yiv4561858795 .ygrps-yiv-1679900564yiv4561858795replbq {
margin:4px;}
#ygrps-yiv-1679900564 #ygrps-yiv-1679900564yiv4561858795 #ygrps-yiv-1679900564yiv4561858795ygrp-actbar div a:first-child {
margin-right:2px;padding-right:5px;}
#ygrps-yiv-1679900564 #ygrps-yiv-1679900564yiv4561858795 #ygrps-yiv-1679900564yiv4561858795ygrp-mlmsg {
font-size:13px;font-family:Arial, helvetica, clean, sans-serif;}
#ygrps-yiv-1679900564 #ygrps-yiv-1679900564yiv4561858795 #ygrps-yiv-1679900564yiv4561858795ygrp-mlmsg table {
font-size:inherit;font:100%;}
#ygrps-yiv-1679900564 #ygrps-yiv-1679900564yiv4561858795 #ygrps-yiv-1679900564yiv4561858795ygrp-mlmsg select, #ygrps-yiv-1679900564 #ygrps-yiv-1679900564yiv4561858795 input, #ygrps-yiv-1679900564 #ygrps-yiv-1679900564yiv4561858795 textarea {
font:99% Arial, Helvetica, clean, sans-serif;}
#ygrps-yiv-1679900564 #ygrps-yiv-1679900564yiv4561858795 #ygrps-yiv-1679900564yiv4561858795ygrp-mlmsg pre, #ygrps-yiv-1679900564 #ygrps-yiv-1679900564yiv4561858795 code {
font:115% monospace;}
#ygrps-yiv-1679900564 #ygrps-yiv-1679900564yiv4561858795 #ygrps-yiv-1679900564yiv4561858795ygrp-mlmsg * {
line-height:1.22em;}
#ygrps-yiv-1679900564 #ygrps-yiv-1679900564yiv4561858795 #ygrps-yiv-1679900564yiv4561858795ygrp-mlmsg #ygrps-yiv-1679900564yiv4561858795logo {
padding-bottom:10px;}
#ygrps-yiv-1679900564 #ygrps-yiv-1679900564yiv4561858795 #ygrps-yiv-1679900564yiv4561858795ygrp-msg p a {
font-family:Verdana;}
#ygrps-yiv-1679900564 #ygrps-yiv-1679900564yiv4561858795 #ygrps-yiv-1679900564yiv4561858795ygrp-msg p#ygrps-yiv-1679900564yiv4561858795attach-count span {
color:#1E66AE;font-weight:700;}
#ygrps-yiv-1679900564 #ygrps-yiv-1679900564yiv4561858795 #ygrps-yiv-1679900564yiv4561858795ygrp-reco #ygrps-yiv-1679900564yiv4561858795reco-head {
color:#ff7900;font-weight:700;}
#ygrps-yiv-1679900564 #ygrps-yiv-1679900564yiv4561858795 #ygrps-yiv-1679900564yiv4561858795ygrp-reco {
margin-bottom:20px;padding:0px;}
#ygrps-yiv-1679900564 #ygrps-yiv-1679900564yiv4561858795 #ygrps-yiv-1679900564yiv4561858795ygrp-sponsor #ygrps-yiv-1679900564yiv4561858795ov li a {
font-size:130%;text-decoration:none;}
#ygrps-yiv-1679900564 #ygrps-yiv-1679900564yiv4561858795 #ygrps-yiv-1679900564yiv4561858795ygrp-sponsor #ygrps-yiv-1679900564yiv4561858795ov li {
font-size:77%;list-style-type:square;padding:6px 0;}
#ygrps-yiv-1679900564 #ygrps-yiv-1679900564yiv4561858795 #ygrps-yiv-1679900564yiv4561858795ygrp-sponsor #ygrps-yiv-1679900564yiv4561858795ov ul {
margin:0;padding:0 0 0 8px;}
#ygrps-yiv-1679900564 #ygrps-yiv-1679900564yiv4561858795 #ygrps-yiv-1679900564yiv4561858795ygrp-text {
font-family:Georgia;}
#ygrps-yiv-1679900564 #ygrps-yiv-1679900564yiv4561858795 #ygrps-yiv-1679900564yiv4561858795ygrp-text p {
margin:0 0 1em 0;}
#ygrps-yiv-1679900564 #ygrps-yiv-1679900564yiv4561858795 #ygrps-yiv-1679900564yiv4561858795ygrp-text tt {
font-size:120%;}
#ygrps-yiv-1679900564 #ygrps-yiv-1679900564yiv4561858795 #ygrps-yiv-1679900564yiv4561858795ygrp-vital ul li:last-child {
border-right:none !important;}
#ygrps-yiv-1679900564