Hi again,
I have set up a custom ATD search, using drop down lists in the common and embedded search sections. These display a list of values for a particular attribute to search by, and by default are empty -> value="".
When searching for an attribute these work fine, however if you wish to leave an attribute blank, eg value="", the value is passed through to SQL as an '*' value, thus providing a search for objects with anything in that field.
This would be fine however not all objects created have these attributes, so the objects without them are never displayed in the search results, as in the databse these do not have that field.
Is there a way to prevent parsing these attributes to SQL or the Query String when they are left empty?
Cheers,
Also on a side note: Why is 'string.replace' not recognised as a method within <ISPECT> tags? Is there substitute to use for this in the API?