lightswitch-2013

Lightswitch HTML global JS file to pass variable

眉间皱痕 提交于 2019-12-11 23:08:12
问题 I know how this works in C#, however not so much in javascript so I am hoping it is similar. With Javascript can I create say a master.js, with a variable ( var defaultValue = "1234" ), which I can reference in all other javascript files associated with the project? so in terms of Lightswitch HTML, each screen has the ability to have a js file, and on the screen I want to be able to retrieve this defaultValue. Can this be done? If yes, how can I get this value onto the current screen? so far

Strong name signature not valid for this assembly Microsoft.LightSwitch.Model.Xaml.dll

风流意气都作罢 提交于 2019-12-11 21:13:39
问题 I deployed a desktop lightswitch application and my users are getting this error when they install the application: Strong name signature not valid for this assembly Microsoft.LightSwitch.Model.Xaml.dll This error is causing the install to fail. Does anyone know the cause of this error or where to start looking? 回答1: What happened in my case is that VS 2013 has upgraded my LightSwitch app to .net 4.5 framework. The app works ok on machines with .net 4.5 but on machines with 4.0 I get the

Lightswitch: parameter with string and integer searching properties (is it possible?)

百般思念 提交于 2019-12-11 17:12:57
问题 Just a quick question within the HTML Client side of Visual Studio 2013 Lightswitch, is it possible to set a parameter field based from a query to allow both sting and interger values to be searched... an example would be StaffID(int) and StaffName(string)... cheers guys 回答1: Sure - just add a .ToString() when you present on your int to the search query argument if Javascript isn't doing the conversion implicitly. e.g. searchString = intField.ToString() + ((intField==null)?" ";"") + strField

Lightswitch HTML - disabling the CTRL + S functionality

五迷三道 提交于 2019-12-11 06:07:23
问题 It turns out then when you have an Add/Edit screen open (dialog or full), that you can hit CTRL + S to save the screen. This avoids all validation I have coded, and also does not matter if I have disabled Lightswitch's own save button. How can I disable this? on a browse or view screen, this does not occur and the user is only able to save there web page 回答1: One option to disable the Ctrl + S is to remove the msls-save-button css class from your screen's save button. This can be done in your

LightSwitch project failed to build - 2 strange errors

我的未来我决定 提交于 2019-12-08 02:53:50
问题 I've created a LightSwitch application not long ago, and it all goes OK for several days. It even ran without problem. Today I have added a few comments in the project. When I try to run it, 2 errors appeared forbidding me to finish building it. Error 1 The name 'Query 'IdleAssetQuery' in the Domain Source 'ApplicationData'' is also used by type 'Query'. Error 2 Application definition contains critical errors. The IdleAssetQuery was the latest query added based on another table. On the day

LightSwitch project failed to build - 2 strange errors

我们两清 提交于 2019-12-06 10:46:37
I've created a LightSwitch application not long ago, and it all goes OK for several days. It even ran without problem. Today I have added a few comments in the project. When I try to run it, 2 errors appeared forbidding me to finish building it. Error 1 The name 'Query 'IdleAssetQuery' in the Domain Source 'ApplicationData'' is also used by type 'Query'. Error 2 Application definition contains critical errors. The IdleAssetQuery was the latest query added based on another table. On the day when I created it the project compiled and ran smoothly. But now it refuses to run. Thinking that I may

Lightswitch HTML Client - set modal picker value when screen created

回眸只為那壹抹淺笑 提交于 2019-11-29 12:33:34
ive done quite a bit of research into this now and non of the examples are helpful or apply. What I am trying to do is when the user loads the Add screen, I want the Details Picker to display a name when the screen is created rather than having to select it everytime. im sure this can be done but my javascript skills are lacking. thanks for any help, and below is an example: this name is stored within a table and can be searched for in this modal picker/details picker but as you can imagine, if this value is required 50% of the time then manually adding it is not only time consuming but would

Lightswitch HTML Client - set modal picker value when screen created

老子叫甜甜 提交于 2019-11-28 06:30:31
问题 ive done quite a bit of research into this now and non of the examples are helpful or apply. What I am trying to do is when the user loads the Add screen, I want the Details Picker to display a name when the screen is created rather than having to select it everytime. im sure this can be done but my javascript skills are lacking. thanks for any help, and below is an example: this name is stored within a table and can be searched for in this modal picker/details picker but as you can imagine,