Goto table TestTable and try to edit the record => an empty popup screen is shown
Console log error is:
{
"errors" : [
{
"message" : "Exception while fetching data (/TestTable) : Cannot invoke \"org.molgenis.emx2.Filter.getOperator()\" because \"f\" is null"
}
]
}
Change datatype of id column to string
Goto the TestTable again and edit the record => the data is shown.
Expected behavior
Of course not every datatype can be used as PK. I would however expect to be able to at least assign a key=1 to an INT column. Otherwise this should be stated very clear in the manual and the example in the manual should be adjusted, as there the key=1 column is of datatype=int.
What version of EMX2 are you using (see footer) v10.81.2
Describe the bug Saved records in tables having key=1 column of datatype=int cannot be edited.
To Reproduce Steps to reproduce the behavior:
Expected behavior Of course not every datatype can be used as PK. I would however expect to be able to at least assign a key=1 to an INT column. Otherwise this should be stated very clear in the manual and the example in the manual should be adjusted, as there the key=1 column is of datatype=int.