Macro not working

Based on this example I have a form called from the vertical menu like this:

[ATTACH=CONFIG]n74155[/ATTACH]

In the form onApplicationInit I have this line:

sc_apl_conf("fm_g_systemsettings", "update", "on");

so the forms always initializes in UPDATE mode (as it always works on single record)

In the form SQL settings I have

UID=1

to ensure I always get record number 1

When I open the form I can see some old data (I have entered it manualy from SQL editor). Then when I modify anything the form does not save changes. No errors warnings nothing.

Any idea why it’s not saving ? Is there any idnicator / variable to test if the form really opens in UPDATE mode ?

Thanks - Arthur

2017-01-03_1717.png