starting with 4D

View: New views
14 Messages — Rating Filter:   Alert me  

starting with 4D

by bidur-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message



Hi,
i am new to 4D.
I am waiting for some help to start up, such as a simple calculator or
something with a simple form to input data and then output something .

thank you.

Bidur Devkota
[विदुर
देवकोटा]


**********************************************************************
4D Basics hosted by 4D, Inc.                       http://www.4D.com/

4D v11 SQL - A 21st Century database for 21st Century developers
http://www.4D.com/products/new.html

To Unsubscribe:                        mailto:4DBasics-off@...
**********************************************************************



Re: starting with 4D

by john convey :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,


don't wait ! try some simple things to start with....

there are some training videos on the 4d web site


http://www.4d.com/training

there are also some example databases "how do i"  - you can open  
these and see how these work - start with something relatively simple
eg the uppercase/lowercase example demo database


Look through the design documentation  but try some simple code and  
get it working to build up confidence-

the language documentation can be found at

http://www.4d.com/support/docs.html




Start with the simplest commands to get going

Go to the Method editor in the design environment and try some of the  
commands out  on method1



eg

   ALERT ("Hello World")   `this displays the words Hello World to  
the user

and run that by clicking the green arrow top left

debug these test methods this with the inline debugger


Look up how variables work and how to declare your variables


C_STRING(11;$this_is_a_string_11chrs_long)`  decalre a string  
variable of length 11 characters

$this_is_a_string_11chrs_long:="Hello world"`  allocate a value to  
that variable
ALERT($this_is_a_string_11chrs_long)    `this displays the value  
contained in the variable  to the user



or look up the string commands -  eg 'String'  or change string- then  
use look up and use the Alert command to display results


    vtResult := Change string ("Acme"; "CME"; 2)  ` vtResult gets "ACME"
    vtResult := Change string ("November";"Dec"; 1)  ` vtResult gets  
"December"


Once you have a simple example going you should be able to use the  
above docs to try more complex design and coding




John
John Convey
Sci-do communications






On 2 Nov 2007, at 09:53, bidur@... wrote:


Hi,
i am new to 4D.
I am waiting for some help to start up, such as a simple calculator or
something with a simple form to input data and then output something .

thank you.

Bidur Devkota
[विदुर
देवकोटा]


**********************************************************************
4D Basics hosted by 4D, Inc.                       http://www.4D.com/

4D v11 SQL - A 21st Century database for 21st Century developers
http://www.4D.com/products/new.html

To Unsubscribe:                        mailto:4DBasics-off@...
**********************************************************************



On 2 Nov 2007, at 09:53, bidur@... wrote:

>
>
> Hi,
> i am new to 4D.
> I am waiting for some help to start up, such as a simple calculator or
> something with a simple form to input data and then output something .
>
> thank you.
>
> Bidur Devkota
> [विदुर
> देवकोटा]
>
>
> **********************************************************************
> 4D Basics hosted by 4D, Inc.                       http://www.4D.com/
>
> 4D v11 SQL - A 21st Century database for 21st Century developers
> http://www.4D.com/products/new.html
>
> To Unsubscribe:                        mailto:4DBasics-off@...
> **********************************************************************
>
>


**********************************************************************
4D Basics hosted by 4D, Inc.                       http://www.4D.com/

4D v11 SQL - A 21st Century database for 21st Century developers
http://www.4D.com/products/new.html

To Unsubscribe:                        mailto:4DBasics-off@...
**********************************************************************



Editing data

by Oliver, Bonita J. (SSC-NASA)[Computer Sciences Corp] :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

When the I select a record to display the data in the input form, that
works correctly.  Editing data I cannot.  Do I have something set
incorrectly?

**********************************************************************
4D Basics hosted by 4D, Inc.                       http://www.4D.com/

Did you know?  The 4D Partner Program now gives you
access to Hotfix releases as soon as they are available!
To learn more, go to http://www.4D.com/support/partner.html

To Unsubscribe:                        mailto:4DBasics-off@...
**********************************************************************



Re: Editing data

by john convey :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message



This depends on what commands you are using.

correct me if i am wrong but if you are using the command DISPLAY  
SELECTION - then the input forms
are set to read only

on the other hand if you use MODIFY SELECTION the input form is auto  
set to READ WRITE


same applies for DISPLAY RECORD and MODIFY RECORD (i don't use these)


Its recommended to have all tables in read only at start up and  
specifically set them to read write when
editing data - i think this is now the default for v11

doeas this help?


John

John convey









On 28 Feb 2008, at 15:17, Oliver, Bonita J. (SSC-NASA)[Computer  
Sciences Corp] wrote:

> When the I select a record to display the data in the input form, that
> works correctly.  Editing data I cannot.  Do I have something set
> incorrectly?
>
> **********************************************************************
> 4D Basics hosted by 4D, Inc.                       http://www.4D.com/
>
> Did you know?  The 4D Partner Program now gives you
> access to Hotfix releases as soon as they are available!
> To learn more, go to http://www.4D.com/support/partner.html
>
> To Unsubscribe:                        mailto:4DBasics-off@...
> **********************************************************************
>
>


**********************************************************************
4D Basics hosted by 4D, Inc.                       http://www.4D.com/

Did you know?  The 4D Partner Program now gives you
access to Hotfix releases as soon as they are available!
To learn more, go to http://www.4D.com/support/partner.html

To Unsubscribe:                        mailto:4DBasics-off@...
**********************************************************************



RE: Editing data

by Oliver, Bonita J. (SSC-NASA)[Computer Sciences Corp] :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Why not MODIFY RECORD?

-----Original Message-----
From: 4DBasics@... [mailto:4DBasics@...] On Behalf Of
john convey
Sent: Thursday, February 28, 2008 9:50 AM
To: 4D Basics List
Subject: Re: Editing data



This depends on what commands you are using.

correct me if i am wrong but if you are using the command DISPLAY
SELECTION - then the input forms are set to read only

on the other hand if you use MODIFY SELECTION the input form is auto set
to READ WRITE


same applies for DISPLAY RECORD and MODIFY RECORD (i don't use these)


Its recommended to have all tables in read only at start up and
specifically set them to read write when editing data - i think this is
now the default for v11

doeas this help?


John

John convey









On 28 Feb 2008, at 15:17, Oliver, Bonita J. (SSC-NASA)[Computer Sciences
Corp] wrote:

> When the I select a record to display the data in the input form, that

> works correctly.  Editing data I cannot.  Do I have something set
> incorrectly?
>
> **********************************************************************
> 4D Basics hosted by 4D, Inc.                       http://www.4D.com/
>
> Did you know?  The 4D Partner Program now gives you access to Hotfix
> releases as soon as they are available!
> To learn more, go to http://www.4D.com/support/partner.html
>
> To Unsubscribe:                        mailto:4DBasics-off@...
> **********************************************************************
>
>


**********************************************************************
4D Basics hosted by 4D, Inc.                       http://www.4D.com/

Did you know?  The 4D Partner Program now gives you access to Hotfix
releases as soon as they are available!
To learn more, go to http://www.4D.com/support/partner.html

To Unsubscribe:                        mailto:4DBasics-off@...
**********************************************************************



**********************************************************************
4D Basics hosted by 4D, Inc.                       http://www.4D.com/

Did you know?  The 4D Partner Program now gives you
access to Hotfix releases as soon as they are available!
To learn more, go to http://www.4D.com/support/partner.html

To Unsubscribe:                        mailto:4DBasics-off@...
**********************************************************************



RE: Editing data

by Oliver, Bonita J. (SSC-NASA)[Computer Sciences Corp] :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

MODIFY SELECTION displays it in the Output form not the input.  I was
using MODIFY RECORD, which places the data in the input form. I give the
table read write access before MODIFY RECORD is called.

-----Original Message-----
From: 4DBasics@... [mailto:4DBasics@...] On Behalf Of
john convey
Sent: Thursday, February 28, 2008 9:50 AM
To: 4D Basics List
Subject: Re: Editing data



This depends on what commands you are using.

correct me if i am wrong but if you are using the command DISPLAY
SELECTION - then the input forms are set to read only

on the other hand if you use MODIFY SELECTION the input form is auto set
to READ WRITE


same applies for DISPLAY RECORD and MODIFY RECORD (i don't use these)


Its recommended to have all tables in read only at start up and
specifically set them to read write when editing data - i think this is
now the default for v11

doeas this help?


John

John convey









On 28 Feb 2008, at 15:17, Oliver, Bonita J. (SSC-NASA)[Computer Sciences
Corp] wrote:

> When the I select a record to display the data in the input form, that

> works correctly.  Editing data I cannot.  Do I have something set
> incorrectly?
>
> **********************************************************************
> 4D Basics hosted by 4D, Inc.                       http://www.4D.com/
>
> Did you know?  The 4D Partner Program now gives you access to Hotfix
> releases as soon as they are available!
> To learn more, go to http://www.4D.com/support/partner.html
>
> To Unsubscribe:                        mailto:4DBasics-off@...
> **********************************************************************
>
>


**********************************************************************
4D Basics hosted by 4D, Inc.                       http://www.4D.com/

Did you know?  The 4D Partner Program now gives you access to Hotfix
releases as soon as they are available!
To learn more, go to http://www.4D.com/support/partner.html

To Unsubscribe:                        mailto:4DBasics-off@...
**********************************************************************



**********************************************************************
4D Basics hosted by 4D, Inc.                       http://www.4D.com/

Did you know?  The 4D Partner Program now gives you
access to Hotfix releases as soon as they are available!
To learn more, go to http://www.4D.com/support/partner.html

To Unsubscribe:                        mailto:4DBasics-off@...
**********************************************************************



RE: Editing data

by Oliver, Bonita J. (SSC-NASA)[Computer Sciences Corp] :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

DISPLAY SELECTION displays the data in a list.  I need the data to
display in a form.

-----Original Message-----
From: 4DBasics@... [mailto:4DBasics@...] On Behalf Of
john convey
Sent: Thursday, February 28, 2008 9:50 AM
To: 4D Basics List
Subject: Re: Editing data



This depends on what commands you are using.

correct me if i am wrong but if you are using the command DISPLAY
SELECTION - then the input forms are set to read only

on the other hand if you use MODIFY SELECTION the input form is auto set
to READ WRITE


same applies for DISPLAY RECORD and MODIFY RECORD (i don't use these)


Its recommended to have all tables in read only at start up and
specifically set them to read write when editing data - i think this is
now the default for v11

doeas this help?


John

John convey









On 28 Feb 2008, at 15:17, Oliver, Bonita J. (SSC-NASA)[Computer Sciences
Corp] wrote:

> When the I select a record to display the data in the input form, that

> works correctly.  Editing data I cannot.  Do I have something set
> incorrectly?
>
> **********************************************************************
> 4D Basics hosted by 4D, Inc.                       http://www.4D.com/
>
> Did you know?  The 4D Partner Program now gives you access to Hotfix
> releases as soon as they are available!
> To learn more, go to http://www.4D.com/support/partner.html
>
> To Unsubscribe:                        mailto:4DBasics-off@...
> **********************************************************************
>
>


**********************************************************************
4D Basics hosted by 4D, Inc.                       http://www.4D.com/

Did you know?  The 4D Partner Program now gives you access to Hotfix
releases as soon as they are available!
To learn more, go to http://www.4D.com/support/partner.html

To Unsubscribe:                        mailto:4DBasics-off@...
**********************************************************************



**********************************************************************
4D Basics hosted by 4D, Inc.                       http://www.4D.com/

Did you know?  The 4D Partner Program now gives you
access to Hotfix releases as soon as they are available!
To learn more, go to http://www.4D.com/support/partner.html

To Unsubscribe:                        mailto:4DBasics-off@...
**********************************************************************



Re: Editing data

by john convey :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


I need to know a bit more information about what the problem is.

You have a table , and an input form called say input and an output  
form called output

you want the user to be able to modify one record in the database ?
so they carry out a query which results in  a 'one record selection'  
for that table

is that right?

I can't remember why i don't use modify record - it is probably  
because many moons ago there
was a subtle difference in the commands that did not suit was i was  
trying to achieve
this may no longer be the case

I think you can use modify selection - if only one record is found  
then the input form is displayed
for example this works below - there is only one contact matches the  
query for  'lest we forget'

however if there were more than one, say three, then a list of three  
records in the output form
would display and double clicking would open the input form for that  
record and the record would be editable

   ` ----------------------------------------------------
   ` User name (OS): johnconvey
   ` Date and time: 28/02/08, 17:20:18
   ` ----------------------------------------------------
   ` Method: test_modify_record
   ` Description
   ` TEST INPUT FORM
   `
   ` Parameters
   ` ----------------------------------------------------

READ WRITE([CONTACTS FILE])
ALL RECORDS([CONTACTS FILE])
INPUT FORM([CONTACTS FILE];"newfinance2")
OUTPUT FORM([CONTACTS FILE];"output")
QUERY SELECTION([CONTACTS FILE];[CONTACTS FILE]CONTACT NAME="@LEST WE  
FORGET@")
MODIFY SELECTION([CONTACTS FILE])


john







On 28 Feb 2008, at 16:47, Oliver, Bonita J. (SSC-NASA)[Computer  
Sciences Corp] wrote:

> DISPLAY SELECTION displays the data in a list.  I need the data to
> display in a form.
>
> -----Original Message-----
> From: 4DBasics@... [mailto:4DBasics@...] On Behalf Of
> john convey
> Sent: Thursday, February 28, 2008 9:50 AM
> To: 4D Basics List
> Subject: Re: Editing data
>
>
>
> This depends on what commands you are using.
>
> correct me if i am wrong but if you are using the command DISPLAY
> SELECTION - then the input forms are set to read only
>
> on the other hand if you use MODIFY SELECTION the input form is  
> auto set
> to READ WRITE
>
>
> same applies for DISPLAY RECORD and MODIFY RECORD (i don't use these)
>
>
> Its recommended to have all tables in read only at start up and
> specifically set them to read write when editing data - i think  
> this is
> now the default for v11
>
> doeas this help?
>
>
> John
>
> John convey
>
>
>
>
>
>
>
>
>
> On 28 Feb 2008, at 15:17, Oliver, Bonita J. (SSC-NASA)[Computer  
> Sciences
> Corp] wrote:
>
>> When the I select a record to display the data in the input form,  
>> that
>
>> works correctly.  Editing data I cannot.  Do I have something set
>> incorrectly?
>>
>> *********************************************************************
>> *
>> 4D Basics hosted by 4D, Inc.                       http://www.4D.com/
>>
>> Did you know?  The 4D Partner Program now gives you access to Hotfix
>> releases as soon as they are available!
>> To learn more, go to http://www.4D.com/support/partner.html
>>
>> To Unsubscribe:                        mailto:4DBasics-off@info.
>> 4D.com
>> *********************************************************************
>> *
>>
>>
>
>
> **********************************************************************
> 4D Basics hosted by 4D, Inc.                       http://www.4D.com/
>
> Did you know?  The 4D Partner Program now gives you access to Hotfix
> releases as soon as they are available!
> To learn more, go to http://www.4D.com/support/partner.html
>
> To Unsubscribe:                        mailto:4DBasics-off@...
> **********************************************************************
>
>
>
> **********************************************************************
> 4D Basics hosted by 4D, Inc.                       http://www.4D.com/
>
> Did you know?  The 4D Partner Program now gives you
> access to Hotfix releases as soon as they are available!
> To learn more, go to http://www.4D.com/support/partner.html
>
> To Unsubscribe:                        mailto:4DBasics-off@...
> **********************************************************************
>
>


**********************************************************************
4D Basics hosted by 4D, Inc.                       http://www.4D.com/

Did you know?  The 4D Partner Program now gives you
access to Hotfix releases as soon as they are available!
To learn more, go to http://www.4D.com/support/partner.html

To Unsubscribe:                        mailto:4DBasics-off@...
**********************************************************************



RE: Editing data

by Oliver, Bonita J. (SSC-NASA)[Computer Sciences Corp] :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Imagine this.....

There is a list of records in a table displayed on a form.  The records
are not editable.  You highlight one of the records and Click on a view
button.  The view button will display the data on the input form.  This
is the form the user will be able to edit.  This is where I cannot edit.


For some reason when I use MODIFY SELECTION, it brings the data up in
the output form even though I have INPUT FORM(curfile->;)

-----Original Message-----
From: 4DBasics@... [mailto:4DBasics@...] On Behalf Of
john convey
Sent: Thursday, February 28, 2008 11:30 AM
To: 4D Basics List
Subject: Re: Editing data


I need to know a bit more information about what the problem is.

You have a table , and an input form called say input and an output form
called output

you want the user to be able to modify one record in the database ?
so they carry out a query which results in  a 'one record selection'  
for that table

is that right?

I can't remember why i don't use modify record - it is probably because
many moons ago there was a subtle difference in the commands that did
not suit was i was trying to achieve this may no longer be the case

I think you can use modify selection - if only one record is found then
the input form is displayed for example this works below - there is only
one contact matches the query for  'lest we forget'

however if there were more than one, say three, then a list of three
records in the output form would display and double clicking would open
the input form for that record and the record would be editable

   ` ----------------------------------------------------
   ` User name (OS): johnconvey
   ` Date and time: 28/02/08, 17:20:18
   ` ----------------------------------------------------
   ` Method: test_modify_record
   ` Description
   ` TEST INPUT FORM
   `
   ` Parameters
   ` ----------------------------------------------------

READ WRITE([CONTACTS FILE])
ALL RECORDS([CONTACTS FILE])
INPUT FORM([CONTACTS FILE];"newfinance2") OUTPUT FORM([CONTACTS
FILE];"output") QUERY SELECTION([CONTACTS FILE];[CONTACTS FILE]CONTACT
NAME="@LEST WE
FORGET@")
MODIFY SELECTION([CONTACTS FILE])


john







On 28 Feb 2008, at 16:47, Oliver, Bonita J. (SSC-NASA)[Computer Sciences
Corp] wrote:

> DISPLAY SELECTION displays the data in a list.  I need the data to
> display in a form.
>
> -----Original Message-----
> From: 4DBasics@... [mailto:4DBasics@...] On Behalf Of
> john convey
> Sent: Thursday, February 28, 2008 9:50 AM
> To: 4D Basics List
> Subject: Re: Editing data
>
>
>
> This depends on what commands you are using.
>
> correct me if i am wrong but if you are using the command DISPLAY
> SELECTION - then the input forms are set to read only
>
> on the other hand if you use MODIFY SELECTION the input form is auto
> set to READ WRITE
>
>
> same applies for DISPLAY RECORD and MODIFY RECORD (i don't use these)
>
>
> Its recommended to have all tables in read only at start up and
> specifically set them to read write when editing data - i think this
> is now the default for v11
>
> doeas this help?
>
>
> John
>
> John convey
>
>
>
>
>
>
>
>
>
> On 28 Feb 2008, at 15:17, Oliver, Bonita J. (SSC-NASA)[Computer
> Sciences Corp] wrote:
>
>> When the I select a record to display the data in the input form,
>> that
>
>> works correctly.  Editing data I cannot.  Do I have something set
>> incorrectly?
>>
>> *********************************************************************
>> *
>> 4D Basics hosted by 4D, Inc.                       http://www.4D.com/
>>
>> Did you know?  The 4D Partner Program now gives you access to Hotfix
>> releases as soon as they are available!
>> To learn more, go to http://www.4D.com/support/partner.html
>>
>> To Unsubscribe:                        mailto:4DBasics-off@info.
>> 4D.com
>> *********************************************************************
>> *
>>
>>
>
>
> **********************************************************************
> 4D Basics hosted by 4D, Inc.                       http://www.4D.com/
>
> Did you know?  The 4D Partner Program now gives you access to Hotfix
> releases as soon as they are available!
> To learn more, go to http://www.4D.com/support/partner.html
>
> To Unsubscribe:                        mailto:4DBasics-off@...
> **********************************************************************
>
>
>
> **********************************************************************
> 4D Basics hosted by 4D, Inc.                       http://www.4D.com/
>
> Did you know?  The 4D Partner Program now gives you access to Hotfix
> releases as soon as they are available!
> To learn more, go to http://www.4D.com/support/partner.html
>
> To Unsubscribe:                        mailto:4DBasics-off@...
> **********************************************************************
>
>


**********************************************************************
4D Basics hosted by 4D, Inc.                       http://www.4D.com/

Did you know?  The 4D Partner Program now gives you access to Hotfix
releases as soon as they are available!
To learn more, go to http://www.4D.com/support/partner.html

To Unsubscribe:                        mailto:4DBasics-off@...
**********************************************************************



**********************************************************************
4D Basics hosted by 4D, Inc.                       http://www.4D.com/

Did you know?  The 4D Partner Program now gives you
access to Hotfix releases as soon as they are available!
To learn more, go to http://www.4D.com/support/partner.html

To Unsubscribe:                        mailto:4DBasics-off@...
**********************************************************************



Re: Editing data

by Josh Fletcher (4D, Inc.) :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Oliver, Bonita J. (SSC-NASA)[Computer Sciences Corp] wrote:
> There is a list of records in a table displayed on a form.  The records
> are not editable.

Using DISPLAY SELECTION?

> You highlight one of the records and Click on a view
> button.  The view button will display the data on the input form.  This
> is the form the user will be able to edit.  This is where I cannot edit.

That is correct, if you are using DISPLAY SELECTION.  The table is in
read-only mode.  Set the table to READ WRITE for editing (don't forget
to set it back to READ ONLY when done).

> For some reason when I use MODIFY SELECTION, it brings the data up in
> the output form even though I have INPUT FORM(curfile->;)

That's what MODIFY SELECTION does, it brings up the output form.
Changing the Input form has no effect on this part.  Changing the Input
form only affects which form is opened when you double-click a record.

Are you saying you want MODIFY SELECTION to use a Detail form?  You can
do this but it may work strange.  Use the OUTPUT FORM command to do
this, not the INPUT FORM command.

Kind regards,

Josh Fletcher

--
Josh Fletcher
Technical Services Team Member
4D, Inc.

**********************************************************************
4D Basics hosted by 4D, Inc.                       http://www.4D.com/

Did you know?  The 4D Partner Program now gives you
access to Hotfix releases as soon as they are available!
To learn more, go to http://www.4D.com/support/partner.html

To Unsubscribe:                        mailto:4DBasics-off@...
**********************************************************************



RE: Editing data

by Oliver, Bonita J. (SSC-NASA)[Computer Sciences Corp] :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

No I am not using DISPLAY SELECTION to display the records.  The records
are being displayed on the AreaList Pro plugin.  So I use those
functions.  That's not the problem.  The problem is when the user clicks
the button and the data displays, but cannot delete or add data in that
form.  

The table is in READ WRITE mode for editing.  

Yes that is what I am saying.  The data is being displayed in a detailed
form.  That's why I am using MODIFY RECORD. Are you saying to use the
opposite form in the code and it will display the other, i.e. use input
display output and vice versa?

-----Original Message-----
From: 4DBasics@... [mailto:4DBasics@...] On Behalf Of
Josh Fletcher (4D, Inc.)
Sent: Thursday, February 28, 2008 2:12 PM
To: 4D Basics List
Subject: Re: Editing data

Oliver, Bonita J. (SSC-NASA)[Computer Sciences Corp] wrote:
> There is a list of records in a table displayed on a form.  The
> records are not editable.

Using DISPLAY SELECTION?

> You highlight one of the records and Click on a view button.  The view

> button will display the data on the input form.  This is the form the
> user will be able to edit.  This is where I cannot edit.

That is correct, if you are using DISPLAY SELECTION.  The table is in
read-only mode.  Set the table to READ WRITE for editing (don't forget
to set it back to READ ONLY when done).

> For some reason when I use MODIFY SELECTION, it brings the data up in
> the output form even though I have INPUT FORM(curfile->;)

That's what MODIFY SELECTION does, it brings up the output form.
Changing the Input form has no effect on this part.  Changing the Input
form only affects which form is opened when you double-click a record.

Are you saying you want MODIFY SELECTION to use a Detail form?  You can
do this but it may work strange.  Use the OUTPUT FORM command to do
this, not the INPUT FORM command.

Kind regards,

Josh Fletcher

--
Josh Fletcher
Technical Services Team Member
4D, Inc.

**********************************************************************
4D Basics hosted by 4D, Inc.                       http://www.4D.com/

Did you know?  The 4D Partner Program now gives you access to Hotfix
releases as soon as they are available!
To learn more, go to http://www.4D.com/support/partner.html

To Unsubscribe:                        mailto:4DBasics-off@...
**********************************************************************



**********************************************************************
4D Basics hosted by 4D, Inc.                       http://www.4D.com/

Did you know?  The 4D Partner Program now gives you
access to Hotfix releases as soon as they are available!
To learn more, go to http://www.4D.com/support/partner.html

To Unsubscribe:                        mailto:4DBasics-off@...
**********************************************************************



Re: Editing data

by Josh Fletcher (4D, Inc.) :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi there,

Oliver, Bonita J. (SSC-NASA)[Computer Sciences Corp] wrote:
> No I am not using DISPLAY SELECTION to display the records.  The records
> are being displayed on the AreaList Pro plugin.  So I use those
> functions.  That's not the problem.  The problem is when the user clicks
> the button and the data displays, but cannot delete or add data in that
> form.  

Understood.  I am not familiar with AreaList Pro so I cannot help there.

> Yes that is what I am saying.  The data is being displayed in a detailed
> form.  That's why I am using MODIFY RECORD.

You previously said you were using MODIFY SELECTION, which is why I made
those suggestions.  You can ignore my comments if you are using MODIFY
RECORD.

Kind regards,

Josh Fletcher

--
Josh Fletcher
Technical Services Team Member
4D, Inc.

**********************************************************************
4D Basics hosted by 4D, Inc.                       http://www.4D.com/

Did you know?  The 4D Partner Program now gives you
access to Hotfix releases as soon as they are available!
To learn more, go to http://www.4D.com/support/partner.html

To Unsubscribe:                        mailto:4DBasics-off@...
**********************************************************************



RE: Editing data

by Oliver, Bonita J. (SSC-NASA)[Computer Sciences Corp] :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I am using MODIFY RECORD.  I've changed it to MODIFY SELECTION and it
gave me the output form so I've changed it back to MODIFY RECORD.

-----Original Message-----
From: 4DBasics@... [mailto:4DBasics@...] On Behalf Of
Josh Fletcher (4D, Inc.)
Sent: Thursday, February 28, 2008 3:22 PM
To: 4D Basics List
Subject: Re: Editing data

Hi there,

Oliver, Bonita J. (SSC-NASA)[Computer Sciences Corp] wrote:
> No I am not using DISPLAY SELECTION to display the records.  The
> records are being displayed on the AreaList Pro plugin.  So I use
> those functions.  That's not the problem.  The problem is when the
> user clicks the button and the data displays, but cannot delete or add

> data in that form.

Understood.  I am not familiar with AreaList Pro so I cannot help there.

> Yes that is what I am saying.  The data is being displayed in a
> detailed form.  That's why I am using MODIFY RECORD.

You previously said you were using MODIFY SELECTION, which is why I made
those suggestions.  You can ignore my comments if you are using MODIFY
RECORD.

Kind regards,

Josh Fletcher

--
Josh Fletcher
Technical Services Team Member
4D, Inc.

**********************************************************************
4D Basics hosted by 4D, Inc.                       http://www.4D.com/

Did you know?  The 4D Partner Program now gives you access to Hotfix
releases as soon as they are available!
To learn more, go to http://www.4D.com/support/partner.html

To Unsubscribe:                        mailto:4DBasics-off@...
**********************************************************************



**********************************************************************
4D Basics hosted by 4D, Inc.                       http://www.4D.com/

Did you know?  The 4D Partner Program now gives you
access to Hotfix releases as soon as they are available!
To learn more, go to http://www.4D.com/support/partner.html

To Unsubscribe:                        mailto:4DBasics-off@...
**********************************************************************



Re: Editing data

by john convey :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Ho Bonita,

this all sounds very frustrating but i'm sure this can be done

- only just read the latest on this and how you are using area list -  
something i
am not familiar with also.
what i do know is that the number of records in the selection is  
crucial to which
form 4d uses to show a record when using modify selection so what is  
below may help.

the problem you have may well be the same reason i use MODIFY  
SELECTION but never MODIFY RECORD
which has a different behaviour


sorry i havn't tried that sort if thing for a while but this may help..

> For some reason when I use MODIFY SELECTION, it brings the data up in
> the output form even though I have INPUT FORM(curfile->;)

this is documented and expected behaviour, modify selection by  
definition assumes
a selection > 1 so the default uses the most recently declared OUTPUT  
form to list the records.

However, when only one record is found the behaviour changes  - as in  
my tested example it should
use the most recently declared INPUT form.

For testing why not try declaring the input form in 'long hand'  
without the pointer

> Imagine this.....
>
> There is a list of records in a table displayed on a form.

Are you  using a Subform here ? to display the records in a form. I'm  
still sure the method you are using.
but this should be doable.  [addendum - I know now you are using area  
list ]

the code in the 'view' button would be crucial to which input form is  
used. It does sound as if you are still getting
a selection of more than on e record - why not check in the debugger  
- the number of records in the selection after highlighting and
clicking the view button. i suspect there is more than one record  
selected in the table at that point.
so the default behaviour i