Please expand the FlexTable Ui Service functionality so that it can be used in a dynamic fashion. — Google Apps Script feature request — Has it shipped?