I am running PowerBuilder 2017. The database is Microsoft SQL Server.
I am doing something very simple but it is not working.
I have a column in a datawindow and the column has a drop down datawindow. I want to sort the drop down in a certain order but it doesn't sort. I have done this thousands of times before without a problem, but now I am having a problem this one time (I think). What could cause this? What can I do to fix it.
If this was a datawindow in a Window or User Object I would use SetSort and Sort to force it to be in the correct order. However, in this case the data is used in a drop down data window. I don't know how to put something into the code to force the dropdown to be in the order I want.
Here is some more information: The drop down is very simple. The data comes from one table - "inventory_item". The table has several columns but I am only using 2 columns in the drop down - item_no and item_desc1. The primary key is item_no. I want the drop down to list in order of item_desc1.
I already had a datawindow that was in order by item_no. I copied it and changed the sort to item_desc1. I tried to define it in graphic mode and with syntax. It isn't working either way. Any ideas?
Thank you for any help with this.
Jon Stoller
973-720-8211