Re: How can one REDRAW a SUBFORM that uses a OBJECT as its 'variable or expression'?

2020-03-11 Thread Tim Nevels via 4D_Tech
On Mar 11, 2020, at 2:00 PM, Chris Belanger wrote:

> Thank you, Lahav. Worked.
> 
> Still don’t understand why REDRAW( ) doesn’t get a (*; OBJECT NAME) syntax 
> though …

Create your own command called “REDRAW_OBJECT($object_o)” and pass in an object 
reference. That’s what I have done. Then when you read the code later you know 
exactly what is going on. Assigning an object to itself does not immediately 
tell me what is happening and why it is being done. 

Tim

*
Tim Nevels
Innovative Solutions
785-749-3444
timnev...@mac.com
*

**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: How can one REDRAW a SUBFORM that uses a OBJECT as its 'variable or expression'?

2020-03-10 Thread Chris Belanger via 4D_Tech
Thank you, Lahav. Worked.

Still don’t understand why REDRAW( ) doesn’t get a (*; OBJECT NAME) syntax 
though …

(But your solution is simple enough)
— Chris


> On Mar 10, 2020, at 7:27 PM, lists via 4D_Tech <4d_tech@lists.4d.com> wrote:
> 
> All you need to do is to assign the entity selection object to itself to 
> trigger an update, as in
> 
> Form.my_Entity_List:= Form.my_Entity_List
> 
> Lahav

**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

RE: How can one REDRAW a SUBFORM that uses a OBJECT as its 'variable or expression'?

2020-03-10 Thread lists via 4D_Tech
All you need to do is to assign the entity selection object to itself to 
trigger an update, as in

Form.my_Entity_List:= Form.my_Entity_List

Lahav

-Original Message-
From: 4D_Tech <4d_tech-boun...@lists.4d.com> On Behalf Of Chris Belanger via 
4D_Tech
Sent: Tuesday, March 10, 2020 7:03 PM
To: 4D iNUG Technical <4d_tech@lists.4d.com>
Cc: Chris Belanger 
Subject: Re: How can one REDRAW a SUBFORM that uses a OBJECT as its 'variable 
or expression'?

Sorry for not including that detail. It is an entity-selection listBox. I had 
initially written more detail about my issue and decided perhaps it was too 
verbose (a bad tendency of mine).
It has the same ‘REDRAW( )’ issue as the subform that contains it — no way to 
indicate the object. Since there is no REDRAW ( * ; objectName ) syntax.

— Chris

> On Mar 10, 2020, at 1:12 PM, Kirk Brooks via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> Hi Chris,
> What's going on in the subform that's not updating?
> 
> On Tue, Mar 10, 2020 at 12:05 PM Chris Belanger via 4D_Tech < 
> 4d_tech@lists.4d.com> wrote:
> 
>> 4D continues to NOT QUITE truly and fully support its object 
>> notation, and the inability to get a pointer to an object attribute 
>> continues to confound.
>> 
>> The latest issue involves an attempt to use REDRAW( ) to redraw a 
>> subform that is named, but whose ‘variable or expression’ as an 
>> OBJECT (not a variable).
>> 
>> Because REDRAW( ) does not support a common 4D command structure:  i.e.
>> REDRAW ( * ; ObjectName ) in addition to REDRAW ( Variable ), then it 
>> is impossible to use REDRAW on a subform that uses an OBJECT.
>> 
>> Does anyone have a method of getting a subform REDRAW accomplished, 
>> when its ‘variable’ is an OBJECT?
>> 
>> Thanks,
>> Chris
>> *
>> *
>> 4D Internet Users Group (4D iNUG)
>> Archive:  http://lists.4d.com/archives.html
>> Options: https://lists.4d.com/mailman/options/4d_tech
>> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
>> *
>> *
> 
> 
> 
> --
> Kirk Brooks
> San Francisco, CA
> ==
> **
> 4D Internet Users Group (4D iNUG)
> Archive:  http://lists.4d.com/archives.html
> Options: https://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **

**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**
**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: How can one REDRAW a SUBFORM that uses a OBJECT as its 'variable or expression'?

2020-03-10 Thread Chris Belanger via 4D_Tech
Sorry for not including that detail. It is an entity-selection listBox. I had 
initially written more detail about my issue and decided perhaps it was too 
verbose (a bad tendency of mine).
It has the same ‘REDRAW( )’ issue as the subform that contains it — no way to 
indicate the object. Since there is no REDRAW ( * ; objectName ) syntax.

— Chris

> On Mar 10, 2020, at 1:12 PM, Kirk Brooks via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> Hi Chris,
> What's going on in the subform that's not updating?
> 
> On Tue, Mar 10, 2020 at 12:05 PM Chris Belanger via 4D_Tech <
> 4d_tech@lists.4d.com> wrote:
> 
>> 4D continues to NOT QUITE truly and fully support its object notation, and
>> the inability to get a pointer to an object attribute continues to confound.
>> 
>> The latest issue involves an attempt to use REDRAW( ) to redraw a subform
>> that is named, but whose ‘variable or expression’ as an OBJECT (not a
>> variable).
>> 
>> Because REDRAW( ) does not support a common 4D command structure:  i.e.
>> REDRAW ( * ; ObjectName ) in addition to REDRAW ( Variable ), then it is
>> impossible to use REDRAW on a subform that uses an OBJECT.
>> 
>> Does anyone have a method of getting a subform REDRAW accomplished, when
>> its ‘variable’ is an OBJECT?
>> 
>> Thanks,
>> Chris
>> **
>> 4D Internet Users Group (4D iNUG)
>> Archive:  http://lists.4d.com/archives.html
>> Options: https://lists.4d.com/mailman/options/4d_tech
>> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
>> **
> 
> 
> 
> -- 
> Kirk Brooks
> San Francisco, CA
> ==
> **
> 4D Internet Users Group (4D iNUG)
> Archive:  http://lists.4d.com/archives.html
> Options: https://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **

**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: How can one REDRAW a SUBFORM that uses a OBJECT as its 'variable or expression'?

2020-03-10 Thread Kirk Brooks via 4D_Tech
Hi Chris,
What's going on in the subform that's not updating?

On Tue, Mar 10, 2020 at 12:05 PM Chris Belanger via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> 4D continues to NOT QUITE truly and fully support its object notation, and
> the inability to get a pointer to an object attribute continues to confound.
>
> The latest issue involves an attempt to use REDRAW( ) to redraw a subform
> that is named, but whose ‘variable or expression’ as an OBJECT (not a
> variable).
>
> Because REDRAW( ) does not support a common 4D command structure:  i.e.
> REDRAW ( * ; ObjectName ) in addition to REDRAW ( Variable ), then it is
> impossible to use REDRAW on a subform that uses an OBJECT.
>
> Does anyone have a method of getting a subform REDRAW accomplished, when
> its ‘variable’ is an OBJECT?
>
> Thanks,
> Chris
> **
> 4D Internet Users Group (4D iNUG)
> Archive:  http://lists.4d.com/archives.html
> Options: https://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **



-- 
Kirk Brooks
San Francisco, CA
==
**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**