How to get XSD of a cdt at runtime

Hi,

How to get XSD of a cdt at runtime? Is there any way that we can pass a datatype number or cdt name and it returns a xsd of that cdt.

 

Thanks.

  Discussion posts and replies are publicly visible

Parents
  • Hi Rahul,

    Can you try using API's (docs.appian.com/.../)
    Particulary check below,

    com.appiancorp.suiteapi.type
    Class Datatype

    java.lang.Object
    com.appiancorp.suiteapi.type.DatatypeProperties
    com.appiancorp.suiteapi.type.Datatype

    There is a method to get Datatype from qName. Check if its useful for you.

    static Datatype findByQName(Datatype[] dts, javax.xml.namespace.QName targetQName)
    Finds the Datatype object in the given array that has the given qname.

    you can also use class 'DatatypeProperties' for getting more details about the data types.

    Regards,
    Umesh
  • 0
    A Score Level 1
    in reply to Umesh Patel
    Thanks Umesh.

    I have seen these APIs and tried the above mentioned classes. This classes gives information of Datatype and its field names and their type. I particularly need to find the primary key from the cdt. There is no direct function is available in these classes to find the primary key of a cdt.
Reply Children
No Data