You are here:   Forum
Register   |  Login

Forum Notice

For new Visual Studio LightSwitch questions,
It is recommended that you use the official Visual Studio LightSwitch Forums at:

http://social.msdn.microsoft.com/forums/en-US/lightswitch/threads


Forums

this.ShowMessageBox is not compiled/not showing up in editor
Last Post 24 Jun 2012 12:52 AM by hgminerva. 1 Replies.
AddThis - Bookmarking and Sharing Button Printer Friendly
  •  
  •  
  •  
  •  
  •  
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
stereyeUser is Offline
New Member
New Member
Send Private Message
Posts:1
Avatar

--
23 Jun 2012 08:25 AM
    Partial void supplierprefixmappings_Validate(supplierprefixmapping entity, EntitySetValidationResultsBuilder results)
            {
                this.showmessagebox //this is not found by any means 
    hgminervaUser is Offline
    Veteran Member
    Veteran Member
    Send Private Message
    Posts:98
    Avatar

    --
    24 Jun 2012 12:52 AM
    I don't if you can trigger screen show message at the entity level. But for validation ligthswitch provides a results.AddPropertyError("") to throw your validation error.
    http://hgminerva.wordpress.com
    You are not authorized to post a reply.


    Latest Microsoft Visual Studio LightSwitch Forum Threads That Have Answers

    Thanks for help on this, Looking at moving from Access and I'm impressed with the deployment possibilities of LS along with the RAD focus (great name too - Lightswitch). Struggling with something that I'm sure is simple but I'm missing - how do I add a column/field to a query or a datagrid from a related table in LS.  I've tried adding a Data Item in a screen, bit I can't add a field to the grid, and there doesn't seem to be any options to add fields in the query builder. What am I missing folks? Brad
    Read more...

    How to set entity properties value in .beforeApplyChange event at client side. Thanks for your help. -SK SK
    Read more...

    Hi, my app created with VS2012 has silverlight client with forms authentication and I am trying to web-deploy to IIS server with database and client on same machine. Until now I was reading so many tutorials and watched many different tutorial-videos. So far I managed to deploy my website to the server without any errors in VS. am I ready now? however, if i try to start my app I use the link http:  / / <serveripv4> / <myappname> but I get "Server error 403 forbidden". I look inside the directory on the Server C:\inetpub\wwwroot\<myappname> and find a subdirectory "Client" with a file default.htm I am wondering what is the right lik to my app? If I use the link http:  / / <serveripv4> / <myappname> / Client I get the loading-percentage-view and at the end I get "error in database communication" it seems to me the database was not created at all. SQL Management Studio does not show the database and
    Read more...

    Hi On creating a new many to many record, all it has is the 2 fields with keys to the other 2 tables. I need to add fields from the associated tables so that it has searchable fields on the screen. However I cannot seem to bind to the newly created record. This is the code I wrote to add the store name to the new record but it just picks up an existing selected record and not the new one. Please assist. Thanks, Mark. partial void GroupList_Changed(NotifyCollectionChangedEventArgs e) { if (e.Action == NotifyCollectionChangedAction.Add) { foreach (GroupList Gr in e.NewItems) { Gr.StoreName = this.Stores.SelectedItem.Name; } } } Mark
    Read more...

    I got a new laptop recently, and installed both Visual Studio 2010 and 2012. I went into Visual Studio 2012 and got the latest version of a C# Lightswitch project from Team Foundation Server (which we use for source control). I then switched the solution explorer to 'File View' so that I could look at the User Code.  Any code file that I look at contains the error (listed on the title) on all of the methods contained in the code files.  I've done a lot of searching, and came across some suggestions from Yann Duran in Lightswitch thread  entitled Overwriting a Lightswitch Query produces Error "no defining declaration found for implementing declaration of partial method".  I've rebuilt the solution, Unloaded and reloaded the project, and also repaired Visual Studio.  I still have the errors in my code files. I think that this project may have been originally created in Microsoft Visual Studio Lightswitch 2011, so I installed it,
    Read more...

    1234

    Microsoft Visual Studio is a registered trademark of Microsoft Corporation / LightSwitch is a registered trademark of Microsoft Corporation