Help - Search - Members - Calendar
Full Version: Example for FilteringOptions parameters
The Planet Forums > API > API Support
Menta2K
My question is how to use a FilteringOptions.
Looks like that FilterValue is the "search string" but what should be format of that string ?
For examlpe if i wont to get a GetHardwareObjectList but for search for Hardware objects only whit ip address 127.0.0.* how that string should look like ?
Ralph Y. Bou Mechrek
QUOTE (Menta2K @ May 20 2009, 10:54 AM) *
My question is how to use a FilteringOptions.
Looks like that FilterValue is the "search string" but what should be format of that string ?
For examlpe if i wont to get a GetHardwareObjectList but for search for Hardware objects only whit ip address 127.0.0.* how that string should look like ?


Hello,

In order to filter on ip address you would set the HardwareFilterExpression to the IPAddress enumerate. And then set the FilterValue value to 127.0.0.*.

I hope this helps thank you very much for your interrest in the api.

Thank you,

Ralph Y. Bou Mechrek
Menta2K
Sorry but i am stuck again with that..
Here is the example.
I wont to get last 75 tickets with Status Open

To do that i call GetTicketList function form TicketService
bellow is the parameters that i send
CODE
[args] => Array
                        (
                            [0] => GetTicketList
                            [1] => Array
                                (
                                    [0] => Array
                                        (
                                            [PagingOptions] => Array
                                                (
                                                    [StartRow] => 0
                                                    [NumberOfItems] => 75
                                                )

                                            [SortingOptions] => Array
                                                (
                                                    [SortExpression] => OpenDate
                                                    [SortDirection] => Descending
                                                )

                                            [FilteringOptions] => Array
                                                (
                                                    [FilterValue] => Open
                                                    [FilterExpression] => Status
                                                )

                                        )

                                )

                        )

But i cont get a empty ticket list as result set.

At the same time when i login into obit web interface i can see several open tickets.
What am i missing ?

This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.