Share My Creation [Web][SithasoDaisy5] Low Code - A Source Code Generator for your Beautiful BANano WebApps

Hi Fam

Experience it for yourself

In 7 simple steps, you can have a running WebApp with CRUD functionalities...

1757735561235.png



As the name says, SithasoDaisy5 Low Code is a tool to generate source code for your BANano based WebApps using SithasoDaisy5.

This TOOL IS NOT FOR SALE OR FOR RESALE but for the use by the b4x community for FREE, by using this tool you bind yourself to the BANano LICENSE as included in the SithasoDaisy5 Distribution Pack.


In simple easy steps you have a WebApp that you can build up and publish it as simple as ABC.

Step 1. Create a Project.

1757735689169.png


Step 2. Create tables / collections for your project. These will hold your data.

1757735742991.png



Step 3: Create fields for each of your tables and also establish foreign table linkages between the tables.

1757735802098.png


Step 4: Chop & Change your Forms as you see fit

1757735855822.png


Step 5: Generate the source code (see the first image)

Step 6: Create a B4x SithasoDaisy5 BANano Project and paste your source code.

Step 7: Run your app and Publish it to your Domain.


Have fun..


Complete Video Tutorial of creating the relational address book with SithasoDaisy5 Low Code





The details of the complete tutorial are below.

 
Last edited:

Mashiane

Expert
Licensed User
Longtime User
What's New

Export Functionality - with this functionality one is able to export (backup) a project to a json file. The export will include the project details, all tables and fields.

1757770127643.png


You can also export (backup) a table to a json file. The export includes all the table details and all the field details.

1757770179517.png


The advantage with this is that one person can work on one part of a project and another work on another part and these can be consolidated later on for a final project.

Let's do this!
 

Mashiane

Expert
Licensed User
Longtime User
Version 1.05 is now available.

Experience it for yourself

What's New

1. Added a treeview to have an easy to the eye structure of the generated source code.

1757987399523.png

2. Fixed the bugs of duplicated records on the row happening when inline-editing happened. The transition is much more smooth and there is no flickering.

1757987553884.png



3. Added code to handle selects with append buttons that support adding lists. When the app is ran, clicking the plus append button will provide a prompt.

1757987694417.png


Example code generated based on append buttons will allowAdd.

B4X:
Private Sub cboCategory_append (e As BANanoEvent)
    'executed when cboCategory append button is clicked
    e.preventdefault
    'use a sweet-alert2 dialog to ask the user for a Category
    Dim sname As String = banano.Await(app.ShowSwalInputWait("Add Category", "Please type a new category to add below.", "Save", "Cancel"))
    'trim the entered content
    sname = sname.Trim
    'if the content is blank do nothing
    If sname = "" Then Return
    'something has been specified, add it to the database
    App.PagePause
    Dim tblX As SDUIWebSQL
    tblX.Initialize(Main.DBName, "categories")
    'tblX.ShowLogs = True
    'set the schema from the data model
    tblX.SetSchemaFromDataModel(app.DataModels)
    'prepare to add a record
    tblX.PrepareRecord
    'assign fields to add and their values
    tblX.SetField("id", tblX.NextID)
    tblX.SetField("name", sname)
    'execute the INSERT in the database
    Dim aid As String = BANano.Await(tblX.Create)
    If aid <> "" Then
        'reload the select with new records
        BANano.Await(Loadcategories)
        'update the select
        BANano.Await(cboCategory.SetOptionsFromMap(categoriesObject))
        'show the value just added
        cboCategory.Value = aid
    Else
        'read the record id by display value
        aid = BANano.Await(tblX.READ_ID_BY("name", sname))
        cboCategory.Value = aid
    End If
    App.PageResume
End Sub

4. Added Download button on the code. This allows one to get a text file of the generated source code.
5. Fixed some other notable bugs...

Have Fun

Mashy

PS: You can download the repo and run the app locally on your web server.


 
Last edited:
Top