(Sample code) Retrieve subject status
In this example, we want to retrieve the status of a primary and secondary subject and the project’s settings for one specific project.
Since the result of the web method GetSubjectStatus() is an array, we will create 2 methods to convert the resulting array to string. In this way the result in a readable way.
First, we need to call GetAllProjectMetaData() to get the IDs of every single project in Blue. This ID is returned in the “ProjectID” parameter (e.g. “00000-00000-00000-00000”).
We call GetSubjectsList() to retrieve all the subject IDs.
Then, we call SubjectStatus() to retrieve the status of the subject in question.
Finally, we will iterate through the resulting data, and we display the result into a textbox.
Notice that we have include the convertArrayToString() method when getting the result.