Page 1 of 1

HookAddCode request - AppointmentL.GetSearchResults

Posted: Thu Sep 02, 2010 12:13 pm
by alkhaef
Hello... Can I get a HookAddCode called AppointmentL.GetSearchResults_postfilter where the HOOK HERE comment is?

So far I think the parameters I need are ALresults, providers[p], apt

Code: Select all

						if(beforeTime!=TimeSpan.Zero && timeFound>beforeTime) {
							aptIsMatch=false;
							continue;
						}
						//match found
						ALresults.Add(dayEvaluating+timeFound);
//LINE 129
//HOOK HERE
					}//for p	
					if(aptIsMatch){
						break;
					}
Thanks!

Re: HookAddCode request - AppointmentL.GetSearchResults

Posted: Wed Sep 08, 2010 4:23 pm
by alkhaef
Hi.

I've hand-hacked my local copy and it looks like the hook as described with that parameter set would work for me. Will this hook go in?

Thanks,

Re: HookAddCode request - AppointmentL.GetSearchResults

Posted: Thu Sep 09, 2010 8:33 pm
by jordansparks
Michael will try to get it tomorrow.

Re: HookAddCode request - AppointmentL.GetSearchResults

Posted: Fri Sep 10, 2010 7:37 am
by michael
It looks like this won't happen right away as GetSearchResults is a staic method, and our policy is to send the object as the sender parameter in the HookAddCode function, but with a static method the object does not necessarily exist, so you cannot pass this as the sender object.

Would it work to add your code to ContrAppt.cs at line 4490 in the head (might be a little different for you) right after GetSearchResults is called?

Re: HookAddCode request - AppointmentL.GetSearchResults

Posted: Fri Sep 10, 2010 7:57 am
by jordansparks
I think you should pass in null.

Re: HookAddCode request - AppointmentL.GetSearchResults

Posted: Fri Sep 10, 2010 8:38 am
by michael
Right. Done. The hook "AppointmentL.GetSearchResults_postfilter" is in place and ready for use in version 7.2.39.

Re: HookAddCode request - AppointmentL.GetSearchResults

Posted: Tue Sep 14, 2010 4:08 pm
by alkhaef
Works like a charm! :)

Thanks,