Lightswitch - Adding new entity to a linked table RRS feed

  • Question

  • Hey,

    I have a users table, groups table and  userGroups table with FK to users and to groups.

    I'm in new users screen and I want to assign a group to the new user, so I have on the screen a dropdown with the groups options.

    I'm saving the new user in code on a button click with saveChanges function. in the savecanges callback(then) I have now the new user with id and now I'm trying to create new UserGroups with the group from the dropdown and with the new user id. but I'm getting an error saying the referenced user not found.

    Am I doing it right? what I supposed to do?

    Wednesday, August 28, 2013 4:59 PM