How do you return all matters where picklist option is null - clio-api

Is is possible to return all matter records where a particular picklist value is null?
I tried the following:
https://app.clio.com/api/v4/matters.json?fields=id,display_number,client{name},description,practice_area{id, name},custom_field_values{id,field_type,field_name,value,custom_field,picklist_option}custom_field_ids[]=123456&custom_field_values[123456]=null
I also tried setting it to be blank. The api just returns an empty set.
Thanks for the help in advance.

Im not sure this is formatted correctly. The fields will be comma separated but then you did not include the & between the field and the custom_field_ids.

Related

crystal - if statement - If field 'a' is blank then look at field 'b'

In Crystal 11, does the possibility exist to create a statement that would solve this issue I am faced with, using a formula field...
look at {fieldA} if there is a value listed, this should be the result
but if {fieldA} is blank then refer to {fieldB} then use this as the result
Any advice or example statements for me to look at would be greatly appreciated
Something like this:
if {fieldA} = "" then {fieldB}
else {fieldA}
Assuming you want to treat NULL values as blanks, then this is very straightforward. Simply create a formula field with this:
if {fieldA} > "" then {fieldA}
else {fieldB}
HOWEVER!! For this to work for NULL values of{fieldA} you MUST toggle to "Default Values for NULL option.

How do I display a default value when no suggestion found in suggestbox

I would like to display a default value (that I already set using setDefaultSuggestionsFromText()) when there is no suggestion displayed for the user entered value. Thanks for your help!
You need a SuggestOracle that always returns a suggestion. You could easily build one that wraps your current SuggestOracle and returns your canned suggestion when the wrapped oracle returns none.

Value of textfield with Zend_Test_PHPUnit_ControllerTestCase

Could anyone advice on the correct way to retrieve and check the value of a textfield with Zend_Test_PHPUnit_ControllerTestCase? The assert conditions are fine for css selectors, but I cannot see a way of checking that a textfield or other form element is correctly populated? any clues much appreciated!
you should validate data entry with Zend_Validate (which is part of the production code). you then would unit test that the value is retrieved correctly after it was stored in the DB.

JasperReports: default value instead of 'null'

Is there any way to set a default value to a field in a report? I have a lot of String fields in a report and would like them to display "0,00" when they're null.
Supposing the field name is "value", in the "Text Field Expression", write:
($F{value} != null) ? $F{value} : "0.00"
You can also select "Blank when null" in the properties of the text field if you want that. Other options are more flexible but this does the trick very quick and easy.
medopal's answer is good, but 2 additions:
1) You can make the syntax shorter:
($F{field_name}) ? $F{field_name} : "0.00"
2) Make sure your "else" data is of the same class as the field's value, otherwise you'll get errors when it tries to coerce numbers into string, etc. etc. This was something that, as I started out, I mixed up.
Did you try set a pattern in the text field?
If you are using iReport this can be found in the properties for the text field in the Text Field Properties section.
Try something along the lines of ###0.00 to represent 1234.56, which would always display 0.00 even if it is null.
This is the easiest way is to use Coalesce() or NVL() function of database in your data-source query to restrict null data on your report.
But it depends on if you are allowed to change the datasource query or not. If not then you can go for other solutions provided in previous answers.

Prototype js get element with certain value

I am scraping some data and I want to get the the value of an element after a specific tag with value.
It's a bold tag with value 'Types:'.
<b>Types:</b>
Once I get to that element I can use Prototype's Element.next() to get the data I want.
How exactly do I do this?
I have been fiddling with $$ but can't seem to get it right..
Thank you!
Return the first b element with value "Types:":
$$('b').find(function(n){return n.innerHTML=="Types:"})