Saturday, May 26, 2012

Re: how to do this?

the reason why i want to do this is this: 

the user should be able to select products from products table as many as he wants, at each selection i will save the product information in db, then the user clicks on "book" button, which leads to another book.html template where extra fields should be created for data of each selected product. 

for example: user has selected 3 items from products table and then goes to next step where he sees what he has selected and then he submits the booking with some last information of his personal. the  point is that if he has selected 3 items, then there are 3 items in db, so i create 3 html input fields for each selected item where i will render the data that i get from db. thats why i want to create these html input fields according to the number of items in db.. 

  

Am Samstag, 26. Mai 2012 11:20:57 UTC+2 schrieb Daniel Roseman:
On Saturday, 26 May 2012 09:08:47 UTC+1, doniyor wrote:
Yeah, but then i dont create htmls. What i want is to create so many htmls as the number of objects in db. Is it possible to go around the "return" till the end of loop? Then i will have all htmls created with rendered values. Is it possible to render a html particle wihthout return statement.. I am also thinking now..

Thanks man ;)

You haven't explained why you want to do this. What are you going to do with all these "htmls"? What's the point of creating them individually? Where will they be used?
--
DR. 

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/UTXU9srkV6wJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment