WCF RIA entity Update from Lightswitch for Many to many relationship

I have two entities which have many to many relationship. I need to create a screen to update data from both the tables simultaneously using a screen. So I used First as a sql database entity in Lightswitch second is RIA service Entity(Which is junction table).
both tables are editable in a same screen but when I click on Save button,
System call to
[Query(IsDefault = true)]public IEnumerable<EquipmentJob> SelectFakeJobs()  
method instead of calling
[Query]public IEnumerable<EquipmentJob> SelectJobs(long? ID).
I am using the Ria table as a query in my screen and setting the parameter as a table1.SelectedItem.ID.  But after click on save it does not call to parameterized
method to get data. I have already implemented the 'Saving' method.  It gives following exception.
Only changes to a single data service can be saved.  To save changes to multiple data services, implement the "Saving" method.
Data conflict. another user has deleted the record.
I followed following link to setup the Many to Many relationship update in LightSwitch
http://powerbala.com/many-to-many-control-for-microsoft-lightswitch/

Only changes to a single data service can be saved.  To save changes to multiple data services, implement the "Saving" method.
 This issue is discussed before, generally you need implement the <ScreenName>_InitializeDataWorkspace method and add the data services that you'd like to save to the saveChangesTo list.
https://social.msdn.microsoft.com/Forums/en-US/238e5e91-8598-42f9-817d-12b6f5b980a1/having-a-problem-saving-getting-error?forum=lightswitch

Similar Messages

  • I just received a Security Update from Apple for OS 10.6.8 and have experienced a severely slow reboot, taking 15-20 minutes. Applications take forever to load. Have rebooted twice... very slowly. What's up with this latest update?

    When I clicked on the recent Apple Security Software Update, it took 15-20 minutes to install, and another 15 minutes or more to restart. Then everything was amazingly slow, as if nothing was happening... spinning gears, spinning color wheels. The background universe image took forever to load. Desktop took a long time to load. Then Mail and Safari took a long time to load. What has happened? Was this update legit? I'm thinking it was the legitimate listed 7-2-2013 update for 10.6.8, but in my 15 years of Apple loyalty, I've never experienced an update that bogged my system down like this.

    Not enough free space on the startup disk can cause the issues you are referring to.
    Control click the MacintoshHD icon on your desktop then click Get Info.
    You'll see:  Capacity & Available
    Make sure there's at least 15% free disk space.
    If it's not a disk space issue, verify the disk for errors.
    Launch Disk Utility located in HD > Applications > Utilities
    Select the startup disk on the left then select the First Aid tab.
    Click:  Verify Disk  (not Verify Disk Permissions)
    If Disk Utility reports problems, you will need to insert your install disc to make repairs.
    And if you have not done so lately, backup all your important data just in case.

  • Lumia 620 , Flash Not Working after Black update from "Preview For Developer"

    Downloaded the app " Preview for Developers" and checked the phone updates, It showed that one update is ready to install. Now when i update the mobile (Lumia Black Update) the flashlight of camera is not working anymore. Plz suggest

    For problems with the hardware I'd probably ask over here.
    http://discussions.nokia.com/t5/Nokia-Lumia/bd-p/Nokia_with_Windows_Phone
    Regards, Dave Patrick ....
    Microsoft Certified Professional
    Microsoft MVP [Windows]
    Disclaimer: This posting is provided "AS IS" with no warranties or guarantees , and confers no rights.

  • HT4972 I never received any updated from ios for so long, what can I do to get the update?

    I need to have iOS on my iPad

    If you have iOS 5+ on your iPad (Settings > General > About > Version) then you should have a Settings > General > Software Update option for direct update on it, otherwise you can only updatevia your computer's iTunes.
    To update via your computer, connect the iPad to your computer's iTunes and copy any purchases off the iPad to your computer via File > Devices > Transfer Purchases. You may also want to copy photos and any important documents off the iPad as well e.g. via the file sharing section at the bottom of the device's apps tab when connected to iTunes, via wifi, email, dropbox etc - they should be included in the backup, but it's best to have a copy of them outside of the backup just in case. You can then force a backup of the iPad by right-clicking the iPad 'Device' on the left-hand sidebar of iTunes and selecting 'Backup' (on iTunes 11 you can enable the left-hand sidebar via option-command-S on a Mac, control-S on a PC)
    Then start the update by selecting the iPad on the left-hand sidebar, and on the Summary tab on the right-hand side clicking the Check For Updates button
    Updating to iOS 5+ : http://support.apple.com/kb/HT4972
    You can only update a device to the highest iOS version that it supports, which for the original iPad is 5.1.1, and for other iPads is iOS 6.1.3

  • Exit for PR fields updation from sc for Account assignment

    Hi All,
    I have a requirement where I need to update fields from Shopping Cart account assignment to Purchase requisiton customer data tab. could any one  let me know how to make data flow from SC and make the data appear in PR.
    Thanks

    Hi,
    Please check the BADI BBP_CREATE_BE_RQ_NEW.
    Regards,
    Masa

  • Reformatted Harddrive / No hardwarde recognized. Do I need to download updates from Lenovo for T42?

    Hi,
    I just reformatted my hard drive and reinstalled XP.  But I can't seem to connect to internet with my DSL connection.  It appears hardware isn't recognized.  Is there one download of software and drivers I need to download from this site?  Any direction would be great.  My actual model is:
    IBM T42 type 2373 H12.
    Thanks in advance.

    Tried it again.  Didn't work.  But it's now clear to me that Lenovo R&R is failing to recognize the recovery disk that it created earlier today.  R&R said the recovery media was successfully created, but I guess not.
    I will try installing from a Win7 installation disc.  Thanks for your help.

  • I just did a software update from Apple for my Mac Book Pro and it crashed severely. Now it will not boot-up. I had the fading down screen with a message saying to hold down the on Button to reboot but it will not, it starts up with the same massage.

    It also comes up with some and more of the info below, whatever it means?
    Panic CPU 0 <Panic>
    Unable to find perform kext scan:
    Debugger called <Panic>
    Can’t perform kext scan:
    SD process name corresponding to correct thread
    MAC OS Version:
    Not yet set.
    What do I do, can anyone help me?
    I also updated a Mac Mini and iMac with no problems.

    unfortunatly i had no Backups.
    You should make sure to correct that as soon as possible.  All computers, regardless of make and model, are ticking time bombs.  Hard drives can die at any time, leaving you with an inert chunk of metal that may still contain your data, but in a form that is totally inaccessible without paying thousands to a company that will disassemble the drive in a clean room and read what data they can off the platters.
    I wonder why should that happen. It was a simple update. Why should an update ruins all my works and my computer...
    It is not the update itself, but the fact that you had corruption in your hard drive's data structures, and writing the thousands of files required by the updater worsened that corruption, damaging the system in the process.  These problems can be avoided by repairing your hard drive with Disk Utility prior to installing any system update.  Most likely, Disk Utility won't find anything to fix, but when it does, you'll be glad you did it before installing the update!

  • OSX - SCEP Agent - Where does it get updates from?

    Really simple question that I simply cannot find an answer to.
    Where does the OSX version of the System Center Endpoint Protection agent download it's updates from?
    For Windows clients we have it set to get updates from SCCM and then failback to Microsoft Update.  In SCCM I can see those updates because they are auto-approved to our Software Update Points.  Does the OSX agent use SCCM and the same update definitions
    or does it just always use Microsoft Update??

    Hi,
    It doesn't use Windows Update or SCCM at all it is updated directly from the cloud.
    Regards,
    Jörgen
    -- My System Center blog ccmexec.com -- Twitter
    @ccmexec

  • WCF RIA wrapper for SOAP service that is compatible with Lightswitch Data Source

    I have a WCF RIA wrapper around a SOAP service and all the simple entities work just fine. Unfortunately Lightswitch does not like my represenation of complex entities like SalesInvoice that contains a list of SalesInvoiceLines. How should I represent
    such an entity in RIA so that Lightswitch can accept it? Do I use the AssociationAttribute? If so what format? What type of collection/list/entityset should the SalesInvoiceLines be? An Example would be very useful.

    HI,
    Welcome to Lightswitch forum.
    According to your description above, I researched this issue, I found that while both OData and RIA Services support complex types on entities, due to scheduling constraints LightSwitch will not. 
    If a complex type property is exposed on an entity, LightSwitch will import the entity, ignoring that property. Further information:
    How to create a RIA service wrapper for OData Source
    Please let me know if there is anything that I can do to help.
    Best regards,
    Angie
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Updated to iTunes 11.1 and many of my podcasts were, as far as I can tell, deleted from my account. 'This American Life' in particular, cannot be redownloaded for free and I want the unlistened podcasts I accrued to come back! Any tips or suggestions?

    Updated to iTunes 11.1 and many of my podcasts were, as far as I can tell, deleted from my account. 'This American Life' in particular, cannot be redownloaded for free and I want the unlistened podcasts I accrued to come back! I'm also afraid that if I sync my iPod now, the podcasts that I have on there but have been removed from the computer, will also be removed from the iPod.
    Any tips or suggestions?

    What really cheeses me off here is that Apple isn't allowing users enough customization.  With each update of iTunes (and the OS and iOS) we're forced to give up something that worked well for the way we want to use the app and make do with fewer (and lamer) options.  If Apple keeps this up, they're going to start losing customers fast.  I mean if this isn't fixed soon, I'm pretty sure I'm going to give up on iTunes, and then I'll probably go ahead and get a Galaxy when I need to replace my iPhone.
    What I don't understand about how they won't let users delete the list of available podcasts now is why?  How is this making it a better program?  I can understand that not all users are capable enough to right-click on a feed and select "Show all available episodes", so I can see why they want the complete list to be the default (and, surprise, it already was).  But to not give users the option to delete that list?  It's inconsiderate because it makes navigating feeds with a large back catalogue really frustrating.  I'm flabbergasted that no one at Apple considered all the podcast feeds that keep hundreds of episodes available when they removed this feature.  It smacks of rank incompetence.
    What improvement were they trying to make here anyway?  There was nothing wrong to my mind about how podcasts were managed in previous versions.  Whatever improvement they were trying to make here, they should have realized that many users would at least want the option to keep things the way they were.
    And reverting to a previous version is no solution.  I can't sync my iPhone with the new iOS without this update, and (while I do have some issues--specifically how you can't play podcasts in the Music app anymore) I do like the new iOS.

  • WCF RIA zero-one to many ultimate treeview

    Hi,
    I am using ultimate treeview extension (http://visualstudiogallery.msdn.microsoft.com/ca292c74-661c-48ba-8262-d79a2671c33f)
    This requires a zero-one to many table. I have this working with a table.
    However I need to connect to a WCF RIA service from the control. Currently using 
     public class WorksOrderTree
            [Key()]
            public int id { get; set; }
            [Association("ProductPart", "id", "ParentID")]
            public IEnumerable<WorksOrderTree> Children { get; set; }
            [Association("ProductPart", "ParentID", "id", IsForeignKey = true)]
            public WorksOrderTree Parent { get; set; }
            public int ParentID { get; set; }
    This gives the following error
    Error 1
    f0rmoum1..csdl(26,6) : error 0113: Multiplicity is not valid in Role 'WorksOrderTree' in relationship 'ProductPart'. Because all the properties in the Dependent Role are nullable, multiplicity of the Principal Role must be '0..1'.
    Any idea to to how create zero-one to many in the ria service.
    Thanks
    Steve

    Thanks for your reply Paul.
    Yes I read your blog about the Telerik treeview and it was very helpful. the problem is that I want to use the Telerik RadTreeListView control instead, and It seem that it cannot be used with LightSwitch (for threading problems...)
    So I am obliged to create a RIAService ( that I hope) it can return a hierarchical structure without any lazy loading, so the RadTreeListView can work....
    but It seem that RIAService (Or LightSwitch) Insists on lazy load, and I don't know how to avoid it...
    I know that I can create a service in my UserControl project as you say in your blog but I am trying to create a LightSwitch extention ....
    AAK

  • Hi we have apple credentials for downloading OS and creating Provisioning profiles. Now we are trying to upgrade the Mac OS 10.7.3 version. do we need should buy this version from appStore. or can it be download from the apple site for free?  Many thanks

    Hi we have apple credentials for downloading OS and creating Provisioning profiles. Now we are trying to upgrade the Mac OS 10.7.3 version. do we need should buy this version from appStore. or can it be download from the apple site for free?  Many thanks in advance!

    Whether you need to buy Mac OS X 10.7.3 depends on what version of OS X you have now.
    If you have OS X 10.6.x or lower it is a paid upgrade from the Mac AppStore.
    If you have OS X 10.7.x it is a free upgrade you get using Software Update on your Mac.

  • HT203128 iTunes 12.1.050 - Rollback: Updated from 12.01, now I cant't change track numbers and add additional data fields. How can I roll back to the previous version? @Apple, I want a $100 gift card for the inconvenience.

    iTunes 12.1.050 - Rollback: Updated from 12.01, now I cant't change track numbers and add additional data fields. How can I roll back to the previous version? @Apple, I want a $100 gift card for the inconvenience.
    - it's all said in the title. I can't understand why the developers turn things bad ... risking loosing Apples valuable customers.
    More examples needed? (check out the communities and the reviews)
    - OSX: Maverick to Yosemite = not recommended (check it out > http://roaringapps.com/apps)
    - iPad: older versions as iPad2 should not upgrade to iOS7/8 (it's not supporting its hardware accordingly, it's designed for the latest hardware)
    - iTunes (it's possible to rollback to 10.7 - 11.4, but you need to breech OSX system security framework)
    - Pages (was a real alternative for many of us, each update reduced features and created incompatibility to older work files)
    The list could easily extend to ...

    You can offer Apple feedback here: http://www.apple.com/feedback/
    as for "
      "@Apple, I want a $100 gift card for the inconvenience"
    dream on.

  • I have rejected servers for update from Pending Management and did not update to R2 UR5. How to scan again ?

    Hello Guys,
    I have updated from SCOM 2012 SP1 to SCOM 2012 R2 UR5. After the update I saw all my agents in Pending Management. I rejected them by mistake and now they cannot be updated through the console anymore. They won't return in Pending. Is there any way to rescan
    all my agents to get them in Pending Management again so I can update the SCOM agent to R2 UR5 ? Any powershell command or SQL query ?

    Hi There,
    From 500 agents, How many are manually installed ? As for manually installed the Wizard will not work and you will have to do it manually.
    Also if you have SCCM, You can push it through SCCM or via group policy. As the setup is repackaged and will not require any user interface options.
    or try the below script to push the MSI file on multiple servers in 1 shot.
    #Variables
    $computername = Get-Content 'M:\Applications\Powershell\comp list\Test.txt'
    $sourcefile = "\\server\Apps\LanSchool 7.7\Windows\Student.msi"
    #This section will install the software 
    foreach ($computer in $computername) 
    $destinationFolder = "\\$computer\C$\download\LanSchool"
    #This section will copy the $sourcefile to the $destinationfolder. If the Folder does not exist it will create it.
    if (!(Test-Path -path $destinationFolder))
    New-Item $destinationFolder -Type Directory
    Copy-Item -Path $sourcefile -Destination $destinationFolder
    Invoke-Command -ComputerName $computer -ScriptBlock { & cmd /c "msiexec.exe /i c:\download\LanSchool\Student.msi" /qn ADVANCED_OPTIONS=1 CHANNEL=100}
    Source: http://powershell.com/cs/forums/p/6935/11336.aspx
    Gautam.75801

  • The new ibook app and ibook update is designed for iPhone 5 operating system.   When my iPhone4 recently updated the ibook app, it created many problems using the ibook to download and read my books.    Can I get the previous ibook app back on my phone.

    The new ibook app and ibook update is designed for iPhone 5 operating system.   When my iPhone4 recently updated the ibook app, it created many problems using the ibook to download and read my books.    Can I get the previous ibook app back on my phone.

    Check your trash can on the desktop. The old version is automatically moved to the trashcan. You should be able to move it from the trashcan back to the Apps folder within the iTunes folder. The update that was pushed out was for iBooks to work with iOS 7 not iPhone 5. iOS 7 was released today.

Maybe you are looking for