Using UI Fields From MemDataBook Object
Posted: Fri Feb 15, 2019 1:23 pm
Hi everyone,
We are trying to create a form that is not associated to a database, following the example in "http://doc.sibvisions.com/jvx/client/model/data/memory"
We are defining a MemDataBook object like so:
private void createMemDataBook() throws Throwable
{
//--------------------------------
// Data
//--------------------------------
MemDataBook mdbData = new MemDataBook();
mdbData.setName("person");
mdbData.getRowDefinition().addColumnDefinition(new ColumnDefinition("FIRSTNAME"));
mdbData.getRowDefinition().addColumnDefinition(new ColumnDefinition("LASTNAME"));
mdbData.getRowDefinition().addColumnDefinition(new ColumnDefinition("PHONE"));
mdbData.open();
}
VisionX recognizes the table like shown bellow:
But when we try to add the field to the form, we get the following error:
Can anyone help me to solve this problem?
Thanks in advance!
We are trying to create a form that is not associated to a database, following the example in "http://doc.sibvisions.com/jvx/client/model/data/memory"
We are defining a MemDataBook object like so:
private void createMemDataBook() throws Throwable
{
//--------------------------------
// Data
//--------------------------------
MemDataBook mdbData = new MemDataBook();
mdbData.setName("person");
mdbData.getRowDefinition().addColumnDefinition(new ColumnDefinition("FIRSTNAME"));
mdbData.getRowDefinition().addColumnDefinition(new ColumnDefinition("LASTNAME"));
mdbData.getRowDefinition().addColumnDefinition(new ColumnDefinition("PHONE"));
mdbData.open();
}
VisionX recognizes the table like shown bellow:
But when we try to add the field to the form, we get the following error:
Can anyone help me to solve this problem?
Thanks in advance!