If a server app is being developed, that must work 24\7 on server, without window-interface, but it needs some settings (periodical manual operations, adjusting...), setup by a user - how simpler\faster to implement the settings user interface ?
Web-app should have documented access, and needs to develop HTML forms code, and make the handlers and classes for them ... maybe is there more simple way for interface ?
jServer v2.70 adds support for background workers (https://www.b4x.com/android/forum/threads/updates-to-internal-libaries.48274/#post-465493). A background worker is a class instance that is initialized by a background thread. You can keep the class instance running for as long as the server is...
www.b4x.com
The first idea is more elegant but any would be okey.
Now i'm guessing about B4XSerializator passing a Map with settings parameters that are viewed and edited by a second B4J UI app...
Map with items with the type something like:
B4X:
Type MySetting (Name As String, strValue As String, boolValue As Boolean, numValue As Float, Image() As Byte)
'or even simpler:
Type MySetting (Name As String, Value As String, Image() As Byte)
And name like "boolFlag1" or "strURL1" may help to parse each such setting parameter inside the map...
Yes this is the simplest solution. You will not need any desktop application for this no ! You will design your html forms and use websockets in your in your server to access data input from a browser
Yes, thanks, i saw this. I only know that i know almost nothing about JS and few about HTML. So, B4J UI may be simpler... just for me, but you are right - it's another extra UI app to be prepared, but ... what faster\simpler...
What about the idea to pass a new setting to a working non-UI app1 (in any OS - desktop or server) - by another non-UI app2 that is started with CLI-parameters (settings) and then app2 is sending them by Sockets to app1 ?
This looks like the universal solution - any OS can be used for settings.
that sound convoluted. if you make your app accept JSON or a simple text with instructions, you could use any terminal with CURL without having to install java.
yes, but for a system operator (that is to be a manager, not Linux user\admin) should be some readable interface, with settings choice and\or entering text...
okey, but then you can still do Http instead of the sockets in the admin app. you already have the tool: httpjob. if you want to do sockets look in the forum for websocketclient library.
Updates: Web API Server 2.0 is available. Check https://www.b4x.com/android/forum/threads/project-template-web-api-server-2.143310/ Version: 1.16 Description: Create Web API Server with CRUD functionalities Sample application: [B4X] Todo List based on Web API Template: Web API Server...
Universal (from any OS, desktop or server one) and simplest (for the developer) and clear\readable (for system operator\user) way to read-write the settings of the console non-UI server B4J 24\7 app.
And, it seems, now to me, that it is ... a plane HTML POST-method form from user's web-browser (or extra non-UI CURL app from a server OS). Nothing new and special
..you can have a second app (b4j,b4a,b4i) that will create "ini" file - and the "main" app can just loading it very some seconds (can also check if the settings are same or different from previous load... just a whole-string check)...
Will be easier interface... but more for local app... not for internet apps...
internet apps and easy creating ....will go with html interface too... with html forms... reading writing an sqlite db...
But... if you want a complicated solution... you can use an MQTT Server (third company may be)... to transfer settings through it ... and have b4x UI... cloud rulez
Universal (from any OS, desktop or server one) and simplest (for the developer) and clear\readable (for system operator\user) way to read-write the settings of the console non-UI server B4J 24\7 app.
And, it seems, now to me, that it is ... a plane HTML POST-method form from user's web-browser (or extra non-UI CURL app from a server OS). Nothing new and special