B4J Tutorial SithasoDaisy TailwindCSS UI Toolkit: Q & A

Hi there

NB: Where possible, please include a simple project that demonstrates your use case.

Do you have any questions about SithasoDaisy UI Toolkit?

You can shoot it here and we will oblige.

Thanks in advance?


Join on Telegram


Check $5 WebApps

 
Last edited:

sdleidel

Active Member
Licensed User
Longtime User
Table
When i select in the Designer, Table Type: Listview or default

The Browser say: Uncaught (in promise) SDUIButton.AddButtonIcon: 'sduitable1_actions' parent does not exist!

How we can use the "Table Type" Listview or default ?
 

Mashiane

Expert
Licensed User
Longtime User
Table
When i select in the Designer, Table Type: Listview or default

The Browser say: Uncaught (in promise) SDUIButton.AddButtonIcon: 'sduitable1_actions' parent does not exist!

How we can use the "Table Type" Listview or default ?
In default mode, the table does not have a toolbar, I will add better error handling.

ListView mode - still exploring, will provide examples.
 

Mashiane

Expert
Licensed User
Longtime User
Will check this...
1687899550518.png


B4X:
lv.SetItemRightIconVisible("p1",False)

Hides the right chevron on "p1"

Fixed on the next update...
 

Enrico Fuoti

Active Member
Licensed User
Longtime User
Hello Mashiane,
Hope you can help me.
I'm trying to test my app deploying it on my cloud server, in order to test it on a real device,
I'm having hard time with mysql connection that succeed in my local pc, but fail on server.
Also tried "sithaso_mysql_php" but i got the same result.
The server has its own certification and i get the same error either in IIS and laragon.
Can you give me some hints?

thank you.
 

Mashiane

Expert
Licensed User
Longtime User
Hello Mashiane,
Hope you can help me.
I'm trying to test my app deploying it on my cloud server, in order to test it on a real device,
I'm having hard time with mysql connection that succeed in my local pc, but fail on server.
Also tried "sithaso_mysql_php" but i got the same result.
The server has its own certification and i get the same error either in IIS and laragon.
Can you give me some hints?

thank you.
Is the db accessible from "outside"? what is the error when trying to make the connection?
 

Enrico Fuoti

Active Member
Licensed User
Longtime User
Yes i can access db using my dbclient tool..I also get the same error tryin to execute the browser directly on the server.
 

Attachments

  • Screenshot 2023-06-28 alle 15.00.35.png
    Screenshot 2023-06-28 alle 15.00.35.png
    494.2 KB · Views: 124

Enrico Fuoti

Active Member
Licensed User
Longtime User
I have a few more infos:
I changed mysqlconfig to: myserver,mydomain.cloud, without "http://" and it works.
I did also the same in SDUIDataSources.
I was previously also using localhost as the db is on the same server but it didn't work either.
but now i have a strange issue.
It works if i launch it from the browser on my pc, but it doesn't work if i launch it from the browser on my phone. It make no sense to me..
 

Mashiane

Expert
Licensed User
Longtime User
I have a few more infos:
I changed mysqlconfig to: myserver,mydomain.cloud, without "http://" and it works.
I did also the same in SDUIDataSources.
I was previously also using localhost as the db is on the same server but it didn't work either.
but now i have a strange issue.
It works if i launch it from the browser on my pc, but it doesn't work if i launch it from the browser on my phone. It make no sense to me..
Gosh, now I know you are using the data-source, in your original post about this, no indication was provided. At least I could have managed to zoom in better.

Anyway, if now it works, all good. Perhaps dm me the url link of your app. Which browser are you using for your mobile device.
 

Enrico Fuoti

Active Member
Licensed User
Longtime User
Sorry, Mashiane,
I thought it was clear, when i mentioned "sithaso_mysql_php", that uses datasources,
but anyway, disregard my previous post, i don't really know what happened, but now is not working either on pc or phone.i'm going to pm you the link.
 

giannimaione

Well-Known Member
Licensed User
Longtime User
hello @Mashiane
I checked your module jPocketBase (B4J) demo, this but the question is:
is it difficult to develop a library or module for B4A to link to POCKETBASE ?

you can give information about it
 

Mashiane

Expert
Licensed User
Longtime User
hello @Mashiane
I checked your module jPocketBase (B4J) demo, this but the question is:
is it difficult to develop a library or module for B4A to link to POCKETBASE ?

you can give information about it
I think the same code in the b4j example I did should work in b4a without modification.
 

giannimaione

Well-Known Member
Licensed User
Longtime User
hello,

on vps (linux 80.xxx.xxx.xxx) there is pocketbase and a "project" sithasodaisy, and it works fine;

now i am playing with B4A (a demo jPocketBase)
B4X:
Sub AppStart
pb.Initialize(Me, "pb", "http://80.xxx.xxx.xxx:8090/api")
End Sub

but i have this error
B4X:
ResponseError. Reason: java.net.UnknownServiceException: CLEARTEXT communication to 80.xxx.xxx.xxx not permitted by network security policy, Response:
maybe i need to change manifest (permission) ?
lib used:
CORE 12.20
JSON 1.21
OkhttpUtils2 3.01

android.jar : "platforms\android-28\android.jar"
 
Last edited:

giannimaione

Well-Known Member
Licensed User
Longtime User
post solved
[solved]
add into manifest
B4X:
'End of default text.
SetApplicationAttribute(android:usesCleartextTraffic, "true")
 
Top