{{ /* * @title widget_code widget * @description Description of the widget * @version 1.0 - YYYY-MM-DD - _your_email_@sednove.com - Initial version */ %include "/extenso/module/sed/core/package/sed_core_util.sn"; %include "/extenso/module/sed/core/package/sed_core_color_util.sn"; use lg; use page; use ct; use widget; wuid = widget.uid_position; if widget.table_name ne '' then wconfig = sql(single:true, "SELECT * FROM ? WHERE uid_widget = '?'", widget.table_name, widget.uid_instance); /* if wconfig.nbrows == 0 then // Set default content fields = { "uid_widget":widget.uid_instance }; res = insert(table:widget.table_name,fields:fields); wconfig = sql(single:true, "SELECT * FROM ? WHERE uid_widget = '?'", widget.table_name, widget.uid_instance); endif */ endif }}