How to create VDF Web Applications: Difference between revisions

From DataFlex Wiki
Jump to navigationJump to search
Jka (talk | contribs)
Jka (talk | contribs)
mNo edit summary
Line 14: Line 14:
You will also need to install Webapp server from the [[Visual DataFlex]] installer. Follow the onscreen instructions if you are on windows vista or windows server 2008.
You will also need to install Webapp server from the [[Visual DataFlex]] installer. Follow the onscreen instructions if you are on windows vista or windows server 2008.


== The overall idea about Active Server pages and vdf==
= The overall idea =
When you develop ASP pages using vdf then you develop COM compents that run on the serverside and are 'glued' together using a scripting language like
When you develop ASP pages using vdf then you develop COM compents that run on the serverside and are 'glued' together using a scripting language like


Line 22: Line 22:
This means that '''asp itself should not be used as a programming language''' - it is a fast way of writing the html to go together with serverside components you develop in Visual DataFlex (VDF). The trick is that you can write lots of HTML in asp - outside your code. If you have problems you need to solve as a programmer, then the best idea is to try solve them in Visual DataFlex first , then expose the developed functionality as a web object embedded in your asp page.
This means that '''asp itself should not be used as a programming language''' - it is a fast way of writing the html to go together with serverside components you develop in Visual DataFlex (VDF). The trick is that you can write lots of HTML in asp - outside your code. If you have problems you need to solve as a programmer, then the best idea is to try solve them in Visual DataFlex first , then expose the developed functionality as a web object embedded in your asp page.


= VDF on the serverside =
== VDF on the serverside ==
*Web Business Process (these things gets registered and you can access them in asp)
*WBO
*Global.asa (this is where your code is stackup up. check the list of WBP's there)
*Global.asa (this is where your code is stackup up. check the list of WBP's there)






= Javascript and HTML on the clientside =
== Javascript and HTML on the clientside ==


Now - after having being told that you really shouldn't be doing any clientside code when you are a vdf programmer, then here are some instructions for doing exactly that! (Note that you can accomplish a lot just by using the wizards in the AJAX library )  
Now - after having being told that you really shouldn't be doing any clientside code when you are a vdf programmer, then here are some instructions for doing exactly that! (Note that you can accomplish a lot just by using the wizards in the AJAX library )  

Revision as of 11:58, 22 November 2008

How to create VDF Web Applications page under construction


Introduction

Getting started

To be able to develop ASP pages , then you need Internet Information Server. The most easy way to get that these days is to grab Microsofts Web Platform installer here :

http://www.microsoft.com/web/channel/products/WebPlatformInstaller.aspx (note that it is in beta right now)

This tool will provide you with a full stack for developing asp related things. It will also keep track of certain things you need to enable on Windows Vista and Windows Server 2008.


You will also need to install Webapp server from the Visual DataFlex installer. Follow the onscreen instructions if you are on windows vista or windows server 2008.

The overall idea

When you develop ASP pages using vdf then you develop COM compents that run on the serverside and are 'glued' together using a scripting language like

This means that asp itself should not be used as a programming language - it is a fast way of writing the html to go together with serverside components you develop in Visual DataFlex (VDF). The trick is that you can write lots of HTML in asp - outside your code. If you have problems you need to solve as a programmer, then the best idea is to try solve them in Visual DataFlex first , then expose the developed functionality as a web object embedded in your asp page.

VDF on the serverside

  • WBO
  • Global.asa (this is where your code is stackup up. check the list of WBP's there)


Javascript and HTML on the clientside

Now - after having being told that you really shouldn't be doing any clientside code when you are a vdf programmer, then here are some instructions for doing exactly that! (Note that you can accomplish a lot just by using the wizards in the AJAX library )

Toolset for checking your clientside stuff

You should always make sure that any html/javascript/css you do validates to the current standards. It will save you time in the long run.


Advanced techniques