An administrator has written a JavaScript function that three business rules on three different tables all need to call, and wants a single server-side definition rather than three copies. Which platform artefact is designed to hold that shared logic?
- AA script include, which stores a reusable server-side class or function that server-side scripts across the instance can call Correct
- BA UI script, which stores reusable JavaScript that the browser loads so that client-side code can call it
- CA client script placed on each of the three tables, which keeps the shared logic beside the forms that depend on it
- DA UI policy with a script action, which can run script on the form whenever the policy condition it carries is met
Why A is correct: Correct: a script include is the platform's container for reusable server-side script, so all three business rules can instantiate it and call the one definition.
Why B is wrong: Tempting because a UI script genuinely is the reuse mechanism for shared JavaScript, but it is delivered to the browser and a server-side business rule cannot call it.
Why C is wrong: Tempting because it is the quickest thing to build, but it multiplies the code across three records and runs in the browser rather than on the server where the business rules execute.
Why D is wrong: Tempting because a UI policy can carry script, but that script is client-side form behaviour and a UI policy is not a container for reusable server-side functions.