Can’t seem to get this working. Using the initialize extension in the table properties all I want to do is set the selected row to 1 when the window opens. I’m assuming this has to be pretty simple have tried
If you are using a Power Table Initialize extension script, the proper syntax would be:
self.selectedRow = 1
I have tested this and cannot get it working either.
I also tried setting the selectedRow via the window internalFrame event scripts and visionWindow event scripts but not working there either.
The row was changed momentarily, but was promptly de-selected. Maybe there is some other thing overwriting it?
Perhaps a bug with the component. Hopefully someone can pitch in.
IA doesn’t document the order of initialization events and custom methods with respect to each other and the propertyChange events that can result. Assigning the dataset to the component generally produces a pair of assignments to selectedRow attempting to maintain the previously selected row. Your best bet is to wrap your assignment in an invokeLater() operation, so it happens after any already-queued events.