Description: Calculates the height, in pixels, of each embedded target DBForm.
Execution: Runs for both new and existing embedded records. The formula runs in the target DBForm parser and target object/record context. On web, it runs before OnNewTargetRecord when a new target record is created.
Arguments: There are no event-specific arguments. Although the common variables Argument_EventName, Argument_SenderName and Argument_SenderID are declared, this event's direct formula call does not populate them. The parent Frames component is passed as the formula sender.
Result: Return a value that can be converted to an integer pixel height. If calculation fails, the current embedded height remains.
Platform note: On web, the successful result becomes the frame height. On desktop, a saved positive PixelHeight setting is restored after the formula and therefore overrides the result. Use the result on desktop only when no positive saved PixelHeight is configured.
Example:
Result := 240;