How can some field in PBA control panel be marked as required? For example, your staff members create accounts using provider's control panel and it is important to have a tax zone or sales branch filled.
It can be done via customization of PBA interface:
Locate the screen you need to customize, prepare a container. The steps are described in the documentation:
- Create a customization file for the screen, find
<elements>part of the file, find a necessary element (details are in the documentation by link above, "Creating customization file" part)
required="yes"attribute for needed element
- Make sure that you have removed all elements and their attributes that are not used in customization
Restart www container to apply changes:
Note, it is possible to make an optional field obligatory, but it is not possible vise versa. If a fields is marked as obligatory in the default, not customized PBA, that means that the method executed on the button click expects the argument this field passes. If an argument is not passed, the method cannot be executed.
Sales Branch required field when creating an account from the provider's control panel.
Make sure the directory
/usr/local/bm/conf/wnd/BM/customization/customizationis a symlink to
# ls -ld /usr/local/bm/conf/wnd/BM/customization/customization /usr/local/bm/conf/wnd/BM/customization/customization -> /usr/local/bm/customization
If not, configure it:
# cd /usr/local/bm/conf/wnd/BM/customization # ln -s /usr/local/bm/customization customization
- Remove the
layoutsections. Leave only the
- Leave only required element which is
Eventually you should get the customization file as following:
<window id="Account_AddCustomerWin"> <elements> <input id="BranchIDBranchID" required="yes"/> </elements> </window>
As a result you will see an asterisk near required field: