Correct, one of the changes in 4.0 is that you put all necessary parameters in the command itself. We could revisit this but try eliminatng the target command and change the edit line like this:
[command edit "your text" target=admin.data.settings] Cheers, Dan On Sun, Aug 4, 2013 at 7:28 AM, jacmgr <[email protected]> wrote: > This form works in 3.5, it get user selelct from drop down and writes the > value to data field in admin.data.settings. Uses an auth key. Works very > stable. > /* > siteconfigfile: admin.data.settings > $$themelist is in code.snippets > */ > [form] > Site Theme: [select sitetheme > default="{admin.data.settings:sitetheme}"][(list $$themelist fmt='[option > "{+p}"]')][select] > [submit "Change"] > [session authkey listings] > [session target admin.data.settings] > [session edit "Settings are in Data Varaiables"] > [session savedata sitetheme][form] > > I converted to 4.0 below. Is it correct? It is not writing to the > correct target (auths are set). It is always writing to the page currnetly > under view (itself!) and overwriting the form. > > /* > siteconfigfile: admin.data.settings > {themelist} is in code.settings > */ > [form] > Site Theme: [select sitetheme > default="{admin.data.settings:sitetheme}"][(list {themelist} fmt='[option > "{+p}"]')][select] > [submit "Change"] > [command authkey listings] > [command target admin.data.settings] > [command edit "Settings are in Data Varaiables"] > [command savedata sitetheme][form] > > > > -- > You received this message because you are subscribed to the Google Groups > "BoltWire" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/boltwire. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- You received this message because you are subscribed to the Google Groups "BoltWire" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/boltwire. For more options, visit https://groups.google.com/groups/opt_out.
