Amazing the things you can do with Servoy + HTML!
We’re working on a resources planning system and are amazed by the possibilities!
Have a look:
http://www.willcom.be/timelinedemo.htm
(looks slow because of the flash)
Amazing the things you can do with Servoy + HTML!
We’re working on a resources planning system and are amazed by the possibilities!
Have a look:
http://www.willcom.be/timelinedemo.htm
(looks slow because of the flash)
Great technique Stef!
Is this based on calculations?
Could you give us a peak?
I will have to do something similar at some point, so what you have done looks very encouraging!
Just a couple of suggestions:
Hi Stef,
Thanks for sharing!
I can see you’re definitely getting the hang of it
Please also read these post:
It’s an example of how you can separate the design (HTML) from your queries. The benefit is that you can re use your HTML (global script)
with different form scripts. (might come in handy)
Dear Swingman,
-datepicker: didn’t know you don’t have to click on OK! Thanks!
-click in the timeline: how to do this without having to make hundreds of buttons? Can we capture the screenposition on mouseclick? (did it with a plugin in FM before…)
Thanks for the input!
to HJK: is rather hard to explain in words… I don’t know a lot of HTML, did it the “stupid” way: I made tables in frontpage and looked at the HTML code, split the code and put it in formulas.
HTH
Stef
I am fascinated - but I must admit to being mystified - by this whole use of HTML within Servoy.
I have heard wonderful tales of using it as Stef did and also in order to generate reports.
Is there any tutorial detail or other source of examples (or even part of a training seminar !) which would outline its implementation and benefits.
Harry
Stef:
-click in the timeline: how to do this without having to make hundreds of buttons? Can we capture the screenposition on mouseclick? (did it with a plugin in FM before…)
Hi Stef,
You could define the buttons in your HTML.
This is a snippet of code I use to insert a single button with an icon in my HTML:
s is my HTML string
s += '<a href="javascript:yourfunction(' + yourcurrentdategoeshere + ')"><img src = "media:///yourgraphic.gif" border="0" ></a>
';
replace yourfunction, yourcurrentdategoeshere, yourgraphic.gif and put it inside your loop
yourfunction will now know which date you clicked
Stef:
I don’t know a lot of HTML, did it the “stupid” way: I made tables in frontpage and looked at the HTML code, split the code and put it in formulas.
That is not stupid at all! Doing this can save a lot of time.
We do the same with GoLive.
Here’s a time saver if you’re using an HTML editor and want to transport the code into a Servoy script.
var clipBoardString = application.getClipboardString()
var clipBoardStringModified = "";
var clipBoardArray = clipBoardString.split("\n")
for(var i=0 ; i<clipBoardArray.length ; i++)
{
clipBoardStringModified += "\n'"+clipBoardArray[i]+"'+"
}
application.setClipboardContent(clipBoardStringModified)
Thanks for the input Maarten & Swingman!
This looks like great teamwork here, it’s getting better and better.
About using frontpage: let’s call it “lazy” instead of “stupid”
Thanks a lot,
Stef