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 get the value of a field in a portal based on another field on the same row on the same portal?

Featured Replies

So I have a Table "Daily Leave" related to "User Profile" table. I created a "Daily Leave" portal on the User Profile layout and started adding other fields to this portal; Year, Type of Leave, Leave Entitlement, start leave, resume work etc... please check attached picture.

Capture.thumb.PNG.b0472c09b66286764c96ecc23f60d2fd.PNG

So the Leave Type field is a popup menu which let you choose the type of Leave you want to take e.g. Annual Leave, Sick Leave, Compassionate Leave, Leave without pay or Maternity Leave. So based on the this field "Leave Type" I want to show their last "Balance" like shown in the picture. I am able to show the Annual last balance which is 16 but its only because it is the last in the list so if I add a Sick leave after that it will change and not stay at 16 since Sick Leave has a different remaining Balance than Annual leave.

So how can I do something like that? Show only the last values of the "Balance" field based on the "Leave Type" field?

Thank you.

The convenient method to produce such display would be a report in list view, where you can sort the records by type and use a summary field to show a running total.

If you want to show the remaining balance in a portal, you will need to add a self-join relationship to all previous leaves of the same employee of the same type in the same year. 

 

  • Author

I do have a list view report where a user can use the "Leave" button to filter Print/View just a single type of leave for their perusal.Check picture below;

1.thumb.png.9c4471ca7c629e841032567cd71441c2.png

2.thumb.png.61408ca7e4539fa7fdbfd1cac84e597b.png

3.thumb.png.d9c068f71524bff912af401d971c5085.png

But out of convenience I would like to make it easy for users to just view their remaining balances where "Remaining Balance" is as I mentioned.. instead of clicking few buttons to get to see the whole summary report when they could just see it beforehand if possible.

Can I get those last leave balances on the User Profile layout (Where "Remaining Balance" is)? If not then I will just leave it like that.

Thank you again.

1 hour ago, comment said:

If you want to show the remaining balance in a portal, you will need to add a self-join relationship to all previous leaves of the same employee of the same type in the same year. 

I don't want to show it in the portal... the portal shows it btw but rather mixed up with other leave types and previous leave records etc... I want to show it in the User Profile table just right above the portal check first picture.

1 hour ago, emtau said:

I would like to make it easy for users to just view their remaining balances where "Remaining Balance" is

I am not sure how that would work, without the user selecting the year to view. I am assuming an employee can have different allowances for each type in every year. 

With a report, you can sort the records by year and by type and show only the sub-summary parts - so they could easily get an overview with a single click.

 

1 hour ago, emtau said:

the portal shows it btw

How exactly?

 

  • Author

Okay thanks I've decided to just leave it as it is and get rid of the "Remaining balance" summary on top. Thanks a lot.

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.