Re: [Lazarus] fcl-web, html and data-binding

2010-12-06 Thread Joost van der Sluis
On Sun, 2010-12-05 at 18:17 +0100, Michael Van Canneyt wrote:
 
 On Sun, 5 Dec 2010, Leonardo M. Ramé wrote:
 
  Hi, yesterday I was talking with a colleague about creating a complex
  html (no ajax) form using fcl-web.
 
  I explained that I know two ways to do it, the first one is to create the
  html and return it in the Response.content property, the other is using 
  templates.
  All CRUD operations must me handled by hand.
 
  He told me that he is used to do it in the ASP.Net way, that he can
  draw the form with the IDE and the CRUD operations are automatically
  handled.
 
  Does anyone knows if there's a more simplier way to create HTML CRUD
  forms using lazarus and fcl-web?
 
 Currently not.

Offcourse there is, you can use the webdesign package for this. Only it
uses some java for saving the data...

But it's not that difficult to create non-javascript components for
this.

Joost.


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] fcl-web, html and data-binding

2010-12-06 Thread michael . vancanneyt



On Mon, 6 Dec 2010, Joost van der Sluis wrote:


On Sun, 2010-12-05 at 18:17 +0100, Michael Van Canneyt wrote:


On Sun, 5 Dec 2010, Leonardo M. Ramé wrote:

 Hi, yesterday I was talking with a colleague about creating a complex
 html (no ajax) form using fcl-web.

 I explained that I know two ways to do it, the first one is to create the
 html and return it in the Response.content property, the other is using 
templates.
 All CRUD operations must me handled by hand.

 He told me that he is used to do it in the ASP.Net way, that he can
 draw the form with the IDE and the CRUD operations are automatically
 handled.

 Does anyone knows if there's a more simplier way to create HTML CRUD
 forms using lazarus and fcl-web?

Currently not.


Offcourse there is, you can use the webdesign package for this. Only it
uses some java for saving the data...


I know, but I understood the (no ajax) as : use only regular HTML.

There is a fpdatasetform.pp unit which does more or less what is asked, 
but it was never tested very well; So I hesitate to recommend it.


Michael.--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] fcl-web, html and data-binding

2010-12-06 Thread Joost van der Sluis
On Mon, 2010-12-06 at 17:32 +0100, michael.vancann...@wisa.be wrote:
 
 On Mon, 6 Dec 2010, Joost van der Sluis wrote:
 
  On Sun, 2010-12-05 at 18:17 +0100, Michael Van Canneyt wrote
  Currently not.
 
  Offcourse there is, you can use the webdesign package for this. Only it
  uses some java for saving the data...
 
 I know, but I understood the (no ajax) as : use only regular HTML.
 
 There is a fpdatasetform.pp unit which does more or less what is asked, 
 but it was never tested very well; So I hesitate to recommend it.

I used it in production. but because it was so difficult to design, I
started the webdesign package. 

But I still wouldn't recommend it. It's not that difficult to come up
with a much better design. The basic building-blocks are available, now.

Joost.


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] fcl-web, html and data-binding

2010-12-06 Thread Michael Van Canneyt



On Mon, 6 Dec 2010, Joost van der Sluis wrote:


On Mon, 2010-12-06 at 17:32 +0100, michael.vancann...@wisa.be wrote:


On Mon, 6 Dec 2010, Joost van der Sluis wrote:


On Sun, 2010-12-05 at 18:17 +0100, Michael Van Canneyt wrote

Currently not.


Offcourse there is, you can use the webdesign package for this. Only it
uses some java for saving the data...


I know, but I understood the (no ajax) as : use only regular HTML.

There is a fpdatasetform.pp unit which does more or less what is asked,
but it was never tested very well; So I hesitate to recommend it.


I used it in production. but because it was so difficult to design, I
started the webdesign package.

But I still wouldn't recommend it. It's not that difficult to come up
with a much better design. The basic building-blocks are available, now.


That's what I also thought.

Michael.

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] fcl-web, html and data-binding

2010-12-05 Thread Marcos Douglas
On Sun, Dec 5, 2010 at 1:49 PM, Leonardo M. Ramé l.r...@griensu.com wrote:
 Hi, yesterday I was talking with a colleague about creating a complex
 html (no ajax) form using fcl-web.

 I explained that I know two ways to do it, the first one is to create the
 html and return it in the Response.content property, the other is using 
 templates.
 All CRUD operations must me handled by hand.

 He told me that he is used to do it in the ASP.Net way, that he can
 draw the form with the IDE and the CRUD operations are automatically
 handled.

 Does anyone knows if there's a more simplier way to create HTML CRUD
 forms using lazarus and fcl-web?

I think it's just create your own framework. In Delphi I have a
mini-crud framework for creating CRUD quickly. DBware not use, only
the standard widgets as TEdit, TMemo, etc.. Widget names correspond to
the fields of the tables (using some prefixes like edtName where
name is the field in the table). The Tag property is also used ...
short, simple and fast. I think the same idea could be used to create
a mini-framework for CRUD in HTML. That's what I want to do, so start
using the fcl-web daily.


Marcos Douglas

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus