© 2018 Capita Business Services Ltd. All rights reserved.

Capita Education Software Solutions is a trading name of Capita Business Services Ltd. Our Registered office is 30 Berners Street, London, W1T 3LR and our registered number is 02299747. Further information about Capita plc can be found in our legal statement.

SIMS 7 - TPSubject

TPSubject.GetXmlSubjects ()

This interface gets all the CORE subjects from SIMS database.

TPSubject.GetXmlSubjects (int subjectId)

This interface gets information of a subjectId passed as a parameter. It will get all CORE subjects from SIMS database if ‘0’ is passed as the parameter.

 

Sample code and output for this interface is shown below:

TPSubject subject = new TPSubject();
string testdata = subject.GetXmlSubjects();
<?xml version="1.0" encoding="iso-8859-1" standalone="yes"?>
<Subjects>
  <Subject>
    <SubjectID>518</SubjectID>
    <SubjectCode>Ac</SubjectCode>
    <SubjectName>Accounting</SubjectName>
  </Subject>
  <Subject>
    <SubjectID>519</SubjectID>
    <SubjectCode>Ar</SubjectCode>
    <SubjectName>Art</SubjectName>
  </Subject>
</Subjects>

 

SIMS 7 RESOURCES

Related resources for SIMS 7