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.

How to set an addess to a portal ?

Featured Replies

Hi everybody!

Could you please look at free FileMaker Solution Framework <<ftp://ftp.apple.com/filemaker/solutions/FileMaker_Solution_Framework.sit>>

There you are the Invoices (portal with Quantity, Price, Amount, etc.) and the Products (Price, Default Order Quantity, etc.), and a join file LineItems.

The Product information is called into the portal at the Invoices db layout by a script ("Choose Product") attached to a button "Add item" :

PerformScript [sub-scripts, "[RTN] = "Save Portal Row""]

Set Field ["PRODUCT_Constant::_Variables", "InvoiceNumber"]

Set Field ["PRODUCT_Constant::_ButtonControl", ""AddItem""]

PerformScript [sub-scripts, External: "Products.FP5"]

PerformScript [sub-scripts, External: "Products.FP5"]

with a routine sub-script [RTN] = "Save Portal Row" :

If ["Status(CurrentPortalRow) = 0"]

Go to Portal Row [select, Last]

Set Field ["_PortalID", "Status(CurrentPortalRow)"]

Else

Set Field ["_PortalID", "Status(CurrentPortalRow)"]

End if

Suppose, at the Invoice layout I need the second, almost identical portal (portal2) of the same operational mode, joint through the second LineItems2 file to the same Product db (to complete a kind of manufacturing solution). Careful copying, renaming (portal, button, scripts, field names, relationships - anything), etc. result in a disaser: not only the second portal is unavailable, but also the original one shows the first row only. Removing the second portal restores the functionality of the first one. The problem is the absence of a portal address. How to push the data into the required portal ? How to set an address or to name it ?

Thank you for your thoughts

Add Go To Field [relName::fieldName] step before Go To Portal Row step, where relName::fieldName define the portal (relationship)

Dj

  • Author

Dear Dj,

It is not so easy, unfortunately...

The actual setup is very intelligent, rather complex, and involves a number of global fields difficult to handle. At least, I can't succeed yet. Are You? Or it is just a common sense suggestion?

Regards

  • Author

Dear Dj,

You are absolutely right. Actually, the problem was due to an orphan field of the same name as in LineItems db (in a modified set)

Thank you very much, Master. smile.gif

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.