Re: How to display read-only input form

2019-02-11 Thread Jim Crate via 4D_Tech
On Feb 7, 2019, at 1:19 AM, Koen Van Hooreweghe via 4D_Tech <4d_tech@lists.4d.com> wrote: > > Have you tried MODIFY SELECTION instead of MODIFY RECORD? > Set the table in read only mode, make sure only the requested record is in > the current selection and then open the record using MODIFY

Re: How to display read-only input form

2019-02-07 Thread Arnaud de Montard via 4D_Tech
> Le 6 févr. 2019 à 22:31, Jim Crate via 4D_Tech <4d_tech@lists.4d.com> a écrit > : > > [...] > I thought about using DIALOG, [...] I would stop using legacy display commands (display/modify selection, add/modify record… maybe I forget some). IMHO 4D modern way to display a form is dialog,

Re: How to display read-only input form

2019-02-07 Thread Chip Scheide via 4D_Tech
Koen, Nice - I did not know that Chip On Thu, 7 Feb 2019 10:19:04 +0100, Koen Van Hooreweghe via 4D_Tech wrote: > > If a field is set to focusable but not enterable, the user can't edit > the content, but will be able to select and copy. --- Gas is for washing parts Alcohol is for

Re: How to display read-only input form

2019-02-07 Thread Koen Van Hooreweghe via 4D_Tech
Hi Jim, Have you tried MODIFY SELECTION instead of MODIFY RECORD? Set the table in read only mode, make sure only the requested record is in the current selection and then open the record using MODIFY SELECTION. Without the. optional * parameters, this command should open it immediately in the

Re: How to display read-only input form

2019-02-06 Thread Keisuke Miyako via 4D_Tech
DIALOG is quite capable of handling input / output forms, as long as you have activated the "make fields enterable in dialog" compatibility setting (since v2004). there is no need to use F. SET INPUT or F. SET OUTPUT. a list type subform or selection based listbox have their own input form

Re: How to display read-only input form

2019-02-06 Thread Kirk Brooks via 4D_Tech
Jim, If the table is in read only mode you can use any form you want and the user can't edit the data. I'd just put the table in read only and use DIALOG with the input form. On Wed, Feb 6, 2019 at 1:32 PM Jim Crate via 4D_Tech <4d_tech@lists.4d.com> wrote: > Is there a convenient way to mimic

Re: How to display read-only input form

2019-02-06 Thread Keith Culotta via 4D_Tech
I have simulated that effect with code like this: If (Read only state([Docs])) & (Form event=On After Edit) vContent:=[Docs]Content End if Where vContent is editable (no entry filter). Keith - CDI > On Feb 6, 2019, at 3:31 PM, Jim Crate via 4D_Tech <4d_tech@lists.4d.com> > wrote: >

Re: How to display read-only input form

2019-02-06 Thread Chuck Miller via 4D_Tech
Sure on load use command Object set enterable(*;”@“;false)// This will set all fields and variables to non enterable You will have to use Object set enabled for Check Boxes, Radio button etc. These can not be done as above as it will set all to disabled You could also do a start transaction

Re: How to display read-only input form

2019-02-06 Thread Keith Culotta via 4D_Tech
Can you call Modify Record with code either lock and reload the record(s), or disable entry for all objects? Keith - CDI > On Feb 6, 2019, at 3:31 PM, Jim Crate via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > From a listbox view, I’d like to open the input form for a record but not > allow

Re: How to display read-only input form

2019-02-06 Thread Chip Scheide via 4D_Tech
the only solution I found was: variables. Built the form with variables. - variable are enterable. User can tab through the variables, copy text, and even change the data - but the if they change the data it reverts to the original value(s) with this idea in mind, object methods, or form