OK, I'm beginning to glean from other topics what I need to do:
This seems to do the first part of what I want:
Dim edvPart As EpiDataView = CType(oTrans.EpiDataViews("Part"),EpiDataView)
Dim PartNum As String = edvPart.dataView(edvPart.Row)("PartNum")
This seems to do the first part of what I want:
Dim edvPart As EpiDataView = CType(oTrans.EpiDataViews("Part"),EpiDataView)
Dim PartNum As String = edvPart.dataView(edvPart.Row)("PartNum")
--- In vantage@yahoogroups.com, "Kerry_Muntz" <kerry_muntz@...> wrote:
>
> Thanks Robert - that's encouraging. Can you give me any sample code? I can find plenty of VB.net help on the net - but not much Vantage-specific. It's the code for assigning the string, and then putting the string back in to Vantage that I'm missing. (V8.03.405a) ta kindly.
>
>
> --- In vantage@yahoogroups.com, Robert Brown <robertb_versa@> wrote:
> >
> > You're on the right track. With VB customization, if you wanted (as an example) to pass some jobhead ud field data from Job Entry to the Job Scheduler, you'd use an appropriate event in job entry to 1st write the data. Then, in the Job Scheduler subprocess, you'd add jobhead as a dataview so you coull read the job entry written value and take appropriate action from within the job scheduler sub process app.
> >
> > ...Probably even easier with BPM as you can manipulate the temp data before it is committed.
> >
> >
> >
> >
> > ________________________________
> > From: Kerry_Muntz <kerry_muntz@>
> > To: vantage@yahoogroups.com
> > Sent: Sunday, August 30, 2009 11:41:25 PM
> > Subject: [Vantage] Passing Vantage fields to VB.net Strings / Passing fields to forms
> >
> > Â
> > Hi. I've been reading a lot in the forums about Events, and calling other processes (eg calling Cost Adjustment from a button in Part Maintenance / Revision - and eg calling BOM Cost Report the same way). As far as I'm aware Vantage won't easily pass values to the called program - unless via a dashboard. Please correct me with 'how' if I'm wrong in this. Ie it opens the called program - but with empty fields.
> >
> > To work around this, I'm looking at farming the necessary fields to a temp file, or volatile variables, and having Autohotkey (AHK) exe's being called by events to do the data entry in the called window.
> >
> > What I want to know, is how to read values off the current record (eg Part.PartNum and ) to a string - or to clipboard. If someone could please enlighten me with the code I need. Also, the code to populate a field in Vantage from a string would be fantastic too. I'm a VB.net noob, so feel free mock my ignorance if you wish (but tell the the answers too please ;-).
> >
> > I figure I can probably eliminate the need for AHK altogether, once I've got my head around a few VB.net and Event issues.
> >
> > Thanks heaps guys. I really appreciate this Group.
> >
> >
> >
> >
> >
> >
> >
> > [Non-text portions of this message have been removed]
> >
>