Re: nested components

2017-07-25 Thread Chip Scheide via 4D_Tech
THANKS!

That should work too.. I'll have to try and play with this a bit.

On Tue, 25 Jul 2017 16:56:22 -0500, Keith Culotta via 4D_Tech wrote:
> I have one component that is used by the Host and by other 
> components.  These other components are also used by the Host.
> 4D puts all the components at the same level in the Components folder 
> at compile time and it works.
> The Component can also call a Host method if the method in the Host 
> is shared.
---
Gas is for washing parts
Alcohol is for drinkin'
Nitromethane is for racing 
**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: nested components

2017-07-25 Thread Chip Scheide via 4D_Tech
yes - that was what I was thinking.

given:
User_Database (which contains)
  Set_Component (which contains)
 Error_Component


User_Database can make calls to Set_Component.
Set_Component can make calls to Error_Component.
BUT  
User_Database can NOT make calls to Error_Component.

additionally, I have no need to make calls to Set_Component from 
Error_Component
BUT - if I found a need, I can use:
Execute Formula ("Set_Component_Method_name")



On Tue, 25 Jul 2017 21:38:26 +, Wayne Stewart wrote:
> Chip,
> 
> The only way to this stuff easily is one way calls.
> 
> Component A can call Component B but not vice versa.
> 
> If you need to call in both directions then Execute Method or Execute
> Formula are your friends.
> 
> In the host database have both components available. You can’t use a
> ‘contained’ component.
> 
> Wayne
> 
> On Wed, 26 Jul 2017 at 06:41, Chip Scheide via 4D_Tech 
> <4d_tech@lists.4d.com>
> wrote:
> 
>> I am working on a couple of components.
>> in them I use (reuse) the same code for managing errors, like bad
>> parroter values.
>> 
>> can I:
>> - break this error code out into a component, lets call it 'Text_Errors'
>> - then place the 'Text_Errors' component into an other, eventually to
>> be built, component?
>> -and then access the methods in the 'Text_Errors' component from the
>> 'higher level' component.
>> 
>> assuming I can do this, what happens with the final host database?
>> - can the final (host) system see the lower/lowest level component?
>> 
>> (in Ascii)
>> Top level (Host) system
>>|
>>  Component-1
>>|
>>  Error_Component
>> 
>> 
>> Thanks
>> ---
>> Gas is for washing parts
>> Alcohol is for drinkin'
>> Nitromethane is for racing
>> **
>> 4D Internet Users Group (4D iNUG)
>> FAQ:  http://lists.4d.com/faqnug.html
>> Archive:  http://lists.4d.com/archives.html
>> Options: http://lists.4d.com/mailman/options/4d_tech
>> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
>> **
> 
> -- 
> 
> Regards,
> 
> Wayne
> 
> 
> [image: --]
> Wayne Stewart
> [image: http://]about.me/waynestewart
> 
---
Gas is for washing parts
Alcohol is for drinkin'
Nitromethane is for racing 
**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: nested components

2017-07-25 Thread Keith Culotta via 4D_Tech
I have one component that is used by the Host and by other components.  These 
other components are also used by the Host.
4D puts all the components at the same level in the Components folder at 
compile time and it works.
The Component can also call a Host method if the method in the Host is shared.


Component-1
  |
  Error_Component


Component-2
  |
  Error_Component


Top level (Host) system
  | 
  Component-1
  |
  Component-2
  |
  Error_Component


Keith - CDI

> On Jul 25, 2017, at 3:44 PM, Chip Scheide via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> I am working on a couple of components.
> in them I use (reuse) the same code for managing errors, like bad 
> parroter values.
> 
> can I:
> - break this error code out into a component, lets call it 'Text_Errors'
> - then place the 'Text_Errors' component into an other, eventually to 
> be built, component?
> -and then access the methods in the 'Text_Errors' component from the 
> 'higher level' component.
> 
> assuming I can do this, what happens with the final host database?
> - can the final (host) system see the lower/lowest level component?
> 
> (in Ascii)
> Top level (Host) system
>   | 
> Component-1
>   |
> Error_Component
> 
> 
> Thanks
> ---
> Gas is for washing parts
> Alcohol is for drinkin'
> Nitromethane is for racing 
> **
> 4D Internet Users Group (4D iNUG)
> FAQ:  http://lists.4d.com/faqnug.html
> Archive:  http://lists.4d.com/archives.html
> Options: http://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **

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

Re: nested components

2017-07-25 Thread Wayne Stewart via 4D_Tech
Chip,

The only way to this stuff easily is one way calls.

Component A can call Component B but not vice versa.

If you need to call in both directions then Execute Method or Execute
Formula are your friends.

In the host database have both components available. You can’t use a
‘contained’ component.

Wayne

On Wed, 26 Jul 2017 at 06:41, Chip Scheide via 4D_Tech <4d_tech@lists.4d.com>
wrote:

> I am working on a couple of components.
> in them I use (reuse) the same code for managing errors, like bad
> parroter values.
>
> can I:
> - break this error code out into a component, lets call it 'Text_Errors'
> - then place the 'Text_Errors' component into an other, eventually to
> be built, component?
> -and then access the methods in the 'Text_Errors' component from the
> 'higher level' component.
>
> assuming I can do this, what happens with the final host database?
> - can the final (host) system see the lower/lowest level component?
>
> (in Ascii)
> Top level (Host) system
>|
>  Component-1
>|
>  Error_Component
>
>
> Thanks
> ---
> Gas is for washing parts
> Alcohol is for drinkin'
> Nitromethane is for racing
> **
> 4D Internet Users Group (4D iNUG)
> FAQ:  http://lists.4d.com/faqnug.html
> Archive:  http://lists.4d.com/archives.html
> Options: http://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **

-- 

Regards,

Wayne


[image: --]
Wayne Stewart
[image: http://]about.me/waynestewart

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

nested components

2017-07-25 Thread Chip Scheide via 4D_Tech
I am working on a couple of components.
in them I use (reuse) the same code for managing errors, like bad 
parroter values.

can I:
- break this error code out into a component, lets call it 'Text_Errors'
- then place the 'Text_Errors' component into an other, eventually to 
be built, component?
-and then access the methods in the 'Text_Errors' component from the 
'higher level' component.

assuming I can do this, what happens with the final host database?
- can the final (host) system see the lower/lowest level component?

(in Ascii)
Top level (Host) system
   | 
 Component-1
   |
 Error_Component


Thanks
---
Gas is for washing parts
Alcohol is for drinkin'
Nitromethane is for racing 
**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**