You are here:   Community > My Wall > Craig
Register   |  Login

LightSwitch Help Website Personal Social Wall

  If you were Logged in, this page would show your personal Social Wall

Craig

Friends
No Members Found
Groups
No Groups Found
Forum Activity
Posts: 23
Rank: New Member
Level: New Member
Last Activity: 4/8/2013
Member Since: 2/1/2012
  • February 05

  • Craig I have a question about the Computed column as I have seen that you are doing the same as me in this example project. My problem is that it keeps dropping out when I hit the foreach statement.
     
    If you look at the code, below. This is part of a computed field that I am trying to create.
     
    As soon as the foreach statement tries to access CallClock it drops out of the code with the computed column containing NULL
     
    However, if I put in a break point and expand the result for CallClock the code runs through properly and works fine. When doing this though there is an error created on screen saying that as 'Exception has been thrown by the target of an invocation'
     
    I have tried a number of methods of doing this including many different linq queries but every time it is the same. 
    about 4 months ago
  • September 18

  • Craig Hi,

    I'm not sure about the linq but couldn't you just use the "Between" part of the filter control, as in date is between 01/01/2011 and 31/12/2011
    about 9 months ago
  • August 28

  • Craig If you want more complete auditing you can use http://blog.pragmaswitch.com/?p=291



    P.S. This is not my work.

    about 9 months ago
  • August 21

  • Craig Didn't you ask basically the same question over a month ago???

    http://lightswitchhelpwebsite.com/F...2646 

    if the answer supplied wasn't sufficient, reply on that same thread.
    about 10 months ago
  • August 10

  • Craig Add the ParentEntity to the screen designer and give the query a parameter (the ParentID) which you need to then parse to that query.
    Then use you can use the Parent Entity.SelectedItem.(field)

    Think that this is what you were getting at (what screenshot?)
    about 10 months ago
  • July 13

  • Craig Are you on the wrong forum?
    about 11 months ago
  • July 09

  • Craig http://lightswitchhelpwebsite.com/B...Files.aspx
    about 11 months ago
  • July 06

  • Craig Forgot to say, this is run from the _Saving method on the screen.
    {
    Audit();
    }

    about 11 months ago
  • Craig

    Firstly this is based on   http://social.msdn.microsoft.com/Forums/en-US/lightswitch/thread/69c3e821-8f61-4ea2-993d-57794b65202c  but has been adapted and re-written in C#.

     

    I wanted Auditing at screen level for my main Entities, so I have adapted  Frank Claassen's VB code, so here it is if anyone wants it.

    This obviously needs an AUDIT table that the informa

    about 11 months ago
  • June 27

  • Craig I asked DevExpress about this again, they said that the issue was fixed in release 11.1.9
    So, to make sure, I have just upgraded to the newest version which is 11.1.12 (released 21/06/12, just 6 days ago) and the problem is still there.
    a year ago

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