Jan Blok:
Will not be done, a runtime is ment for demo’s/distro’s it has for example no repository, its like a not modifiable package…
Is this true? Is there no way to update a runtime? Is the runtime builder just a tool for developers to demo their client server apps???
Where can I read about the runtime builder capabilities? Is it a real product?
I have three projects that require runtimes and these are definateley NOT demo’s. One would replace a filemaker pro runtime with over 100 installed users and growing.
Well you can send the customers a new solution.runtime file(as found in the runtime lib dir) which holds all the solution/repository information. (meaning you replacing your runtime information)
Jan Blok:
Well you can send the customers a new solution.runtime file(as found in the runtime lib dir) which holds all the solution/repository information. (meaning you replacing your runtime information)
That’s nice!
1.) Can we use the http-plugin for that, so they can automaticly download the file and overwrite?
2.) How do we handle changes in the database? new columns, etc..??
Create a stored procedure in your database that alters tables based on parameters you send to it
Set your solution to trigger that SP the first time it launches, in the same method exit servoy as it needs to reload to see the new tables
perform other init methods if necessary
We might also extend the runtime builder in the future so this can be done automatically. However at the moment the runtime builder is a very low volume product so we will have to dedicate our time to the other 482 features you have requested from us. As usual if you really need this feature you can always contact us for the EAFBCIDCP (Escalate A Feature By Contributing In Development Cost Program) fee.
jaleman:
We might also extend the runtime builder in the future so this can be done automatically. However at the moment the runtime builder is a very low volume product so we will have to dedicate our time to the other 482 features you have requested from us. As usual if you really need this feature you can always contact us for the EAFBCIDCP (Escalate A Feature By Contributing In Development Cost Program) fee.
Jan, you have my attention. I’d buy a builder license now if I thought it would better support runtimes than what I have to do with filemaker. I’m happy to help with requirements if this would be helpful.
ahmad:
…The servoy document does not tell me anything about updating a runtime solution…
The Servoy runtime was not designed to be updated when released (its ment for demo’s/distro’s currently)
But if you read earlier messages in this topic you will see it is possible via stored procedures and http plugin.
Jan Blok:
it is possible via stored procedures and http plugin.
Can some one give some real time example of how it works since I have no knowledge about stored procedures. Where these procedures to be stored? in the previous version or updated version?
How the data are migrated across?
Some real time explantation will be helpful greatly
Can some one give some real time example of how it works since I have no knowledge about stored procedures. Where these procedures to be stored? in the previous version or updated version?
How the data are migrated across?
A stored procedure is just a query stored in the database. You would execute it with executeStoredProcedure in a Servoy method. This method could be triggerred by http too. The SP would already need to be in the old version of the solution so that the new version could make use of it. You would just call it to run and pass it the neeeded parameters like a new table name or column, etc. Then you’d exit servoy to refresh the tables.
Theoretically, you could then do just about anything with teh databsase here. My guess is that you could also use this to get around some of the limitations Servoy puts on modifying tables. Those limitations are in place to protect the db structure in case other there are non-servoy users of the db like a webserver connection, for example. However, now with the headless client, that is probably a little less important. In many environments, the databse may only be serving Servoy.
Anyway, this is a powerful approach and again shows how you can probably do whatever you really need to do with Servoy. You only may need to use some clever SQL or Java or beg Servoy team to build a feature to do the heavy lifting.
I’ll be playing with this in the weeks ahead for sure.
Create a stored procedure in your database that alters tables based on parameters you send to it
Set your solution to trigger that SP the first time it launches, in the same method exit servoy as it needs to reload to see the new tables
perform other init methods if necessary
We might also extend the runtime builder in the future so this can be done automatically. However at the moment the runtime builder is a very low volume product so we will have to dedicate our time to the other 482 features you have requested from us. As usual if you really need this feature you can always contact us for the EAFBCIDCP (Escalate A Feature By Contributing In Development Cost Program) fee.
Is the ASA database included in the Servoly runtime build, the ASA personal database or the ASA Desktop Runtime Edition? If it is the later, you cannot use stored procs. Also, trax log and thereby no syncronization “by any means”, no triggers or events, no use of ALTER atatements, can’t use CREATE, can’t DROP, can’t use openconnect tools like Sybase Central, can’t encrypt, and no java. Certainly it’s the personal edition, isn’t it???