Calling Inventory Transfer from within Customization

Hello,

So I am having the same problem where I get an error that says "A Transfer Record was not found". My code looks like this...

InvTransferAdapter ita = new InvTransferAdapter(this.oTrans);
ita.BOConnect();

InvTransferDataSet itds = ita.GetTransferRecord("Test Part 1-1", "EA");

itds.Tables["InvTrans"].Rows[0]["RowMod"] = "A";

itds.Tables["InvTrans"].Rows[0]["ToWarehouseCode"] = "100002";
ita.ChangeToWhse(itds);

itds.Tables["InvTrans"].Rows[0]["ToBinNum"] = 1;
ita.ChangeToBin(itds);

itds.Tables["InvTrans"].Rows[0]["FromLotNumber"] = "1";
itds.Tables["InvTrans"].Rows[0]["ToLotNumber"] = "1";
ita.ChangeLot(itds);

itds.Tables["InvTrans"].Rows[0]["TransferQty"] = 3;

string out1, out2;

ita.CommitTransfer(itds, out out1, out out2);

ita.Dispose();



When I try running it with the Business Logic Test Tool, it works perfectly fine, but when attempting to run this code, it doesn't.

Thank you for the help!


--- In vantage@yahoogroups.com, "Kevin Simon" <ksimon@...> wrote:
>
> Joe,
>
>
>
> Worked great - thanks for the tip. I didn't realize there would be a
> difference in using the adapter versus the BO.
>
>
>
> Kevin
>
>
>
> From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf Of
> Joe Rojas
> Sent: Wednesday, March 02, 2011 9:08 AM
> To: vantage@yahoogroups.com
> Subject: RE: [Vantage] Calling Inventory Transfer from within Customization
>
>
>
>
>
> Oh yeah. Don't forget:
>
> dsInvXF.Tables("InvTrans").Rows(0)("RowMod") = "A"
>
> From: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
> [mailto:vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com> ] On
> Behalf
> Of Joe Rojas
> Sent: Wednesday, March 02, 2011 8:51 AM
> To: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
> Subject: RE: [Vantage] Calling Inventory Transfer from within
> Customization
>
> This is why I'm not a fan of adapters. :)
>
> The issue is that even though you are passing in a dataset, it's not
> actually using that dataset.
>
> Adapters act as wrappers for BOs and they also add some GUI capability
> to interact with the user.
>
> In this case, the InvTransferAdapter has its own internal tables that
> you need to set as opposed to setting them externally in dsInvXF.
>
> My opinion would be to which to the BO in this case.
>
> You code would look something like this:
>
> Dim boInvXf As InvTransfer = New InvTransfer(Not sure it oTran will
> work. I think you need a session.connectionpool)
>
> 'Get the transfer record
>
> Dim dsInvXf As InvTransferDataSet = boInvXf.GetTransferRecord(wkPN, "")
>
> MessageBox.Show("Got Transfer Rec " &
>
> dsInvXF.Tables("InvTrans").Rows(0)("FromBinNum") )
>
> dsInvXF.Tables("InvTrans").Rows(0)("FromBinNum") = wkFromBin
>
> dsInvXF.Tables("InvTrans").Rows(0)("ToBinNum") = wkToBin
>
> dsInvXF.Tables("InvTrans").Rows(0)("TransferQty") = wkTransQty
>
> boInvXf.CommitTransfer(dsInvXF, "", "") Second parameter is an "out"
> parameter. You need to pass it a variable so that it can store any
> messages.
>
> adInvXf.Dispose()
>
> adInvXf = Nothing
>
> From: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
> <mailto:vantage%40yahoogroups.com>
> [mailto:vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
> <mailto:vantage%40yahoogroups.com> ] On
> Behalf
> Of Kevin Simon
> Sent: Tuesday, March 01, 2011 11:42 PM
> To: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
> <mailto:vantage%40yahoogroups.com>
> Subject: RE: [Vantage] Calling Inventory Transfer from within
> Customization
>
> Joe,
>
> Thanks for the help. Unfortunately, that's not the issue. I had already
> tried setting rowmod = "U" to no avail. So, I tried RowMod = "A", there
> was
> no difference.
>
> When I run a trace on it, there's simply nothing getting passed to the
> CommitTransfer. It's not that I see data in the dataset, there's nothing
> there. I've definitely got one row in the dataset, as I've verified
> through
> displaying data from it on the screen. However, when it executes the
> statement:
>
> Dim result As Boolean = adInvXf.CommitTransfer(dsInvXF, "", "")
>
> It's as if dsInvXF is empty.
>
> I took off the "dim result as Boolean =" from the statement, figuring if
> it
> failed it'd give me exception processing, but it simply displays nothing
> is
> there.
>
> If anyone has any ideas, or sample code that's doing a similar thing
> (initiating a transaction, then executing some type of commit), I'd
> truly
> appreciate it. I've done this tons of times with GetNew and Update type
> transactions.
>
> Thanks.
>
> Kevin Simon
>
> From: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
> <mailto:vantage%40yahoogroups.com>
> <mailto:vantage%40yahoogroups.com>
> [mailto:vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
> <mailto:vantage%40yahoogroups.com>
> <mailto:vantage%40yahoogroups.com> ] On
> Behalf Of
> Joe Rojas
> Sent: Tuesday, March 01, 2011 12:03 PM
> To: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
> <mailto:vantage%40yahoogroups.com>
> <mailto:vantage%40yahoogroups.com>
> Subject: RE: [Vantage] Calling Inventory Transfer from within
> Customization
>
> Hi Kevin,
>
> I never know when, or if, you have to use BeginEdit and EndEdit so it
> may or may not matter.
>
> With that said, the issue is that you are not setting RowMod = "A".
>
> From: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
> <mailto:vantage%40yahoogroups.com>
> <mailto:vantage%40yahoogroups.com>
> <mailto:vantage%40yahoogroups.com>
> [mailto:vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
> <mailto:vantage%40yahoogroups.com>
> <mailto:vantage%40yahoogroups.com>
> <mailto:vantage%40yahoogroups.com> ] On
> Behalf
> Of Kevin Simon
> Sent: Tuesday, March 01, 2011 11:05 AM
> To: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
> <mailto:vantage%40yahoogroups.com>
> <mailto:vantage%40yahoogroups.com>
> <mailto:vantage%40yahoogroups.com>
> Subject: RE: [Vantage] Calling Inventory Transfer from within
> Customization
>
> Giving this a gentle nudge, anyone have any input?
>
> From: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
> <mailto:vantage%40yahoogroups.com>
> <mailto:vantage%40yahoogroups.com>
> <mailto:vantage%40yahoogroups.com>
> <mailto:vantage%40yahoogroups.com>
> [mailto:vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
> <mailto:vantage%40yahoogroups.com>
> <mailto:vantage%40yahoogroups.com>
> <mailto:vantage%40yahoogroups.com>
> <mailto:vantage%40yahoogroups.com> ] On
> Behalf Of
> ksimon8fw
> Sent: Saturday, February 26, 2011 5:06 PM
> To: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
> <mailto:vantage%40yahoogroups.com>
> <mailto:vantage%40yahoogroups.com>
> <mailto:vantage%40yahoogroups.com>
> <mailto:vantage%40yahoogroups.com>
> Subject: [Vantage] Calling Inventory Transfer from within Customization
>
> I've got a customization and I'm trying to create an inventory transfer
> from
> within it. I'm having a problem, it's getting the inventory transfer
> record,
> but when I do the CommitTransfer, it's telling me "A transfer record was
> not
> found".
>
> Here's the snippet of code I'm using:
>
> =================================================================
> Dim adInvXf As InvTransferAdapter = New InvTransferAdapter(oTrans)
> adInvXf.BOConnect()
> 'Get the transfer record
> Dim dsInvXf As InvTransferDataSet = adInvXf.GetTransferRecord(wkPN, "")
>
> MessageBox.Show("Got Transfer Rec " &
> dsInvXF.Tables("InvTrans").Rows(0)("FromBinNum") )
>
> dsInvXF.Tables("InvTrans").Rows(0)("FromBinNum") = wkFromBin
> dsInvXF.Tables("InvTrans").Rows(0)("ToBinNum") = wkToBin
> dsInvXF.Tables("InvTrans").Rows(0)("TransferQty") = wkTransQty
>
> Dim result As Boolean = adInvXf.CommitTransfer(dsInvXF, "", "")
>
> adInvXf.Dispose()
> adInvXf = Nothing
> =================================================================
>
> The MessageBox that I display is showing the GetTransferRecord is
> working
> properly, it's pulling up the defaults that I expect to see. When I run
> a
> trace on my code, it's showing that it's not passing anything back to
> the
> CommitTransfer, as if dsInvXF is blank. Is there something wrong with my
> syntax?
>
> Thanks.
> Kevin Simon
>
> [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]
>
> [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've got a customization and I'm trying to create an inventory transfer from within it. I'm having a problem, it's getting the inventory transfer record, but when I do the CommitTransfer, it's telling me "A transfer record was not found".

Here's the snippet of code I'm using:

=================================================================
Dim adInvXf As InvTransferAdapter = New InvTransferAdapter(oTrans)
adInvXf.BOConnect()
'Get the transfer record
Dim dsInvXf As InvTransferDataSet = adInvXf.GetTransferRecord(wkPN, "")

MessageBox.Show("Got Transfer Rec " & dsInvXF.Tables("InvTrans").Rows(0)("FromBinNum") )

dsInvXF.Tables("InvTrans").Rows(0)("FromBinNum") = wkFromBin
dsInvXF.Tables("InvTrans").Rows(0)("ToBinNum") = wkToBin
dsInvXF.Tables("InvTrans").Rows(0)("TransferQty") = wkTransQty

Dim result As Boolean = adInvXf.CommitTransfer(dsInvXF, "", "")

adInvXf.Dispose()
adInvXf = Nothing
=================================================================

The MessageBox that I display is showing the GetTransferRecord is working properly, it's pulling up the defaults that I expect to see. When I run a trace on my code, it's showing that it's not passing anything back to the CommitTransfer, as if dsInvXF is blank. Is there something wrong with my syntax?

Thanks.
Kevin Simon
Giving this a gentle nudge, anyone have any input?



From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf Of
ksimon8fw
Sent: Saturday, February 26, 2011 5:06 PM
To: vantage@yahoogroups.com
Subject: [Vantage] Calling Inventory Transfer from within Customization





I've got a customization and I'm trying to create an inventory transfer from
within it. I'm having a problem, it's getting the inventory transfer record,
but when I do the CommitTransfer, it's telling me "A transfer record was not
found".

Here's the snippet of code I'm using:

=================================================================
Dim adInvXf As InvTransferAdapter = New InvTransferAdapter(oTrans)
adInvXf.BOConnect()
'Get the transfer record
Dim dsInvXf As InvTransferDataSet = adInvXf.GetTransferRecord(wkPN, "")

MessageBox.Show("Got Transfer Rec " &
dsInvXF.Tables("InvTrans").Rows(0)("FromBinNum") )

dsInvXF.Tables("InvTrans").Rows(0)("FromBinNum") = wkFromBin
dsInvXF.Tables("InvTrans").Rows(0)("ToBinNum") = wkToBin
dsInvXF.Tables("InvTrans").Rows(0)("TransferQty") = wkTransQty

Dim result As Boolean = adInvXf.CommitTransfer(dsInvXF, "", "")

adInvXf.Dispose()
adInvXf = Nothing
=================================================================

The MessageBox that I display is showing the GetTransferRecord is working
properly, it's pulling up the defaults that I expect to see. When I run a
trace on my code, it's showing that it's not passing anything back to the
CommitTransfer, as if dsInvXF is blank. Is there something wrong with my
syntax?

Thanks.
Kevin Simon





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



I never know when, or if, you have to use BeginEdit and EndEdit so it
may or may not matter.

With that said, the issue is that you are not setting RowMod = "A".



From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf
Of Kevin Simon
Sent: Tuesday, March 01, 2011 11:05 AM
To: vantage@yahoogroups.com
Subject: RE: [Vantage] Calling Inventory Transfer from within
Customization





Giving this a gentle nudge, anyone have any input?

From: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
[mailto:vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com> ] On
Behalf Of
ksimon8fw
Sent: Saturday, February 26, 2011 5:06 PM
To: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
Subject: [Vantage] Calling Inventory Transfer from within Customization

I've got a customization and I'm trying to create an inventory transfer
from
within it. I'm having a problem, it's getting the inventory transfer
record,
but when I do the CommitTransfer, it's telling me "A transfer record was
not
found".

Here's the snippet of code I'm using:

=================================================================
Dim adInvXf As InvTransferAdapter = New InvTransferAdapter(oTrans)
adInvXf.BOConnect()
'Get the transfer record
Dim dsInvXf As InvTransferDataSet = adInvXf.GetTransferRecord(wkPN, "")

MessageBox.Show("Got Transfer Rec " &
dsInvXF.Tables("InvTrans").Rows(0)("FromBinNum") )

dsInvXF.Tables("InvTrans").Rows(0)("FromBinNum") = wkFromBin
dsInvXF.Tables("InvTrans").Rows(0)("ToBinNum") = wkToBin
dsInvXF.Tables("InvTrans").Rows(0)("TransferQty") = wkTransQty

Dim result As Boolean = adInvXf.CommitTransfer(dsInvXF, "", "")

adInvXf.Dispose()
adInvXf = Nothing
=================================================================

The MessageBox that I display is showing the GetTransferRecord is
working
properly, it's pulling up the defaults that I expect to see. When I run
a
trace on my code, it's showing that it's not passing anything back to
the
CommitTransfer, as if dsInvXF is blank. Is there something wrong with my
syntax?

Thanks.
Kevin Simon

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




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



Thanks for the help. Unfortunately, that's not the issue. I had already
tried setting rowmod = "U" to no avail. So, I tried RowMod = "A", there was
no difference.


When I run a trace on it, there's simply nothing getting passed to the
CommitTransfer. It's not that I see data in the dataset, there's nothing
there. I've definitely got one row in the dataset, as I've verified through
displaying data from it on the screen. However, when it executes the
statement:

Dim result As Boolean = adInvXf.CommitTransfer(dsInvXF, "", "")

It's as if dsInvXF is empty.



I took off the "dim result as Boolean =" from the statement, figuring if it
failed it'd give me exception processing, but it simply displays nothing is
there.



If anyone has any ideas, or sample code that's doing a similar thing
(initiating a transaction, then executing some type of commit), I'd truly
appreciate it. I've done this tons of times with GetNew and Update type
transactions.



Thanks.



Kevin Simon





From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf Of
Joe Rojas
Sent: Tuesday, March 01, 2011 12:03 PM
To: vantage@yahoogroups.com
Subject: RE: [Vantage] Calling Inventory Transfer from within Customization





Hi Kevin,

I never know when, or if, you have to use BeginEdit and EndEdit so it
may or may not matter.

With that said, the issue is that you are not setting RowMod = "A".

From: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
[mailto:vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com> ] On
Behalf
Of Kevin Simon
Sent: Tuesday, March 01, 2011 11:05 AM
To: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
Subject: RE: [Vantage] Calling Inventory Transfer from within
Customization

Giving this a gentle nudge, anyone have any input?

From: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com>
[mailto:vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com> ] On
Behalf Of
ksimon8fw
Sent: Saturday, February 26, 2011 5:06 PM
To: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com>
Subject: [Vantage] Calling Inventory Transfer from within Customization

I've got a customization and I'm trying to create an inventory transfer
from
within it. I'm having a problem, it's getting the inventory transfer
record,
but when I do the CommitTransfer, it's telling me "A transfer record was
not
found".

Here's the snippet of code I'm using:

=================================================================
Dim adInvXf As InvTransferAdapter = New InvTransferAdapter(oTrans)
adInvXf.BOConnect()
'Get the transfer record
Dim dsInvXf As InvTransferDataSet = adInvXf.GetTransferRecord(wkPN, "")

MessageBox.Show("Got Transfer Rec " &
dsInvXF.Tables("InvTrans").Rows(0)("FromBinNum") )

dsInvXF.Tables("InvTrans").Rows(0)("FromBinNum") = wkFromBin
dsInvXF.Tables("InvTrans").Rows(0)("ToBinNum") = wkToBin
dsInvXF.Tables("InvTrans").Rows(0)("TransferQty") = wkTransQty

Dim result As Boolean = adInvXf.CommitTransfer(dsInvXF, "", "")

adInvXf.Dispose()
adInvXf = Nothing
=================================================================

The MessageBox that I display is showing the GetTransferRecord is
working
properly, it's pulling up the defaults that I expect to see. When I run
a
trace on my code, it's showing that it's not passing anything back to
the
CommitTransfer, as if dsInvXF is blank. Is there something wrong with my
syntax?

Thanks.
Kevin Simon

[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]
This is why I'm not a fan of adapters. :)



The issue is that even though you are passing in a dataset, it's not
actually using that dataset.

Adapters act as wrappers for BOs and they also add some GUI capability
to interact with the user.

In this case, the InvTransferAdapter has its own internal tables that
you need to set as opposed to setting them externally in dsInvXF.



My opinion would be to which to the BO in this case.

You code would look something like this:



Dim boInvXf As InvTransfer = New InvTransfer(Not sure it oTran will
work. I think you need a session.connectionpool)

'Get the transfer record

Dim dsInvXf As InvTransferDataSet = boInvXf.GetTransferRecord(wkPN, "")



MessageBox.Show("Got Transfer Rec " &

dsInvXF.Tables("InvTrans").Rows(0)("FromBinNum") )



dsInvXF.Tables("InvTrans").Rows(0)("FromBinNum") = wkFromBin

dsInvXF.Tables("InvTrans").Rows(0)("ToBinNum") = wkToBin

dsInvXF.Tables("InvTrans").Rows(0)("TransferQty") = wkTransQty



boInvXf.CommitTransfer(dsInvXF, "", "") Second parameter is an "out"
parameter. You need to pass it a variable so that it can store any
messages.



adInvXf.Dispose()

adInvXf = Nothing





From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf
Of Kevin Simon
Sent: Tuesday, March 01, 2011 11:42 PM
To: vantage@yahoogroups.com
Subject: RE: [Vantage] Calling Inventory Transfer from within
Customization





Joe,

Thanks for the help. Unfortunately, that's not the issue. I had already
tried setting rowmod = "U" to no avail. So, I tried RowMod = "A", there
was
no difference.

When I run a trace on it, there's simply nothing getting passed to the
CommitTransfer. It's not that I see data in the dataset, there's nothing
there. I've definitely got one row in the dataset, as I've verified
through
displaying data from it on the screen. However, when it executes the
statement:

Dim result As Boolean = adInvXf.CommitTransfer(dsInvXF, "", "")

It's as if dsInvXF is empty.

I took off the "dim result as Boolean =" from the statement, figuring if
it
failed it'd give me exception processing, but it simply displays nothing
is
there.

If anyone has any ideas, or sample code that's doing a similar thing
(initiating a transaction, then executing some type of commit), I'd
truly
appreciate it. I've done this tons of times with GetNew and Update type
transactions.

Thanks.

Kevin Simon

From: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
[mailto:vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com> ] On
Behalf Of
Joe Rojas
Sent: Tuesday, March 01, 2011 12:03 PM
To: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
Subject: RE: [Vantage] Calling Inventory Transfer from within
Customization

Hi Kevin,

I never know when, or if, you have to use BeginEdit and EndEdit so it
may or may not matter.

With that said, the issue is that you are not setting RowMod = "A".

From: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com>
[mailto:vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com> ] On
Behalf
Of Kevin Simon
Sent: Tuesday, March 01, 2011 11:05 AM
To: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com>
Subject: RE: [Vantage] Calling Inventory Transfer from within
Customization

Giving this a gentle nudge, anyone have any input?

From: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com>
[mailto:vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com> ] On
Behalf Of
ksimon8fw
Sent: Saturday, February 26, 2011 5:06 PM
To: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com>
Subject: [Vantage] Calling Inventory Transfer from within Customization

I've got a customization and I'm trying to create an inventory transfer
from
within it. I'm having a problem, it's getting the inventory transfer
record,
but when I do the CommitTransfer, it's telling me "A transfer record was
not
found".

Here's the snippet of code I'm using:

=================================================================
Dim adInvXf As InvTransferAdapter = New InvTransferAdapter(oTrans)
adInvXf.BOConnect()
'Get the transfer record
Dim dsInvXf As InvTransferDataSet = adInvXf.GetTransferRecord(wkPN, "")

MessageBox.Show("Got Transfer Rec " &
dsInvXF.Tables("InvTrans").Rows(0)("FromBinNum") )

dsInvXF.Tables("InvTrans").Rows(0)("FromBinNum") = wkFromBin
dsInvXF.Tables("InvTrans").Rows(0)("ToBinNum") = wkToBin
dsInvXF.Tables("InvTrans").Rows(0)("TransferQty") = wkTransQty

Dim result As Boolean = adInvXf.CommitTransfer(dsInvXF, "", "")

adInvXf.Dispose()
adInvXf = Nothing
=================================================================

The MessageBox that I display is showing the GetTransferRecord is
working
properly, it's pulling up the defaults that I expect to see. When I run
a
trace on my code, it's showing that it's not passing anything back to
the
CommitTransfer, as if dsInvXF is blank. Is there something wrong with my
syntax?

Thanks.
Kevin Simon

[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]




[Non-text portions of this message have been removed]
Oh yeah. Don't forget:

dsInvXF.Tables("InvTrans").Rows(0)("RowMod") = "A"



From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf
Of Joe Rojas
Sent: Wednesday, March 02, 2011 8:51 AM
To: vantage@yahoogroups.com
Subject: RE: [Vantage] Calling Inventory Transfer from within
Customization





This is why I'm not a fan of adapters. :)

The issue is that even though you are passing in a dataset, it's not
actually using that dataset.

Adapters act as wrappers for BOs and they also add some GUI capability
to interact with the user.

In this case, the InvTransferAdapter has its own internal tables that
you need to set as opposed to setting them externally in dsInvXF.

My opinion would be to which to the BO in this case.

You code would look something like this:

Dim boInvXf As InvTransfer = New InvTransfer(Not sure it oTran will
work. I think you need a session.connectionpool)

'Get the transfer record

Dim dsInvXf As InvTransferDataSet = boInvXf.GetTransferRecord(wkPN, "")

MessageBox.Show("Got Transfer Rec " &

dsInvXF.Tables("InvTrans").Rows(0)("FromBinNum") )

dsInvXF.Tables("InvTrans").Rows(0)("FromBinNum") = wkFromBin

dsInvXF.Tables("InvTrans").Rows(0)("ToBinNum") = wkToBin

dsInvXF.Tables("InvTrans").Rows(0)("TransferQty") = wkTransQty

boInvXf.CommitTransfer(dsInvXF, "", "") Second parameter is an "out"
parameter. You need to pass it a variable so that it can store any
messages.

adInvXf.Dispose()

adInvXf = Nothing

From: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
[mailto:vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com> ] On
Behalf
Of Kevin Simon
Sent: Tuesday, March 01, 2011 11:42 PM
To: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
Subject: RE: [Vantage] Calling Inventory Transfer from within
Customization

Joe,

Thanks for the help. Unfortunately, that's not the issue. I had already
tried setting rowmod = "U" to no avail. So, I tried RowMod = "A", there
was
no difference.

When I run a trace on it, there's simply nothing getting passed to the
CommitTransfer. It's not that I see data in the dataset, there's nothing
there. I've definitely got one row in the dataset, as I've verified
through
displaying data from it on the screen. However, when it executes the
statement:

Dim result As Boolean = adInvXf.CommitTransfer(dsInvXF, "", "")

It's as if dsInvXF is empty.

I took off the "dim result as Boolean =" from the statement, figuring if
it
failed it'd give me exception processing, but it simply displays nothing
is
there.

If anyone has any ideas, or sample code that's doing a similar thing
(initiating a transaction, then executing some type of commit), I'd
truly
appreciate it. I've done this tons of times with GetNew and Update type
transactions.

Thanks.

Kevin Simon

From: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com>
[mailto:vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com> ] On
Behalf Of
Joe Rojas
Sent: Tuesday, March 01, 2011 12:03 PM
To: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com>
Subject: RE: [Vantage] Calling Inventory Transfer from within
Customization

Hi Kevin,

I never know when, or if, you have to use BeginEdit and EndEdit so it
may or may not matter.

With that said, the issue is that you are not setting RowMod = "A".

From: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com>
[mailto:vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com> ] On
Behalf
Of Kevin Simon
Sent: Tuesday, March 01, 2011 11:05 AM
To: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com>
Subject: RE: [Vantage] Calling Inventory Transfer from within
Customization

Giving this a gentle nudge, anyone have any input?

From: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com>
[mailto:vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com> ] On
Behalf Of
ksimon8fw
Sent: Saturday, February 26, 2011 5:06 PM
To: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com>
Subject: [Vantage] Calling Inventory Transfer from within Customization

I've got a customization and I'm trying to create an inventory transfer
from
within it. I'm having a problem, it's getting the inventory transfer
record,
but when I do the CommitTransfer, it's telling me "A transfer record was
not
found".

Here's the snippet of code I'm using:

=================================================================
Dim adInvXf As InvTransferAdapter = New InvTransferAdapter(oTrans)
adInvXf.BOConnect()
'Get the transfer record
Dim dsInvXf As InvTransferDataSet = adInvXf.GetTransferRecord(wkPN, "")

MessageBox.Show("Got Transfer Rec " &
dsInvXF.Tables("InvTrans").Rows(0)("FromBinNum") )

dsInvXF.Tables("InvTrans").Rows(0)("FromBinNum") = wkFromBin
dsInvXF.Tables("InvTrans").Rows(0)("ToBinNum") = wkToBin
dsInvXF.Tables("InvTrans").Rows(0)("TransferQty") = wkTransQty

Dim result As Boolean = adInvXf.CommitTransfer(dsInvXF, "", "")

adInvXf.Dispose()
adInvXf = Nothing
=================================================================

The MessageBox that I display is showing the GetTransferRecord is
working
properly, it's pulling up the defaults that I expect to see. When I run
a
trace on my code, it's showing that it's not passing anything back to
the
CommitTransfer, as if dsInvXF is blank. Is there something wrong with my
syntax?

Thanks.
Kevin Simon

[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]

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




[Non-text portions of this message have been removed]
I have a service connect workflow to accomplish this and I am performing more steps that what you are trying to use - I wonder if you need to call the other adapter methods in turn to make it work?

Get Transfer Record
Change From Bin
Change To Bin
Pre Commit Transfer
Commit Transfer

V8.03.405a

--- In vantage@yahoogroups.com, Joe Rojas <jrojas@...> wrote:
>
> Oh yeah. Don't forget:
>
> dsInvXF.Tables("InvTrans").Rows(0)("RowMod") = "A"
>
>
>
> From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf
> Of Joe Rojas
> Sent: Wednesday, March 02, 2011 8:51 AM
> To: vantage@yahoogroups.com
> Subject: RE: [Vantage] Calling Inventory Transfer from within
> Customization
>
>
>
>
>
> This is why I'm not a fan of adapters. :)
>
> The issue is that even though you are passing in a dataset, it's not
> actually using that dataset.
>
> Adapters act as wrappers for BOs and they also add some GUI capability
> to interact with the user.
>
> In this case, the InvTransferAdapter has its own internal tables that
> you need to set as opposed to setting them externally in dsInvXF.
>
> My opinion would be to which to the BO in this case.
>
> You code would look something like this:
>
> Dim boInvXf As InvTransfer = New InvTransfer(Not sure it oTran will
> work. I think you need a session.connectionpool)
>
> 'Get the transfer record
>
> Dim dsInvXf As InvTransferDataSet = boInvXf.GetTransferRecord(wkPN, "")
>
> MessageBox.Show("Got Transfer Rec " &
>
> dsInvXF.Tables("InvTrans").Rows(0)("FromBinNum") )
>
> dsInvXF.Tables("InvTrans").Rows(0)("FromBinNum") = wkFromBin
>
> dsInvXF.Tables("InvTrans").Rows(0)("ToBinNum") = wkToBin
>
> dsInvXF.Tables("InvTrans").Rows(0)("TransferQty") = wkTransQty
>
> boInvXf.CommitTransfer(dsInvXF, "", "") Second parameter is an "out"
> parameter. You need to pass it a variable so that it can store any
> messages.
>
> adInvXf.Dispose()
>
> adInvXf = Nothing
>
> From: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
> [mailto:vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com> ] On
> Behalf
> Of Kevin Simon
> Sent: Tuesday, March 01, 2011 11:42 PM
> To: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
> Subject: RE: [Vantage] Calling Inventory Transfer from within
> Customization
>
> Joe,
>
> Thanks for the help. Unfortunately, that's not the issue. I had already
> tried setting rowmod = "U" to no avail. So, I tried RowMod = "A", there
> was
> no difference.
>
> When I run a trace on it, there's simply nothing getting passed to the
> CommitTransfer. It's not that I see data in the dataset, there's nothing
> there. I've definitely got one row in the dataset, as I've verified
> through
> displaying data from it on the screen. However, when it executes the
> statement:
>
> Dim result As Boolean = adInvXf.CommitTransfer(dsInvXF, "", "")
>
> It's as if dsInvXF is empty.
>
> I took off the "dim result as Boolean =" from the statement, figuring if
> it
> failed it'd give me exception processing, but it simply displays nothing
> is
> there.
>
> If anyone has any ideas, or sample code that's doing a similar thing
> (initiating a transaction, then executing some type of commit), I'd
> truly
> appreciate it. I've done this tons of times with GetNew and Update type
> transactions.
>
> Thanks.
>
> Kevin Simon
>
> From: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
> <mailto:vantage%40yahoogroups.com>
> [mailto:vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
> <mailto:vantage%40yahoogroups.com> ] On
> Behalf Of
> Joe Rojas
> Sent: Tuesday, March 01, 2011 12:03 PM
> To: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
> <mailto:vantage%40yahoogroups.com>
> Subject: RE: [Vantage] Calling Inventory Transfer from within
> Customization
>
> Hi Kevin,
>
> I never know when, or if, you have to use BeginEdit and EndEdit so it
> may or may not matter.
>
> With that said, the issue is that you are not setting RowMod = "A".
>
> From: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
> <mailto:vantage%40yahoogroups.com>
> <mailto:vantage%40yahoogroups.com>
> [mailto:vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
> <mailto:vantage%40yahoogroups.com>
> <mailto:vantage%40yahoogroups.com> ] On
> Behalf
> Of Kevin Simon
> Sent: Tuesday, March 01, 2011 11:05 AM
> To: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
> <mailto:vantage%40yahoogroups.com>
> <mailto:vantage%40yahoogroups.com>
> Subject: RE: [Vantage] Calling Inventory Transfer from within
> Customization
>
> Giving this a gentle nudge, anyone have any input?
>
> From: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
> <mailto:vantage%40yahoogroups.com>
> <mailto:vantage%40yahoogroups.com>
> <mailto:vantage%40yahoogroups.com>
> [mailto:vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
> <mailto:vantage%40yahoogroups.com>
> <mailto:vantage%40yahoogroups.com>
> <mailto:vantage%40yahoogroups.com> ] On
> Behalf Of
> ksimon8fw
> Sent: Saturday, February 26, 2011 5:06 PM
> To: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
> <mailto:vantage%40yahoogroups.com>
> <mailto:vantage%40yahoogroups.com>
> <mailto:vantage%40yahoogroups.com>
> Subject: [Vantage] Calling Inventory Transfer from within Customization
>
> I've got a customization and I'm trying to create an inventory transfer
> from
> within it. I'm having a problem, it's getting the inventory transfer
> record,
> but when I do the CommitTransfer, it's telling me "A transfer record was
> not
> found".
>
> Here's the snippet of code I'm using:
>
> =================================================================
> Dim adInvXf As InvTransferAdapter = New InvTransferAdapter(oTrans)
> adInvXf.BOConnect()
> 'Get the transfer record
> Dim dsInvXf As InvTransferDataSet = adInvXf.GetTransferRecord(wkPN, "")
>
> MessageBox.Show("Got Transfer Rec " &
> dsInvXF.Tables("InvTrans").Rows(0)("FromBinNum") )
>
> dsInvXF.Tables("InvTrans").Rows(0)("FromBinNum") = wkFromBin
> dsInvXF.Tables("InvTrans").Rows(0)("ToBinNum") = wkToBin
> dsInvXF.Tables("InvTrans").Rows(0)("TransferQty") = wkTransQty
>
> Dim result As Boolean = adInvXf.CommitTransfer(dsInvXF, "", "")
>
> adInvXf.Dispose()
> adInvXf = Nothing
> =================================================================
>
> The MessageBox that I display is showing the GetTransferRecord is
> working
> properly, it's pulling up the defaults that I expect to see. When I run
> a
> trace on my code, it's showing that it's not passing anything back to
> the
> CommitTransfer, as if dsInvXF is blank. Is there something wrong with my
> syntax?
>
> Thanks.
> Kevin Simon
>
> [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]
>
> [Non-text portions of this message have been removed]
>
>
>
>
> [Non-text portions of this message have been removed]
>
Hi Bernie,



I agree, the other method calls are used to validate and set default
values.



Does service connect work with the BO?



From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf
Of bw2868bond
Sent: Wednesday, March 02, 2011 9:22 AM
To: vantage@yahoogroups.com
Subject: [Vantage] Re: Calling Inventory Transfer from within
Customization





I have a service connect workflow to accomplish this and I am performing
more steps that what you are trying to use - I wonder if you need to
call the other adapter methods in turn to make it work?

Get Transfer Record
Change From Bin
Change To Bin
Pre Commit Transfer
Commit Transfer

V8.03.405a

--- In vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com> , Joe
Rojas <jrojas@...> wrote:
>
> Oh yeah. Don't forget:
>
> dsInvXF.Tables("InvTrans").Rows(0)("RowMod") = "A"
>
>
>
> From: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
[mailto:vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com> ] On
Behalf
> Of Joe Rojas
> Sent: Wednesday, March 02, 2011 8:51 AM
> To: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
> Subject: RE: [Vantage] Calling Inventory Transfer from within
> Customization
>
>
>
>
>
> This is why I'm not a fan of adapters. :)
>
> The issue is that even though you are passing in a dataset, it's not
> actually using that dataset.
>
> Adapters act as wrappers for BOs and they also add some GUI capability
> to interact with the user.
>
> In this case, the InvTransferAdapter has its own internal tables that
> you need to set as opposed to setting them externally in dsInvXF.
>
> My opinion would be to which to the BO in this case.
>
> You code would look something like this:
>
> Dim boInvXf As InvTransfer = New InvTransfer(Not sure it oTran will
> work. I think you need a session.connectionpool)
>
> 'Get the transfer record
>
> Dim dsInvXf As InvTransferDataSet = boInvXf.GetTransferRecord(wkPN,
"")
>
> MessageBox.Show("Got Transfer Rec " &
>
> dsInvXF.Tables("InvTrans").Rows(0)("FromBinNum") )
>
> dsInvXF.Tables("InvTrans").Rows(0)("FromBinNum") = wkFromBin
>
> dsInvXF.Tables("InvTrans").Rows(0)("ToBinNum") = wkToBin
>
> dsInvXF.Tables("InvTrans").Rows(0)("TransferQty") = wkTransQty
>
> boInvXf.CommitTransfer(dsInvXF, "", "") Second parameter is an "out"
> parameter. You need to pass it a variable so that it can store any
> messages.
>
> adInvXf.Dispose()
>
> adInvXf = Nothing
>
> From: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com>
> [mailto:vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com> ] On
> Behalf
> Of Kevin Simon
> Sent: Tuesday, March 01, 2011 11:42 PM
> To: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com>
> Subject: RE: [Vantage] Calling Inventory Transfer from within
> Customization
>
> Joe,
>
> Thanks for the help. Unfortunately, that's not the issue. I had
already
> tried setting rowmod = "U" to no avail. So, I tried RowMod = "A",
there
> was
> no difference.
>
> When I run a trace on it, there's simply nothing getting passed to the
> CommitTransfer. It's not that I see data in the dataset, there's
nothing
> there. I've definitely got one row in the dataset, as I've verified
> through
> displaying data from it on the screen. However, when it executes the
> statement:
>
> Dim result As Boolean = adInvXf.CommitTransfer(dsInvXF, "", "")
>
> It's as if dsInvXF is empty.
>
> I took off the "dim result as Boolean =" from the statement, figuring
if
> it
> failed it'd give me exception processing, but it simply displays
nothing
> is
> there.
>
> If anyone has any ideas, or sample code that's doing a similar thing
> (initiating a transaction, then executing some type of commit), I'd
> truly
> appreciate it. I've done this tons of times with GetNew and Update
type
> transactions.
>
> Thanks.
>
> Kevin Simon
>
> From: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com>
> <mailto:vantage%40yahoogroups.com>
> [mailto:vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com>
> <mailto:vantage%40yahoogroups.com> ] On
> Behalf Of
> Joe Rojas
> Sent: Tuesday, March 01, 2011 12:03 PM
> To: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com>
> <mailto:vantage%40yahoogroups.com>
> Subject: RE: [Vantage] Calling Inventory Transfer from within
> Customization
>
> Hi Kevin,
>
> I never know when, or if, you have to use BeginEdit and EndEdit so it
> may or may not matter.
>
> With that said, the issue is that you are not setting RowMod = "A".
>
> From: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com>
> <mailto:vantage%40yahoogroups.com>
> <mailto:vantage%40yahoogroups.com>
> [mailto:vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com>
> <mailto:vantage%40yahoogroups.com>
> <mailto:vantage%40yahoogroups.com> ] On
> Behalf
> Of Kevin Simon
> Sent: Tuesday, March 01, 2011 11:05 AM
> To: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com>
> <mailto:vantage%40yahoogroups.com>
> <mailto:vantage%40yahoogroups.com>
> Subject: RE: [Vantage] Calling Inventory Transfer from within
> Customization
>
> Giving this a gentle nudge, anyone have any input?
>
> From: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com>
> <mailto:vantage%40yahoogroups.com>
> <mailto:vantage%40yahoogroups.com>
> <mailto:vantage%40yahoogroups.com>
> [mailto:vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com>
> <mailto:vantage%40yahoogroups.com>
> <mailto:vantage%40yahoogroups.com>
> <mailto:vantage%40yahoogroups.com> ] On
> Behalf Of
> ksimon8fw
> Sent: Saturday, February 26, 2011 5:06 PM
> To: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com>
> <mailto:vantage%40yahoogroups.com>
> <mailto:vantage%40yahoogroups.com>
> <mailto:vantage%40yahoogroups.com>
> Subject: [Vantage] Calling Inventory Transfer from within
Customization
>
> I've got a customization and I'm trying to create an inventory
transfer
> from
> within it. I'm having a problem, it's getting the inventory transfer
> record,
> but when I do the CommitTransfer, it's telling me "A transfer record
was
> not
> found".
>
> Here's the snippet of code I'm using:
>
> =================================================================
> Dim adInvXf As InvTransferAdapter = New InvTransferAdapter(oTrans)
> adInvXf.BOConnect()
> 'Get the transfer record
> Dim dsInvXf As InvTransferDataSet = adInvXf.GetTransferRecord(wkPN,
"")
>
> MessageBox.Show("Got Transfer Rec " &
> dsInvXF.Tables("InvTrans").Rows(0)("FromBinNum") )
>
> dsInvXF.Tables("InvTrans").Rows(0)("FromBinNum") = wkFromBin
> dsInvXF.Tables("InvTrans").Rows(0)("ToBinNum") = wkToBin
> dsInvXF.Tables("InvTrans").Rows(0)("TransferQty") = wkTransQty
>
> Dim result As Boolean = adInvXf.CommitTransfer(dsInvXF, "", "")
>
> adInvXf.Dispose()
> adInvXf = Nothing
> =================================================================
>
> The MessageBox that I display is showing the GetTransferRecord is
> working
> properly, it's pulling up the defaults that I expect to see. When I
run
> a
> trace on my code, it's showing that it's not passing anything back to
> the
> CommitTransfer, as if dsInvXF is blank. Is there something wrong with
my
> syntax?
>
> Thanks.
> Kevin Simon
>
> [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]
>
> [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]
It is my understanding that SC replaces the UI front end and works through the AD layer with the BO.

Also when passing parameters to the adapter calls, the field in the DS also needs to reflect the changed value.

Since we purchased the DMT, we have been using it to do the transfers :)

--- In vantage@yahoogroups.com, Joe Rojas <jrojas@...> wrote:
>
> Hi Bernie,
>
>
>
> I agree, the other method calls are used to validate and set default
> values.
>
>
>
> Does service connect work with the BO?
>
>
>
> From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf
> Of bw2868bond
> Sent: Wednesday, March 02, 2011 9:22 AM
> To: vantage@yahoogroups.com
> Subject: [Vantage] Re: Calling Inventory Transfer from within
> Customization
>
>
>
>
>
> I have a service connect workflow to accomplish this and I am performing
> more steps that what you are trying to use - I wonder if you need to
> call the other adapter methods in turn to make it work?
>
> Get Transfer Record
> Change From Bin
> Change To Bin
> Pre Commit Transfer
> Commit Transfer
>
> V8.03.405a
>
> --- In vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com> , Joe
> Rojas <jrojas@> wrote:
> >
> > Oh yeah. Don't forget:
> >
> > dsInvXF.Tables("InvTrans").Rows(0)("RowMod") = "A"
> >
> >
> >
> > From: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
> [mailto:vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com> ] On
> Behalf
> > Of Joe Rojas
> > Sent: Wednesday, March 02, 2011 8:51 AM
> > To: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
> > Subject: RE: [Vantage] Calling Inventory Transfer from within
> > Customization
> >
> >
> >
> >
> >
> > This is why I'm not a fan of adapters. :)
> >
> > The issue is that even though you are passing in a dataset, it's not
> > actually using that dataset.
> >
> > Adapters act as wrappers for BOs and they also add some GUI capability
> > to interact with the user.
> >
> > In this case, the InvTransferAdapter has its own internal tables that
> > you need to set as opposed to setting them externally in dsInvXF.
> >
> > My opinion would be to which to the BO in this case.
> >
> > You code would look something like this:
> >
> > Dim boInvXf As InvTransfer = New InvTransfer(Not sure it oTran will
> > work. I think you need a session.connectionpool)
> >
> > 'Get the transfer record
> >
> > Dim dsInvXf As InvTransferDataSet = boInvXf.GetTransferRecord(wkPN,
> "")
> >
> > MessageBox.Show("Got Transfer Rec " &
> >
> > dsInvXF.Tables("InvTrans").Rows(0)("FromBinNum") )
> >
> > dsInvXF.Tables("InvTrans").Rows(0)("FromBinNum") = wkFromBin
> >
> > dsInvXF.Tables("InvTrans").Rows(0)("ToBinNum") = wkToBin
> >
> > dsInvXF.Tables("InvTrans").Rows(0)("TransferQty") = wkTransQty
> >
> > boInvXf.CommitTransfer(dsInvXF, "", "") Second parameter is an "out"
> > parameter. You need to pass it a variable so that it can store any
> > messages.
> >
> > adInvXf.Dispose()
> >
> > adInvXf = Nothing
> >
> > From: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
> <mailto:vantage%40yahoogroups.com>
> > [mailto:vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
> <mailto:vantage%40yahoogroups.com> ] On
> > Behalf
> > Of Kevin Simon
> > Sent: Tuesday, March 01, 2011 11:42 PM
> > To: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
> <mailto:vantage%40yahoogroups.com>
> > Subject: RE: [Vantage] Calling Inventory Transfer from within
> > Customization
> >
> > Joe,
> >
> > Thanks for the help. Unfortunately, that's not the issue. I had
> already
> > tried setting rowmod = "U" to no avail. So, I tried RowMod = "A",
> there
> > was
> > no difference.
> >
> > When I run a trace on it, there's simply nothing getting passed to the
> > CommitTransfer. It's not that I see data in the dataset, there's
> nothing
> > there. I've definitely got one row in the dataset, as I've verified
> > through
> > displaying data from it on the screen. However, when it executes the
> > statement:
> >
> > Dim result As Boolean = adInvXf.CommitTransfer(dsInvXF, "", "")
> >
> > It's as if dsInvXF is empty.
> >
> > I took off the "dim result as Boolean =" from the statement, figuring
> if
> > it
> > failed it'd give me exception processing, but it simply displays
> nothing
> > is
> > there.
> >
> > If anyone has any ideas, or sample code that's doing a similar thing
> > (initiating a transaction, then executing some type of commit), I'd
> > truly
> > appreciate it. I've done this tons of times with GetNew and Update
> type
> > transactions.
> >
> > Thanks.
> >
> > Kevin Simon
> >
> > From: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
> <mailto:vantage%40yahoogroups.com>
> > <mailto:vantage%40yahoogroups.com>
> > [mailto:vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
> <mailto:vantage%40yahoogroups.com>
> > <mailto:vantage%40yahoogroups.com> ] On
> > Behalf Of
> > Joe Rojas
> > Sent: Tuesday, March 01, 2011 12:03 PM
> > To: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
> <mailto:vantage%40yahoogroups.com>
> > <mailto:vantage%40yahoogroups.com>
> > Subject: RE: [Vantage] Calling Inventory Transfer from within
> > Customization
> >
> > Hi Kevin,
> >
> > I never know when, or if, you have to use BeginEdit and EndEdit so it
> > may or may not matter.
> >
> > With that said, the issue is that you are not setting RowMod = "A".
> >
> > From: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
> <mailto:vantage%40yahoogroups.com>
> > <mailto:vantage%40yahoogroups.com>
> > <mailto:vantage%40yahoogroups.com>
> > [mailto:vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
> <mailto:vantage%40yahoogroups.com>
> > <mailto:vantage%40yahoogroups.com>
> > <mailto:vantage%40yahoogroups.com> ] On
> > Behalf
> > Of Kevin Simon
> > Sent: Tuesday, March 01, 2011 11:05 AM
> > To: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
> <mailto:vantage%40yahoogroups.com>
> > <mailto:vantage%40yahoogroups.com>
> > <mailto:vantage%40yahoogroups.com>
> > Subject: RE: [Vantage] Calling Inventory Transfer from within
> > Customization
> >
> > Giving this a gentle nudge, anyone have any input?
> >
> > From: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
> <mailto:vantage%40yahoogroups.com>
> > <mailto:vantage%40yahoogroups.com>
> > <mailto:vantage%40yahoogroups.com>
> > <mailto:vantage%40yahoogroups.com>
> > [mailto:vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
> <mailto:vantage%40yahoogroups.com>
> > <mailto:vantage%40yahoogroups.com>
> > <mailto:vantage%40yahoogroups.com>
> > <mailto:vantage%40yahoogroups.com> ] On
> > Behalf Of
> > ksimon8fw
> > Sent: Saturday, February 26, 2011 5:06 PM
> > To: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
> <mailto:vantage%40yahoogroups.com>
> > <mailto:vantage%40yahoogroups.com>
> > <mailto:vantage%40yahoogroups.com>
> > <mailto:vantage%40yahoogroups.com>
> > Subject: [Vantage] Calling Inventory Transfer from within
> Customization
> >
> > I've got a customization and I'm trying to create an inventory
> transfer
> > from
> > within it. I'm having a problem, it's getting the inventory transfer
> > record,
> > but when I do the CommitTransfer, it's telling me "A transfer record
> was
> > not
> > found".
> >
> > Here's the snippet of code I'm using:
> >
> > =================================================================
> > Dim adInvXf As InvTransferAdapter = New InvTransferAdapter(oTrans)
> > adInvXf.BOConnect()
> > 'Get the transfer record
> > Dim dsInvXf As InvTransferDataSet = adInvXf.GetTransferRecord(wkPN,
> "")
> >
> > MessageBox.Show("Got Transfer Rec " &
> > dsInvXF.Tables("InvTrans").Rows(0)("FromBinNum") )
> >
> > dsInvXF.Tables("InvTrans").Rows(0)("FromBinNum") = wkFromBin
> > dsInvXF.Tables("InvTrans").Rows(0)("ToBinNum") = wkToBin
> > dsInvXF.Tables("InvTrans").Rows(0)("TransferQty") = wkTransQty
> >
> > Dim result As Boolean = adInvXf.CommitTransfer(dsInvXF, "", "")
> >
> > adInvXf.Dispose()
> > adInvXf = Nothing
> > =================================================================
> >
> > The MessageBox that I display is showing the GetTransferRecord is
> > working
> > properly, it's pulling up the defaults that I expect to see. When I
> run
> > a
> > trace on my code, it's showing that it's not passing anything back to
> > the
> > CommitTransfer, as if dsInvXF is blank. Is there something wrong with
> my
> > syntax?
> >
> > Thanks.
> > Kevin Simon
> >
> > [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]
> >
> > [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]
>
Bernie writes:

> It is my understanding that SC replaces the UI front end and works through the AD layer with the BO.

Does SC talk directly to the BOs or does it use the Web Services? (or either?)

I always suspected that SC talked to the web services which call
asp.net routines on the web server that in turn call the BOs. I
figured the reason why DMT is so much faster than SC is because there
isn't all of that marshaling/un-marshaling of data on each function
call.

Than again, I could be wrong. Just ask my wife...

Mark W.
Mark,



Yes, Service Connect indeed uses the web services.



By the way, you're right this once. Sorry, according to your wife, you used
up your one right answer for the year on this board.



Kevin



From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf Of
Mark Wonsil
Sent: Wednesday, March 02, 2011 10:58 AM
To: vantage@yahoogroups.com
Subject: Re: [Vantage] Re: Calling Inventory Transfer from within
Customization





Bernie writes:

> It is my understanding that SC replaces the UI front end and works through
the AD layer with the BO.

Does SC talk directly to the BOs or does it use the Web Services? (or
either?)

I always suspected that SC talked to the web services which call
asp.net routines on the web server that in turn call the BOs. I
figured the reason why DMT is so much faster than SC is because there
isn't all of that marshaling/un-marshaling of data on each function
call.

Than again, I could be wrong. Just ask my wife...

Mark W.





[Non-text portions of this message have been removed]
Kevin writes:
> > Than again, I could be wrong. Just ask my wife...
...
> By the way, you're right this once. Sorry, according to your wife, you used
> up your one right answer for the year on this board.

Nope. I spelled 'Then' wrong. I'm still good for the year!

;-)
Joe,



Worked great - thanks for the tip. I didn't realize there would be a
difference in using the adapter versus the BO.



Kevin



From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf Of
Joe Rojas
Sent: Wednesday, March 02, 2011 9:08 AM
To: vantage@yahoogroups.com
Subject: RE: [Vantage] Calling Inventory Transfer from within Customization





Oh yeah. Don't forget:

dsInvXF.Tables("InvTrans").Rows(0)("RowMod") = "A"

From: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
[mailto:vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com> ] On
Behalf
Of Joe Rojas
Sent: Wednesday, March 02, 2011 8:51 AM
To: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
Subject: RE: [Vantage] Calling Inventory Transfer from within
Customization

This is why I'm not a fan of adapters. :)

The issue is that even though you are passing in a dataset, it's not
actually using that dataset.

Adapters act as wrappers for BOs and they also add some GUI capability
to interact with the user.

In this case, the InvTransferAdapter has its own internal tables that
you need to set as opposed to setting them externally in dsInvXF.

My opinion would be to which to the BO in this case.

You code would look something like this:

Dim boInvXf As InvTransfer = New InvTransfer(Not sure it oTran will
work. I think you need a session.connectionpool)

'Get the transfer record

Dim dsInvXf As InvTransferDataSet = boInvXf.GetTransferRecord(wkPN, "")

MessageBox.Show("Got Transfer Rec " &

dsInvXF.Tables("InvTrans").Rows(0)("FromBinNum") )

dsInvXF.Tables("InvTrans").Rows(0)("FromBinNum") = wkFromBin

dsInvXF.Tables("InvTrans").Rows(0)("ToBinNum") = wkToBin

dsInvXF.Tables("InvTrans").Rows(0)("TransferQty") = wkTransQty

boInvXf.CommitTransfer(dsInvXF, "", "") Second parameter is an "out"
parameter. You need to pass it a variable so that it can store any
messages.

adInvXf.Dispose()

adInvXf = Nothing

From: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com>
[mailto:vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com> ] On
Behalf
Of Kevin Simon
Sent: Tuesday, March 01, 2011 11:42 PM
To: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com>
Subject: RE: [Vantage] Calling Inventory Transfer from within
Customization

Joe,

Thanks for the help. Unfortunately, that's not the issue. I had already
tried setting rowmod = "U" to no avail. So, I tried RowMod = "A", there
was
no difference.

When I run a trace on it, there's simply nothing getting passed to the
CommitTransfer. It's not that I see data in the dataset, there's nothing
there. I've definitely got one row in the dataset, as I've verified
through
displaying data from it on the screen. However, when it executes the
statement:

Dim result As Boolean = adInvXf.CommitTransfer(dsInvXF, "", "")

It's as if dsInvXF is empty.

I took off the "dim result as Boolean =" from the statement, figuring if
it
failed it'd give me exception processing, but it simply displays nothing
is
there.

If anyone has any ideas, or sample code that's doing a similar thing
(initiating a transaction, then executing some type of commit), I'd
truly
appreciate it. I've done this tons of times with GetNew and Update type
transactions.

Thanks.

Kevin Simon

From: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com>
[mailto:vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com> ] On
Behalf Of
Joe Rojas
Sent: Tuesday, March 01, 2011 12:03 PM
To: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com>
Subject: RE: [Vantage] Calling Inventory Transfer from within
Customization

Hi Kevin,

I never know when, or if, you have to use BeginEdit and EndEdit so it
may or may not matter.

With that said, the issue is that you are not setting RowMod = "A".

From: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com>
[mailto:vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com> ] On
Behalf
Of Kevin Simon
Sent: Tuesday, March 01, 2011 11:05 AM
To: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com>
Subject: RE: [Vantage] Calling Inventory Transfer from within
Customization

Giving this a gentle nudge, anyone have any input?

From: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com>
[mailto:vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com> ] On
Behalf Of
ksimon8fw
Sent: Saturday, February 26, 2011 5:06 PM
To: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com>
Subject: [Vantage] Calling Inventory Transfer from within Customization

I've got a customization and I'm trying to create an inventory transfer
from
within it. I'm having a problem, it's getting the inventory transfer
record,
but when I do the CommitTransfer, it's telling me "A transfer record was
not
found".

Here's the snippet of code I'm using:

=================================================================
Dim adInvXf As InvTransferAdapter = New InvTransferAdapter(oTrans)
adInvXf.BOConnect()
'Get the transfer record
Dim dsInvXf As InvTransferDataSet = adInvXf.GetTransferRecord(wkPN, "")

MessageBox.Show("Got Transfer Rec " &
dsInvXF.Tables("InvTrans").Rows(0)("FromBinNum") )

dsInvXF.Tables("InvTrans").Rows(0)("FromBinNum") = wkFromBin
dsInvXF.Tables("InvTrans").Rows(0)("ToBinNum") = wkToBin
dsInvXF.Tables("InvTrans").Rows(0)("TransferQty") = wkTransQty

Dim result As Boolean = adInvXf.CommitTransfer(dsInvXF, "", "")

adInvXf.Dispose()
adInvXf = Nothing
=================================================================

The MessageBox that I display is showing the GetTransferRecord is
working
properly, it's pulling up the defaults that I expect to see. When I run
a
trace on my code, it's showing that it's not passing anything back to
the
CommitTransfer, as if dsInvXF is blank. Is there something wrong with my
syntax?

Thanks.
Kevin Simon

[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]

[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]