Setting the default datasource.

Stimulsoft Reports.WEB discussion
steve3squared
Posts: 40
Joined: Tue Mar 04, 2014 5:37 pm

Setting the default datasource.

Post by steve3squared »

Hey,

Is there a way to set the default datasource in StiMobileDesigner? I dont want the users to be able to set it. The app I'm working on sets the data on load.

Thanks
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Setting the default datasource.

Post by HighAley »

Hello.

There is a ShowDictionary property that you could set to False to hide Dictionary tab.

Thank you.
steve3squared
Posts: 40
Joined: Tue Mar 04, 2014 5:37 pm

Re: Setting the default datasource.

Post by steve3squared »

Hi,

The ShowDictionary isnt what I'm looking for.

The scenario is, there will always be only 1 datasource, can it be selected automatically and maybe the dropdown hidden?

Regards
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Setting the default datasource.

Post by HighAley »

Hello.

There will be opened your report with the necessary Data Source and user will be not able to change it.
It will be possible to use Fields from the Data Source in the components of the report.

Thank you.
steve3squared
Posts: 40
Joined: Tue Mar 04, 2014 5:37 pm

Re: Setting the default datasource.

Post by steve3squared »

Hey Aleksey

I dont understand what your saying

Aleksey Andreyanov wrote:Hello.

There will be opened your report with the necessary Data Source and user will be not able to change it.
It will be possible to use Fields from the Data Source in the components of the report.

Thank you.
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Setting the default datasource.

Post by HighAley »

Hello.

I meant that if the Dictionary tab is disabled, the Data Source could be set to report in code and it's possible to use it in the designer.

Thank you.
steve3squared
Posts: 40
Joined: Tue Mar 04, 2014 5:37 pm

Re: Setting the default datasource.

Post by steve3squared »

Thanks Aleksey,

Couldnt be a little cheeky and point me into the right direction from the code point of view?

Thanks
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Setting the default datasource.

Post by HighAley »

Hello.

Could you specify what problems do you have with the implementation?

Thank you.
steve3squared
Posts: 40
Joined: Tue Mar 04, 2014 5:37 pm

Re: Setting the default datasource.

Post by steve3squared »

When a user drops a new control on the report form. I dont want the user to see the "Data Source" drop down menu. I want it to be hidden and the datasource I provide upon opening the report to be set.

I'm trying to reduce the amount of complexity for the users that will be using my system.

Cheers
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Setting the default datasource.

Post by HighAley »

Hello.

If you are writing about this drop-down list when the Data Band is put on the report page, it's impossible to remove it.
Data.png
Data.png (8.82 KiB) Viewed 2371 times
But there will be only those data source the you added.

Thank you.
Post Reply