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

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

Recommended Posts

Posted

I was under the understanding that if i did a script step "insert calculated result" into a remote field in a related database, the remote database would create a new record with that related content in it. I can't get this to work. Can someone walk me through this? I used this all the time in FM6, but with FM7, I can't seem to get it to fly.

Posted

No, it functions like a "Set Field", it just populates a field in an existing record.

If you want a new record created you'll need to do that explicitly with the "new record" script step. Or do it in a portal that allows the creation of new records.

Posted

Ok, gotcha. A portal would be perfect. Not sure how to go about actually creating a new record using the portal, but I should be able to google it. Thanks!

Posted

Allow record creation is a setting of the relationship. if you toggle it on there, the portal will always show a "blank line" as the last row. When you type in it, it will automatically create a new related record.

In a script you need to use a Goto Field (a related field in the portal), followed by a Goto Portal Row Last and then you can use Set Field.

Posted

Ok, i got it, but I want to create more than one entry in the portal using the script based on a calculation. So, basically, if Quantity > or = 1, goto related field, goto last portal portal row, insert data, loop. It seems to be putting the data into the same single record instead of creating new ones. Ideas?

This topic is 6940 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.