[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: About the gambas web apps


On Mon, 31 Mar 2025 at 10:11, Bruce Steers <bsteers4@xxxxxxxxx> wrote:

>
>
> On Mon, 31 Mar 2025 at 09:24, gaucho <64xcode@xxxxxxxxx> wrote:
>
>> ok, I decide not use this controls, these don't work as i expect them
>> to. maybe they have bugs or maybe i'm using them wrong, so i decided
>> not to use them and that's it.
>>
>> I will use buttons inside WebContainers
>> Next trouble, WebTable
>> In the gambas3 GUIs I usually use the _Data event of the gridview and
>> trigger it by changing the number of rows in the grid, for example:
>>
>> GridView1.Rows.Count = 0
>> GridView1.Rows.Count = $res.count
>>
>> where $res is the result of the sql query.
>> How do I cast the evendo _Data in the webTable?
>> or which is the properly method to put the data in this control?
>>
>> Regards.
>>
>> Martin.
>>
>
> https://gambaswiki.org/wiki/comp/gb.web.gui/webtableda
>
> usually re-triggered by simply calling WebTable.Refresh
>

The above link is bad.

see here..
https://gambaswiki.org/wiki/comp/gb.web.gui/webtable/.data

There is not a WebTable.Data property, you use the Data parameter passed in
the event instead.

Public Sub evendo_Data( *Row* As Integer, *Column* As Integer, *Data* As
WebTableData <https://gambaswiki.org/wiki/comp/gb.web.gui/webtabledata> )

End

PS. expect there to be differences in the way gb.web.gui works compared to
gb.gui,
gb.gui utilizes qt or gtk GUI creating toolkits where as web.gui is limited
to browser (html/DOM) stuff and is no where near as advanced in ability.
it attempts to emulate gb.gui the best it can but due to limitations in the
way web works some things are going to be a little different.

Respects
BruceS

Follow-Ups:
Re: About the gambas web appsgaucho <64xcode@xxxxxxxxx>
References:
About the gambas web appsgaucho <64xcode@xxxxxxxxx>
Re: About the gambas web appsgaucho <64xcode@xxxxxxxxx>
Re: About the gambas web appsgaucho <64xcode@xxxxxxxxx>
Re: About the gambas web appsLinus <olivier.cruilles@xxxxxxxx>
Re: About the gambas web appsgaucho <64xcode@xxxxxxxxx>
Re: About the gambas web appsBruce Steers <bsteers4@xxxxxxxxx>