search for: sd_ticket

Displaying 8 results from an estimated 8 matches for "sd_ticket".

Did you mean: no_ticket
2008 Sep 25
1
question about exception
Hi In the controller I have the function def convert_sd_ticket_to_incident ServiceDeskTicket.close_ticket(sd_id,created_by_id,modified_by_id) Incident.convert_sd_ticket_to_incident(sd_id,created_by_id,modified_by_id) end Now in the ServiceDeskTicket model def self.close_ticket(sd_id,created_by,modified_by) begin ActiveRecord::Base.tra...
2008 May 13
4
calling another rjs file in an if condition
Hi I have a controller action like below.This def is called by a submit_to_remote def edit_service_desk_status_after_transfer if params[:transfer_reason].empty? #This is used in the :failure of submit_to_remote else @sd_ticket = ServiceDeskTicket.find(params[:sd_id]) ActiveRecord::Base.transaction do @sd_status_history = ServiceDeskStatusHistory.new @sd_status_history.service_desk_ticket_id = @sd_ticket.id @sd_status_history.service_desk_status_id = @sd_ticket.service_desk_status_id...
2008 Mar 06
1
pagination for an object array
def show_details @sd_ticket = 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 sea...
2008 May 26
0
setfocus to a field in view
Hi I have a div "reason_for_transfer_search_sd" like <div id="reason_for_transfer_search_sd" > <%= render :partial => "service_desk_part/on_action_transfer_reason_sd_search", :locals => { :sd_ticket=>sd_ticket } %> </div> And in on_action_transfer_reason_sd_search <%= text_area_tag "transfer_reason", nil, :size => "50x1" %> <%= link_to_remote "Submit", {:with => "''transfer_reason='' + $(''transfer_reas...
2008 Jun 16
2
call_backs Is it?
...ed_on and updated_on magic fields of rails)..Can I set this in ServiceDeskTicket class like a call_back..Since I am very new to rails call back functionality asking like this..Please correct if wrong...How can I do this without rewritng the code(I ma not asking update_attribute)..If I continue like sd_ticket.update_attribute(''fieldname'',value) i have to do in all the definitions .How can I avoid this Thanks in advance Sijo -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Goog...
2008 Mar 06
2
GateKeeper, Model Level Permissions Management
I''m pleased to announce the official release of "GateKeeper". GateKeeper is a Rails plugin that provides easy to use methods to declare access permissions to instances of ActiveRecord classes at the model level. Permissions may be based on either a user''s roles (such as Admin, Moderator, etc) or on associations with other models. In most simple and straight forward
2008 Oct 27
8
pagination in ajax
hi, I am curently using rails version 2.1.1. Currently i have done simple pagination using will_paginate plugin.it works.but when i am trying pagination using ajax with help of will_paginate plugin it wont works.i am also using RemoteLinkRenderer helper, but it gives an error uninitialized constant RemoteLinkRenderer. can anyone provide any tutorial or sample code so that i can
2008 May 19
0
changed to will_paginate
...ith will_paginate step 1: set the variables you''ll need page = (params[:page] ||= 1).to_i items_per_page = 20 offset = (page - 1) * items_per_page # step 2: instead of performing the full find, just find the record count @search_sd_ticket_count_result = ServiceDeskTicket.find_where(:all,:select=>''count(*) as count1'' ) do |sd| sd.number.downcase =~ "%"+@sd_ticket_number.downcase+"%" if !@sd_ticket_number.nil? sd.service_...