Re: Custom Form Events

2019-05-10 Thread Chris Belanger via 4D_Tech
Hi Kirk, Thanks for your input, too. I can explain what I have done to this point with my [UIClass] & [UIObjects] tables. Everything is done using ORDA. All the ‘variables’ are Form objects (i.e. ‘Form.curClassEdit.Note’ type things). Unfortunately, iNUG still does not support anything other

Re: Custom Form Events

2019-05-06 Thread Kirk Brooks via 4D_Tech
Hi Chris, I apologize for such a late response. I left on a road trip about the time you sent this and frankly forgot to get back to you. Your enthusiasm is infectious. And you describe some excellent applications. I haven't played with OBJECT SET LIST BY REFERENCE yet... Thank you for the tips.

Re: Custom Form Events

2019-05-06 Thread Chris Belanger via 4D_Tech
Hi Justin, Just to let you know, that SET TIMER() trick just came in handy in another situation. There is a weird thing that in the Form's on Load event, LISTBOX SORT COLUMNS(*;$LB_Name;$ColSortBy;<) // this is doing a reverse sort on the sort column would not sort the records in reverse,

Re: Custom Form Events

2019-04-25 Thread Chris Belanger via 4D_Tech
Greetings Kirk, I have been programming in 4D since version 2 back in the early 1990’s. Though v14 was possibly going to become the end of my ‘career’ with 4D. And then v17 came out with ORDA. I love it. I have a fresh enthusiasm for 4D again. I am using 4D v17r4; getting right up-to-speed on

Re: Custom Form Events

2019-04-25 Thread Kirk Brooks via 4D_Tech
Chris, Thanks for the insight. It sounds like you are working with classic 4D code (even if you're using v17). Let me encourage you to think about re-writing your form using v17. I think most of the issues requiring elaborate workarounds won't be necessary. Positioning objects on the form. You

Re: Custom Form Events

2019-04-25 Thread Douglas von Roeder via 4D_Tech
the replies I'm trying to think of what a > > 'custom event' would be. Can you give an example or two? > > > > On Tue, Apr 23, 2019 at 7:33 AM Chris Belanger via 4D_Tech < > > 4d_tech@lists.4d.com> wrote: > > > >> I am wondering if there is a way to configure

Re: Custom Form Events

2019-04-25 Thread Bernd Fröhlich via 4D_Tech
Chris Belanger: > One simple instance I want to experiment on — which, of course, is trivial, > is: > > I have three fields (actually object attributes) > City > Province (or State) > FullCityName > > FullCityName is computed from City & Province > : (City = “”) —> FullCityName := “” >

Re: Custom Form Events

2019-04-24 Thread Chris Belanger via 4D_Tech
to think of what a > 'custom event' would be. Can you give an example or two? > > On Tue, Apr 23, 2019 at 7:33 AM Chris Belanger via 4D_Tech < > 4d_tech@lists.4d.com> wrote: > >> I am wondering if there is a way to configure Custom Form Events. I would >> lik

Re: Custom Form Events

2019-04-24 Thread Chris Belanger via 4D_Tech
Hi Justin, Thanks for the observations. I never thought about using a SET TIMER(-1) to make something run immediately after On Load is done. It is true that many objects are not ‘existent’ by the On Load cycle and that causes me some problems in trying to make code that is as generic as

Re: Custom Form Events

2019-04-23 Thread Justin Carr via 4D_Tech
Hi Chris We use SET TIMER(-1) a lot for this purpose. It is ideal when you want to do something as part of On Load but you need the On Load execution cycle to finish first before you do the next thing, e.g. you need to know the size and position of an object on a form before you take some

Re: Custom Form Events

2019-04-23 Thread Kirk Brooks via 4D_Tech
Chris, Reading through your post and the replies I'm trying to think of what a 'custom event' would be. Can you give an example or two? On Tue, Apr 23, 2019 at 7:33 AM Chris Belanger via 4D_Tech < 4d_tech@lists.4d.com> wrote: > I am wondering if there is a way to configure Custom Form

Re: Custom Form Events

2019-04-23 Thread Douglas von Roeder via 4D_Tech
Chris: IIRC, it was Olivier DesChanels who published that. You might drop him a line - he’s on the Forum. -- Douglas von Roeder 949-336-2902 On Tue, Apr 23, 2019 at 8:40 AM Douglas von Roeder wrote: > Chris: > Could well be Set timer(-1) - that was on the 4D forum a few years back. I >

Re: Custom Form Events

2019-04-23 Thread Douglas von Roeder via 4D_Tech
Chris: Could well be Set timer(-1) - that was on the 4D forum a few years back. I haven’t tried approach, personally. -- Douglas von Roeder 949-336-2902 On Tue, Apr 23, 2019 at 8:24 AM Chris Belanger via 4D_Tech < 4d_tech@lists.4d.com> wrote: > Douglas, that is an ingenious way to facilitate

Re: Custom Form Events

2019-04-23 Thread Chris Belanger via 4D_Tech
Douglas, that is an ingenious way to facilitate it. I suppose one could use a Form object (Form.myEvent) to specify the ‘event’ to perform. But it seems that SET TIMER(-1) is what needs to be done [trigger as soon as possible] and then SET TIMER(0) disables the triggering? — Chris > On Apr 23,

Re: Custom Form Events

2019-04-23 Thread Douglas von Roeder via 4D_Tech
Chris: Set timer (0) and then catch it in On timer. -- Douglas von Roeder 949-336-2902 On Tue, Apr 23, 2019 at 8:17 AM Chris Belanger via 4D_Tech < 4d_tech@lists.4d.com> wrote: > I have been using New formula too. > In the context of ORDA-based forms, I have set up Form.onSave(), >

Re: Custom Form Events

2019-04-23 Thread Chris Belanger via 4D_Tech
I have been using New formula too. In the context of ORDA-based forms, I have set up Form.onSave(), Form.onLoad(), Form.onNew() etc. I like it because the code for record selection and change can be generic with these ’nubs’. I wish that one did not have to create a project method [for other

Re: Custom Form Events

2019-04-23 Thread Jody Bevan via 4D_Tech
not really have to think about it when coding. Hope this helps. It is how we accomplish this. Jody Bevan > On Apr 23, 2019, at 8:32 AM, Chris Belanger via 4D_Tech > <4d_tech@lists.4d.com> wrote: > > I am wondering if there is a way to configure Custom Form Events. I would > li

Re: Custom Form Events

2019-04-23 Thread Chip Scheide via 4D_Tech
, Chris Belanger via 4D_Tech wrote: > I am wondering if there is a way to configure Custom Form Events. I > would like to be able to post a form event, and have it then > processed within the FORM METHOD as such. > I am doing a lot of work in “Orda context” right now and can think >

Custom Form Events

2019-04-23 Thread Chris Belanger via 4D_Tech
I am wondering if there is a way to configure Custom Form Events. I would like to be able to post a form event, and have it then processed within the FORM METHOD as such. I am doing a lot of work in “Orda context” right now and can think of some handy features that could be implemented