[APBeta] Script help

Paul Rodman paul at ilanga.com
Sat Jul 16 11:52:04 PDT 2011


On Jul 8, 2011, at 5:12 PM, Jeff Young wrote:

> I’ve written the following script to allow editing of user image descriptions (and some of the flags).  The first dialog shows a list of user images.  Double-clicking one of them brings up an edit dialog which allows you to edit the description and two of the flags.
>  
> The first dialog list is doing a string-sort instead of an ID-sort, though.  Is there a way to return ID for the MultiFieldObject’s ColumnType so the list will sort correctly?

You appear to have used vtype_ constants in your ColumnType() function in ImageMetaData. That's your problem. If you look at the comments (in the framework reference) for MultiFieldObject.ColumnType(), you'll find:

Return the column type for the idx-th column (idx = 1 ... nColumns)
Used to allow correct sorting when the column headers are clicked
0 = String
1 = Number
2 = RA/Time
3 = Dec/Angle
4 = ID

This includes an ID type.

I should probably add some constants for those.

Paul R.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.astroplanner.net/pipermail/apbeta-astroplanner.net/attachments/20110716/1f5ea3f2/attachment-0002.htm>


More information about the APBeta mailing list