User Defined Tables

Loop through the revisions to find the approved revision, such as this:



For each revDR as datarow in adpPart.PartData.PartRev

If revDR("Approved") = true then

Dim LastRev as string = revDR("RevisionNum")

End if

Next



I didn't test this, so there may be some syntax errors, but you get the
idea.



Kevin Simon

SimsTrak Consulting



From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf Of
carol.pelowski
Sent: Friday, August 02, 2013 4:23 PM
To: vantage@yahoogroups.com
Subject: [Vantage] User Defined Tables





We are creating a UD table for updating Production Standards and I want to
ensure that the latest Revision is targeted and updated. We currently are
using the following code:
Dim lastRevCount As Integer =
adpPart.PartData.Tables("PartRev").Rows.Count-1
Dim lastRev As String =
adpPart.PartData.Tables("PartRev").Rows(lastRevCount)("revisionNum")
Messagebox.Show(lastRev)
However, I noticed in one case, the most current rev was not updated, but a
revision that was used prior.
Any suggestions from anyone?





[Non-text portions of this message have been removed]
I'm just starting to look at user defined tables. What I would like to do is
use the table "UD01" and create a form based off this table. I am able to get
the form created, but what I need to do is have the primary key (Key1) for the
user defined table be equal to an existing part in the system. So when a new
record is created in the user defined table, Key1 needs to match an existing
part in the system, if there isnt a matching part in the system I would need an
error message that would prevent the record from being created. Has anyone
attempted to do something like this? Any ideas?
Â
Thanks,

Dustin Biniek
UMC, Inc.
DustinB@...





[Non-text portions of this message have been removed]
I haven't tried this with a UD table, but I do have a customization for Sales Order Entry that checks the part table and only allows parts to be entered into the Sales Order that is in the part table. First you have to create a foreign view to the part table. The custom code I have does other things, but here is the code and you should be able to pick out the parts you need:

 Private Sub OrderDtl_AfterFieldChange(ByVal sender As object, ByVal args As DataColumnChangeEventArgs) Handles OrderDtl_Column.ColumnChanged
  '// ** Argument Properties and Uses **
  '// args.Row("[FieldName]")
  '// args.Column, args.ProposedValue, args.Row
  '
  'Add Event Handler Code
  '
Â
  Dim edvPartInfo As EpiDataView = CType(oTrans.EpiDataViews("PartInfo"), EpiDataView)
  Dim NonStockItem As Boolean
  If edvPartInfo.HasRow then
   NonStockItem = edvPartInfo.dataView(edvPartInfo.Row)("NonStock")
  Else
   NonStockItem = False
  End If
Â
  Select Case args.Column.ColumnName
Â
   Case "PartNum"
    If NonStockItem and (Args.row("AvailableQuantity") > 0) then
     if Not(IgnorePNCFlag) then MsgBox(args.row("PartNum") & " is a NonStock Item with " & Args.row("AvailableQuantity") & " available in Stock", 64, "NonStock Part With Available Quantity")
     args.row("CheckBox19") = True
     args.row("CheckBox20") = True
     IgnorePNCFlag = False
    ElseIf Not(edvPartInfo..HasRow) and Not(IgnorePNCFlag) then
     MsgBox(args.row("PartNum") & " Does not exist in the Part Master Table. Please enter a new Item or use the Product Configurator", 16, "Invalid Part Number")
     IgnorePNCFlag = True
     if len(OrigPartNum) > 0 then
      args.row("PartNum") = OrigPartNum
     Else
      args.row("PartNum")=""
     End If
    Else
     args.Row("CheckBox19") = NonStockItem
     args.row("CheckBox20") = False
     IgnorePNCFlag = False
    End If
    Args.row("Number02") = 0..0
    if (args.row("UnitPrice") <> args.row("Number01")) and (trim(args.row("ShortChar01"))="" or trim(args.row("ShortChar01"))="Finished Good") then args.row("Number02") = 1.0
    If (args.row("UnitPrice") = 0 or args.row("Number01")=0) And (trim(args.row("ShortChar01"))="" or trim(args.row("ShortChar01"))="Finished Good") then Args.row("Number02") = 2.0
   Case "UnitPrice","DocUnitPrice"
    Args.row("Number02") = 0.0
    if (args.row("UnitPrice") <> args.row("Number01")) and (trim(args.row("ShortChar01"))="" or trim(args.row("ShortChar01"))="Finished Good") then args.row("Number02") = 1.0
    If (args.row("UnitPrice") = 0 or args.row("Number01")=0) And (trim(args.row("ShortChar01"))="" or trim(args.row("ShortChar01"))="Finished Good") then Args.row("Number02") = 2.0
   Case "SellingQuantity"
    Args.row("Number02") = 0.0
    if (args.row("UnitPrice") <> args.row("Number01")) and (trim(args.row("ShortChar01"))="" or trim(args.row("ShortChar01"))="Finished Good") then args.row("Number02") = 1.0
    If (args.row("UnitPrice") = 0 or args.row("Number01")=0) And (trim(args.row("ShortChar01"))="" or trim(args.row("ShortChar01"))="Finished Good") then Args.row("Number02") = 2.0
   Case Else
    IgnorePNCFlag = False
  End Select
Â
 End Sub



________________________________
From: melissa hietala <kevmel822@...>
To: vantage@yahoogroups.com
Sent: Thursday, December 18, 2008 11:32:23 AM
Subject: [Vantage] User Defined Tables


I'm just starting to look at user defined tables. What I would like to do is
use the table "UD01" and create a form based off this table.. I am able to get
the form created, but what I need to do is have the primary key (Key1) for the
user defined table be equal to an existing part in the system. So when a new
record is created in the user defined table, Key1 needs to match an existing
part in the system, if there isnt a matching part in the system I would need an
error message that would prevent the record from being created. Has anyone
attempted to do something like this? Any ideas?
Â
Thanks,

Dustin Biniek
UMC, Inc.
DustinB@ultramc. com

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






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

Thanks for your response! I was able to use bits and pieces of your code and I think I'm getting close but I'm still having an issue.. I first created a FKV of the Part table to the UD01 table. I then am using the following code inserted below. The problem arises in that when I enter a number into the UD01.Key1 field, the code entered in the "AfterFieldChange" event is triggered before the FKV part field is updated. I need to have this code look at the FKV value at the appropriate time. Any ideas!?!?

Thanks!!!

Dustin Biniek
UMC, Inc.
DustinB@...

Private Sub UD01_AfterFieldChange(ByVal sender As object, ByVal args As DataColumnChangeEventArgs) Handles UD01_Column.ColumnChanged
  '// ** Argument Properties and Uses **
  '// args.Row("[FieldName]")
  '// args.Column, args.ProposedValue, args.Row
  '
  'Add Event Handler Code
  '
    Dim edvTest As EpiDataView = CType(oTrans. EpiDataViews( "Test" ), EpiDataView)
         Â
       Select Case args.Column.ColumnName
Â
   Case "Key1"
          If edvTest.HasRow then
          Messagebox.show("There is a valid part")
          Else Messagebox.show("Invalid Part #")
          End If
  Â
           Case Else
Â
  End Select
Â
 End Sub
End ModuleÂ




________________________________
From: Steven Gotschall <sgotschall@...>
To: vantage@yahoogroups.com
Sent: Thursday, December 18, 2008 2:49:11 PM
Subject: Re: [Vantage] User Defined Tables


I haven't tried this with a UD table, but I do have a customization for Sales Order Entry that checks the part table and only allows parts to be entered into the Sales Order that is in the part table. First you have to create a foreign view to the part table. The custom code I have does other things, but here is the code and you should be able to pick out the parts you need:

 Private Sub OrderDtl_AfterField Change(ByVal sender As object, ByVal args As DataColumnChangeEve ntArgs) Handles OrderDtl_Column. ColumnChanged
  '// ** Argument Properties and Uses **
  '// args.Row("[FieldNam e]")
  '// args.Column, args.ProposedValue, args.Row
  '
  'Add Event Handler Code
  '
Â
  Dim edvPartInfo As EpiDataView = CType(oTrans. EpiDataViews( "PartInfo" ), EpiDataView)
  Dim NonStockItem As Boolean
  If edvPartInfo. HasRow then
   NonStockItem = edvPartInfo. dataView( edvPartInfo. Row)("NonStock" )
  Else
   NonStockItem = False
  End If
Â
  Select Case args.Column. ColumnName
Â
   Case "PartNum"
    If NonStockItem and (Args.row("Availabl eQuantity" ) > 0) then
     if Not(IgnorePNCFlag) then MsgBox(args. row("PartNum" ) & " is a NonStock Item with " & Args.row("Available Quantity" ) & " available in Stock", 64, "NonStock Part With Available Quantity")
     args.row("CheckBox1 9") = True
     args.row("CheckBox2 0") = True
     IgnorePNCFlag = False
    ElseIf Not(edvPartInfo. .HasRow) and Not(IgnorePNCFlag) then
     MsgBox(args. row("PartNum" ) & " Does not exist in the Part Master Table. Please enter a new Item or use the Product Configurator" , 16, "Invalid Part Number")
     IgnorePNCFlag = True
     if len(OrigPartNum) > 0 then
      args.row("PartNum" ) = OrigPartNum
     Else
      args.row("PartNum" )=""
     End If
    Else
     args.Row("CheckBox1 9") = NonStockItem
     args.row("CheckBox2 0") = False
     IgnorePNCFlag = False
    End If
    Args.row("Number02" ) = 0..0
    if (args.row("UnitPric e") <> args.row("Number01" )) and (trim(args.row( "ShortChar01" ))="" or trim(args.row( "ShortChar01" ))="Finished Good") then args.row("Number02" ) = 1.0
    If (args.row("UnitPric e") = 0 or args.row("Number01" )=0) And (trim(args.row( "ShortChar01" ))="" or trim(args.row( "ShortChar01" ))="Finished Good") then Args.row("Number02" ) = 2.0
   Case "UnitPrice", "DocUnitPrice"
    Args.row("Number02" ) = 0.0
    if (args.row("UnitPric e") <> args.row("Number01" )) and (trim(args.row( "ShortChar01" ))="" or trim(args.row( "ShortChar01" ))="Finished Good") then args.row("Number02" ) = 1.0
    If (args.row("UnitPric e") = 0 or args.row("Number01" )=0) And (trim(args.row( "ShortChar01" ))="" or trim(args.row( "ShortChar01" ))="Finished Good") then Args.row("Number02" ) = 2.0
   Case "SellingQuantity"
    Args.row("Number02" ) = 0.0
    if (args.row("UnitPric e") <> args.row("Number01" )) and (trim(args.row( "ShortChar01" ))="" or trim(args.row( "ShortChar01" ))="Finished Good") then args.row("Number02" ) = 1.0
    If (args.row("UnitPric e") = 0 or args.row("Number01" )=0) And (trim(args.row( "ShortChar01" ))="" or trim(args.row( "ShortChar01" ))="Finished Good") then Args.row("Number02" ) = 2.0
   Case Else
    IgnorePNCFlag = False
  End Select
Â
 End Sub

____________ _________ _________ __
From: melissa hietala <kevmel822@yahoo. com>
To: vantage@yahoogroups ..com
Sent: Thursday, December 18, 2008 11:32:23 AM
Subject: [Vantage] User Defined Tables

I'm just starting to look at user defined tables. What I would like to do is
use the table "UD01" and create a form based off this table.. I am able to get
the form created, but what I need to do is have the primary key (Key1) for the
user defined table be equal to an existing part in the system. So when a new
record is created in the user defined table, Key1 needs to match an existing
part in the system, if there isnt a matching part in the system I would need an
error message that would prevent the record from being created. Has anyone
attempted to do something like this? Any ideas?
Â
Thanks,

Dustin Biniek
UMC, Inc.
DustinB@ultramc. com

[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 didn't have that problem so I'm thinking it may be because of the nature of the UD table. I am just guessing here, but you may have to create the foreign key view using all 5 key fields of the UD table. When creating the FKV, try mapping the unused key fields to an unused character field in the part table. I'm relying on my faulty memory here, but I seem to recall something about haveing to use all key fields when creating a FKV to a UD table.




________________________________
From: melissa hietala <kevmel822@...>
To: vantage@yahoogroups.com
Sent: Friday, December 19, 2008 3:26:58 PM
Subject: Re: [Vantage] User Defined Tables


Steven -

Thanks for your response! I was able to use bits and pieces of your code and I think I'm getting close but I'm still having an issue.. I first created a FKV of the Part table to the UD01 table. I then am using the following code inserted below. The problem arises in that when I enter a number into the UD01.Key1 field, the code entered in the "AfterFieldChange" event is triggered before the FKV part field is updated. I need to have this code look at the FKV value at the appropriate time. Any ideas!?!?

Thanks!!!

Dustin Biniek
UMC, Inc.
DustinB@ultramc. com

Private Sub UD01_AfterFieldChan ge(ByVal sender As object, ByVal args As DataColumnChangeEve ntArgs) Handles UD01_Column. ColumnChanged
  '// ** Argument Properties and Uses **
  '// args.Row("[FieldNam e]")
  '// args.Column, args.ProposedValue, args.Row
  '
  'Add Event Handler Code
  '
    Dim edvTest As EpiDataView = CType(oTrans. EpiDataViews( "Test" ), EpiDataView)
         Â
       Select Case args.Column. ColumnName
Â
   Case "Key1"
          If edvTest.HasRow then
          Messagebox.show( "There is a valid part")
          Else Messagebox.show( "Invalid Part #")
          End If
  Â
           Case Else
Â
  End Select
Â
 End Sub
End ModuleÂ

____________ _________ _________ __
From: Steven Gotschall <sgotschall@yahoo. com>
To: vantage@yahoogroups .com
Sent: Thursday, December 18, 2008 2:49:11 PM
Subject: Re: [Vantage] User Defined Tables

I haven't tried this with a UD table, but I do have a customization for Sales Order Entry that checks the part table and only allows parts to be entered into the Sales Order that is in the part table. First you have to create a foreign view to the part table. The custom code I have does other things, but here is the code and you should be able to pick out the parts you need:

 Private Sub OrderDtl_AfterField Change(ByVal sender As object, ByVal args As DataColumnChangeEve ntArgs) Handles OrderDtl_Column. ColumnChanged
  '// ** Argument Properties and Uses **
  '// args.Row("[FieldNam e]")
  '// args.Column, args.ProposedValue, args.Row
  '
  'Add Event Handler Code
  '
Â
  Dim edvPartInfo As EpiDataView = CType(oTrans. EpiDataViews( "PartInfo" ), EpiDataView)
  Dim NonStockItem As Boolean
  If edvPartInfo. HasRow then
   NonStockItem = edvPartInfo. dataView( edvPartInfo. Row)("NonStock" )
  Else
   NonStockItem = False
  End If
Â
  Select Case args.Column. ColumnName
Â
   Case "PartNum"
    If NonStockItem and (Args.row("Availabl eQuantity" ) > 0) then
     if Not(IgnorePNCFlag) then MsgBox(args. row("PartNum" ) & " is a NonStock Item with " & Args.row("Available Quantity" ) & " available in Stock", 64, "NonStock Part With Available Quantity")
     args.row("CheckBox1 9") = True
     args.row("CheckBox2 0") = True
     IgnorePNCFlag = False
    ElseIf Not(edvPartInfo. .HasRow) and Not(IgnorePNCFlag) then
     MsgBox(args. row("PartNum" ) & " Does not exist in the Part Master Table. Please enter a new Item or use the Product Configurator" , 16, "Invalid Part Number")
     IgnorePNCFlag = True
     if len(OrigPartNum) > 0 then
      args.row("PartNum" ) = OrigPartNum
     Else
      args.row("PartNum" )=""
     End If
    Else
     args.Row("CheckBox1 9") = NonStockItem
     args.row("CheckBox2 0") = False
     IgnorePNCFlag = False
    End If
    Args.row("Number02" ) = 0..0
    if (args.row("UnitPric e") <> args.row("Number01" )) and (trim(args.row( "ShortChar01" ))="" or trim(args.row( "ShortChar01" ))="Finished Good") then args.row("Number02" ) = 1.0
    If (args.row("UnitPric e") = 0 or args.row("Number01" )=0) And (trim(args.row( "ShortChar01" ))="" or trim(args.row( "ShortChar01" ))="Finished Good") then Args.row("Number02" ) = 2.0
   Case "UnitPrice", "DocUnitPrice"
    Args.row("Number02" ) = 0.0
    if (args.row("UnitPric e") <> args..row("Number01" )) and (trim(args.row( "ShortChar01" ))="" or trim(args.row( "ShortChar01" ))="Finished Good") then args.row("Number02" ) = 1.0
    If (args.row("UnitPric e") = 0 or args.row("Number01" )=0) And (trim(args.row( "ShortChar01" ))="" or trim(args.row( "ShortChar01" ))="Finished Good") then Args.row("Number02" ) = 2.0
   Case "SellingQuantity"
    Args.row("Number02" ) = 0.0
    if (args.row("UnitPric e") <> args.row("Number01" )) and (trim(args.row( "ShortChar01" ))="" or trim(args.row( "ShortChar01" ))="Finished Good") then args.row("Number02" ) = 1.0
    If (args.row("UnitPric e") = 0 or args.row("Number01" )=0) And (trim(args.row( "ShortChar01" ))="" or trim(args.row( "ShortChar01" ))="Finished Good") then Args.row("Number02" ) = 2.0
   Case Else
    IgnorePNCFlag = False
  End Select
Â
 End Sub

____________ _________ _________ __
From: melissa hietala <kevmel822@yahoo. com>
To: vantage@yahoogroups ..com
Sent: Thursday, December 18, 2008 11:32:23 AM
Subject: [Vantage] User Defined Tables

I'm just starting to look at user defined tables. What I would like to do is
use the table "UD01" and create a form based off this table.. I am able to get
the form created, but what I need to do is have the primary key (Key1) for the
user defined table be equal to an existing part in the system. So when a new
record is created in the user defined table, Key1 needs to match an existing
part in the system, if there isnt a matching part in the system I would need an
error message that would prevent the record from being created. Has anyone
attempted to do something like this? Any ideas?
Â
Thanks,

Dustin Biniek
UMC, Inc.
DustinB@ultramc. com

[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]
You can also create a simple BPM to check the part # against the part
table for validity
.......................
--- In vantage@yahoogroups.com, Steven Gotschall <sgotschall@...>
wrote:
>
> I didn't have that problem so I'm thinking it may be because of the
nature of the UD table. I am just guessing here, but you may have to
create the foreign key view using all 5 key fields of the UD table.Â
When creating the FKV, try mapping the unused key fields to an unused
character field in the part table. I'm relying on my faulty memory
here, but I seem to recall something about haveing to use all key
fields when creating a FKV to a UD table.
>
>
>
>
> ________________________________
> From: melissa hietala <kevmel822@...>
> To: vantage@yahoogroups.com
> Sent: Friday, December 19, 2008 3:26:58 PM
> Subject: Re: [Vantage] User Defined Tables
>
>
> Steven -
>
> Thanks for your response! I was able to use bits and pieces of your
code and I think I'm getting close but I'm still having an issue.. I
first created a FKV of the Part table to the UD01 table. I then am
using the following code inserted below. The problem arises in that
when I enter a number into the UD01.Key1 field, the code entered in
the "AfterFieldChange" event is triggered before the FKV part field
is updated. I need to have this code look at the FKV value at the
appropriate time. Any ideas!?!?
>
> Thanks!!!
>
> Dustin Biniek
> UMC, Inc.
> DustinB@ultramc. com
>
> Private Sub UD01_AfterFieldChan ge(ByVal sender As object, ByVal
args As DataColumnChangeEve ntArgs) Handles UD01_Column. ColumnChanged
> Â Â '// ** Argument Properties and Uses **
> Â Â '// args.Row("[FieldNam e]")
> Â Â '// args.Column, args.ProposedValue, args.Row
> Â Â '
> Â Â 'Add Event Handler Code
> Â Â '
> Â Â Â Â Dim edvTest As EpiDataView = CType(oTrans. EpiDataViews
( "Test" ), EpiDataView)
> Â Â Â Â Â Â Â Â Â Â
> Â Â Â Â Â Â Â Select Case args.Column. ColumnName
> Â
> Â Â Â Case "Key1"
> Â Â Â Â Â Â Â Â Â Â If edvTest.HasRow then
> Â Â Â Â Â Â Â Â Â Â Messagebox.show( "There is a valid part")
> Â Â Â Â Â Â Â Â Â Â Else Messagebox.show( "Invalid Part #")
> Â Â Â Â Â Â Â Â Â Â End If
> Â Â Â
> Â Â Â Â Â Â Â Â Â Â Â Case Else
> Â
> Â Â End Select
> Â
> Â End Sub
> End ModuleÂ
>
> ____________ _________ _________ __
> From: Steven Gotschall <sgotschall@yahoo. com>
> To: vantage@yahoogroups .com
> Sent: Thursday, December 18, 2008 2:49:11 PM
> Subject: Re: [Vantage] User Defined Tables
>
> I haven't tried this with a UD table, but I do have a customization
for Sales Order Entry that checks the part table and only allows
parts to be entered into the Sales Order that is in the part table.Â
First you have to create a foreign view to the part table. The
custom code I have does other things, but here is the code and you
should be able to pick out the parts you need:
>
> Â Private Sub OrderDtl_AfterField Change(ByVal sender As object,
ByVal args As DataColumnChangeEve ntArgs) Handles OrderDtl_Column.
ColumnChanged
> Â Â '// ** Argument Properties and Uses **
> Â Â '// args.Row("[FieldNam e]")
> Â Â '// args.Column, args.ProposedValue, args.Row
> Â Â '
> Â Â 'Add Event Handler Code
> Â Â '
> Â
> Â Â Dim edvPartInfo As EpiDataView = CType(oTrans. EpiDataViews
( "PartInfo" ), EpiDataView)
> Â Â Dim NonStockItem As Boolean
> Â Â If edvPartInfo. HasRow then
> Â Â Â NonStockItem = edvPartInfo. dataView( edvPartInfo. Row)
("NonStock" )
> Â Â Else
> Â Â Â NonStockItem = False
> Â Â End If
> Â
> Â Â Select Case args.Column. ColumnName
> Â
> Â Â Â Case "PartNum"
> Â Â Â Â If NonStockItem and (Args.row("Availabl eQuantity" ) > 0) then
> Â Â Â Â Â if Not(IgnorePNCFlag) then MsgBox(args. row("PartNum" ) & " is
a NonStock Item with " & Args.row("Available Quantity" ) & "
available in Stock", 64, "NonStock Part With Available Quantity")
> Â Â Â Â Â args.row("CheckBox1 9") = True
> Â Â Â Â Â args.row("CheckBox2 0") = True
> Â Â Â Â Â IgnorePNCFlag = False
> Â Â Â Â ElseIf Not(edvPartInfo. .HasRow) and Not(IgnorePNCFlag) then
> Â Â Â Â Â MsgBox(args. row("PartNum" ) & " Does not exist in the Part
Master Table. Please enter a new Item or use the Product
Configurator" , 16, "Invalid Part Number")
> Â Â Â Â Â IgnorePNCFlag = True
> Â Â Â Â Â if len(OrigPartNum) > 0 then
> Â Â Â Â Â Â args.row("PartNum" ) = OrigPartNum
> Â Â Â Â Â Else
> Â Â Â Â Â Â args.row("PartNum" )=""
> Â Â Â Â Â End If
> Â Â Â Â Else
> Â Â Â Â Â args.Row("CheckBox1 9") = NonStockItem
> Â Â Â Â Â args.row("CheckBox2 0") = False
> Â Â Â Â Â IgnorePNCFlag = False
> Â Â Â Â End If
> Â Â Â Â Args.row("Number02" ) = 0..0
> Â Â Â Â if (args.row("UnitPric e") <> args.row("Number01" )) and (trim
(args.row( "ShortChar01" ))="" or trim(args.row( "ShortChar01" ))
="Finished Good") then args.row("Number02" ) = 1.0
> Â Â Â Â If (args.row("UnitPric e") = 0 or args.row("Number01" )=0) And
(trim(args.row( "ShortChar01" ))="" or trim(args.row( "ShortChar01" ))
="Finished Good") then Args.row("Number02" ) = 2.0
> Â Â Â Case "UnitPrice", "DocUnitPrice"
> Â Â Â Â Args.row("Number02" ) = 0.0
> Â Â Â Â if (args.row("UnitPric e") <> args..row("Number01" )) and (trim
(args.row( "ShortChar01" ))="" or trim(args.row( "ShortChar01" ))
="Finished Good") then args.row("Number02" ) = 1.0
> Â Â Â Â If (args.row("UnitPric e") = 0 or args.row("Number01" )=0) And
(trim(args.row( "ShortChar01" ))="" or trim(args.row( "ShortChar01" ))
="Finished Good") then Args.row("Number02" ) = 2.0
> Â Â Â Case "SellingQuantity"
> Â Â Â Â Args.row("Number02" ) = 0.0
> Â Â Â Â if (args.row("UnitPric e") <> args.row("Number01" )) and (trim
(args.row( "ShortChar01" ))="" or trim(args.row( "ShortChar01" ))
="Finished Good") then args.row("Number02" ) = 1.0
> Â Â Â Â If (args.row("UnitPric e") = 0 or args.row("Number01" )=0) And
(trim(args.row( "ShortChar01" ))="" or trim(args.row( "ShortChar01" ))
="Finished Good") then Args.row("Number02" ) = 2.0
> Â Â Â Case Else
> Â Â Â Â IgnorePNCFlag = False
> Â Â End Select
> Â
> Â End Sub
>
> ____________ _________ _________ __
> From: melissa hietala <kevmel822@yahoo. com>
> To: vantage@yahoogroups ..com
> Sent: Thursday, December 18, 2008 11:32:23 AM
> Subject: [Vantage] User Defined Tables
>
> I'm just starting to look at user defined tables. What I would
like to do is
> use the table "UD01" and create a form based off this table.. I am
able to get
> the form created, but what I need to do is have the primary key
(Key1) for the
> user defined table be equal to an existing part in the system. So
when a new
> record is created in the user defined table, Key1 needs to match an
existing
> part in the system, if there isnt a matching part in the system I
would need an
> error message that would prevent the record from being created.Â
Has anyone
> attempted to do something like this? Any ideas?
> Â
> Thanks,
>
> Dustin Biniek
> UMC, Inc.
> DustinB@ultramc. com
>
> [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 had considered using a BPM to check for the validity of the part #, but I didn't realize this was possible. Do you know how I would actually set this up?

Thanks,
 Dustin Biniek
UMC, Inc.
DustinB@...




________________________________
From: rlsand50 <bob.sanders@...>
To: vantage@yahoogroups.com
Sent: Friday, December 19, 2008 4:17:42 PM
Subject: [Vantage] Re: User Defined Tables


You can also create a simple BPM to check the part # against the part
table for validity
............ ......... ..
--- In vantage@yahoogroups .com, Steven Gotschall <sgotschall@ ...>
wrote:
>
> I didn't have that problem so I'm thinking it may be because of the
nature of the UD table. I am just guessing here, but you may have to
create the foreign key view using all 5 key fields of the UD table.Â
When creating the FKV, try mapping the unused key fields to an unused
character field in the part table. I'm relying on my faulty memory
here, but I seem to recall something about haveing to use all key
fields when creating a FKV to a UD table.
>
>
>
>
> ____________ _________ _________ __
> From: melissa hietala <kevmel822@. ..>
> To: vantage@yahoogroups .com
> Sent: Friday, December 19, 2008 3:26:58 PM
> Subject: Re: [Vantage] User Defined Tables
>
>
> Steven -
>
> Thanks for your response! I was able to use bits and pieces of your
code and I think I'm getting close but I'm still having an issue.. I
first created a FKV of the Part table to the UD01 table. I then am
using the following code inserted below. The problem arises in that
when I enter a number into the UD01.Key1 field, the code entered in
the "AfterFieldChange" event is triggered before the FKV part field
is updated. I need to have this code look at the FKV value at the
appropriate time. Any ideas!?!?
>
> Thanks!!!
>
> Dustin Biniek
> UMC, Inc.
> DustinB@ultramc. com
>
> Private Sub UD01_AfterFieldChan ge(ByVal sender As object, ByVal
args As DataColumnChangeEve ntArgs) Handles UD01_Column. ColumnChanged
> Â Â '// ** Argument Properties and Uses **
> Â Â '// args.Row("[FieldNam e]")
> Â Â '// args.Column, args.ProposedValue, args.Row
> Â Â '
> Â Â 'Add Event Handler Code
> Â Â '
> Â Â Â Â Dim edvTest As EpiDataView = CType(oTrans. EpiDataViews
( "Test" ), EpiDataView)
> Â Â Â Â Â Â Â Â Â Â
> Â Â Â Â Â Â Â Select Case args.Column. ColumnName
> Â
> Â Â Â Case "Key1"
> Â Â Â Â Â Â Â Â Â Â If edvTest.HasRow then
> Â Â Â Â Â Â Â Â Â Â Messagebox.show( "There is a valid part")
> Â Â Â Â Â Â Â Â Â Â Else Messagebox.show( "Invalid Part #")
> Â Â Â Â Â Â Â Â Â Â End If
> Â Â Â
> Â Â Â Â Â Â Â Â Â Â Â Case Else
> Â
> Â Â End Select
> Â
> Â End Sub
> End ModuleÂ
>
> ____________ _________ _________ __
> From: Steven Gotschall <sgotschall@ yahoo. com>
> To: vantage@yahoogroups .com
> Sent: Thursday, December 18, 2008 2:49:11 PM
> Subject: Re: [Vantage] User Defined Tables
>
> I haven't tried this with a UD table, but I do have a customization
for Sales Order Entry that checks the part table and only allows
parts to be entered into the Sales Order that is in the part table.Â
First you have to create a foreign view to the part table. The
custom code I have does other things, but here is the code and you
should be able to pick out the parts you need:
>
> Â Private Sub OrderDtl_AfterField Change(ByVal sender As object,
ByVal args As DataColumnChangeEve ntArgs) Handles OrderDtl_Column.
ColumnChanged
> Â Â '// ** Argument Properties and Uses **
> Â Â '// args.Row("[FieldNam e]")
> Â Â '// args.Column, args.ProposedValue, args.Row
> Â Â '
> Â Â 'Add Event Handler Code
> Â Â '
> Â
> Â Â Dim edvPartInfo As EpiDataView = CType(oTrans. EpiDataViews
( "PartInfo" ), EpiDataView)
> Â Â Dim NonStockItem As Boolean
> Â Â If edvPartInfo. HasRow then
> Â Â Â NonStockItem = edvPartInfo. dataView( edvPartInfo. Row)
("NonStock" )
> Â Â Else
> Â Â Â NonStockItem = False
> Â Â End If
> Â
> Â Â Select Case args.Column. ColumnName
> Â
> Â Â Â Case "PartNum"
> Â Â Â Â If NonStockItem and (Args.row("Availabl eQuantity" ) > 0) then
> Â Â Â Â Â if Not(IgnorePNCFlag) then MsgBox(args. row("PartNum" ) & " is
a NonStock Item with " & Args.row("Available Quantity" ) & "
available in Stock", 64, "NonStock Part With Available Quantity")
> Â Â Â Â Â args.row("CheckBox1 9") = True
> Â Â Â Â Â args.row("CheckBox2 0") = True
> Â Â Â Â Â IgnorePNCFlag = False
> Â Â Â Â ElseIf Not(edvPartInfo. .HasRow) and Not(IgnorePNCFlag) then
> Â Â Â Â Â MsgBox(args. row("PartNum" ) & " Does not exist in the Part
Master Table. Please enter a new Item or use the Product
Configurator" , 16, "Invalid Part Number")
> Â Â Â Â Â IgnorePNCFlag = True
> Â Â Â Â Â if len(OrigPartNum) > 0 then
> Â Â Â Â Â Â args..row("PartNum" ) = OrigPartNum
> Â Â Â Â Â Else
> Â Â Â Â Â Â args.row("PartNum" )=""
> Â Â Â Â Â End If
> Â Â Â Â Else
> Â Â Â Â Â args.Row("CheckBox1 9") = NonStockItem
> Â Â Â Â Â args.row("CheckBox2 0") = False
> Â Â Â Â Â IgnorePNCFlag = False
> Â Â Â Â End If
> Â Â Â Â Args.row("Number02" ) = 0..0
> Â Â Â Â if (args.row("UnitPric e") <> args.row("Number01" )) and (trim
(args.row( "ShortChar01" ))="" or trim(args.row( "ShortChar01" ))
="Finished Good") then args.row("Number02" ) = 1.0
> Â Â Â Â If (args.row("UnitPric e") = 0 or args.row("Number01" )=0) And
(trim(args.row( "ShortChar01" ))="" or trim(args.row( "ShortChar01" ))
="Finished Good") then Args.row("Number02" ) = 2.0
> Â Â Â Case "UnitPrice", "DocUnitPrice"
> Â Â Â Â Args.row("Number02" ) = 0.0
> Â Â Â Â if (args.row("UnitPric e") <> args..row("Number01 " )) and (trim
(args.row( "ShortChar01" ))="" or trim(args.row( "ShortChar01" ))
="Finished Good") then args.row("Number02" ) = 1.0
> Â Â Â Â If (args.row("UnitPric e") = 0 or args.row("Number01" )=0) And
(trim(args.row( "ShortChar01" ))="" or trim(args.row( "ShortChar01" ))
="Finished Good") then Args.row("Number02" ) = 2.0
> Â Â Â Case "SellingQuantity"
> Â Â Â Â Args.row("Number02" ) = 0.0
> Â Â Â Â if (args.row("UnitPric e") <> args.row("Number01" )) and (trim
(args.row( "ShortChar01" ))="" or trim(args.row( "ShortChar01" ))
="Finished Good") then args.row("Number02" ) = 1.0
> Â Â Â Â If (args.row("UnitPric e") = 0 or args.row("Number01" )=0) And
(trim(args.row( "ShortChar01" ))="" or trim(args.row( "ShortChar01" ))
="Finished Good") then Args.row("Number02" ) = 2.0
> Â Â Â Case Else
> Â Â Â Â IgnorePNCFlag = False
> Â Â End Select
> Â
> Â End Sub
>
> ____________ _________ _________ __
> From: melissa hietala <kevmel822@yahoo. com>
> To: vantage@yahoogroups ..com
> Sent: Thursday, December 18, 2008 11:32:23 AM
> Subject: [Vantage] User Defined Tables
>
> I'm just starting to look at user defined tables. What I would
like to do is
> use the table "UD01" and create a form based off this table.. I am
able to get
> the form created, but what I need to do is have the primary key
(Key1) for the
> user defined table be equal to an existing part in the system. So
when a new
> record is created in the user defined table, Key1 needs to match an
existing
> part in the system, if there isnt a matching part in the system I
would need an
> error message that would prevent the record from being created.Â
Has anyone
> attempted to do something like this? Any ideas?
> Â
> Thanks,
>
> Dustin Biniek
> UMC, Inc.
> DustinB@ultramc. com
>
> [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]
Nevermind....I got it figured out. Thanks so much for your help!
Â
Dustin Biniek
UMC, Inc.
DustinB@...




________________________________
From: melissa hietala <kevmel822@...>
To: vantage@yahoogroups.com
Sent: Monday, December 22, 2008 1:21:45 PM
Subject: Re: [Vantage] Re: User Defined Tables


I had considered using a BPM to check for the validity of the part #, but I didn't realize this was possible. Do you know how I would actually set this up?

Thanks,
 Dustin Biniek
UMC, Inc.
DustinB@ultramc. com

____________ _________ _________ __
From: rlsand50 <bob.sanders@ kerusso.com>
To: vantage@yahoogroups .com
Sent: Friday, December 19, 2008 4:17:42 PM
Subject: [Vantage] Re: User Defined Tables

You can also create a simple BPM to check the part # against the part
table for validity
............ .......... ..
--- In vantage@yahoogroups .com, Steven Gotschall <sgotschall@ ...>
wrote:
>
> I didn't have that problem so I'm thinking it may be because of the
nature of the UD table. I am just guessing here, but you may have to
create the foreign key view using all 5 key fields of the UD table.Â
When creating the FKV, try mapping the unused key fields to an unused
character field in the part table. I'm relying on my faulty memory
here, but I seem to recall something about haveing to use all key
fields when creating a FKV to a UD table.
>
>
>
>
> ____________ _________ _________ __
> From: melissa hietala <kevmel822@.. ..>
> To: vantage@yahoogroups .com
> Sent: Friday, December 19, 2008 3:26:58 PM
> Subject: Re: [Vantage] User Defined Tables
>
>
> Steven -
>
> Thanks for your response! I was able to use bits and pieces of your
code and I think I'm getting close but I'm still having an issue.. I
first created a FKV of the Part table to the UD01 table. I then am
using the following code inserted below. The problem arises in that
when I enter a number into the UD01.Key1 field, the code entered in
the "AfterFieldChange" event is triggered before the FKV part field
is updated. I need to have this code look at the FKV value at the
appropriate time. Any ideas!?!?
>
> Thanks!!!
>
> Dustin Biniek
> UMC, Inc.
> DustinB@ultramc. com
>
> Private Sub UD01_AfterFieldChan ge(ByVal sender As object, ByVal
args As DataColumnChangeEve ntArgs) Handles UD01_Column. ColumnChanged
> Â Â '// ** Argument Properties and Uses **
> Â Â '// args.Row("[FieldNam e]")
> Â Â '// args.Column, args.ProposedValue, args.Row
> Â Â '
> Â Â 'Add Event Handler Code
> Â Â '
> Â Â Â Â Dim edvTest As EpiDataView = CType(oTrans. EpiDataViews
( "Test" ), EpiDataView)
> Â Â Â Â Â Â Â Â Â Â
> Â Â Â Â Â Â Â Select Case args.Column. ColumnName
> Â
> Â Â Â Case "Key1"
> Â Â Â Â Â Â Â Â Â Â If edvTest.HasRow then
> Â Â Â Â Â Â Â Â Â Â Messagebox.show( "There is a valid part")
> Â Â Â Â Â Â Â Â Â Â Else Messagebox.show( "Invalid Part #")
> Â Â Â Â Â Â Â Â Â Â End If
> Â Â Â
> Â Â Â Â Â Â Â Â Â Â Â Case Else
> Â
> Â Â End Select
> Â
> Â End Sub
> End ModuleÂ
>
> ____________ _________ _________ __
> From: Steven Gotschall <sgotschall@ yahoo. com>
> To: vantage@yahoogroups .com
> Sent: Thursday, December 18, 2008 2:49:11 PM
> Subject: Re: [Vantage] User Defined Tables
>
> I haven't tried this with a UD table, but I do have a customization
for Sales Order Entry that checks the part table and only allows
parts to be entered into the Sales Order that is in the part table.Â
First you have to create a foreign view to the part table. The
custom code I have does other things, but here is the code and you
should be able to pick out the parts you need:
>
> Â Private Sub OrderDtl_AfterField Change(ByVal sender As object,
ByVal args As DataColumnChangeEve ntArgs) Handles OrderDtl_Column.
ColumnChanged
> Â Â '// ** Argument Properties and Uses **
> Â Â '// args.Row("[FieldNam e]")
> Â Â '// args.Column, args.ProposedValue, args.Row
> Â Â '
> Â Â 'Add Event Handler Code
> Â Â '
> Â
> Â Â Dim edvPartInfo As EpiDataView = CType(oTrans. EpiDataViews
( "PartInfo" ), EpiDataView)
> Â Â Dim NonStockItem As Boolean
> Â Â If edvPartInfo. HasRow then
> Â Â Â NonStockItem = edvPartInfo. dataView( edvPartInfo. Row)
("NonStock" )
> Â Â Else
> Â Â Â NonStockItem = False
> Â Â End If
> Â
> Â Â Select Case args.Column. ColumnName
> Â
> Â Â Â Case "PartNum"
> Â Â Â Â If NonStockItem and (Args.row("Availabl eQuantity" ) > 0) then
> Â Â Â Â Â if Not(IgnorePNCFlag) then MsgBox(args. row("PartNum" ) & " is
a NonStock Item with " & Args.row("Available Quantity" ) & "
available in Stock", 64, "NonStock Part With Available Quantity")
> Â Â Â Â Â args.row("CheckBox1 9") = True
> Â Â Â Â Â args.row("CheckBox2 0") = True
> Â Â Â Â Â IgnorePNCFlag = False
> Â Â Â Â ElseIf Not(edvPartInfo. .HasRow) and Not(IgnorePNCFlag) then
> Â Â Â Â Â MsgBox(args. row("PartNum" ) & " Does not exist in the Part
Master Table. Please enter a new Item or use the Product
Configurator" , 16, "Invalid Part Number")
> Â Â Â Â Â IgnorePNCFlag = True
> Â Â Â Â Â if len(OrigPartNum) > 0 then
> Â Â Â Â Â Â args..row("PartNum" ) = OrigPartNum
> Â Â Â Â Â Else
> Â Â Â Â Â Â args.row("PartNum" )=""
> Â Â Â Â Â End If
> Â Â Â Â Else
> Â Â Â Â Â args.Row("CheckBox1 9") = NonStockItem
> Â Â Â Â Â args.row("CheckBox2 0") = False
> Â Â Â Â Â IgnorePNCFlag = False
> Â Â Â Â End If
> Â Â Â Â Args.row("Number02" ) = 0..0
> Â Â Â Â if (args.row("UnitPric e") <> args.row("Number01" )) and (trim
(args.row( "ShortChar01" ))="" or trim(args.row( "ShortChar01" ))
="Finished Good") then args.row("Number02" ) = 1.0
> Â Â Â Â If (args.row("UnitPric e") = 0 or args.row("Number01" )=0) And
(trim(args.row( "ShortChar01" ))="" or trim(args.row( "ShortChar01" ))
="Finished Good") then Args.row("Number02" ) = 2.0
> Â Â Â Case "UnitPrice", "DocUnitPrice"
> Â Â Â Â Args.row("Number02" ) = 0.0
> Â Â Â Â if (args.row("UnitPric e") <> args..row("Number01 " )) and (trim
(args.row( "ShortChar01" ))="" or trim(args.row( "ShortChar01" ))
="Finished Good") then args.row("Number02" ) = 1.0
> Â Â Â Â If (args.row("UnitPric e") = 0 or args.row("Number01" )=0) And
(trim(args.row( "ShortChar01" ))="" or trim(args.row( "ShortChar01" ))
="Finished Good") then Args.row("Number02" ) = 2.0
> Â Â Â Case "SellingQuantity"
> Â Â Â Â Args.row("Number02" ) = 0.0
> Â Â Â Â if (args.row("UnitPric e") <> args.row("Number01" )) and (trim
(args.row( "ShortChar01" ))="" or trim(args.row( "ShortChar01" ))
="Finished Good") then args.row("Number02" ) = 1.0
> Â Â Â Â If (args.row("UnitPric e") = 0 or args.row("Number01" )=0) And
(trim(args.row( "ShortChar01" ))="" or trim(args.row( "ShortChar01" ))
="Finished Good") then Args.row("Number02" ) = 2.0
> Â Â Â Case Else
> Â Â Â Â IgnorePNCFlag = False
> Â Â End Select
> Â
> Â End Sub
>
> ____________ _________ _________ __
> From: melissa hietala <kevmel822@yahoo. com>
> To: vantage@yahoogroups ..com
> Sent: Thursday, December 18, 2008 11:32:23 AM
> Subject: [Vantage] User Defined Tables
>
> I'm just starting to look at user defined tables. What I would
like to do is
> use the table "UD01" and create a form based off this table.. I am
able to get
> the form created, but what I need to do is have the primary key
(Key1) for the
> user defined table be equal to an existing part in the system. So
when a new
> record is created in the user defined table, Key1 needs to match an
existing
> part in the system, if there isnt a matching part in the system I
would need an
> error message that would prevent the record from being created.Â
Has anyone
> attempted to do something like this? Any ideas?
> Â
> Thanks,
>
> Dustin Biniek
> UMC, Inc.
> DustinB@ultramc. com
>
> [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]

__._,_..___
Messages in this topic (6) Reply (via web post) | Start a new topic
Messages | Files | Photos | Database | Members
Useful links for the Yahoo!Groups Vantage Board are: ( Note:Â You must have already linked your email address to a yahoo id to enable access. )
(1) To access the Files Section of our Yahoo!Group for Report Builder and Crystal Reports and other 'goodies', please goto: http://groups.yahoo.com/group/vantage/files/.%c2%a0
(2) To search through old msg's goto: http://groups.yahoo.com/group/vantage/messages
(3) To view links to Vendors that provide Vantage services goto: http://groups.yahoo.com/group/vantage/links
MARKETPLACE

________________________________
From kitchen basics to easy recipes - join the Group from Kraft Foods

Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch format to Traditional
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe
Recent ActivityVisit Your Group
New business?
Get new customers.
List your web site
in Yahoo! Search.
Y! Messenger
All together now
Host a free online
conference on IM.
John McEnroe
on Yahoo! Groups
Join him for the
10 Day Challenge.
.





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



I'm collecting some information on user defined tables for another person
getting ready to do some heavy customization using them.



1. Is there a list of available UD tables somewhere?

a. Is there a list of fields available in each one of the tables?

2. Can a Foreign Key Constraint be setup between the UD table and an
already existing table such as OrderHed or OrderDTL?
3. We are going to be adding a tab to an already existing App to use
the UD table are we limited to using tables already associated to the app or
can we go select to use a UD Table.
4. What is the difference in the UD tables labeled UD01 and UD100 and
UD100A?



~Charlie





[Non-text portions of this message have been removed]
1. The list of be from the Data Dictionary. The list of fields would also be listed there.

2. Yes there can be a Foreign Key Contraint. I am using several of those already.

3. Not exactly sure of your question here. If you are asking if you can have tabs associated with a UD table within an existing application then the answer is yes. I have several applications where we have tabs associated with a specific UD table.

4. UD table UD01 to UD40 are stand alone tables. UD100/A to UD110/A are header detail tables. You will also find the UD01 to UD40 have more available test fields than UD100 to UD110.

Charles Carden
IT Manager
Manitex, Inc.
Georgetown, Texas
----- Original Message -----
From: Charlie Wilson
To: vantage@yahoogroups.com
Sent: Wednesday, January 14, 2009 2:06 PM
Subject: [Vantage] User Defined Tables


All,

I'm collecting some information on user defined tables for another person
getting ready to do some heavy customization using them.

1. Is there a list of available UD tables somewhere?

a. Is there a list of fields available in each one of the tables?

2. Can a Foreign Key Constraint be setup between the UD table and an
already existing table such as OrderHed or OrderDTL?
3. We are going to be adding a tab to an already existing App to use
the UD table are we limited to using tables already associated to the app or
can we go select to use a UD Table.
4. What is the difference in the UD tables labeled UD01 and UD100 and
UD100A?

~Charlie

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





[Non-text portions of this message have been removed]
Thanks for the answers.

Can you tell me how to set up the constraints?

~Charlie
________________________________________
From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf Of
Charles Carden
Sent: Wednesday, January 14, 2009 3:37 PM
To: vantage@yahoogroups.com
Subject: Re: [Vantage] User Defined Tables

1. The list of be from the Data Dictionary. The list of fields would also be
listed there.

2. Yes there can be a Foreign Key Contraint. I am using several of those
already.

3. Not exactly sure of your question here. If you are asking if you can have
tabs associated with a UD table within an existing application then the
answer is yes. I have several applications where we have tabs associated
with a specific UD table.

4. UD table UD01 to UD40 are stand alone tables. UD100/A to UD110/A are
header detail tables. You will also find the UD01 to UD40 have more
available test fields than UD100 to UD110.

Charles Carden
IT Manager
Manitex, Inc.
Georgetown, Texas
----- Original Message -----
From: Charlie Wilson
To: vantage@yahoogroups.com
Sent: Wednesday, January 14, 2009 2:06 PM
Subject: [Vantage] User Defined Tables

All,

I'm collecting some information on user defined tables for another person
getting ready to do some heavy customization using them.

1. Is there a list of available UD tables somewhere?

a. Is there a list of fields available in each one of the tables?

2. Can a Foreign Key Constraint be setup between the UD table and an
already existing table such as OrderHed or OrderDTL?
3. We are going to be adding a tab to an already existing App to use
the UD table are we limited to using tables already associated to the app or
can we go select to use a UD Table.
4. What is the difference in the UD tables labeled UD01 and UD100 and
UD100A?

~Charlie

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

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

Data Dictionary. That's the only resource I know of.

The UD tables with "A" are meant to have a parent-child relationship.



Vic


-----Original Message-----
From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf
Of Charlie Wilson
Sent: Wednesday, January 14, 2009 3:06 PM
To: vantage@yahoogroups.com
Subject: [Vantage] User Defined Tables

All,



I'm collecting some information on user defined tables for another
person
getting ready to do some heavy customization using them.



1. Is there a list of available UD tables somewhere?

a. Is there a list of fields available in each one of the tables?

2. Can a Foreign Key Constraint be setup between the UD table and
an
already existing table such as OrderHed or OrderDTL?
3. We are going to be adding a tab to an already existing App to
use
the UD table are we limited to using tables already associated to the
app or
can we go select to use a UD Table.
4. What is the difference in the UD tables labeled UD01 and UD100
and
UD100A?



~Charlie





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


------------------------------------

Useful links for the Yahoo!Groups Vantage Board are: ( Note: You must
have already linked your email address to a yahoo id to enable access. )
(1) To access the Files Section of our Yahoo!Group for Report Builder
and Crystal Reports and other 'goodies', please goto:
http://groups.yahoo.com/group/vantage/files/.
(2) To search through old msg's goto:
http://groups.yahoo.com/group/vantage/messages
(3) To view links to Vendors that provide Vantage services goto:
http://groups.yahoo.com/group/vantage/linksYahoo! Groups Links
Can some please enlighten me to the location of the 120 user defined
tables that reside in Vantage?



Thanks,

Blake Clemens

IT Systems Engineer

Delmarva Millwork Corporation

(800) 360-2364 x132













***Privileged & Confidential***



This email, together with any attachments, is intended for the named
recipient(s) only and may contain privileged and confidential
information. If received in error, please inform the sender as quickly
as possible and delete this email and any copies. If not an intended
recipient of this email, you must not copy, distribute or rely on it,
and any form of disclosure, modification, distribution and/or
publication of this email is prohibited.

Unless stated otherwise, this email represents only the views of the
sender and not the views of Delmarva Millwork Corporation.





[Non-text portions of this message have been removed]
Not exactly sure what you are asking here but if you are asking where do you find them in the Vantage menu system, the answer is you don't. They only exist as tables in your Progress (or MSSQL) database along with some business/UI objects used to access them. You need to create menu entries that point to the right dll like: C:\Client803\client\Epicor.Mfg.UI.UD01Entry..dll. But this alone won't get you very far. You'll need to create custom forms and coding to tie them into whatever you need to do with them.




________________________________
From: Blake Clemens <blake.clemens@...>
To: vantage@yahoogroups.com
Sent: Thursday, February 19, 2009 4:51:58 PM
Subject: [Vantage] User Defined Tables


Can some please enlighten me to the location of the 120 user defined
tables that reside in Vantage?

Thanks,

Blake Clemens

IT Systems Engineer

Delmarva Millwork Corporation

(800) 360-2364 x132

***Privileged & Confidential* **

This email, together with any attachments, is intended for the named
recipient(s) only and may contain privileged and confidential
information. If received in error, please inform the sender as quickly
as possible and delete this email and any copies. If not an intended
recipient of this email, you must not copy, distribute or rely on it,
and any form of disclosure, modification, distribution and/or
publication of this email is prohibited.

Unless stated otherwise, this email represents only the views of the
sender and not the views of Delmarva Millwork Corporation.

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







[Non-text portions of this message have been removed]
Thanks Steven. That's what I needed to hear.



Thanks,

Blake Clemens

DMC







________________________________

From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf
Of Steven Gotschall
Sent: Thursday, February 19, 2009 5:27 PM
To: vantage@yahoogroups.com
Subject: Re: [Vantage] User Defined Tables



Not exactly sure what you are asking here but if you are asking where do
you find them in the Vantage menu system, the answer is you don't. They
only exist as tables in your Progress (or MSSQL) database along with
some business/UI objects used to access them. You need to create menu
entries that point to the right dll like:
C:\Client803\client\Epicor.Mfg.UI.UD01Entry..dll. But this alone won't
get you very far. You'll need to create custom forms and coding to tie
them into whatever you need to do with them.

________________________________
From: Blake Clemens <blake.clemens@...
<mailto:blake.clemens%40d-m-c.com> >
To: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
Sent: Thursday, February 19, 2009 4:51:58 PM
Subject: [Vantage] User Defined Tables

Can some please enlighten me to the location of the 120 user defined
tables that reside in Vantage?

Thanks,

Blake Clemens

IT Systems Engineer

Delmarva Millwork Corporation

(800) 360-2364 x132

***Privileged & Confidential* **

This email, together with any attachments, is intended for the named
recipient(s) only and may contain privileged and confidential
information. If received in error, please inform the sender as quickly
as possible and delete this email and any copies. If not an intended
recipient of this email, you must not copy, distribute or rely on it,
and any form of disclosure, modification, distribution and/or
publication of this email is prohibited.

Unless stated otherwise, this email represents only the views of the
sender and not the views of Delmarva Millwork Corporation.

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

I am trying to utilize one of the user defined tables, UD02.
I am getting an error message: "Key1 must be unique; Key2 must be unique; Key3 must be unique; Key4 must be unique; Key5 must be unique"

I do not care about uniqueness of the data nor I care about these Keys.
Do I have to use them? Do UD table values have to be unique with these keys?

Any enlightening appreciated
Key1 is absolutely mandatory. What are you using the table for? If you are just using it to house data and don't want to relate the data to anything else in Epicor you can just auto-increment Key1 every time you create a new record, then just leave the other 4 keys null. It all depends on what you are trying to accomplish....

Drew

--- In vantage@yahoogroups.com, "abcdefgsaga" <Adam.Gwizdz@...> wrote:
>
> Hello Group
>
> I am trying to utilize one of the user defined tables, UD02.
> I am getting an error message: "Key1 must be unique; Key2 must be unique; Key3 must be unique; Key4 must be unique; Key5 must be unique"
>
> I do not care about uniqueness of the data nor I care about these Keys.
> Do I have to use them? Do UD table values have to be unique with these keys?
>
> Any enlightening appreciated
>
auto-increment will do it but don't know how to do it in vb.net (:

could you help?

by the way I am in Vantage 8.03.305L

--- In vantage@yahoogroups.com, "drew.pete" <drew.pete@...> wrote:
>
> Key1 is absolutely mandatory. What are you using the table for? If you are just using it to house data and don't want to relate the data to anything else in Epicor you can just auto-increment Key1 every time you create a new record, then just leave the other 4 keys null. It all depends on what you are trying to accomplish....
>
> Drew
>
> --- In vantage@yahoogroups.com, "abcdefgsaga" <Adam.Gwizdz@> wrote:
> >
> > Hello Group
> >
> > I am trying to utilize one of the user defined tables, UD02.
> > I am getting an error message: "Key1 must be unique; Key2 must be unique; Key3 must be unique; Key4 must be unique; Key5 must be unique"
> >
> > I do not care about uniqueness of the data nor I care about these Keys.
> > Do I have to use them? Do UD table values have to be unique with these keys?
> >
> > Any enlightening appreciated
> >
>
x = select max(key1) from ud01
x = x + 1
use x in your insert statement as value for key1 in the inserted record.





________________________________
From: abcdefgsaga <Adam.Gwizdz@...>
To: vantage@yahoogroups.com
Sent: Wed, January 20, 2010 1:08:09 PM
Subject: [Vantage] Re: User Defined Tables


auto-increment will do it but don't know how to do it in vb.net (:

could you help?

by the way I am in Vantage 8.03.305L

--- In vantage@yahoogroups .com, "drew.pete" <drew.pete@. ..> wrote:
>
> Key1 is absolutely mandatory. What are you using the table for? If you are just using it to house data and don't want to relate the data to anything else in Epicor you can just auto-increment Key1 every time you create a new record, then just leave the other 4 keys null. It all depends on what you are trying to accomplish.. ..
>
> Drew
>
> --- In vantage@yahoogroups .com, "abcdefgsaga" <Adam.Gwizdz@ > wrote:
> >
> > Hello Group
> >
> > I am trying to utilize one of the user defined tables, UD02.
> > I am getting an error message: "Key1 must be unique; Key2 must be unique; Key3 must be unique; Key4 must be unique; Key5 must be unique"
> >
> > I do not care about uniqueness of the data nor I care about these Keys.
> > Do I have to use them? Do UD table values have to be unique with these keys?
> >
> > Any enlightening appreciated
> >
>







[Non-text portions of this message have been removed]
Thanks for help.

I used System.DateTime.Now.ToString with the combination of other keys.

--- In vantage@yahoogroups.com, Tony Hughes <thughes281@...> wrote:
>
> x = select max(key1) from ud01
> x = x + 1
> use x in your insert statement as value for key1 in the inserted record.
>
>
>
>
>
> ________________________________
> From: abcdefgsaga <Adam.Gwizdz@...>
> To: vantage@yahoogroups.com
> Sent: Wed, January 20, 2010 1:08:09 PM
> Subject: [Vantage] Re: User Defined Tables
>
>
> auto-increment will do it but don't know how to do it in vb.net (:
>
> could you help?
>
> by the way I am in Vantage 8.03.305L
>
> --- In vantage@yahoogroups .com, "drew.pete" <drew.pete@ ..> wrote:
> >
> > Key1 is absolutely mandatory. What are you using the table for? If you are just using it to house data and don't want to relate the data to anything else in Epicor you can just auto-increment Key1 every time you create a new record, then just leave the other 4 keys null. It all depends on what you are trying to accomplish.. ..
> >
> > Drew
> >
> > --- In vantage@yahoogroups .com, "abcdefgsaga" <Adam.Gwizdz@ > wrote:
> > >
> > > Hello Group
> > >
> > > I am trying to utilize one of the user defined tables, UD02.
> > > I am getting an error message: "Key1 must be unique; Key2 must be unique; Key3 must be unique; Key4 must be unique; Key5 must be unique"
> > >
> > > I do not care about uniqueness of the data nor I care about these Keys.
> > > Do I have to use them? Do UD table values have to be unique with these keys?
> > >
> > > Any enlightening appreciated
> > >
> >
>
>
>
>
>
>
>
> [Non-text portions of this message have been removed]
>