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.

Displaying fields from relational database

Featured Replies

I have yet another question. In the project I am working on I am displaying values from the main database and need to display fields that get their values from a second database. I have tried all I could think of to display them with no luck. Are you able to get these values from the main database or do you have to get them from the second one? And if so how do you change which database you are getting the values from?

Also, totally different subject. Are you able to access zip files in container fields from the web? Clueless on this one.

Thanks in advance.

Chris

To view records listed in a portal: remember that they are in a different database to the current one, so the url that links to them must have the appropriate -db, -lay, -format and -error files specified. The [FMP-Link] CDML tag can be used for this but I find that so much changes that it's easier to build it up by hand.

Regarding zip and other binary fils in container fields: Nope. Not made for that. Best (only) way is to save the path to the file in a text field and generate a link from that data.

The cdml reference tells you to use this code for portal information

[FMP-Portal: InvoiceID]

[FMP-Field: fieldname::relationship name] - [FMP-Field: InvoiceID::Product Count]<br>

[/FMP-Portal]

Therefore I would assume you could access the information in a related field by using

[FMP-Field: fieldname::relationship name]

I haven't used this yet so I can't be sure. Might be worth a try though

Simon

  • Author

I ment to reply earlier, but things got busy. To display relational records do you have to have them in a portal? The database I am working with does not have them in a portal. I didn't design the database, just working with it. Thanks in advance.

Chris

To display values from db B within db A (in front) is quite simple:

In db A make calcullation field like Local_Field_XXX_From_DB_B=B::XXX

Then display just the local field Local_Field_XXX_From_DB_B

HTH

  • Author

Got it and thank you all again.

Chris

  • 2 weeks later...

quote:

Originally posted by Simonpennington:

The cdml reference tells you to use this code for portal information

[FMP-Portal: InvoiceID]

[FMP-Field: fieldname::relationship name] - [FMP-Field: InvoiceID::Product Count]<br>

[/FMP-Portal]

Therefore I would assume you could access the information in a related field by using

[FMP-Field: fieldname::relationship name]

I haven't used this yet so I can't be sure. Might be worth a try though

Simon

You got it backwards. It's

[FMP-Field: relationshipname::fieldname]

I tried it. it works just fine with out the portal tag. Of course that is with a 1 to 1 relationship.

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.