Thanks for taking the time to look into this and for implementing the improvement so quickly! The approach with the "Order" button sounds like a great way to integrate the feature . I'll get the new MBX installed and give it a go-really appreciate the effort.
I'll let you know how it runs once I've tested it out. Thanks again for the update and for keeping me in the loop!
Original Message:
Sent: 02-27-2025 09:10
From: Peter Møller
Subject: Row order after column filter.
Hey Duane
I had a look into adding your improvement idea to Site Mapper.
I think I have found a way for now that doesn't mess too much with the comprehensive Setup dialog.
Next to the Site Column dropdown list, I have added a button that says Order.
When you click on this the Select Columns to Order By dialog pops up allowing you to specify up to five columns to use for the query each site that the tool runs through.
This should get you going until I get the tool and docs updated and published on the MapInfo Marketplace.
I have attached a zip file with the new MBX. Unzip this into the folder where you currently have SiteMapper located. This is typically in your AppData folder: %LocalAppData%\MapInfo\MapInfo\Professional
. From here go into your version of MapInfo Pro, say 2300
, Tools
and finally SiteMapper
.
------------------------------
Peter Horsbøll Møller
Principal Presales Consultant | Distinguished Engineer
Precisely | Trust in Data
Original Message:
Sent: 02-20-2025 01:25
From: Duane Roberts
Subject: Row order after column filter.
Hi Peter,
I really appreciate your attention to this. I believe this change would resolve the aesthetic issue. The right-hand side of my layout has many SMGetColumnValue rows (1-30). As you mentioned, there is no order by clause to neaten up the data (acending/ decending or alphabetically) - I do believe that it would sort it out.
Again - I appriciate your time.
------------------------------
Duane Roberts
Original Message:
Sent: 02-19-2025 03:16
From: Peter Møller
Subject: Row order after column filter.
Hey Duane
If no Order By is specified, the data would typically be returned in the way it's fetched from the table. What that means can be hard to tell as an index can play a role here and "mess up" the order.
As for Site Mapper, I'd say it would be relatively easy to add an Order By Column option to the dialog allowing you and other users to control the sort order of the queries.
Do you think that would solve your issue?
Cheers
Peter
------------------------------
Peter Horsbøll Møller
Principal Presales Consultant | Distinguished Engineer
Precisely | Trust in Data
Original Message:
Sent: 02-18-2025 16:20
From: Duane Roberts
Subject: Row order after column filter.
Hi Peter,
That's correct. If that's not possible, I have another question-when using MapInfo's table functionality to filter a column and return 100 records, is the result ordered in a specific way?
I appreciate your help.
Best regards,
------------------------------
Duane Roberts
Original Message:
Sent: 02-18-2025 01:32
From: Peter Møller
Subject: Row order after column filter.
Hi Duane
if I understand you correctly you want to sort your data not only by the selected Site ID column but by a second column for the records your want to show as attributes on the layout. Is the right?
Site Mapper does by default only sort and group by the Site ID column. I think your request requires a modification to Site Mapper
Peter
------------------------------
Peter Horsbøll Møller
Principal Presales Consultant | Distinguished Engineer
Precisely | Trust in Data
Original Message:
Sent: 02-17-2025 19:47
From: Duane Roberts
Subject: Row order after column filter.
Hi everyone,
I'm refining the aesthetics of a layout I'm creating, which involves printing over 700 maps using Site Mapper. I use <COL#>
references along with the $mb{SMGetColumnValue()}
function to pull in data. Although I can generate the layout with the minimum required data, I'm facing an issue: the indexing table (support data) isn't displaying the columns in the specific order I need (aim - acending order).
To address this, I created a read-only view in PostgreSQL that positions the essential data in the first column, hoping that MapInfo would sort by this column after applying a filter. Unfortunately, this hasn't worked as expected.
I'm looking for suggestions or alternative approaches to reorder the column values in descending order. Additionally, if there are other areas I might be overlooking-such as pre-sorting the data within the SQL query or different configuration options in MapInfo-I would appreciate any insights.
Thanks
------------------------------
Duane Roberts
------------------------------