Nested Form for Invoice #23
Replies: 9 comments
-
Google Group Date: Sat, 31 Dec 2016 14:58:40 -0800 On Saturday, December 31, 2016 at 2:21:53 AM UTC-8, Iyyasamy Murugesan
Form#subform handles nested forms if you are using the Sequel integration. form(Order.first) do |f| Thanks, |
Beta Was this translation helpful? Give feedback.
-
Google Group Date: Sat, 31 Dec 2016 22:16:59 -0800 Hi, I have tried and working fine for Edit function. But for Creating new, I form(Order.create) do |f| Thanks and regards, I.M On Sunday, January 1, 2017 at 4:28:40 AM UTC+5:30, Jeremy Evans wrote:
|
Beta Was this translation helpful? Give feedback.
-
Google Group Date: Sat, 31 Dec 2016 23:06:01 -0800 On Saturday, December 31, 2016 at 10:16:59 PM UTC-8, Iyyasamy Murugesan
The easiest way is probably to add an empty order item to the order: order = Order.new If you want to create an arbitrary number of order items per order Thanks, |
Beta Was this translation helpful? Give feedback.
-
Google Group Date: Wed, 4 Jan 2017 17:46:59 -0800 Hi, It will be much helpful, if you share any examples. Thanks and regards, I.Murugesan On Saturday, December 31, 2016 at 3:51:53 PM UTC+5:30, Iyyasamy Murugesan
|
Beta Was this translation helpful? Give feedback.
-
Google Group Date: Wed, 4 Jan 2017 21:40:41 -0800 On Wednesday, January 4, 2017 at 5:46:59 PM UTC-8, Iyyasamy Murugesan wrote:
It should be possible to use subform in a partial (subtemplate), since it Note that that is unrelated to modify and delete, which can be done without Thanks, |
Beta Was this translation helpful? Give feedback.
-
Google Group Date: Thu, 5 Jan 2017 14:42:01 -0800 Thanks Jeremy. I am using Roda only for my application. This is my sale_nested.erb. I want <%f=Forme::Form.new(@sale)%>
<%=f.button(:id=>'save', :value=>'Save')%> <script type="text/javascript"> $(document).ready(function() { setup_order_form(); }); </script>while submitting: r[order] is giving nil Please let me know, how can I submit. Thanks. I.Murugesan On Saturday, December 31, 2016 at 3:51:53 PM UTC+5:30, Iyyasamy Murugesan
|
Beta Was this translation helpful? Give feedback.
-
Google Group Date: Fri, 6 Jan 2017 07:30:36 -0800 On Thursday, January 5, 2017 at 2:42:01 PM UTC-8, Iyyasamy Murugesan wrote:
It's hard to be sure without a self contained example.
If those suggestions don't work, please post a minimal self contained Thanks, |
Beta Was this translation helpful? Give feedback.
-
Google Group Date: Fri, 6 Jan 2017 10:50:44 -0800 Hi Jeremy, Please find attached files. All I wanted is to insert into order table. It Let me know, how I can save subform datas and main form datas. Thanks and regards, I.Murugesan On Friday, January 6, 2017 at 9:00:36 PM UTC+5:30, Jeremy Evans wrote:
|
Beta Was this translation helpful? Give feedback.
-
Google Group Date: Fri, 6 Jan 2017 12:07:27 -0800 On Friday, January 6, 2017 at 10:50:44 AM UTC-8, Iyyasamy Murugesan wrote:
Please read my previous post and make the change I suggested in 1). You don't appear to be using form_attr or form_opts, and even if you were The information for orders should be in r['sale']['orders_attributes'], During development, you probably want to review what HTML forme is In the future, please inline the code instead of attaching it, and please Thanks, |
Beta Was this translation helpful? Give feedback.
-
Google Group Post: https://groups.google.com/g/ruby-forme/c/BQXZ15ffcF0
Google Group Date: Sat, 31 Dec 2016 02:21:52 -0800
Google Group Sender: yuv...@gmail.com
Hi,
I want to use Forme for Invoice application. Since, I am new to Roda,
Sequel and Forme, I want to know whether Forme will support nested forms.
I have Order table and Order_Items table.
*Orders:*id,
date,
customer,
amount
Order_Items:
id,
order_id (references Orders)
item_id (references Items)
qty,
rate
tax,
amount
I want to use CRUD (Add, Read, Edit & Delete) on this form. Please let me
know, how complex it is to accomplish this.
Wish you all a very happy and prosperous new year 2017.
Thanks and Regards,
I.Murugesan
Beta Was this translation helpful? Give feedback.
All reactions