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.

Summary according portal data

Featured Replies

Hi !

I'm wrestling with my database and now I'm stuck with this problem:

There are invoices in one table. They have Status: "not ready", "waiting for approval" and "approved". The accounting can choose which invoices are shown in the portal. The problem is how to present the Total of each sub group, when portal data is changed. Now it shows only "Grand total" of all sub groups (i.e. even though the invoice is not "approved" yet, it's sum is added to "total")

I hope you understood... ???

The accounting can choose which invoices are shown in the portal.

If you are filtering the portal by the status, it shouldn't matter ... you should get the total of all invoices which appear in the portal.

You can use cTotalInvoices in Parent as:

Sum ( thatPortal::InvoiceAmt) or

if you have a summary field in Invoices, Just place that on the layout. Place either of these fields outside the portal.

So your relationship would be:

MainTable::ParentID = Invoices::ParentID

AND

MainTable::gStatus = Invoices::Status

Edited by Guest
Added relationship example

Use Ugo's method:

http://fmforums.com/forum/showpost.php?post/266487/

Instead of Count( use Sum(

--sd

  • Author

Thanks LaRetta and Soren ! That Sum -function worked well enough. Those relations are still quite tricky for me, so I find this plain Sum easier.

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.