CoreBOSBB
CoreBOSBB
>
Development
>
coreBOS Development
> Getting mandatory fields in a webservice query
Full Version:
Getting mandatory fields in a webservice query
You're currently viewing a stripped down version of our content.
View the full version
with proper formatting.
Guido1982
12-22-2016, 09:32 AM
When we select fields, for instance
PHP Code:
SELECT
*
FROM salesorder WHERE id
=
$id
Can we also retrieve information about if the fields are mandatory or not?
joebordes
12-22-2016, 09:43 AM
You have to use Describe for that. Describe gives you all the meta information of the fields:
https://github.com/tsolucio/coreBOSwsDevelopment/blob/master/testcode/080lib_describe.php
Also in the Webservice Development tool there is a page that uses Describe to show you all that information correctly formatted. (List Types link)
Guido1982
12-22-2016, 12:48 PM
Thanks! I knew about the list types but not how it got its information.
CoreBOSBB
>
Development
>
coreBOS Development
> Getting mandatory fields in a webservice query