In database we use a GintPointSort function. How can we set the database so it sorts according to this column as default? Secondary, how can we set up also other list showing Points to be sorted according to GintPointSort as default?
Thank you for any advice
Hi Jakub,
The GinitPointSort field should do what you are looking for. A couple pointers that may help...
Make sure the GintPointSort field is not hidden. From the Point table, go to Tables>Show or Hide Fields and uncheck the Hide box.
If it's not hidden, but the field is read-only, right click in the GintPointSort column, go to Field Properties, and uncheck the gINT Method property. This should let you edit the sort values, and then gINT should use those values to sort the PointID lists.
More info can be found at Help>Index>GintPointSort and in this article.
If that's still not working, please let us know what you are experiencing, and we can look into it.
Thank you,
Jesse
Hi Jesse,
thanks for answer. I tried to set up default GintPointSort field and it works as intended. I think I know why it isn't working in our database. We use GR019 rule on database save for computing station along a baseline and GRA007 for GintPointSort method which is called via Add-Ins. The problem is that default sort rule (should be the same as GR016) works only on save also. GRA007 function seems to not saving the order nor it can be used in other dropdown menus. Can I merge both GR016 and GR019 rules so I can call them both on save? I think I could merge the rules themselves but should I merge also the Common parts? Or are they called separatedly and I can leave them as they are?
Thank you for your help.
Jakub
The simple answer is that you may not need to use gINT Rules GR016 or GRA007. Instead, you can just right click in the gINTPointSort field, go to Field Properties, and check the gINT Method property. The gINT Method property uses same sorting logic as the gINT Rules, so there's no need to use the gINT Rules.
I originally said to uncheck the gINT Method property in case you wanted to manually change the sorting values, but it sounds like you are looking for an automatic sorting method.
The only reason you'd need to use GR016 is if you changed the code for the sorting logic. And yes, in that case, you would need to merge both GR016 and GR019 since you can only reference a single procedure for the "on Save" event. For these two gINT Rules, you probably wouldn't need to merge the Common modules as long as you '#LibInclude "gr019 common procedures" because GR019 common procedures contains all the Functions and Public declarations in GR016 common procedures.
I can give you a more detailed example of how to merge the code if you need it. But, you probably won't have to worry about all that, and can just use the gINT Method instead.
actualy I did manually changed the sorting logic from default one so I need to merge the rules. I will try it without merging the common procedures.
I tried to merge both GR016 and GR019 but I'm getting error which I'm unable to identify. Is there any easy way to check all the necessary thing to keep in mind when merging rules?
Thanks for any help.