-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Having a table Result_Table : Gnoga.Gui.Element.Table.Table_Type; How do I empty it? I've populated it with data from a recordset, and now I wan't to rerun the query, and then fill the same table with a new recordset. But I do not want to add rows to the table, I want to empty/reset/clear it before re-populating. with type Default_View_Type is new Gnoga.Gui.View.View_Type with record Result_Table : Gnoga.Gui.Element.Table.Table_Type; Run_Query : Gnoga.Gui.Element.Common.Button_Type; end record; I tried procedure On_Click_Run_Query (Object : in out Gnoga.Gui.Base.Base_Type'Class) is View : Bot_Gui.View.Default_View_Access := Bot_Gui.View.Default_View_Access (Object.Parent); begin View.Result_Table.Remove; View.Result_Table.Add_Caption("Today's result"); ..... and it does remove it, but next recordset is not visible. It looks like it is still valid in ada, but removed from the DOM. I then tried View.Result_Table.Remove; View.Result_Table.Create (View); but that gives me Dispatch Error GNOGA.GUI.BASE.OBJECT_ALREADY_CREATED - gnoga-gui-base.adb:267 - -- Björn -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAEBAgAGBQJUcQkqAAoJEGaQZvZiZLyCxroIAK4NhJ6SVBwsFULTGl06hL7j Eue8tm3xJvf7EIgVpW2YiB7UcWW/Z/khBrs4pSsa4zrOkAVB6s9r4qXGAv/jTTcl j3LKCh459lgDaMhJdkjZ+IuxkvBShgJsZLniyBBUDoD9vik4WX07Ynt3MIM3t8vY x/n8u/L2lnQtLcgSUKu1F4BrS7dhjVW2v9I0dHNtm/L8ozg0QV/lmY3J1wdyodf6 vYD65u7/hKKuvxsIoFn+dnj+tcV3uGVkjE+71tn2vrSi0DTp7ZglGN+42zuvW43n tLU5NVL7xe7baZTK78bld9NNanJ0tIPLX+L5t/zjv8ivUMrN0kXTG+gv2Vc5cLs= =DSlA -----END PGP SIGNATURE----- ------------------------------------------------------------------------------ Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration & more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk _______________________________________________ Gnoga-list mailing list Gnoga-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gnoga-list