search for: search_sd_ticket

Displaying 2 results from an estimated 2 matches for "search_sd_ticket".

2008 May 13
4
calling another rjs file in an if condition
...= @sd_ticket.id @sd_status_history.service_desk_status_id = @sd_ticket.service_desk_status_id @sd_status_history.save @sd_ticket.update_attribute("service_desk_status_id",params[:status_id]) end #end of transaction if params[:page]==''search_sd_ticket'' render :update do |page| #page[:flow_item_find_search_sd].replace_html "service_desk_part/service_desk_flow_item_find_search_sd", :locals=>{:sd_ticket=>@sd_ticket} end end #The below portion i dont want to execute if the above co...
2008 Mar 06
1
pagination for an object array
...ket = ServiceDeskTicket.find(params[:id]) @servicedesk_cis = @sd_ticket.service_desk_cis end What I need is a pagination for @servicedesk_cis using the custom pagination..How can i give offset and limit to this? I have successfully done previously custom pagination in another def as below def search_sd_ticket @search_sd_ui_hash=params[:sd_ticket] @sd_ticket_number=@search_sd_ui_hash[:number] @sd_ticket_name = @search_sd_ui_hash[:name] # step 1: set the variables you''ll need page = (params[:page] ||= 1).to_i items_per_page = 20 off...