BrowseDialog SELECT TOP


Author
Message
Trent Taylor
Trent Taylor
StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K
Cool Cool
Keith Chisarik
Keith Chisarik
StrataFrame VIP (1.6K reputation)StrataFrame VIP (1.6K reputation)StrataFrame VIP (1.6K reputation)StrataFrame VIP (1.6K reputation)StrataFrame VIP (1.6K reputation)StrataFrame VIP (1.6K reputation)StrataFrame VIP (1.6K reputation)StrataFrame VIP (1.6K reputation)StrataFrame VIP (1.6K reputation)
Group: StrataFrame Users
Posts: 939, Visits: 40K
Worked great, thanks Trent.

Keith Chisarik
Keith Chisarik
Keith Chisarik
StrataFrame VIP (1.6K reputation)StrataFrame VIP (1.6K reputation)StrataFrame VIP (1.6K reputation)StrataFrame VIP (1.6K reputation)StrataFrame VIP (1.6K reputation)StrataFrame VIP (1.6K reputation)StrataFrame VIP (1.6K reputation)StrataFrame VIP (1.6K reputation)StrataFrame VIP (1.6K reputation)
Group: StrataFrame Users
Posts: 939, Visits: 40K
Awesome thanks, I was pretty sure that was it.

Keith Chisarik
Trent Taylor
Trent Taylor
StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K
Really all you would need to do is within your data source, in the BuildSelectCommand, in the QueryInfo.QueryType is SELECT_TOP, just ignore this and take another action.  That would be the only place that you would need to change this.  The BrowseDialog uses the QueryInformation class for all query requests, so it should make changing this farily simple and straight forward.
Keith Chisarik
Keith Chisarik
StrataFrame VIP (1.6K reputation)StrataFrame VIP (1.6K reputation)StrataFrame VIP (1.6K reputation)StrataFrame VIP (1.6K reputation)StrataFrame VIP (1.6K reputation)StrataFrame VIP (1.6K reputation)StrataFrame VIP (1.6K reputation)StrataFrame VIP (1.6K reputation)StrataFrame VIP (1.6K reputation)
Group: StrataFrame Users
Posts: 939, Visits: 40K
I would like to know if there is an easy way to make the browse dialog not issue the TOP command for the select as it relates to the MaximumReturnedRecords property. I am using SQL CE with a SQLCE DataSourceItem I wrote many months ago, it has been working fine with the framework in a very simple application that has not until now needed a browse dialog. SQLCE does not yet support the TOP command and I am looking for a workaround without having to delve back into my CE datasourceitem too deep.

If the answer is yes, do this, then thanks Smile

If the answer is that I have to do this myself, where is the SQL SELECT created for the browse? Does it use the datasourceitem? I see a option to add the TOP command in BuildSelectCommand but have not investigated if that is it.... since I really dont want to if i dont have to.

SELECT TOP 100 [scans_pk], [scans_rv], [scans_scandt], [scans_scanpath], [scans_scanuser], [scans_tags] FROM scans WHERE scans_tags LIKE 'JONES%'

Thanks.

Keith Chisarik

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search