Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    DS: Multiple foreignKey values

    SmartClient Version: v9.1p_2014-05-08/EVAL Deployment
    using MySQL datasources.

    Is it possible to have multiple foreignKey entries per field in my .ds.xml definition?

    something like this (this is not valid though):
    Code:
    <field name="ProjectID" type="integer" foreignKey="projects.ProjectID" foreignKey="orders.ProjectID"></field>

    #2
    Hi estefan,

    I don't think that this is valid XML or even necessary.
    I suppose you want to use includeFrom from both "base"-tables somewhere in your .ds.xml?

    Please see this thread: http://forums.smartclient.com/showthread.php?t=29409. It should be enough to set up your data model in the ds.xml files and use includeFrom, even if you do not directly link to "orders" in your file.

    Best regards,
    Blama

    Comment

    Working...
    X