Hello Alpha Geniuses!
I'm brand new (now 3 weeks old) to Alpha Anywhere working on a mobile application that will contain about 10 screens. The app uses a large legacy MySQL database. I started developing the part that I figured needed to be up and running before even starting the user interface. In xBasic I have completely written the server-side back end which connects to the database, executes the various queries used by the app, and returns JSON-formatted output to the client.
I have made generous use of classes that inherit from a base class. The controller is in its own class which, as expected, acts as the interface between the database and the user interface. I have also written a unit test function to call the controller methods so as to mimic user events. The controller has methods that correspond to actions on the user interface. Now that my back end seems to do what I need it to do, I need to know how to hook it up to the front end. I have the novice impression and fear that Alpha's web app front end only interacts with server side functions, not object methods. My unit test function instantiates the controller class in order to work. The controller object persists the objects used to access the database. I fear that my desktop back end paradigm might conflict with Alpha Five's server side model.
How shall I interact from the front end with my controller object? Please tell me that I can. Are there any pertinent videos I should view?
Thanks in advance for your help,
-Frank
I'm brand new (now 3 weeks old) to Alpha Anywhere working on a mobile application that will contain about 10 screens. The app uses a large legacy MySQL database. I started developing the part that I figured needed to be up and running before even starting the user interface. In xBasic I have completely written the server-side back end which connects to the database, executes the various queries used by the app, and returns JSON-formatted output to the client.
I have made generous use of classes that inherit from a base class. The controller is in its own class which, as expected, acts as the interface between the database and the user interface. I have also written a unit test function to call the controller methods so as to mimic user events. The controller has methods that correspond to actions on the user interface. Now that my back end seems to do what I need it to do, I need to know how to hook it up to the front end. I have the novice impression and fear that Alpha's web app front end only interacts with server side functions, not object methods. My unit test function instantiates the controller class in order to work. The controller object persists the objects used to access the database. I fear that my desktop back end paradigm might conflict with Alpha Five's server side model.
How shall I interact from the front end with my controller object? Please tell me that I can. Are there any pertinent videos I should view?
Thanks in advance for your help,
-Frank
Comment