Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2010-12

fcl-web, html and data-binding

7 messages · 5 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Leonardo M. Ramé

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?

Reply by email

Michael Van Canneyt
to Leonardo M. Ramé
Leonardo M. Ram? wrote 13 lines
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.

Michael.

Reply by email

Marcos Douglas
to Leonardo M. Ramé: Hi, yesterday I was talking with a colleague about creating a complex html (no ajax) form…
Leonardo M. Ram? wrote 13 lines
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

Reply by email

Joost van der Sluis
to Michael Van Canneyt: Currently not. Michael.
Michael Van Canneyt wrote 18 lines
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.

Reply by email

Unknown author
to Joost van der Sluis
Joost van der Sluis wrote 22 lines
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.

Reply by email

Joost van der Sluis
to Unknown author
Show quoted text 13 lines
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.

Reply by email

Michael Van Canneyt
to Joost van der Sluis
Joost van der Sluis wrote 20 lines
On Mon, 2010-12-06 at 17:32 +0100, 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.

Reply by email