Hook functions

The javascript file lsiutils.js contains helper functions, which might be useful.

_hookSingleSelect

A generic hook function for singleSelect for an array of field IDs. Same behaviour like a radio button. Used in PL (Country OR Pricelist OR Customer Group) and in ZU (MicroBrick or PostCode. The fieldUids is cleared on leaving the hook-field. You can also provide a msgtxtGrp and msgtxtId which is displayed as a notification.

Function definition

_hookSingleSelect: function ($, fieldUids, msgtxtGrp, msgtxtId)

Call the function like this:

u8.TeLSI.Utils._hookSingleSelect($, [ 2,3 ], "TE_MESSAGEBOX", 50