Thanks. (Good to know.)
Rob
Rob
--- On Fri, 8/8/08, bw2868bond <bwalker@...> wrote:
From: bw2868bond <bwalker@...>
Subject: [Vantage] Re: Vantage 8.03.405a BPM
To: vantage@yahoogroups.com
Date: Friday, August 8, 2008, 7:02 AM
Rob,
I have had it happen once since going live on 8.00.811 almost two
years ago.
All the controls referenced this way survived the migration from
8.00.811 to 8.03.405 (showing how little actually gets re-written?? )
Maybe one of the good (??) features of 4xx is the customization
maintenance where this stuff gets checked.
I have used hidden, off the form controls too, but when you need to
delete they can be a pain to find.
bw
--- In vantage@yahoogroups .com, Robert Brown <robertb_versa@ ...>
wrote:
>
> Bernie,
>
> When your code makes direct Native Control References (or whatever
they are called in Vantage-speak) as you did in:
>
> chkLockQty = CType(csm.GetNative ControlReference ("7c0f77d2- d26c-
4917- 8dd7-bef84066121 e"), EpiCheckBox)
>
> ...Doesn't this risk code failure after an upgrade? Don't the
ControlReference IDs often (enough) change after an upgrade to make
this a bit of a headache?
>
> ????
>
> Rob Brown
>
> --- On Thu, 8/7/08, Bernie Walker <bwalker@... > wrote:
> From: Bernie Walker <bwalker@... >
> Subject: RE: [Vantage] Re: Vantage 8.03.405a BPM
> To: "'vantage@yahoogroup s.com'" <vantage@yahoogroups .com>
> Date: Thursday, August 7, 2008, 1:27 PM
>
>
>
>
>
>
>
>
>
>
>
> For all the interested parties - here is the UI
customization. Requires no BPM.
>
>
>
> Module Script
>
>
>
> '// ** Wizard Insert Location - Do Not Remove 'Begin/End Wizard
Added Module Level Variables' Comments! **
>
> '// Begin Wizard Added Module Level Variables **
>
>
>
> Private WithEvents edvPORel As EpiDataView
>
> '// End Wizard Added Module Level Variables **
>
>
>
> '// Add Custom Module Level Variables Here **
>
> Private WithEvents chkLockQty As EpiCheckBox
>
>
>
> Sub InitializeCustomCod e()
>
>
>
> '// ** Wizard Insert Location - Do not delete 'Begin/End Wizard
Added Variable Intialization' lines **
>
> '// Begin Wizard Added Variable Intialization
>
>
>
> edvPORel = CType(oTrans. EpiDataViews( "PORel"), EpiDataView)
>
>
>
> '// End Wizard Added Variable Intialization
>
> '// Begin Custom Method Calls
>
>
>
> '// End Custom Method Calls
>
>
>
> End Sub
>
>
>
> Sub DestroyCustomCode( )
>
>
>
> '// ** Wizard Insert Location - Do not delete 'Begin/End Wizard
Added Object Disposal' lines **
>
> '// Begin Wizard Added Object Disposal
>
>
>
> '// End Wizard Added Object Disposal
>
> '// Begin Custom Code Disposal
>
>
>
> '// End Custom Code Disposal
>
> End Sub
>
>
>
> Private Sub POEntryForm_ Load(ByVal sender As object, ByVal args As
EventArgs) Handles POEntryForm. Load
>
> '//
>
> '// Add Event Handler Code
>
> '//
>
> chkLockQty = CType(csm.GetNative ControlReference
("7c0f77d2- d26c-4917- 8dd7-bef e"), EpiCheckBox)
>
> End Sub
>
>
>
> Private Sub edvPORel_EpiViewNot ification( view As EpiDataView,
args As EpiNotifyArgs) Handles edvPORel.EpiViewNot ification
>
> '// ** Argument Properties and Uses **
>
> '// view.dataView( args.Row) ("[FieldName] ")
>
> '// args.Row, args.Column, args.Sender,
args.NotifyType
>
> '// NotifyType.Initiali ze, NotifyType.AddRow,
NotifyType.DeleteRo w, NotifyType.InitLast View, NotifyType.InitAndR
esetTreeNodes
>
> If (args.NotifyType. ToString( ) = "AddRow") Then
>
> view.dataView( args.Row) ("LockQty" ) = True
>
> End If
>
>
>
> End Sub
>
>
>
> Private Sub POEntryForm_ Closing(ByVal sender As object, ByVal args
As System.ComponentMod el.CancelEventAr gs) Handles POEntryForm.
Closing
>
> '//
>
> '// Add Event Handler Code
>
> '//
>
> oTrans.Update( )
>
> End Sub
>
>
>
> Private Sub chkLockQty_CheckedC hanged(ByVal Sender As Object,
ByVal Args As System.EventArgs) Handles chkLockQty.CheckedC hanged
>
> '// ** Place Event Handling Code Here **
>
> If Not chkLockQty.Checked Then
>
> chkLockQty.Checked = True
>
> oTrans.Update( )
>
> End If
>
> End Sub
>
>
>
> End Module
>
>
>
> -----Original Message-----
>
> From: vantage@yahoogroups .com [mailto:vantage@ yahoogroups .com] On
Behalf Of Kunal Ganguly
>
> Sent: Thursday, August 07, 2008 9:05 AM
>
> To: vantage@yahoogroups .com
>
> Subject: Re: [Vantage] Re: Vantage 8.03.405a BPM
>
>
>
> BW,
>
>
>
> I'm really curious to know if that worked for you - I never could
coax comxref into cooperating. I ran into the same issue quite some
time back and needed up setting the values for lockqty like so:
>