Other [Web][SithasoDaisy] Version 2.25 Beta Available

Hi Fam

I've been testing and enhancing some things on the latest version of SithasoDaisy and a beta version is available, V2.25 for testing.

PLEASE POST YOUR QUESTIONS HERE about any issues you enquire with existing applications. Some stability issues were discovered and fixed on this version and these might result in some minor breaking changes or none, depending on your application. Most of the issues were related to getters / setters with same names as global variables.

This is a BETA version, please ensure you backup your projects and current version of SithasoDaisy, this should not be used in production environments, and you are expected to test your applications thoroughly should you use it. We are currently testing all our applications too.


What have we been doing so far? Here are some interesting things we have been speaking about.



















Enjoy!
 

Mashiane

Expert
Licensed User
Longtime User
V2.24 vs V2.25

I will detail here the changes that were made in the Demo App to work with V2.25

1. Add this sub to pgIndex

B4X:
Sub ToggleDrawer
    appdrawer.Toggle
End Sub

2. To center column contents when using SDUICol, use

B4X:
SDUICol.CenterChildren

3. To set a SDUIRow to Absolute, use

B4X:
SDUIRow.Absolute

4. To set the title of the SDUIToolBar, use

B4X:
SDUIToolBar.TitleCaption = "?"

5. To set the Width / GridCols for SDUIRow, use

B4X:
SDUIRow.Width(?) or
SDUIRow.GridCols(?)

6. To set SDUILabel TextSize / TextAlign then use

B4X:
SDUILabel.TextSize(?)
SDUILabel.TextAlign(?)

7. Filtering on the same column in pocketbase. Just suffix the column with 'anything' for the filter to work. This is because the filter is based on a key value pair. This way it makes it unique. For example we want to query the checkindate column using >= and <=, so we used .start and .end on the filters.

B4X:
dbbeneficiaryattendance.CLEAR_WHERE
    dbbeneficiaryattendance.ADD_WHERE_STRING("programmeid", "=", programmeid)
    dbbeneficiaryattendance.ADD_WHERE_STRING("checkindate.start", ">=", sstartdate)
    dbbeneficiaryattendance.ADD_WHERE_STRING("checkindate.end", "<=", senddate)
    banano.Await(dbbeneficiaryattendance.SELECT_WHERE1)
'

8. Filter pocketbase column using like and or clause. I wanted to search on 2 columns.

B4X:
dbbma_beneficiary.CLEAR_WHERE
            dbbma_beneficiary.ADD_WHERE_STRING("firstname", "like", txtlastname.Value).WHERE_OR(0)
            dbbma_beneficiary.ADD_WHERE_STRING("lastname", "like", txtlastname.Value)
            banano.Await(dbbma_beneficiary.SELECT_WHERE1)

This will pick anything where firstname or lastname is like some word.
 
Last edited:
Top