QMBForm icon indicating copy to clipboard operation
QMBForm copied to clipboard

update list view by changing values to form?

Open ohdonpiano opened this issue 10 years ago • 0 comments

Hello,

I've issues updating the List View without the need of build the form descriptor again. How to do it?

This works, but makes the List View scroll up:

FormDescriptor descriptor = factory.createFormDescriptorFromAnnotatedClass(form);
        descriptor.setOnFormRowValueChangedListener(this);
        // Render
        formManager.setup(descriptor, commandsListView, this);
        formManager.setOnFormRowClickListener(this);

This does not work, because the form being modified is not used inside FormDescriptor anymore:

formManager.updateRows();

So, how to update the form, update formManager, call updateRows() ?

Many Thanks

ohdonpiano avatar Feb 16 '15 17:02 ohdonpiano