Jump to content

Overriding a repeating calculation field


This topic is 7013 days old. Please don't post here. Open a new topic instead.

Recommended Posts

I have a repeating calculation field that is used with another repeating calculation field. The result of calculation field 1 is a number which is then used in calculation field 2. There are times when I need to override the number in calculation field 1. This might be a simple question but I have not figured out a way to do this. I would like to do this without using a script if possible.

I am using FM6.

Thanks for any Help

Link to comment
Share on other sites

Create another repeating field, but make it a normal number instead of a calc. This will be your override value field. Then change your second calculation to use

Case( not IsEmpty(overriderepfield1), overriderepfield1, repfield1 )

in place of each instance of repfield1.

The value in the appropriate repetition of overriderepfield1 will be used in place of that of repfield1, whenever it is not empty.

Link to comment
Share on other sites

I think I understand how this works. I would like to have only one field if that is possible. I want the user to be able to click in the calc 1 field and change the value instead of having a second override field. Basicaly the same way you can with a looked up value.

Thanks for the response

Link to comment
Share on other sites

In FM6, it will require many more fields to make it work in such a manner.

If you are concerned about making it appear that there is only one field, you can remove repfield1 from the layout, then add the override field and stack a calculation field equal to Case( not IsEmpty(overriderepfield1), overriderepfield1, repfield1 ) on top of it and disable entry to the calc field. That way, when a user clicks on the calc field, the override field is selected and modified instead. And when they exit the field, the correct value is shown in the calc.

Link to comment
Share on other sites

This topic is 7013 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.