Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 6587 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

Is there any way to add info to fields in an external file without setting up portals in the original file.

In other words I need to add data from the original file to the external file. I can do it with copy and paste but this seems rather inelegant

Posted

Given that pretty sparse description, I guess you have a common linking field? And hopefully a one-to-one relationship? Use the update option of import.

Posted

Yes I do have a linking field (and a relationship). The relationship wont exist until one of the fields in the external file is added ( which I can do easily with a paste)

Posted

You've lost me (not hard!)

Are you actually trying to add the link field to an existing child-to-be record? If so, how do you identify the record to be adopted?

Alternatively, are you creating new records and trying to add (a value to) the key field? I've done that with an external script using the parent record's key as the script parameter; the external script creates a new record and sets the key field to the script paramater.

Posted

Sorry to confuse you.

I have two linked files. If I run a script in the mother file to create a new record in the daughter file, how can I add to the daughter file? Do I have to have a portal in the mother file so fields can be entered? or is there another way? thanks

Posted (edited)

No, you don't need a portal. The only time you need a portal is when your user is entering data for the child file. Even then, I prefer the technique described below because you can display a decent layout for the child file, without the restrictions of a portal.

In the child file you have a script ("NewRec")-

New Record/Request

Set Field(LinkfieldC; Get(Scriptparameter)

Then in the Parent file, you have a script which includes -

Perform Script ("NewRec" from file: "ChildFile"; parameter: "LinkFieldP")

If you're dong that naughty thing of adding data from the Parent record into the Child record, you can then use lookups.

Don't forget the "Commit Record" for both files.

Edited by Guest

This topic is 6587 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.