You are here:   Community
Register   |  Login

ActiveSocial

  • February 14

  • pepeToro pepeToro i have done everything step by step over 30 times and i cant create a ria service

    http://oi45.tinypic.com/2817kfo.jpg


    please help
    about 5 months ago
  • February 07

  • musfiqur musfiqur Hi,
    I am using lightswitch for our intranet site. I am using MSSQL 2008 database and visual studio 2012. Can you suggest me a step by step procedure to create a field where I shall enter an sensitive information which will be stored in the database encrypted.Later on I should be able to retrieve the data from the field.
    -Thanks
    Musfiq
    about 5 months ago
  • February 05

  • Craig 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 5 months ago
  • January 31

  • Luca Luca Sure Michael...when I start the app I don't bind the data on the DataGrid, anyway I tried to comment the Binding Method and at the startup the "dirty" data were present :-(
    about 5 months ago
  • January 30

  • Michael Washington Michael Washington The only thing I can think of is, are you sure the rows you think are deleted are actually deleted?
    about 5 months ago
  • Luca Luca Me also (I paste here my code), but anyway the datagrid seems to remember the last rows

    private void EmptyTableProductionLine()
            {
                // remove all Items form EntitySet
                foreach (Table1ProductionLineItem pli in this.DataWorkspace.ApplicationData.TableProductionLine)
                {
                    pli.Delete();
                }
          &
    about 5 months ago
  • Michael Washington Michael Washington I would add code that always clears the DataGrid before populating it.
    about 5 months ago
  • Luca Luca

    Hello,

    my name is Luca form Italy (sorry for my English).

    My problem is: I have a DataGrid that I bind runtime calling a WebService and creating instances of a table

    <P>Table1ProductionLineItem pli =
    this.DataWorkspace.ApplicationData.TableProductionLine.AddNew();P>
    <P>..P>


    My problem is: when I start the LightSwitch app, I show some row in the datagrid (by calling the WS), then I close the app and restart it,

    the DataGrid show me the last rows..in some manner the DataGrid seems to cache the last data, but the app was stopped!!

    Can someone help me?


    about 5 months ago
  • January 25

  • Michael Washington Michael Washington You are only suppose to filter out data not add new data to a PreprocessQuery
    about 5 months ago
  • proste proste So I have a code as follows:

    partial void CreateCustomEntitiy_PreprocessQuery(string SomeParameter, ref IQueryable query)
            {
                List MyTableItems = new List();
                Table1Item MySingleTableItem;

                MySingleTableItem = new Table1Item { strTest = "ABC" , Id = 1 };
                MyTableItems.Add(MySingleTableItem);
                MySingleTableItem = new Table1Item { strTest = "CDE", Id = 2 };
                MyTableItems.Add(MySingleTableItem);


                query = MyTableItems.AsQueryable() ; 

            }

    Reason for this is, I want to make complex calculations and return a calculated list of Values.
    The Code compiles without error, but the results are not shown in a screen attached to this query.

    Any Help would be appreciated.

    br,
    about 5 months ago
  • January 08

  • omar awwad omar awwad

    i have real estate application which manage renting for building , and apartments 

    i have contract screen , which have Unit , in that screen the unit show up as drop down list , i want to search for unit based on many search parameters 
    Governorate, Area , Building , Used Or Empty , Unit Number

    i make that search screen , my question is how to link the Unit Search screen to be the custom lookup picker for Unit in Contract screen 

    and ideas 

    omar awwad 


    about 6 months ago
  • Ondřej Polách Ondřej Polách More specifically,
    can I remove some columns from external data source's table in LS designer (not from database table)?
    LS Designer allows select tables from databases, but do not allow select specific columns from these tables.

    Or can LS loads only some columns from table during queries.

    Thank you
    about 6 months ago
  • Ondřej Polách Ondřej Polách It seems that it's not possible in LS.
    about 6 months ago
  • January 07

  • juancarlosr juancarlosr

    Hi does anybody knows a good tool to profile LS applications or a method to do so? Our application has serious performance issues and we know we are not the only ones out there complaining about the same.

    Any help is much appreciated!

    Juan


    about 6 months ago
  • Michael Washington Michael Washington Thanks for following up.
    about 6 months ago
  • Ondřej Polách Ondřej Polách SL DatePicker use Thread.CurrentThread.CurrentCulture. LS use CurrentUICulture.
    So, problem was solved using following code:

    partial void Application_Initialize()
    {
        Dispatchers.Main.BeginInvoke(() =>   
            System.Threading.Thread.CurrentThread.CurrentCulture =
            System.Threading.Thread.CurrentThread.CurrentUICulture);     
    }

    about 6 months ago
  • Brian B Brian B Hi Dean,

    Tnx for you reply. Maby i misunderstand something (or everything) but i can not see how the code over can help me. My problem is when i try to edit inside the datagrid. I get an Unable to cast object of type 'System.Windows.Controls.DataGridTextColumn' to type 'Microsoft.LightSwitch.Presentation.Implementation.Controls.DataGridContentItemColumn'.

    I get the same problem when i try to this (posted in another forum) http://social.msdn.microsoft.com/Fo...3d8b16d2d7

    Maby you can explain more ? (i am fairly new to lightswitch) The best was if i could rebind the entity after i have done som changes or set the dirty flag to false. But i have found no solution for that.
    about 6 months ago
  • January 06

  • Ondřej Polách Ondřej Polách Hi,
    How to localize DatePicker from SL toolkit in Lightswitch?
    I use custom control witch use DatePicker from silverlight 4 toolkit. Then I use this control in LS - language is czech. However DatePicker still use english language.

    Thank you
    about 6 months ago
  • January 03

  • dvr dvr hi,

    has anyone successfully created ui automation tests for lightswitch 2011/silverlight client?

    Ive started looking at the silverlight unit test framework (http://archive.msdn.microsoft.com/s...rlightut), but I don't want to go to far down the rabbit hole before hitting any brick walls. I see telerik have a test tool but I would prefer to go down the alt route first...


    thanks!
    about 6 months ago
  • dvr dvr try get at the grid like this:

    this.FindControl("grid").ControlAvailable += (sender, eventArgs) =>
    {
    Details.Dispatcher.BeginInvoke(() =>
    {
    Control baseControl = eventArgs.Control as Control;
    DataGrid grid = baseControl as DataGrid;

    Dispatchers.Main.BeginInvoke(() =>
    {
    // grid.ItemsSource = this.Cities.OrderBy(x => x.CountryNameForSort);
    foreach (var column in grid.Columns)
    {
    // column.SortMemberPath = string.Empty;
    }
    });
    });
    };

    this code is from post grid binding to data source you might be able to do it earlier, or maybe access the entity set and rebind the grid
    about 6 months ago
  • January 02

  • Ondřej Polách Ondřej Polách It seems that it is possible since LS 2012 using Expand method (see this). In LS 2011 it is not possible. Eager loading is possible only with multiplicity 0 or 1. (see this).

    Any ideas?
    about 6 months ago