'set: bad child id' so I suspect it is a bug in your
application. Try debug using wd'verbose 1' or wd'verbose 2'
and print a list of ochildren before the offending set cmd with
wd 'pget children'

Ср, 15 июл 2015, JGeneral написал(а):
> the psel succeeds and is necessary.  The wd__r was not necessary, but does 
> not remove the error.  The minor reason to use qualifier is that it documents 
> where the form commands are issued, and if its going to change
> 
> form__r is a form name with the locale number appended so that multiple 
> instances are supported.
> 
> the wd error btw is 'set: bad child id'
> 
> the steps to reproduce the error:
> 
> put all the files in a folder,
> 
> load 'todo.ijs' (qualified with that folder)
> 
> f =. New_formbuilder_ buildFPsample_formbuilder_ a:
> 
> in form that pops up, in the first field enter 2 letters, then click "Fields" 
> button, and in that new form click OK.
> 
> the r in that function is r__f
> 
> 
> ----- Original Message -----
> From: bill lam <[email protected]>
> To: General forum <[email protected]>
> Cc: 
> Sent: Tuesday, July 14, 2015 7:41 PM
> Subject: Re: [Jgeneral] A type and record system for J
> 
> Are you sure the psel can succeed?
> 
> why do you use wd__r? wd is defined in the z locale.
> 
> what is the error message?
> On Jul 15, 2015 7:27 AM, "'Pascal Jasmin' via General" <
> [email protected]> wrote:
> 
> > I've updated github with this function (in todo.ijs):
> >
> > rcb =: 3 : 0
> > if. a: -: y do. y return. end.
> > wd 'psel ', form__r
> > 'fields updated if auto is set' hout__co  > cutLF (LF,'|,') unmulticut <"1
> > y
> > if. '__' -.@-: recordF__PARAMS RETURN__r do. wd__r  'set recordFC text
> > *',  (LF,'|,') unmulticut <"1 y end.
> > y
> > )
> >
> > This function is the callback from the fields update form.
> >
> > I can't reproduce with a simple example because, the correct text does get
> > put into the other form's edith control (2nd last line).  THere's no error
> > in J803.  In j804, if the last line (y) is commented out, there is still
> > the same error (in wd, after successfully changing control).  Even in j804,
> > calling wd (in repl) with the exact same data update to the open form does
> > not cause an error.
> >
> >
> >
> >
> > ----- Original Message -----
> > From: bill lam <[email protected]>
> > To: General forum <[email protected]>
> > Cc:
> > Sent: Tuesday, July 14, 2015 6:27 PM
> > Subject: Re: [Jgeneral] A type and record system for J
> >
> > Pascal,
> >
> > Please provide a simple example to demonstrate the edith bug.
> > On Jul 15, 2015 5:56 AM, "'Pascal Jasmin' via General" <
> > [email protected]> wrote:
> >
> > > This is a major upgrade to my type system for J (background:
> > > https://github.com/Pascal-J/type-system-j)
> > >
> > > One of the main uses for that project is to validate multiple fields in a
> > > record, and these tools let us build self validating and documenting GUI
> > > forms in a single line of code.  The project is available here:
> > >
> > > https://github.com/Pascal-J/records-j
> > >
> > > A sample app is a recordform that is a GUI builder to create new
> > > recordforms.
> > >
> > > It looks better in J804, but there is a edith related bug that causes wd
> > > to show an unneccesary error message (in fields subform of formbuilder
> > when
> > > it updates the master form's edith control).  No crashes/popups in J803.
> > > ----------------------------------------------------------------------
> > > For information about J forums see http://www.jsoftware.com/forums.htm
> 
> >
> > >
> > ----------------------------------------------------------------------
> > For information about J forums see http://www.jsoftware.com/forums.htm
> > ----------------------------------------------------------------------
> > For information about J forums see http://www.jsoftware.com/forums.htm
> >
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm

-- 
regards,
====================================================
GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
gpg --keyserver subkeys.pgp.net --armor --export 4434BAB3
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to