Plugin Developer Discussion

Discussion for FogBugz Plugin developers

SearchAxisQuery problem

Hello, I'm having some problems with

 public CSelectQuery SearchAxisQuery(string sAxis, SearchType nType, string sValue)

and its that I have a field named "reproducible", and when i search for

reproducible:"Mac"

the SearchType is of type Discuss... How can I change that type for Bug? ..

Warmest regards!
Juan
Juan Sebastian Muñoz Send private email
Tuesday, December 8, 2009
 
 
Hi Juan-
I think you should get axis queries for each of the search types when you do an axis search. The example plugin ProjectBacklog, for instance, just ignores any SearchAxisQuery calls that it gets on types other than Bug, and waits for Bug. This is the first line of that function:
  if (nType != SearchType.Bug) return null;
You can probably do the same.
Does that make sense?
Thanks!
Brett
Brett Kiefer Send private email
Tuesday, December 8, 2009
 
 
Sorry Brett, that's not what I'm asking :(

I have this line: if (nType != SearchType.Bug) return null;

the problem is that nType is of Type discussion, and I'm willing it to be of Type bug.. how do I change the type of the nType on the search box?

Hope it makes sense :)

Juan
Juan Sebastian Muñoz Send private email
Monday, December 14, 2009
 
 
Hi Juan-
Sorry, I think maybe we should back up and you should tell me what it is you're trying to do at a higher level. It sounds like you want to write a plugin that makes FogBugz search for Bugs instead of DiscussTopics when the user was trying to search for DiscussTopics -- is that right?
Thanks!
Brett
Brett Kiefer Send private email
Monday, December 14, 2009
 
 

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics
 
Powered by FogBugz