Page 1 of 1
Auto-Updater
Posted: Tue Sep 21, 2010 6:32 pm
by bsouthuk
Hi
I use the following code in my standalone which downloads my stack from the internet due to constant every day changes to my application. I need my customers to have the latest version every time they login:
Code: Select all
on mouseUp
put url "http://some.url.to.a.stack.on.the.web" into x
put x into url "binfile:stack.rev"
go stack "stack.rev"
end mouseUp
This works fine but I have recently added database/mySQL integration to the stack that is downloaded and even though when building my app as a standalone I tick the right boxes in the standalone settings the mySQL/Database side does not work.
Does anyone have any ideas as to why I need to do here?
Thanks
Dan
Re: Auto-Updater
Posted: Tue Sep 21, 2010 6:40 pm
by shadowslash
Normally your set up should work. As for your updated stack script, here's a simpler script I believe would do what you're after on your
mouseUp handler.
Code: Select all
on mouseUp
go stack "http://some.url.to.a.stack.on.the.web"
end mouseUp
Re: Auto-Updater
Posted: Tue Sep 21, 2010 6:56 pm
by bsouthuk
The script you have given doesnt work at all - the error i am getting is saying no such card.
The script I am using downloads the stack fine so issues with that this. Its just the database/mySQL functions do not work
Re: Auto-Updater
Posted: Tue Sep 21, 2010 7:03 pm
by shadowslash
bsouthuk wrote:The script you have given doesnt work at all - the error i am getting is saying no such card.
The script I am using downloads the stack fine so issues with that this. Its just the database/mySQL functions do not work
Odd... What version are you using?
Re: Auto-Updater
Posted: Tue Sep 21, 2010 7:09 pm
by bsouthuk
I'm using the latest 4.5
Re: Auto-Updater
Posted: Wed Sep 22, 2010 11:10 am
by Klaus
Hi Daniel,
what exactly do you mean with "Its just the database/mySQL functions do not work"?
"This or that does not work" is not a really helpful comment for finding bugs/errors, please spread the word
Best
Klaus
P.S.
Try this
...
go stack URL "
http://some.url.to.a.stack.on.the.web"
...
Re: Auto-Updater
Posted: Wed Sep 22, 2010 11:45 am
by bsouthuk
Sorry Klaus - i will never do that again -such a bad habit!
I have got it wrong - my stack is connecting to my database fine but the problem is that the datagrids do not respond when clicking on the rows/columns. The scroll bar moves up and down but the content inside the datagrid does not move.
This is only when I donwload my stack using a splash screen standalone.
If I build the stack that I download as a standalone I do not have any problems with the datagrids.
Any ideas?
Re: Auto-Updater
Posted: Wed Sep 22, 2010 12:27 pm
by Klaus
Hi Daniel,
as a moderator of this list I also must tell you NOT to open two threads on the same topic!
You posted an almost identical thread under "Off-topic"!???
If you do this again, you will be forced to programm in ASSEMBLER for at least one week!!!
OK, to your problem, I guess the downloaded stack is not be aware of your splash screen stack/standalone
which has loaded the db externals!
Did you put:
...
start using stack "the splash stack that turned into the standalone and loaded all the fine db externals"
## or just: start using this stack
...
somewhere into a script (openstack or whatever) of your splash screen?
If not, do it and try again.
Best
Klaus
Re: Auto-Updater
Posted: Wed Sep 22, 2010 12:42 pm
by bsouthuk
LOl ok I have been warned!
I have tried this yes Klaus and nothing has changed.
I can tell you though that my stack is connecting to my database as I can add/delete products to my product list and works perfectly so the stack is aware of the splash screens DB externals for sure.
I am only having issues with the datagrids as pointed out in my previous thread. Its as if the datagrids just freeze and respond to nothing. Again, this is only when i download the stack using a splash screen. When i save the stack itself as a standalone I do not get these issues.
Re: Auto-Updater
Posted: Wed Sep 22, 2010 12:49 pm
by Klaus
Hmm, looks like that stack somehow loses the "connection" to the Datagrid library or the DataGrid templates or the necessary behaviours.
Sorry, can't help you here...
Re: Auto-Updater
Posted: Wed Sep 22, 2010 1:11 pm
by Janschenkel
See
this lesson entitled 'What Do I Need to Do To Deploy a Standalone With A Data Grid?'
Jan Schenkel.
Re: Auto-Updater
Posted: Wed Sep 22, 2010 2:14 pm
by bsouthuk
Done - brilliant! thank you so so much!!
Re: Auto-Updater
Posted: Wed Sep 22, 2010 2:40 pm
by Klaus
Oh boy!
Of course we all presumed that you added the necessary libraries in the correct way!