Declare Private with Events edv[your-alias] as Epidataview for whatever table you want txtEpiCustom2.text to update.
You'll need to initilize it: edv[your-alias] = CType(oTrans.EpiDataViews("[tablename]"), EpiDataView) & do the housekeeping in the Destroy Code Sub (set it to Nothing).
At the appropriate section(s) in your sub, set edv[your-alias].dataview(edv[your-alias].Row)("[field name to update]") = txtEpiCustom2.text.
You may also find you have to do an oTrans.Update() and/or and oTrans.Refresh() to actually save the code determined field value to the row record.
Rob
"laidig.systems" <laidig.systems@...> wrote:
Using this method works ok, but i found that if I do a list lookup and
not change any other field on the form, Vantage will not save the
document. It's like it doesn't recognize the form being changed. Any
solutions to that?
You'll need to initilize it: edv[your-alias] = CType(oTrans.EpiDataViews("[tablename]"), EpiDataView) & do the housekeeping in the Destroy Code Sub (set it to Nothing).
At the appropriate section(s) in your sub, set edv[your-alias].dataview(edv[your-alias].Row)("[field name to update]") = txtEpiCustom2.text.
You may also find you have to do an oTrans.Update() and/or and oTrans.Refresh() to actually save the code determined field value to the row record.
Rob
"laidig.systems" <laidig.systems@...> wrote:
Using this method works ok, but i found that if I do a list lookup and
not change any other field on the form, Vantage will not save the
document. It's like it doesn't recognize the form being changed. Any
solutions to that?
--- In vantage@yahoogroups.com, "p51ace99" <p51ace99@...> wrote:
>
> I came across your post while searching for the solution to a similar
> situation. You have probably solved it by now but for the others
> like me who may need it in the future, I found this sample code at
> the end of the Embedded Customization student manual, which worked
> for me...
>
> Phil
>
> -----------------------------------------------------
>
> Bring up Search for Specified Adapter
>
> Private Sub
> btnEpiCustom3_83dbd27f_0387_44b5_8699_1934dff38acb_Click(ByVal sender
> As System.Object, ByVal e As System.EventArgs) Handles
> btnEpiCustom3_83dbd27f_0387_44b5_8699_1934dff38acb.Click
> '// place event handling code here
> Dim whereClause As String = String.Empty '// "PartNum
> = '"
> + txtEpiCustom2_16a0c990_7d9c_47bf_914b_bfea5c95db80.Text + "'"
> Dim recSelected As Boolean
> Dim dsSearch As DataSet
> dsSearch =
> Epicor.Mfg.UI.FormFunctions.SearchFunctions.listLookup(oTrans,
> "PartAdapter", recSelected, True, whereClause)
> If recSelected Then
>
> txtEpiCustom2_16a0c990_7d9c_47bf_914b_bfea5c95db80.Text =
> dsSearch.Tables(0).Rows(0)("PartNum")
> End If
>
> End Sub
>
>
> --- In vantage@yahoogroups.com, "egarbowski" <egarbowski@> wrote:
> >
> > Are there any examples of how to setup a button in a customized
> window
> > to do a Supplier ID search? I am working with the UD01 table and
> > customizing the UD01 UI, have added the Vendor table and would like
> to
> > lookup and pull in a selected Vendor ID into a field on the screen.
> > Thanks,
> > Ed
> >
>
---------------------------------
Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now.
[Non-text portions of this message have been removed]