search for: item_cod

Displaying 5 results from an estimated 5 matches for "item_cod".

Did you mean: item_code
2008 Apr 29
10
Better way to remove value from list??
...works, but I don''t think that it''s efficient. It''s all in my controller. I''d be happy to move things around too. Any help on how to do this much better would be appreciated. @order = Order.find(params[:id]) @remove_item = params[:item] @item_array = @order.item_codes.split(/,\s*/) @item_array.delete(@remove_item) @item_string = @fc_array.join(",") @order.item_codes = nil @order.item_codes = @fc_string @order.save THANKS!!! -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message be...
2010 Mar 12
7
sqldf not joining all the fields
...p = 0, check.names = TRUE,fill=TRUE, strip.white = TRUE, blank.lines.skip = TRUE, comment.char = "#", allowEscapes = FALSE, flush = FALSE, fileEncoding = "", encoding = "unknown") x_data prochi prescribed_date dataMonth item_code res_seqno quantity directions CAO0000713 22/06/2001 NULL 842752 NULL 60 1/D CAO0000713 28/04/2000 NULL 7800 NULL 100G A/TD CAO0000713 10/04/2000 NULL 842652 NULL 60 1/D CAO0000713 03/07/2000 NULL...
2010 Mar 15
1
inner join sqldf
...mes=TRUE, quote= "\"'") test_sql_innerjoin <- sqldf("select * test_sql_psd inner join test_sql_tsf on test_sql_psd.prochi=test_sql_tsf.prochi") colnames(test_sql_psd) [1] "prochi" "prescribed_date" "dataMonth" "item_code" [5] "res_seqno" "quantity" "directions" "no_of_packs" [9] "datasource" "scan_ref_no" "name" "approved_name" [13] "formulation_code" "str...
2006 Mar 10
5
PDF::Writer Simpletable Iteration
...em in the collection shows in the generated PDF. Any ideas? My code follows: def pdf @item = Item.find(:all) _p = PDF::Writer.new _p.select_font ''Times-Roman'' PDF::SimpleTable.new do |tab| tab.title = "Item List" tab.column_order.push(*%w{item_code item_name item_desc item_cost}) tab.columns["item_code"] = PDF::SimpleTable::Column.new("item_code") { |col| col.heading = "Code" } tab.columns["item_name"] = PDF::SimpleTable::Column.new("item_name") { |col| col.heading = "Ite...
2008 Feb 13
2
javascript pop window from form how to update field back to main form
Hi I have question where I run web form. Now on this form I have one field with link select user. This link will pop up new window with javascript and on this window I have form with items which end user can select. Once selection is done end user press button Select User. Now I need to close that javascipt window and send back value of that selection back to form and to the field which has