Re: Subform initialize logic

2017-11-24 Thread Kirk Brooks via 4D_Tech
Piotr, On Fri, Nov 24, 2017 at 2:59 AM, Piotr Chabot Stadhouders via 4D_Tech < 4d_tech@lists.4d.com> wrote: > As an example I have the following scenario: > An employee form with a lot of fields and a checkbox “manager” on page 1 > Other fields on page 2 > The items of some “dropdown lists”

RE: Subform initialize logic

2017-11-24 Thread Piotr Chabot Stadhouders via 4D_Tech
Kirk, As an example I have the following scenario: An employee form with a lot of fields and a checkbox “manager” on page 1 Other fields on page 2 The items of some “dropdown lists” (custom widget) on page 2 depend on the manager status (checkbox) on page 1 So when going through the records

Re: Subform initialize logic

2017-11-23 Thread Kirk Brooks via 4D_Tech
Piotr, On Thu, Nov 23, 2017 at 11:01 AM, Piotr Chabot Stadhouders via 4D_Tech < 4d_tech@lists.4d.com> wrote: > I have to do this “On Page Change” > ​Yep, this is exactly the sort of situation that makes having the subform config code in a process method useful - the subform doesn't need to even

RE: Subform initialize logic

2017-11-23 Thread Piotr Chabot Stadhouders via 4D_Tech
Hi Kirk, Thanks for your comprehensive explanation. I think I am on the right track. A lot of things you are saying I am already doing, based on some example components My widget is a “custom dropdown list” widget I am converting system dropdown lists to this widget The system dropdowns are

Re: Subform initialize logic

2017-11-23 Thread Kirk Brooks via 4D_Tech
Piotr, On Thu, Nov 23, 2017 at 5:14 AM, Piotr Chabot Stadhouders via 4D_Tech < 4d_tech@lists.4d.com> wrote: > As I understand correctly, when not on page 1, this subform is only > initialized when the page is loaded > ​I assume you are talking about a subform you placed in the design

Subform initialize logic

2017-11-23 Thread Piotr Chabot Stadhouders via 4D_Tech
Hi, 4D v16.2 I am using a subform in my app (a widget) As I understand correctly, when not on page 1, this subform is only initialized when the page is loaded In my widget I have an attribute defined called "enabled" When using a dropdown for example, I can disable the dropdown "On load", even