Hi Steve
The online help says "the previously accessed record" but this only seems to
when you are working in the child file. My attempts to make it work via a
new record made on the last portal row also failed. When I tried
disallowing creation of new related records through the portal, and
scripting it instead the auto-enter option worked, that is, it auto-entered
the value from the last record accessed via the portal. Don't know why it
should work one way and not the other. Here is how you script the creation
of new related records:
In the child file:
New Record/Request
Set Field [Foreign Key, Global Number Field]
In the parent file:
Set Field [Relationship::Global Number Field, Primary Key]
Perform Script [Subscript, External (script in child file)]
Bridget Eley
in article 0001HW.BB56EAC40002615F09A92C60 (AT)...) giganews.com, Steve at
nospam (AT) nospam (DOT) com wrote on 7/8/03 7:26 AM:
Quote:
I have a field set up with the auto-enter option "copy value from previous
record". Exactly _which_ record is "previous"... the help file doesn't say. I
guess I assumed it was the last one entered.
When I create a new record in this file from a portal in another related
file, I can't see any rhyme or reason to the value that gets put in here.
Thanks,
Steve |