Setting a form field to "display only" in V8

This technique worked perfectly. Thanks.

--- In vantage@yahoogroups.com, "mmcwilliams22" <mmcwilliams22@...>
wrote:
>
> --- In vantage@yahoogroups.com, "Brad Feazell" <Brad_feazell@>
> wrote:
> Try doing it using the form event wizard.
> Choose the Event type Load and then update the code.
> In the script editor put the following code in
> under the event.
> It seems to work for me I don't know what your situation is though.
>
> <<<<<<
>
> Dim OrderDtl As EpiDataView = Ctype (oTrans.EpiDataViews
> ("OrderDtl"),EpiDataView)
>
> OrderDtl.dataView.Table.Columns("Date01").ExtendedProperties
> ("Enabled")= False
> End Sub
>
> <<<<<<<<
> >
> > It works fine until I save the customization, shut down Vantage,
> fire
> > it back up again and the enabled property reverts back to TRUE.
Is
> > there a way to make it stick?
> >
> > --- In vantage@yahoogroups.com, "Stephen Edginton" <stephene@>
> > wrote:
> > >
> > > Hi Brad,
> > >
> > > Yes, you need to set the enabled property of the
> object
> > to
> > > false. This will achieve the correct result. Do this on the
> > properties of
> > > the new text box you have bound to the date01 field.
> > >
> > >
> > >
> > > Regards,
> > >
> > > Stephen Edginton
> > >
> > > _____
> > >
> > > From: Brad Feazell [mailto:Brad_feazell@]
> > > Sent: Thursday, August 10, 2006 4:47 PM
> > > To: vantage@yahoogroups.com
> > > Subject: [Vantage] Setting a form field to "display only" in V8
> > >
> > >
> > >
> > > I customized the ORDERDTL.DATE01 field onto the Order Entry
form,
> > > (Lines Tab) but I want it to be display-only. Setting the
> ReadOnly
> > > property to TRUE doesn't do it and there doesn't appear to be
an
> > > obvious way.
> > >
> > > The "On Hand" field on the same tab appears exactly the way I
> want
> > > Date01 to appear - basically greyed out with no ability to
touch
> > the
> > > data in the field.
> > >
> > > Can you use customization to do this?
> > >
> > >
> > >
> > >
> > > --
> > >
> > > Checked by AVG Free Edition.
> > > Version: 7.1.405 / Virus Database: 268.10.8/415 - Release Date:
> > 09/08/2006
> > >
> > >
> > >
> > > --
> > >
> > > Checked by AVG Free Edition.
> > > Version: 7.1.405 / Virus Database: 268.10.8/415 - Release Date:
> > 09/08/2006
> > >
> > >
> > >
> > > [Non-text portions of this message have been removed]
> > >
> >
>
I customized the ORDERDTL.DATE01 field onto the Order Entry form,
(Lines Tab) but I want it to be display-only. Setting the ReadOnly
property to TRUE doesn't do it and there doesn't appear to be an
obvious way.

The "On Hand" field on the same tab appears exactly the way I want
Date01 to appear - basically greyed out with no ability to touch the
data in the field.

Can you use customization to do this?
Hi Brad,

Yes, you need to set the enabled property of the object to
false. This will achieve the correct result. Do this on the properties of
the new text box you have bound to the date01 field.



Regards,

Stephen Edginton

_____

From: Brad Feazell [mailto:Brad_feazell@...]
Sent: Thursday, August 10, 2006 4:47 PM
To: vantage@yahoogroups.com
Subject: [Vantage] Setting a form field to "display only" in V8



I customized the ORDERDTL.DATE01 field onto the Order Entry form,
(Lines Tab) but I want it to be display-only. Setting the ReadOnly
property to TRUE doesn't do it and there doesn't appear to be an
obvious way.

The "On Hand" field on the same tab appears exactly the way I want
Date01 to appear - basically greyed out with no ability to touch the
data in the field.

Can you use customization to do this?




--

Checked by AVG Free Edition.
Version: 7.1.405 / Virus Database: 268.10.8/415 - Release Date: 09/08/2006



--

Checked by AVG Free Edition.
Version: 7.1.405 / Virus Database: 268.10.8/415 - Release Date: 09/08/2006



[Non-text portions of this message have been removed]
It works fine until I save the customization, shut down Vantage, fire
it back up again and the enabled property reverts back to TRUE. Is
there a way to make it stick?

--- In vantage@yahoogroups.com, "Stephen Edginton" <stephene@...>
wrote:
>
> Hi Brad,
>
> Yes, you need to set the enabled property of the object
to
> false. This will achieve the correct result. Do this on the
properties of
> the new text box you have bound to the date01 field.
>
>
>
> Regards,
>
> Stephen Edginton
>
> _____
>
> From: Brad Feazell [mailto:Brad_feazell@...]
> Sent: Thursday, August 10, 2006 4:47 PM
> To: vantage@yahoogroups.com
> Subject: [Vantage] Setting a form field to "display only" in V8
>
>
>
> I customized the ORDERDTL.DATE01 field onto the Order Entry form,
> (Lines Tab) but I want it to be display-only. Setting the ReadOnly
> property to TRUE doesn't do it and there doesn't appear to be an
> obvious way.
>
> The "On Hand" field on the same tab appears exactly the way I want
> Date01 to appear - basically greyed out with no ability to touch
the
> data in the field.
>
> Can you use customization to do this?
>
>
>
>
> --
>
> Checked by AVG Free Edition.
> Version: 7.1.405 / Virus Database: 268.10.8/415 - Release Date:
09/08/2006
>
>
>
> --
>
> Checked by AVG Free Edition.
> Version: 7.1.405 / Virus Database: 268.10.8/415 - Release Date:
09/08/2006
>
>
>
> [Non-text portions of this message have been removed]
>
I usually set the control to ReadOnly = true
EpiKeyField = false
Enabled = false

and even then, there seems to be no guarantee that it will come back the
way you want.
I have set fields like that and invisible too. When you open the form in
developer mode it works fine. When you open the form in run mode it is
fine. when you enter new data in the form it is fine but when you open
existing data the control reverts back to being enabled, visible.

Good Luck,

Bernie.
________________________________

From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf
Of Brad Feazell
Sent: Friday, August 11, 2006 3:40 PM
To: vantage@yahoogroups.com
Subject: [Vantage] Re: Setting a form field to "display only" in V8



It works fine until I save the customization, shut down Vantage, fire
it back up again and the enabled property reverts back to TRUE. Is
there a way to make it stick?

--- In vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com> ,
"Stephen Edginton" <stephene@...>
wrote:
>
> Hi Brad,
>
> Yes, you need to set the enabled property of the object
to
> false. This will achieve the correct result. Do this on the
properties of
> the new text box you have bound to the date01 field.
>
>
>
> Regards,
>
> Stephen Edginton
>
> _____
>
> From: Brad Feazell [mailto:Brad_feazell@...]
> Sent: Thursday, August 10, 2006 4:47 PM
> To: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
> Subject: [Vantage] Setting a form field to "display only" in V8
>
>
>
> I customized the ORDERDTL.DATE01 field onto the Order Entry form,
> (Lines Tab) but I want it to be display-only. Setting the ReadOnly
> property to TRUE doesn't do it and there doesn't appear to be an
> obvious way.
>
> The "On Hand" field on the same tab appears exactly the way I want
> Date01 to appear - basically greyed out with no ability to touch
the
> data in the field.
>
> Can you use customization to do this?
>
>
>
>
> --
>
> Checked by AVG Free Edition.
> Version: 7.1.405 / Virus Database: 268.10.8/415 - Release Date:
09/08/2006
>
>
>
> --
>
> Checked by AVG Free Edition.
> Version: 7.1.405 / Virus Database: 268.10.8/415 - Release Date:
09/08/2006
>
>
>
> [Non-text portions of this message have been removed]
>






[Non-text portions of this message have been removed]
--- In vantage@yahoogroups.com, "Brad Feazell" <Brad_feazell@...>
wrote:
Try doing it using the form event wizard.
Choose the Event type Load and then update the code.
In the script editor put the following code in
under the event.
It seems to work for me I don't know what your situation is though.

<<<<<<

Dim OrderDtl As EpiDataView = Ctype (oTrans.EpiDataViews
("OrderDtl"),EpiDataView)

OrderDtl.dataView.Table.Columns("Date01").ExtendedProperties
("Enabled")= False
End Sub

<<<<<<<<
>
> It works fine until I save the customization, shut down Vantage,
fire
> it back up again and the enabled property reverts back to TRUE. Is
> there a way to make it stick?
>
> --- In vantage@yahoogroups.com, "Stephen Edginton" <stephene@>
> wrote:
> >
> > Hi Brad,
> >
> > Yes, you need to set the enabled property of the
object
> to
> > false. This will achieve the correct result. Do this on the
> properties of
> > the new text box you have bound to the date01 field.
> >
> >
> >
> > Regards,
> >
> > Stephen Edginton
> >
> > _____
> >
> > From: Brad Feazell [mailto:Brad_feazell@]
> > Sent: Thursday, August 10, 2006 4:47 PM
> > To: vantage@yahoogroups.com
> > Subject: [Vantage] Setting a form field to "display only" in V8
> >
> >
> >
> > I customized the ORDERDTL.DATE01 field onto the Order Entry form,
> > (Lines Tab) but I want it to be display-only. Setting the
ReadOnly
> > property to TRUE doesn't do it and there doesn't appear to be an
> > obvious way.
> >
> > The "On Hand" field on the same tab appears exactly the way I
want
> > Date01 to appear - basically greyed out with no ability to touch
> the
> > data in the field.
> >
> > Can you use customization to do this?
> >
> >
> >
> >
> > --
> >
> > Checked by AVG Free Edition.
> > Version: 7.1.405 / Virus Database: 268.10.8/415 - Release Date:
> 09/08/2006
> >
> >
> >
> > --
> >
> > Checked by AVG Free Edition.
> > Version: 7.1.405 / Virus Database: 268.10.8/415 - Release Date:
> 09/08/2006
> >
> >
> >
> > [Non-text portions of this message have been removed]
> >
>
--- In vantage@yahoogroups.com, "mmcwilliams22" <mmcwilliams22@...>
wrote:

I am sorry you could also try ExtendedProperties("ReadOnly")= True
>
> --- In vantage@yahoogroups.com, "Brad Feazell" <Brad_feazell@>
> wrote:
> Try doing it using the form event wizard.
> Choose the Event type Load and then update the code.
> In the script editor put the following code in
> under the event.
> It seems to work for me I don't know what your situation is though.
>
> <<<<<<
>
> Dim OrderDtl As EpiDataView = Ctype (oTrans.EpiDataViews
> ("OrderDtl"),EpiDataView)
>
> OrderDtl.dataView.Table.Columns("Date01").ExtendedProperties
> ("Enabled")= False
> End Sub
>
> <<<<<<<<
> >
> > It works fine until I save the customization, shut down Vantage,
> fire
> > it back up again and the enabled property reverts back to TRUE.
Is
> > there a way to make it stick?
> >
> > --- In vantage@yahoogroups.com, "Stephen Edginton" <stephene@>
> > wrote:
> > >
> > > Hi Brad,
> > >
> > > Yes, you need to set the enabled property of the
> object
> > to
> > > false. This will achieve the correct result. Do this on the
> > properties of
> > > the new text box you have bound to the date01 field.
> > >
> > >
> > >
> > > Regards,
> > >
> > > Stephen Edginton
> > >
> > > _____
> > >
> > > From: Brad Feazell [mailto:Brad_feazell@]
> > > Sent: Thursday, August 10, 2006 4:47 PM
> > > To: vantage@yahoogroups.com
> > > Subject: [Vantage] Setting a form field to "display only" in V8
> > >
> > >
> > >
> > > I customized the ORDERDTL.DATE01 field onto the Order Entry
form,
> > > (Lines Tab) but I want it to be display-only. Setting the
> ReadOnly
> > > property to TRUE doesn't do it and there doesn't appear to be
an
> > > obvious way.
> > >
> > > The "On Hand" field on the same tab appears exactly the way I
> want
> > > Date01 to appear - basically greyed out with no ability to
touch
> > the
> > > data in the field.
> > >
> > > Can you use customization to do this?
> > >
> > >
> > >
> > >
> > > --
> > >
> > > Checked by AVG Free Edition.
> > > Version: 7.1.405 / Virus Database: 268.10.8/415 - Release Date:
> > 09/08/2006
> > >
> > >
> > >
> > > --
> > >
> > > Checked by AVG Free Edition.
> > > Version: 7.1.405 / Virus Database: 268.10.8/415 - Release Date:
> > 09/08/2006
> > >
> > >
> > >
> > > [Non-text portions of this message have been removed]
> > >
> >
>
I've run in to occasions where setting the attributes as described below doesn't work. And fields set as invisible appear when other fields have changed value. Dragging the fields off the sheet works.

----- Original Message -----
From: Bernie Walker
To: vantage@yahoogroups.com
Sent: Friday, August 11, 2006 1:10 PM
Subject: RE: [Vantage] Re: Setting a form field to "display only" in V8


I usually set the control to ReadOnly = true
EpiKeyField = false
Enabled = false

and even then, there seems to be no guarantee that it will come back the
way you want.
I have set fields like that and invisible too. When you open the form in
developer mode it works fine. When you open the form in run mode it is
fine. when you enter new data in the form it is fine but when you open
existing data the control reverts back to being enabled, visible.

Good Luck,

Bernie.
________________________________

From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf
Of Brad Feazell
Sent: Friday, August 11, 2006 3:40 PM
To: vantage@yahoogroups.com
Subject: [Vantage] Re: Setting a form field to "display only" in V8

It works fine until I save the customization, shut down Vantage, fire
it back up again and the enabled property reverts back to TRUE. Is
there a way to make it stick?

--- In vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com> ,
"Stephen Edginton" <stephene@...>
wrote:
>
> Hi Brad,
>
> Yes, you need to set the enabled property of the object
to
> false. This will achieve the correct result. Do this on the
properties of
> the new text box you have bound to the date01 field.
>
>
>
> Regards,
>
> Stephen Edginton
>
> _____
>
> From: Brad Feazell [mailto:Brad_feazell@...]
> Sent: Thursday, August 10, 2006 4:47 PM
> To: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
> Subject: [Vantage] Setting a form field to "display only" in V8
>
>
>
> I customized the ORDERDTL.DATE01 field onto the Order Entry form,
> (Lines Tab) but I want it to be display-only. Setting the ReadOnly
> property to TRUE doesn't do it and there doesn't appear to be an
> obvious way.
>
> The "On Hand" field on the same tab appears exactly the way I want
> Date01 to appear - basically greyed out with no ability to touch
the
> data in the field.
>
> Can you use customization to do this?
>
>
>
>
> --
>
> Checked by AVG Free Edition.
> Version: 7.1.405 / Virus Database: 268.10.8/415 - Release Date:
09/08/2006
>
>
>
> --
>
> Checked by AVG Free Edition.
> Version: 7.1.405 / Virus Database: 268.10.8/415 - Release Date:
09/08/2006
>
>
>
> [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]