Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Relookup Content not working

Featured Replies

Hi,

I have a field called Placed that looks up its value from a parent database. When the value of the related record in the parent DB changes I want the value of Placed to change. I'd use a caculation, but Placed is used to caculate a match field, so I need to be able to store and index it. The value of Placed is a boolean, so I decided to make a button that called a script to toggle the value and then call Relook Content to refresh the children.

The lookup happens fine, initially, but all Relook Contents attempts fail, whether through a script or from the Record menu. If I hilite the Placed record in the child and choose Relookup, I get an error thaty says:

There are no fields that lookup values based on the field "Placed".

I also get this eror if I hilite the Placed field in the parent file, and I get it from the script. I've tried calling Relookup from the script in the parent file, as well as putting it in a script in the child file and calling that sript from the parent. Nothing works. The documentation of script steps is very lacking, so I can't exactly how I should be using it.

Can anyone help me on this?

Thanks,

Justin

In the relookup, you need to specify the field that is used in the relationship on which the lookup is based, not the field that is getting refreshed.

  • Author

I've tried that, and I still get the same error.

Here's the first version of the script I wrote:

Set Field ["Placed","if(Placed,"No","Yes")"]

Relookup Contents ["Placed"]

It toggles the value fine, but gives me the error. I've also tried

Relookup Contents ["Order In Items::Placed"]

which doesn't give me an error, but doesn't relookup the value either.

frown.gif

Which fields is your relationship based on?

  • Author

Orders In and Orders In Items both have an OrderID field, I have relationships in both directions based on that field.

Then you need to do your relookup on the OrderID field

Relookup[OrderID]

Create an account or sign in to comment

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.