XML/XSD data source and field vs display name

Stimulsoft Reports.WEB discussion
Post Reply
patwolf
Posts: 90
Joined: Thu May 29, 2008 1:38 pm
Location: Los Angles

XML/XSD data source and field vs display name

Post 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
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

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

Post 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.
patwolf
Posts: 90
Joined: Thu May 29, 2008 1:38 pm
Location: Los Angles

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

Post 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
Attachments
Capture.PNG
Capture.PNG (13.39 KiB) Viewed 5684 times
Ivan
Posts: 960
Joined: Thu Aug 10, 2006 1:37 am

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

Post 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.
patwolf
Posts: 90
Joined: Thu May 29, 2008 1:38 pm
Location: Los Angles

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

Post by patwolf »

That is just plain awesome :)
Thanks
Patrick
Andrew
Posts: 4109
Joined: Fri Jun 09, 2006 3:58 am

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

Post by Andrew »

Hello,

Great!

Thank you.
mattdaw
Posts: 2
Joined: Wed Aug 22, 2012 4:28 pm

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

Post 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
Vladimir
Posts: 1462
Joined: Fri Apr 13, 2007 4:05 am
Location: Earth

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

Post by Vladimir »

Hello,

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

Thank you.
mattdaw
Posts: 2
Joined: Wed Aug 22, 2012 4:28 pm

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

Post by mattdaw »

Great, thanks!
Andrew
Posts: 4109
Joined: Fri Jun 09, 2006 3:58 am

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

Post by Andrew »

Hello,

Have a nice day!

Thank you.
Post Reply