Never tried it on a ud field... Interesting idea.
If you try it (and it works) let us know... it sure does open up some easy ways to fill in some holes in Vantage (sans code - all the better!)
Rob
--- Original Message ---
From:"Brian W. Spolarich " <bspolarich@...>
Sent:Fri 5/15/09 9:18 am
To:<vantage@yahoogroups.com>
Subj:RE: [Vantage] Re: VB Code help - referring to a Foreign Key
Could this could be a solution for the perennial question of "how do I inactivate a PartBin"? Define PartBin.Checkbox01 (or whatever) to signify "inactive" and use this to filter.
-bws
--
Brian W. Spolarich ~ Manager, Information Services ~ Advanced Photonix / Picometrix
    bspolarich@... ~ 734-864-5618 ~ www.advancedphotonix.com
-----Original Message-----
From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf Of Robert Brown
Sent: Thursday, May 14, 2009 4:38 PM
To: vantage@yahoogroups.com
Subject: Re: [Vantage] Re: VB Code help - referring to a Foreign Key
The control has a BO method associated with it - In the case of Rev (for Part) - it is probably a GetByID method.
When you fill in this info (Approved=True), you are essentially passing GetByID() an additional search criteria argument.
Rob
________________________________
From: Brian W. Spolarich <bspolarich@...>
To: vantage@yahoogroups.com
Sent: Thursday, May 14, 2009 3:40:03 PM
Subject: RE: [Vantage] Re: VB Code help - referring to a Foreign Key
I'm not quite getting this. What does the SearchFilter property of a Vantage control do?
--
Brian W. Spolarich ~ Manager, Information Services ~ Advanced Photonix / Picometrix
    bspolarich@advanced photonix. com ~ 734-864-5618 ~ www.advancedphotoni x.com
-----Original Message-----
From: vantage@yahoogroups .com [mailto:vantage@yahoogroups .com] On Behalf Of Rob Bucek
Sent: Thursday, May 14, 2009 3:35 PM
To: vantage@yahoogroups .com
Subject: RE: [Vantage] Re: VB Code help - referring to a Foreign Key
That's a tidy little trick...where did you learn that? Are there other
fields that works well with?
Rob Bucek
Manufacturing Engineer
PH: 715-284-5376 ext 311
FAX: 715-284-4084
<http://www.dsmfg com/>
(Click the logo to view our site)
____________ _________ _________ __
From: vantage@yahoogroups .com [mailto:vantage@yahoogroups .com] On Behalf
Of Robert Brown
Sent: Thursday, May 14, 2009 2:02 PM
To: vantage@yahoogroups .com
Subject: Re: [Vantage] Re: VB Code help - referring to a Foreign Key
I think you guys are overcomplicating things.
Open sales order entry and go into customization.
Navigate to the Lines Tab & click on the part rev control.
In the properties window for that control (Datasource: OrderDtl,
Datafield: RevisionNumber) , look for a properties line called
"SearchFilter" . I'm betting the value is null.
Try entering (without the quotes) "Approved=True" and save the
customization.
Reopen sales entry & look at the same control. If the parameters you
entered (Approved=True) are still there - great: Just test the app with
a partnumber causing you entry problems (entry of an unapproved rev) and
verify the filtering has solved your problem.
If it hasn't, then you're back to hard coding a VB subroutine (as you
are doing below).
Most part rev entry fields are capable of having this parameter entered.
Rob
____________ _________ __
If you try it (and it works) let us know... it sure does open up some easy ways to fill in some holes in Vantage (sans code - all the better!)
Rob
--- Original Message ---
From:"Brian W. Spolarich " <bspolarich@...>
Sent:Fri 5/15/09 9:18 am
To:<vantage@yahoogroups.com>
Subj:RE: [Vantage] Re: VB Code help - referring to a Foreign Key
Could this could be a solution for the perennial question of "how do I inactivate a PartBin"? Define PartBin.Checkbox01 (or whatever) to signify "inactive" and use this to filter.
-bws
--
Brian W. Spolarich ~ Manager, Information Services ~ Advanced Photonix / Picometrix
    bspolarich@... ~ 734-864-5618 ~ www.advancedphotonix.com
-----Original Message-----
From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf Of Robert Brown
Sent: Thursday, May 14, 2009 4:38 PM
To: vantage@yahoogroups.com
Subject: Re: [Vantage] Re: VB Code help - referring to a Foreign Key
The control has a BO method associated with it - In the case of Rev (for Part) - it is probably a GetByID method.
When you fill in this info (Approved=True), you are essentially passing GetByID() an additional search criteria argument.
Rob
________________________________
From: Brian W. Spolarich <bspolarich@...>
To: vantage@yahoogroups.com
Sent: Thursday, May 14, 2009 3:40:03 PM
Subject: RE: [Vantage] Re: VB Code help - referring to a Foreign Key
I'm not quite getting this. What does the SearchFilter property of a Vantage control do?
--
Brian W. Spolarich ~ Manager, Information Services ~ Advanced Photonix / Picometrix
    bspolarich@advanced photonix. com ~ 734-864-5618 ~ www.advancedphotoni x.com
-----Original Message-----
From: vantage@yahoogroups .com [mailto:vantage@yahoogroups .com] On Behalf Of Rob Bucek
Sent: Thursday, May 14, 2009 3:35 PM
To: vantage@yahoogroups .com
Subject: RE: [Vantage] Re: VB Code help - referring to a Foreign Key
That's a tidy little trick...where did you learn that? Are there other
fields that works well with?
Rob Bucek
Manufacturing Engineer
PH: 715-284-5376 ext 311
FAX: 715-284-4084
<http://www.dsmfg com/>
(Click the logo to view our site)
____________ _________ _________ __
From: vantage@yahoogroups .com [mailto:vantage@yahoogroups .com] On Behalf
Of Robert Brown
Sent: Thursday, May 14, 2009 2:02 PM
To: vantage@yahoogroups .com
Subject: Re: [Vantage] Re: VB Code help - referring to a Foreign Key
I think you guys are overcomplicating things.
Open sales order entry and go into customization.
Navigate to the Lines Tab & click on the part rev control.
In the properties window for that control (Datasource: OrderDtl,
Datafield: RevisionNumber) , look for a properties line called
"SearchFilter" . I'm betting the value is null.
Try entering (without the quotes) "Approved=True" and save the
customization.
Reopen sales entry & look at the same control. If the parameters you
entered (Approved=True) are still there - great: Just test the app with
a partnumber causing you entry problems (entry of an unapproved rev) and
verify the filtering has solved your problem.
If it hasn't, then you're back to hard coding a VB subroutine (as you
are doing below).
Most part rev entry fields are capable of having this parameter entered.
Rob
____________ _________ __