okay, that’s the scoop. Thank you for confirming.

So I was thinking of storing the path to the attribute I need to manage INTO 
the widget.
I see I can do that simply enough, inside the SCRIPT for the CONTAINER.
I just put this into the script for the container (and enabled the ‘on load’ 
event for it).
: (Form event=On Load)  
                EXECUTE METHOD IN SUBFORM(OBJECT Get 
Name;"SET_FORM_OBJ_ATTR";*;"myEntity.formDate”)

SET_FORM_OBJ_ATTR( ) merely assigns it to  Form.sourceAttrPath  in the widget.

This works okay.
…

I am trying to figure out how to trigger a CUSTOM EVENT in the subform. I will 
name it on_WidgetUpdate  (constant) -93
If I can trigger this custom event as needed, then the widgets can update 
themselves by looking at the  Form.sourceAttrPath to figure out where to update 
from.

I am not clear on how I would trigger the event, though. Hopefully it can be 
done in a ‘form-level’ way so that all the subforms (i.e. widgets) would 
receive it automatically. But I could send it to each one if need be.

If you can tell me what I do, I would appreciate that (to trigger the custom 
event).

I’m thinking I may have to use CALL SUBFORM CONTAINER ( on_WidgetUpdate ) and 
then that container object will have to execute within the subform (EXECUTE 
METHOD IN SUBFORM)

— Chris




> On Jul 7, 2019, at 9:18 PM, Keisuke Miyako via 4D_Tech <[email protected]> 
> wrote:
> 
> that is correct...
> 
> an object property is not a variable, so it doesn't qualify as a bound 
> variable.
> 
> and a pointer can only point to a table, field, variable, array or array 
> element,
> so again, an object property is out of luck.
> 
> the widget system works best when the expression or variable is blank.
> 
>> 2019/07/08 9:59、Chris Belanger via 4D_Tech <[email protected]>のメール:
>> 
>> Actually, I see that 4D’s widgets do not work either (dateEntry) when the 
>> bound variable is    Form.thisDate.
>> 
>> I know that 4D cannot make Pointers to Form. elements like that.
>> But it is pretty bad that there is no way (apparently) for a subform to 
>> access its bound variable in this instance.
>> 
>> anyone confirm that?
> 
> 
> 
> 
> **********************************************************************
> 4D Internet Users Group (4D iNUG)
> Archive:  http://lists.4d.com/archives.html
> Options: https://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:[email protected]
> **********************************************************************

**********************************************************************
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:[email protected]
**********************************************************************

Reply via email to