I have two different ways for creating new objects because of there are two different interfaces in the program. There is old interface via terminal with direct access to globals and there is new zen web interface with classes.

And some users prefer to work with old terminal interface, so I must to maintain also the old inteface.

Can you give me some example with  %FileIndices? I didn't find anything 

http://docs.intersystems.com/latest/csp/docbook/DocBook.UI.SearchPageZen...

The problem was, that I did wrong query. When editable property is 1 and we add a parameter to dataCombo, in query it stand second sign of ?. First sign of ? is user's entered search string in dataCombo.

For instance: there is a sql "SELECT id, name FROM table WHERE some = ? AND name = ?"

The parameter value is second sign of ?.  I thought earlier that parameter is first.

This solution works when a global has autoincrement subscript. Then the most recent added row subscript always has greater value and after tblPane.executeQuery() new row is last in tablePane.

But my global's subscript is generated on runtime, it depends on input values. And after adding new record to global I call tblPane.executeQuery() and my new row is not last.  And I don't know how to find it for selecting.