Page 1 of 1

XML/XSD data source and field vs display name

Posted: Sat Aug 11, 2012 4:49 pm
by patwolf
We have many custom XML/XSD datasources. We need to bring them in with field names AND display names in an automated fashion.
E.g. user selects data source in our program and then Stimulsoft opens ready to drag and drop fields in the designer.
Is that possible via XML/XSD or do we need to create the whole dictionary and then bring that in instead (only XML/XSD would be perfered)?

e.g. awesome would be <xs:element name="CustomerID" displayname="Customer Number" type="xs:string" minOccurs="0" />

Thanks
Patrick

Re: XML/XSD data source and field vs display name

Posted: Mon Aug 13, 2012 2:08 pm
by HighAley
Hello.

We didn't exactly understand what do you want to implement.
Could you explain your problem more detailed with examples.

Thank you.

Re: XML/XSD data source and field vs display name

Posted: Tue Aug 14, 2012 5:44 am
by patwolf
Basically we have Name in Source, Name, Alias.
The fields defined in the XSD are Name in Source. Is there anyway to define a different Name+Alias in the XSD?
See attachment.
Thanks
Patrick

Re: XML/XSD data source and field vs display name

Posted: Tue Aug 14, 2012 11:45 am
by Ivan
Hello,

Please try to use the "msdata:Caption" attribute, for example:

Code: Select all

<xs:element name="CustomerID" msdata:Caption="Customer Number" type="xs:string" minOccurs="0" />
In this case the Caption property of the DataColumn will be automatically used for the Alias property of the StiDataColumn.

Thank you.

Re: XML/XSD data source and field vs display name

Posted: Wed Aug 15, 2012 5:13 am
by patwolf
That is just plain awesome :)
Thanks
Patrick

Re: XML/XSD data source and field vs display name

Posted: Wed Aug 15, 2012 5:54 am
by Andrew
Hello,

Great!

Thank you.

Re: XML/XSD data source and field vs display name

Posted: Wed Aug 22, 2012 4:35 pm
by mattdaw
Hi, should the msdata attributes be recognized by the AIR-based designer? I did a test with Patrick with a caption that worked for him in the dot net version but didn't work for me in the AIR designer.

Matt

Re: XML/XSD data source and field vs display name

Posted: Thu Aug 23, 2012 10:22 am
by Vladimir
Hello,

Unfortunately, currently this attribute is not supported in AIR designer. We will fix this for the next prerelease build.

Thank you.

Re: XML/XSD data source and field vs display name

Posted: Wed Aug 29, 2012 2:38 am
by mattdaw
Great, thanks!

Re: XML/XSD data source and field vs display name

Posted: Wed Aug 29, 2012 3:59 am
by Andrew
Hello,

Have a nice day!

Thank you.