#REM
Parameters:
#SNIPPET.MaxChars ... Number of maximum characters in batchaction (rest is cut of)
Example:
#SNIPPET("INC-BatchActions", "BatchActions, MaxChars", "BatchActions", 30)
#ENDREM
#LOCAL("LastGroup","")
#LOCAL("ChildCount", 1)
#LOOP( #MENU_JSON(#SNIPPET.BatchActions,"",1) )
#LOCAL("InnerMaxChars", 25)
#IF(#SNIPPET.MaxChars)
#SET("InnerMaxChars", #SNIPPET.MaxChars)
#ENDIF
#IF(#DEFINED(#MaxChars))
#SET("InnerMaxChars", #MaxChars)
#ENDIF
#IF(NOT #Disabled)
#REM#ENDREM
#IF(#LastGroup NE #Group AND #LastGroup NE "")
#SET("ChildCount", 1)
#ENDIF
#REM#ENDREM
#IF(#LastGroup NE #Group)
#IF(#Active)