B4J Question [BANanoVueMaterial] Error on cloud

micro

Well-Known Member
Licensed User
Longtime User
Hi to all
always for my tests I loaded a simple project for reading table from a mysql db on my cloud space (aruba)
In local it's work fine (with laragon server).
if I start the call remotely the project starts and the graphic part is loaded but I don't read the tables because I don't access labarc.php
B4X:
Sub Process_Globals
    Public BANano As BANano 'ignore
    Public AppName As String = "labarc"
    Public AppTitle As String = "LabArc"
    Private Publish As String = "C:\laragon\www"
    Public ServerIP As String = "XX.XX.XX.XX"
    Public Version As String = "1.00"
    Public Port As String = "80"'"8080"
End Sub

1605866734821.png


the address to point to labarc.php is wrong, why?

if I correct the link and insert it in the address bar of the browser, the php file answers correctly with: ' invalid request: '
 

Mashiane

Expert
Licensed User
Longtime User
This is just incorrect:

1605877134862.png


The issue is how you have set up your PHP host, because the path to the php file to be executed is read from there.

Propably its this,

B4X:
BANano.PHPHost = $"http://${ServerIP}:${Port}/${AppName}/"$

You can either use the actual web server address on it

For example

B4X:
BANano.PHPHost = "http://www.labarc.com/labarc/"

or, remove the port indicated.

B4X:
BANano.PHPHost = $"http://${ServerIP}/${AppName}/"$


Ta!
 
Upvote 0

micro

Well-Known Member
Licensed User
Longtime User
Upvote 0

micro

Well-Known Member
Licensed User
Longtime User
Thanks Mashiane for your suggestion on the case-sensitive problem.
Another question:
If i insert after I loaded the data into the table this code:
B4X:
dt1.SetColumnWidth("id", 0)
The id column is always visible with the right width, why?
 
Upvote 0
Top