FoxInCloud
grids do not respect read-only
Gravatar is a globally recognized avatar based on your email address. grids do not respect read-only
  Tuvia Vinitsky
  All
  Nov 19, 2015 @ 03:37am
The grid, column, or textbox level, readonly = .t. has no effect. A client showed me this, they can enter and edit any field in a grid.

Gravatar is a globally recognized avatar based on your email address. Re: grids do not respect read-only
  FoxInCloud Support - Thierry N.
  Tuvia Vinitsky
  Nov 19, 2015 @ 04:55am
The grid, column, or textbox level, readonly = .t. has no effect. A client showed me this, they can enter and edit any field in a grid.

column.readOnly is demo'd here: http://foxincloud.com/tutotest/dataUpdate.tuto

(1) column1 (ID) is set statically to .ReadOnly:

MODIFY FORM "aw\samples\fic\fictuto\progs\forms\dataupdate.scx" method grd.Init
...
.ReadOnly = m.iGrc = 1

... you can't enter into it

(2) column6 (contact) is set dynamically to .ReadOnly:

modify class fictxtgrc OF "aw\samples\fic\classe\ficsample.vcx" method refresh_
...
this.Parent.ReadOnly = thisForm.sourceType() == 'Table'

if you select 'table' as grid.recordSource, you can no longer enter into the column for edition.

-- thn (FoxInCloud)

Gravatar is a globally recognized avatar based on your email address. Re: grids do not respect read-only
  Tuvia Vinitsky
  Thierry Nivelet (FoxInCloud)
  Nov 19, 2015 @ 05:22am
If I run that form I can still type in the company field, there is no readonly in effect. It also gave an error, seems unrelated.

I will check that readonly is in the wcpropsave


The grid, column, or textbox level, readonly = .t. has no effect. A client showed me this, they can enter and edit any field in a grid.

column.readOnly is demo'd here: http://foxincloud.com/tutotest/dataUpdate.tuto

(1) column1 (ID) is set statically to .ReadOnly:

MODIFY FORM "aw\samples\fic\fictuto\progs\forms\dataupdate.scx" method grd.Init
...
.ReadOnly = m.iGrc = 1

... you can't enter into it

(2) column6 (contact) is set dynamically to .ReadOnly:

modify class fictxtgrc OF "aw\samples\fic\classe\ficsample.vcx" method refresh_
...
this.Parent.ReadOnly = thisForm.sourceType() == 'Table'

if you select 'table' as grid.recordSource, you can no longer enter into the column for edition.

Gravatar is a globally recognized avatar based on your email address. Re: grids do not respect read-only
  FoxInCloud Support - Thierry N.
  Tuvia Vinitsky
  Nov 19, 2015 @ 05:23am
If I run that form

which form? screenshot?
the company name is not readonly
ID and contact are as explained earlier

Gravatar is a globally recognized avatar based on your email address. Re: grids do not respect read-only
  Tuvia Vinitsky
  Thierry Nivelet (FoxInCloud)
  Nov 21, 2015 @ 02:34pm
Missed that.

So far I can only reproduce the issue in IE 10. IE 9 and 11 are fine, as is FF. I will look into it further and see what I can fine.


If I run that form

which form? screenshot?
the company name is not readonly
ID and contact are as explained earlier


Gravatar is a globally recognized avatar based on your email address. Re: grids do not respect read-only
  FoxInCloud Support - Thierry N.
  Tuvia Vinitsky
  Nov 22, 2015 @ 12:15am
see what I can fine.

I hope we won't get one!

-- thn (FoxInCloud)

Gravatar is a globally recognized avatar based on your email address. Re: grids do not respect read-only
  Tuvia Vinitsky
  Thierry Nivelet (FoxInCloud)
  Nov 22, 2015 @ 08:42am

<g>


see what I can fine.

I hope we won't get one!

© 1996-2024