Displaying 5 results from an estimated 5 matches for "add_new_item".
2005 Dec 15
12
Adding multiple invoice items to an invoice on the same form
Hi Friends ,
Got a unique requirement .I am designing a invoice printing system
.So right now I have the NEW page for adding the invoice details to the
table .Now I have the requirement of adding Invoice Items In the same
form .I have added multiple text boxes to enter the values of the Items
using
<%= text_field ''invoiceitems[]'', ''item_price''
2005 Dec 20
0
Dynamic fields creation and accessing data
...9;', ''index'' =>
invoiceitem_counter
%>
Where are we initialising the counter? Please tell how is the first line
working .
In the rhtml file I have added :
<%= form_remote_tag(:update => "my_list",
:url => { :action => :add_new_item },
:position => "bottom" ) %>
<%= submit_tag "Add New Item" %>
<%= end_form_tag %>
<form action="/ajax/save_items" method="post">
<ul id="my_list">
<li>Origi...
2005 Dec 23
0
adding items to a particular invoice on the same page
...<title>Ajax List Demo</title>
<%= javascript_include_tag "prototype" %>
</head>
<body>
<h3>Add to list using Ajax</h3>
<%= form_remote_tag(:update => "my_list",
:url => { :action => :add_new_item },
:position => "bottom" ) %>
New item text:
<%= submit_tag "Add" %>
<%= end_form_tag %>
<form action="/ajax/save_items" method="post">
<ul id="my_list">
<input...
2005 Dec 20
12
How to model "Expense Report" in Rails MVC
1st: I am a newbie to Rails & to pure OO.
Q: I want to use rails for creating a "master-detail" form. page layout
will allow users to type in an "expense report header" and as many
"expense report lines" as they need to. I understand how to wrap the
final submit action using "transaction" to ensure the inserts to the
database happen within the same
2012 Oct 09
10
Auto refresh the drop-down
I have an option in dropdown like "Add new option" written using
grouped_collection_select.
And when user clicks on the "Add new option". A pop up dialog appears to
add a new value. And when I click create it hits the database and adds the
value to the db.
But It never updates the dropdown list. Suggest me a way to auto refresh
only the current dropdown with the new