Strange Behaviour when Setting a Date UDF from Button Script

SOLVED

Hi,

I am setting a Date UDF from a Button Script for the line that currently has the Focus in the GD_Lines. I tried setting through SetValue as well as InvokeChange. With both methods the date shows as YYYYMMDD in the UI until I refresh the grid or move to another tab and come back. I tried stuffing the date as MM/DD/YYYY with InvokeChange, but it doesn't make a difference.

Does anyone have an idea how I can get the UI to properly show the date for the user?

As a workaround: How do I get the focus back to the line I was on after I refresh the grid? Sage puts me on the first line. I tried .LoadKey and .SetKey on oLines, but that doesn't change the focus in the UI.

Best,

B.

Parents Reply Children