In the Product Configurator, there is an option 'Mandatory' available for Parameters:
However, this does not make the field itself mandatory but only changes the way the icon is displayed in the navigation:
To force a field to be mandatory, you can use the following script and place it in the 'prd_links2.src'. The script will check from top to bottom if there is a mandatory field that is empty and will not allow the user to save/update the configuration:
windowevent presave
dw_1.find=zwingend="J" and typ=0 and (isnull(vorgabe) or vorgabe="")
setvar=ll_row=<value>
if <value> n> 0 then
message=error$Mandatory field: '<dw_1.item.bezeichnung:[ll_row].value>' not filled!
setvar=value=-1
setvar=ib_saveallowed=false
end if
end event
Validated and tested in Beas 2022.02.
Comments
0 comments
Article is closed for comments.