Need help creating a form with photo?
- Single Page
Posted 10 December 2011 - 18:14 PM
1. that the picture has to be stored and retrieved from a table column, and
2. the Add Employee's form must contain a button to upload the pic of the employee [in a blob column] and able to display the photo in this mode as well - may be some ajax will have to be used.
I am new to this whole concept and am not sure how to achieve all this, will appreciate if someone can share his/her experience with me so that I am able to achieve all this.
TIA
Posted 12 December 2011 - 08:00 AM
Posted 12 December 2011 - 20:36 PM
I will appreciate if someone can respond to it quickly?
Posted 12 December 2011 - 23:29 PM
No, I don't think so but am actually desperate to find a solution? so may be I did it un-intentionally. Can I ask another question, is there is a way to use some external [to grocery_crud] source to generate the form and yet being able to use the crud functionality?
I will appreciate if someone can respond to it quickly?
[/quote]
Hello tanver,
I really like to answer you at all those questions, but I think you don't need grocery CRUD for your project. To use grocery CRUD you have to understand that there is an automatic method to generate fast,safe and stable CRUDs. If you change almost everything that has the functionality of CRUD you will have two basic problems.
1. You will have really big functions and hacks to make your CRUD works. This will make not only your project big but also unstable.
2. You will not be able to update to a newer version of grocery CRUD. Especially now that I'm creating the multilingual functionality at last :-)
So my suggestion is to use grocery CRUD for your basic tables, such as users, webpages, groups, e.t.c. and have some other functions,models etc for your custom CRUD. Of course you can have your own CRUD and the grocery CRUD together. There is no reason to use grocery CRUD 100% at your backoffice system.
For example to store the images into the database is for me a sin . I can't suggest to anyone to have this functionality, because it has many many problems. Also for now it is difficult to customize grocery CRUD to do it with blob and image.
It really will take more time to customize grocery CRUD than to create a custom CRUD from scratch sometimes.
For any other help, or bug or suggestions I am always here to help.
Posted 13 December 2011 - 07:51 AM
Thanks again,
Posted 13 December 2011 - 08:15 AM
I'm working on 1 project atm (online shop) and i'm using the CRUD for the admin and moderator part - 60% and the other 40% i'm just creating for my needs , and implementin them in the CRUD or to work with it.
for example - I've reworked the display of the CRUD to show 1_n relations on several rows in 1 display - and every row is linked to the "edit" of e certain function in the crud. (1 user orders 3 products - the order is displayed in 1 row with every product linking to an edit with semi customized options )
Only you can say if you need grocery CRUD for your project , or the rework/hack/ etc will be greater than building your own.
Posted 13 December 2011 - 16:00 PM
Just an afterthought can we use crud with sparks - formgenlib offers a wonderful ways to create forms.