FormBase::SetFormValues (open)

Set form values using a flat array. Safer when fieldnames may be long

Syntax

LOADLIB "mod::publisher/lib/forms/base.whlib";

MACRO SetFormValues(RECORD ARRAY vals, RECORD options)

Parameters

RECORD ARRAY vals

List of values to set

STRING name

Element name to set

value

Value to set

RECORD options

Options

BOOLEAN ignorenonexisting

Ignore non-existing fields (by default an exception is thrown)

BOOLEAN rpcjs

Set to TRUE if the value are coming from the RPC JS API (and thus need UpdateFromJS)