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.

Can't Select/Perform in Portal Row

Featured Replies

  • Newbies

Hi Everyone, First post here. (FM 5.5) I have a portal on a layout for 'Tasks'. I have a script to create a new task, which performs an external script in the Task file "Create Task" and the script is supposed to end up in the portal, with the new record having a task name of "Untitled Task". My intention is to have the new task selected so that the user will know that they have to add a name for the new task. My script is not highlighting the new task. Can anyone tell me what I'm doing wrong?

My strategy so far has been to set a global in the main file and then use "set field" and "select/perform"

Perform Script[subscripts, External: Tasks.fp5

Set Field ["sg_Selected.Task.ID","{Tasks}Constant1::sg_Task.ID.Temp"]

Go to Field[select/perform,"{Tasks}Selected.Task::Task.Name"]

You need to add steps at the end of the process to return to the portal row. One of the ricks is knowing which portal row to return to... If the new related record is in the last row then it's easy. If the new related record isn't necessarily going to be in the last row then you'll need to do something like:

put the new record's id in a global

return to the master record

go to the first portal row

loop

exit loop if this record has the id in the global field

go to next portal row

end loop

One of the "tricks" to reliably select a portal, especially if the layout has more than one, is to use the Go to Field step and specify a related field that is only on the desired portal.

  • Author
  • Newbies

Thanks for the tip..worked like a charm!

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

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.