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.

Featured Replies

Hi, 

I created a dashboard with a bunch of buttons, attached script to every button, which allows me navigating to specific record of the Products table. Basically, every script is the same, with minor changes (only record ID field changes).

The process of creating a script to every button is a very time consuming as I need to write a script that  a) goes to layout b)finds the certain record 

1 "Step: Go to Layout
    Layout: Products

 
2 Step: Perform Find" 

 

Is there a way to simplify the task?

 

Thanks!

First, you could have used a single script and define each button to pass a different parameter value to the script.

But even so, creating a button for each product is tedious and redundant. You already have a record for each product in the Products table - why don't you take advantage of that? Show the products in a portal or in list view, and have a button take you to a more detailed view. If you are using a master-detail layout, with a portal to the same table*, you don't even need the button: simply clicking into a portal row will bring you into detailed view of the clicked record.

--
(*) Requires version 17. Please update your profile to show your version and OS.
 

  • Author

Thank you, mr. comment!

I created a portal and assigned a button to a portal record with the script attached "Go to related record". Works fine!

Is it possible to have portal records rearranged and shown not as a row, but as a cage?

Edited by stan111

A cage? Do you mean a grid? It's sort of possible:  if you have a portal showing say 5 rows, you can duplicate it and set the duplicate's initial row to 6.  Add more duplicates and arrange them side-by-side ,increasing the initial row by 5 in each "column". But you must make sure you have enough rows in total to show all products (or add a scrollbar to the last portal).

  • Author

how can I set duplicate's initial row to 6? don't really understand 

 I'm not able to edit portal parameters as I am not using a referenced table. If I duplicate "Products table", than those parameters become active and I can set initial row to 6. But, the portal displays only one record and I don't know why.

Edited by stan111

Enter Layout mode and double-click the portal - you will see it under Format. Note that this option is unavailable in master-detail layout.

  • Author
Quote

First, you could have used a single script and define each button to pass a different parameter value to the script.

how can I accomplish that trick, mr.Comment?

Edited by stan111

Are you aware of how to use the Find command? Scripting buttons to go to specific records isn't often needed. Use Find.

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.