Avatar

Correct answer by
Level 10

Hi there,

 

I can't directly give you the solution at hand without the object references. Without the hierarchy, all I can give you is the syntax on how to make this work.

So technically, you need a calculate event for each fields which you need to input a calculated value or 0$, both will have the same syntax, but different outcome.

 

For the Amount Due Traveler it should look something like the following:

Amount Due Traveler :: calculate - FormCalc

if (Expenses gt Advances) then
	;Calculate Amount Due Traveler
else
	0
endif

 

and For the Amount Due University, it's simply the opposite

Amount Due University :: calculate - FormCalc

if (Expenses gt Advances) then
	0
else
	;Calculate Amount Due University
endif

 

You can always provide a screenshot with the hierarchy and the code you are testing if you need any more assistance.

 

You can always refer to the FormCalc User Reference for any question on how to use the language

I hope this will help.

 

View solution in original post