Hi Jos?, i found many post with errors in the text displayed ex.: “’” displayed for the ’ char and so on, this made unreadable the post and more in the code embeded section:

example:
dsmenu

With the dsmenu in the dynamic menu, I know it's a dataset for the sc_lookup.

Is there any restrictions to the dataset, like number of columns? When I use
foreach ({dsmenu} as $arr_menu)

I get an invalid argument for foreach.

My SQL statement is correct, it will run as a view.

sc_lookup(dsmenu, " SELECT
If(
((SCT_Linker_SubGroup != '&#039 && (SCT_Linker_SubGroup != Null)),
CONCAT(Course_Name , ' (' , SCT_Linker_SubGroup + &#039&#039,

Thanks in advance for your help.