Customization on SalesOrder

That is what I thought, but I could not figure out how to change the shortchar06
on the Release and update the SalesOrder adapter.Â

How do you reference the Release.shortchar06 to update?

Is there any documentation that helps - maybe some examples.

Thanks
Doug




________________________________
From: bw2868bond <bwalker@...>
To: vantage@yahoogroups.com
Sent: Mon, December 13, 2010 11:51:37 AM
Subject: [Vantage] Re: customization on SalesOrder

Â
I believe you will need to use SalesOrder BO to do any updates. The search
adapter is just that, used for doing searches

--- In vantage@yahoogroups.com, DD <ddavis4569@...> wrote:
>
> Thanks Joe: I did have a incorrect assembly referenced.
>
> I can get the customization to compile but I get a error message that
> Epicor.Mfg.Common.BusinessObjectException: Update of Order Release not
allowed.
> when I run the customization.
>
> Is there a trick to using the update method?
>
> Listlookup works fine and I can get data out from the lines/releases but I can

> not get it to update.
>
> Is OrderRelSearchAdapter the correct adapter to us when updating the Releases?
>
>
> Dim Torder as integer
> Dim Tline as integer
> dim Trel as integer
> dim msg as string
> Torder = dsSearch.Tables(0).Rows(cnt)("Ordernum")
> Tline = dsSearch.Tables(0).Rows(cnt)("OrderLine")
> Trel = dsSearch.Tables(0).Rows(cnt)("OrderRelnum")
> msg = ( Torder.tostring() & " " & Tline.tostring() & " " & Trel.tostring() )
>
> Dim UD As OrderRelSearchAdapter = New OrderRelSearchAdapter(SalesOrderForm)
> UD.BOConnect()
> Â messagebox.show(msg)
> UD.Getdata(Torder,Tline,Trel )
> ud.OrderRelSearchData.OrderRel(0).ShortChar06 = rep1
> ud.update()
> UD.Dispose()
>
>
>
>
> ________________________________
> From: Joe Rojas <jrojas@...>
> To: vantage@yahoogroups.com
> Sent: Fri, December 10, 2010 12:19:06 PM
> Subject: RE: [Vantage] customization on SalesOrder
>
> Â
> Two things come to mind.
>
> 1. Do you have the correct assemblies referenced?
>
> 2. Do you have the correct import statements at the top of your
> code?
>
>
>
>
> [Non-text portions of this message have been removed]
>







[Non-text portions of this message have been removed]
I am getting an error on OrderRelSearchAdapter. Any idea what is wrong?

I am trying to update all the Shortchar06 fields on all lines / releases for a
sales order. Â


 Error: BC30002 - line 127 (582) - Type 'OrderRelSearchAdapter' is not defined.
 ** Compile Failed. **


Dim UD As OrderRelSearchAdapter = New OrderRelSearchAdapter(SalesOrderForm)


UD.BOConnect()
UD.GetByID(sOrder,sLine,sRel )
ud.OrderRelSearchData.OrderRelSearch(0).ShortChar06 = rep1
ud.update()
UD.Dispose()




[Non-text portions of this message have been removed]
Two things come to mind.

1. Do you have the correct assemblies referenced?

2. Do you have the correct import statements at the top of your
code?



From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf
Of DD
Sent: Friday, December 10, 2010 1:00 PM
To: vantage@yahoogroups.com
Subject: [Vantage] customization on SalesOrder





I am getting an error on OrderRelSearchAdapter. Any idea what is wrong?


I am trying to update all the Shortchar06 fields on all lines / releases
for a
sales order.

Error: BC30002 - line 127 (582) - Type 'OrderRelSearchAdapter' is not
defined.
** Compile Failed. **

Dim UD As OrderRelSearchAdapter = New
OrderRelSearchAdapter(SalesOrderForm)

UD.BOConnect()
UD.GetByID(sOrder,sLine,sRel )
ud.OrderRelSearchData.OrderRelSearch(0).ShortChar06 = rep1
ud.update()
UD.Dispose()

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












Joe Rojas | Director of Information Technology | Mats Inc
dir: 781-573-0291 | cell: 781-408-9278 | fax: 781-232-5191
jrojas@... | www.matsinc.com Ask us about our clean, green and beautiful matting and flooring


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]
Thanks Joe: I did have a incorrect assembly referenced.

I can get the customization to compile but I get a error message that
Epicor.Mfg.Common.BusinessObjectException: Update of Order Release not allowed.
when I run the customization.

Is there a trick to using the update method?

Listlookup works fine and I can get data out from the lines/releases but I can
not get it to update.

Is OrderRelSearchAdapter the correct adapter to us when updating the Releases?


Dim Torder as integer
Dim Tline as integer
dim Trel as integer
dim msg as string
Torder = dsSearch.Tables(0).Rows(cnt)("Ordernum")
Tline = dsSearch.Tables(0).Rows(cnt)("OrderLine")
Trel = dsSearch.Tables(0).Rows(cnt)("OrderRelnum")
msg = ( Torder.tostring() & " " & Tline.tostring() & " " & Trel.tostring() )

Dim UD As OrderRelSearchAdapter = New OrderRelSearchAdapter(SalesOrderForm)
UD.BOConnect()
 messagebox.show(msg)
UD.Getdata(Torder,Tline,Trel )
ud.OrderRelSearchData.OrderRel(0).ShortChar06 = rep1
ud.update()
UD.Dispose()




________________________________
From: Joe Rojas <jrojas@...>
To: vantage@yahoogroups.com
Sent: Fri, December 10, 2010 12:19:06 PM
Subject: RE: [Vantage] customization on SalesOrder

Â
Two things come to mind.

1. Do you have the correct assemblies referenced?

2. Do you have the correct import statements at the top of your
code?




[Non-text portions of this message have been removed]
I believe you will need to use SalesOrder BO to do any updates. The search adapter is just that, used for doing searches

--- In vantage@yahoogroups.com, DD <ddavis4569@...> wrote:
>
> Thanks Joe: I did have a incorrect assembly referenced.
>
> I can get the customization to compile but I get a error message that
> Epicor.Mfg.Common.BusinessObjectException: Update of Order Release not allowed.
> when I run the customization.
>
> Is there a trick to using the update method?
>
> Listlookup works fine and I can get data out from the lines/releases but I can
> not get it to update.
>
> Is OrderRelSearchAdapter the correct adapter to us when updating the Releases?
>
>
> Dim Torder as integer
> Dim Tline as integer
> dim Trel as integer
> dim msg as string
> Torder = dsSearch.Tables(0).Rows(cnt)("Ordernum")
> Tline = dsSearch.Tables(0).Rows(cnt)("OrderLine")
> Trel = dsSearch.Tables(0).Rows(cnt)("OrderRelnum")
> msg = ( Torder.tostring() & " " & Tline.tostring() & " " & Trel.tostring() )
>
> Dim UD As OrderRelSearchAdapter = New OrderRelSearchAdapter(SalesOrderForm)
> UD.BOConnect()
> Â messagebox.show(msg)
> UD.Getdata(Torder,Tline,Trel )
> ud.OrderRelSearchData.OrderRel(0).ShortChar06 = rep1
> ud.update()
> UD.Dispose()
>
>
>
>
> ________________________________
> From: Joe Rojas <jrojas@...>
> To: vantage@yahoogroups.com
> Sent: Fri, December 10, 2010 12:19:06 PM
> Subject: RE: [Vantage] customization on SalesOrder
>
> Â
> Two things come to mind.
>
> 1. Do you have the correct assemblies referenced?
>
> 2. Do you have the correct import statements at the top of your
> code?
>
>
>
>
> [Non-text portions of this message have been removed]
>