Attribute sort order when I register database features

Hi all!
I have a problem that could be solved previously but I didn't found any solution. If there is a solution please forward it to me.

I've created database table with fields (attributes) in particular order. Same attribute with same order I've created in GSA. When I register database features in GSA they change my original order and offers me to sort by attribure name or display name. Both are not good for me.
My question: Is there a chance to register features without changing my original sort order or how to manually change order after I register features?

Main problem is display order in Analyze form. Place and edit forms with attributes are ok.

Many thanks in advance.
Mladen

Map-GSA V8iSS4, db: SQL Server

Parents
  • Hi Mladen,

    I have no running spatial project running on my computer now (and it's long time ago I configured such project ;-), so just a few notes (that may not be right):

    I've created database table with fields (attributes) in particular order.

    When columns are created in a table (I think the field is not proper term in this context, even when used often ;-), nothing like "order" exists. What column was created first and what last is not important.

    In general, in SQL world, "order" is not defined for nearly anything, and depends on implementation of a particular database. I think the only situation, when you can trust a response from database is ordered, is when SQL query requires results, ordered by specific field.

    and offers me to sort by attribure name or display name.

    It's only visual tool, not related anyhow to the project configuration.

    Main problem is display order in Analyze form.

    What I remember from classic mslink based projects (no spatial feature is stored in daabase), properties order in Analyze dialog is defined by the order of properties in GSA. Probably (but I am not sure) it's the same.

    or how to manually change order after I register features?

    What you can try is to identify the feature definition in xml file and to check how properties are defined. Change the properties order there (non intrusive simple modification) and reload the project in GSA, changes should be visible.

    Place and edit forms with attributes are ok.

    It's because the forms are defined separately.

    Regards,

      Jan

  • Thanks Jan,

    I agree that column order doesn't exist in database table but feature properties order exist in GSA. That order is displayed in Analyze form. After I register database features order in GSA is changing. All I can do then is to sort by properies name or display name and that doesn't work for me. I can't think of a single way to avoid that.

    As You suggest I'll try to find and change order of properties directly in GSA workspace XML file.

    Regards,

    Mladen

    Final product, alphabetically sorted

Reply
  • Thanks Jan,

    I agree that column order doesn't exist in database table but feature properties order exist in GSA. That order is displayed in Analyze form. After I register database features order in GSA is changing. All I can do then is to sort by properies name or display name and that doesn't work for me. I can't think of a single way to avoid that.

    As You suggest I'll try to find and change order of properties directly in GSA workspace XML file.

    Regards,

    Mladen

    Final product, alphabetically sorted

Children