B4J Tutorials

The easy way to install your B4J application on Linux

This is meant to be a tutorial for you to easily distribute your applications developed in linux.
Through B4JPackager11 and B4JPackager v1.50 the excellent tool developed by Erel gives us the...
 

Testing jRDC2 start to end on a VM

Hi I have wrote this just in case someone needs to implement the jRDC2 on a VM on cloud, I know a lot of members already know this and it is definitely not a new information, but for someone that...
 

Attachments

  • upload_2019-8-15_0-31-35.png
    upload_2019-8-15_0-31-35.png
    12.4 KB · Views: 270
  • upload_2019-8-15_0-34-39.png
    upload_2019-8-15_0-34-39.png
    129.4 KB · Views: 285
  • upload_2019-8-15_0-38-49.png
    upload_2019-8-15_0-38-49.png
    154.5 KB · Views: 283
  • upload_2019-8-15_0-39-18.png
    upload_2019-8-15_0-39-18.png
    97.9 KB · Views: 280
  • upload_2019-8-15_0-39-36.png
    upload_2019-8-15_0-39-36.png
    197.5 KB · Views: 288
Last edited:

Tag management for UI Nodes

In B4XPages we rely heavily on tags to identify UI elements. Yet tags are valuable for connecting data to the UI, too, and it is easy to feel we are wasting tags for identification.
There is a...
 

TabPane Example

SS-2016-01-07_08.27.05.png


The TabPane container allows the user to switch between different tab pages.

Working with TabPane is similar to working...
 

Attachments

  • TabPane.zip
    6.8 KB · Views: 1,864
Last edited:

TableView Tutorial

TableView is useful to show data in a tabular view.

The data is held in a List. Each item in this list is an array of objects. The length of each array equals to the number of colums.

For...
 

Attachments

  • TableExample.zip
    2.8 KB · Views: 3,381
Last edited:

Synchronize ListView Scrolling

Attachments

  • LVSyncClass.zip
    2.8 KB · Views: 544
  • LVSync-2.zip
    3.1 KB · Views: 508
Last edited:

Switch to shutdown RPI

The RPi hasn't a switch to shutdown the RPI; if you cut off power from the RPi, SD card could be corrupted easely.

An easy solution is to add a switch to shutdown the RPI connected to a GPIO pin...
 

Styling buttons with CSS

String to variable - Iterate variable names

This is a simple idea to replace the function "eval" or "execute" that other programming languages have. The purpose is to retrieve a variable from a string:

How to iterate variable...
 

STARTTLS - upgrading a non-tls socket to a tls socket.

Upgrading from a non-tls connection to a tls connection only makes sense when dealing with a protocol that specifically requires it. It is much simpler and also a bit more secure to start with a...
 

Attachments

  • smtp.zip
    3.3 KB · Views: 295

Starting with Raspbury Pi 4 - All in one video tutorial

I recently found a thread on how to use raspburry pi as an mqtt server/broker. I was not until a few moments ago Raspbury Pi literal so I 've searched in YouTube for a tutorial on how to get it...
 
Last edited:

Starting correct JRE (8 or 11) via batchfile (Windows)

Foreword:
This solves a very specific case that may just apply to me. For current development, I'm still on JDK version 8. But for future coding/testing, I also have JDK 11 installed. I often...
 

SQLite Triggers: Creating Audit Trails For Dummies

Ola

What is an audit trail? As per Wikipedia...

An audit trail (also called audit log) is a security-relevant chronological record, set of records, and/or destination and...
 

Attachments

  • DBTriggers.bas
    9 KB · Views: 426
Last edited:

SQLite or MySQL database

  1. For any project where a database is required - it's very important to have possibility to see the database data, to debug the app.
  2. If the app is used on a remote server host, and...
 

Attachments

  • php_scripts.zip
    308.6 KB · Views: 124
Last edited:

SQL Tutorial

B4J jSQL library is similar to Basic4android SQL library.

This tutorial will cover the differences between the two libraries. You can read more about the library methods here...
 
Last edited:

SplitPane Tutorial

B4J v4.00 adds support for SplitPane container. SplitPane is a container made of two or more sections divided with movable dividers.

The SplitPane orientation is either horizontal or vertical...
 

Attachments

  • SplitPane.zip
    8.5 KB · Views: 1,689

SolarSystem

It is a B4J "kick-start" project for the JAR of this Github project. How to use it:
1. Copy the attached B4J project - the B4J code is very simple:
B4J code:
#Region Project Attributes...
 

Attachments

  • SolarSystemRunnable.jar
    8.7 KB · Views: 151
  • b4jSolarSystem.zip
    1.6 KB · Views: 152

SithasoDocxTemplator: Creating MS Word Documents from Dynamic Templates in JavaScript

Hi the

This was an interesting find: https://docxtemplater.com/, also its just so easy to use and understand.

Below is my template. I am attempting to generate the API documentation for...
 

Attachments

  • SDUIAlert.zip
    1.2 KB · Views: 185
  • api.zip
    11.9 KB · Views: 195

SithasoDaisy: User Sign Up / Sign In / Forgot Password in PocketBase

Hi

I am putting this out here for everyone to easily find it. It was discussed as part of the talk...
 

SithasoDaisy: SDUITable TimeSheet with inline-editing - guidance

Hi there

This is an example of how to create a timesheet with time & day matrix to enter hours worked etc. I have added the change_row event which detects changes to the time entered and also an...
 

Attachments

  • SDTimeSheet.zip
    59.4 KB · Views: 100
Top