Re: v13+ Components and Host forms

2019-01-16 Thread Chip Scheide via 4D_Tech
hmmm
was trying to create a bit of generic code for adding and editing 
records from a component.

THANKS
Chip

On Thu, 17 Jan 2019 06:16:12 +0900, Jeremy Roussak via 4D_Tech wrote:
> I don’t think so, no: the form isn’t visible from the component.
> 
> I have worked round this by having a method in the host, callable by 
> the component, which opens a specified form (for my purposes, using 
> DIALOG, but I can’t see why ADD RECORD shouldn’t be OK as well). It 
> works.
> 
> Jeremy
> 
>> On 17 Jan 2019, at 05:49, Chip Scheide via 4D_Tech 
>> <4d_tech@lists.4d.com> wrote:
>> 
>> I have been reading through the docs on components, and I am not clear.
>> 
>> If I have a component, and I want to add a record to a host table, 
>> using an entry form defined in the host system. Can I do the following 
>> in the component, and expect it to work?
>> 
>> 
>> $Table:=$1   // pointer to table to add a record
>> $Input_Form:=$2   // entry form to use, text
>> 
>> FORM SET INPUT($Table->;$input_Form)
>> ADD RECORD($Table->)
>> 
>> Thanks
>> Chip
> 
> 
> 
> **
> 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
> **
---
Gas is for washing parts
Alcohol is for drinkin'
Nitromethane is for racing 
**
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: v13+ Components and Host forms

2019-01-16 Thread Jeremy Roussak via 4D_Tech
I don’t think so, no: the form isn’t visible from the component.

I have worked round this by having a method in the host, callable by the 
component, which opens a specified form (for my purposes, using DIALOG, but I 
can’t see why ADD RECORD shouldn’t be OK as well). It works.

Jeremy

> On 17 Jan 2019, at 05:49, Chip Scheide via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> I have been reading through the docs on components, and I am not clear.
> 
> If I have a component, and I want to add a record to a host table, 
> using an entry form defined in the host system. Can I do the following 
> in the component, and expect it to work?
> 
> 
> $Table:=$1   // pointer to table to add a record
> $Input_Form:=$2   // entry form to use, text
> 
> FORM SET INPUT($Table->;$input_Form)
> ADD RECORD($Table->)
> 
> Thanks
> Chip



**
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
**