Your
approach is okay. The first "if Q[role=...]" will read the user roles
via RFC and the following ones will use the roles without performing an RFC.
Two
additional hints:
(a) I
suggest you use goto and label:
if Q[Role=Role1]
default F[Field] "Value1"
goto default_done
endif
if Q[Role=Role2]
default F[Field] "Value2"
goto default_done
endif
...
label
default_done
(b)
Put all these statements into an "include" file that you process only
if the field is empty:
Set
V[currvalue] "&F[Field]"
if not
V[currvalue]
include set_default_Field.txt
endif
|