Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

Enhancement: BuiltInDS DataSource with foreignKey

$
0
0
Hi Isomorphic,

could you amend one of the BuiltInDS-sample DataSources with some foreignKeys?
E.g., make gender a own DataSource or add an "owner" field (FK to employees) to animals, ...

I need this in order to create a test case and failed doing it on my own. Also I think many user will benefit from it in general. I tried
  1. adding a field in isomorphic.script (does not work for me, some hsqldb exception)
  2. abusing animals.lifeSpan as FK to employees.EmployeeId (results in no rows in join)
  3. changing every animals.lifeSpan to number "227" in animals.data.xml (does not change the outcome, still no rows in result. "227" should be employee "Kaushik Shroff" according to employees.data.xml
  4. Firing an update to animals in isomorphic.script (does not work for me, some hsqldb exception)

Is #3 supposed to work, are the *.data.xml used as data or does the DB data come from hsqldb binary file isomorphic.data?

Best regards,
Blama

Viewing all articles
Browse latest Browse all 4756

Trending Articles