Post

2 followers Follow
0
Avatar

How to include items with a field not set to any value?

Hello Everybody,

I created a deliverables table in HTML and I filled it through the "getItems" API function in PHP. It works fine, but when a field happens to be empty I can't get to leave it as is because it gets filled with the values of the following row.

How can I print values that haven't been set? I tried using {key} but it wouldn't work.

$response = $api->item->getItems($app_id, array($field_id => "null;active"));

Can you help me?

Thanks in advance,

Bompa

Bompa Loki

Please sign in to leave a comment.

3 comments

0
Avatar

If you are asking how to get items where a certain field is not set, I can tell you that it is unfortunately currently not supported by the API.

Casper Fabricius 0 votes
Comment actions Permalink
0
Avatar

Actually my previous answer was wrong. As documented in the Get Items metod, it is possible to get items where the value is not set. However, only state, app, member, category and question fields supports this. Just set the value to null for these types of fields.

Casper Fabricius 0 votes
Comment actions Permalink