|
|
June 15
-
 | DedoOne DedoOne Ok, I have decided to make the much needed leap into the Wonderful World of WCF RIA Services and how it can be leveraged to help “power-up” my lightswitch application.
I love how you can get creative with multiple entities and output a custom aggregation. More so, I love how you can take calculated fields and make them queryable (is that word?) and sortable, with an added bonus of a performance gain.
To add, I found this lovely Nuget Package, TheLightSwitchToolbox.RiaServices.Server, by Paul Vanbladel to help ease the pain in turning a class into a full internal Ria Service.
However, what I have not yet found is an exampled means in which to access server-level name spaces (lets say System.Device.Location); being invoked client side, and returning a calculated value back to the client. I can certainly do this by accessing, at server level, the table inserted method through a proxy record, and then letting the client have its way with it before deleting the record. However, there must be a more elegant way in doing this via a WCF RIA Service.
As I am still on the low end of the learning curve regarding WCF RIA Services, any helpful pointers would be most welcomed.
With much thanks in advance,
Roger 2 days ago | | |
June 13
-
 | Johan Johan I have an entity named ContentItem which contains a type specifier (FK to ItemType tabel) , and a name as string.
Each entity can have a reference to another ContentItem so I made a 0..1 to n relation to itself.
The model is displayed at the top of the first image in the picture below.
There needs to be a business rule that a ContentItem can only be linked to ItemTypes of another type. E.g. ItemType 1 to ItemType 2.
So first I made a editable grid screen editing itemtypes.
Then I design a grid / details screen where in a dropdown the user needs to select an item to be linked.
The screen looks as the second image in the picture below

In order to have the dropdown show only the linked Items I made a query as a child from ContentItems, call it ItemsAvailableToLink and retrieves as parameter the selected ItemType in the screen.
In the Preprocess Query I change the query to the following:
partial void ItemsAvailableToLink_PreprocessQuery(int? ItemTypeId, ref IQueryable query)
{
if (ItemTypeId != null)
query = query.Where(x => x.ItemType.ItemTypeId != (int)ItemTypeId);
query = query.Where(x => x.LinkedItem.ItemId == null);
&nb a week ago | | |
June 10
-
-
 | Joao Silva Joao Silva How can I customise AddAndEdit auto generated screens in LightSwitch? Or even write some code, for instance to ask confirmation of the OK sentence for saving, or deleting? about 1 weeks ago | | |
June 03
-
 | AAK AAK Hi, I don't know if this is the right place to ask this question. Let's say that I have created an HTMLClient application and hosted it in IIS. now, the server and the client are disconnected from the internet (offline). the client could not load the page from the server because it seem that it refere to scripts from the 'outside'. How I can resolve this problem ? does the Server should have an internet or the client ? and what if none of them is online ? about 2 weeks ago | | |
May 25
-
 | Pat Tormey Pat Tormey I need to make a group visible or hidden based on the user input on LightSwitch HTML
The idea is that the user taps HasStudentLoans control which toggles the Boolean which should then hide or show the StudentLoansGroup group, without having to refresh the screen.
I've done this before with KnockOutJs and the Data-Bind
So before I try to work that out I thought I'd ask if there is a better way or a similar solution somewhere.
Thanks
Pat NH USA
a month ago | | |
May 23
-
May 15
-
 | haoyujie haoyujie I do like lightswitch.
but i found a little problem(actually is a big problem to me).
when i import tables from sqlserver database
LS does not import denote information from table and fields.
What I want is using denote to be display names of form items.
So I plan to hark lightswitch's dll, to achieve this purpose.
I 's locate LS's dll position:
D:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\LightSwitch\tmp
but there are several dll:
Microsoft.LightSwitch.Base.Client.dll
Microsoft.LightSwitch.Client.dll
Microsoft.LightSwitch.Client.Internal.dll
Microsoft.Lightswitch.Client.xml
Microsoft.LightSwitch.CodeMarker.dll
Microsoft.LightSwitch.dll
Microsoft.LightSwitch.ExportProvider.dll
Microsoft.LightSwitch.ManifestService.Client.dll
Microsoft.LightSwitch.Model.Xaml.Client.dll
Microsoft.LightSwitch.RuntimeEditor.Internal.dll
Microsoft.LightSwitch.SDKProxy.dll
Microsoft.Lightswitch.xml
Microsoft.VisualStudio.Debugger.Runtime.dll.dll
StandardShellPage.xaml
some can tell me which one should be decompilered?
or have some more smooth method to arrive the purpose? about 2 months ago | | |
May 13
-
 | DedoOne DedoOne BTW, this is the third Web Service my LightSwitch application has consumed without the need of a WCF RIA Service. The first consumes www.webservicex.net, and was built with thanks to Keith's posting here: http://code.msdn.microsoft.com/wind...0#content. The second consumes Bing Maps API, whereby, my application requires to calculate the exact driving distance between two points. And now Echosign's API. The last two were built upon Paul Patterson's Demo (http://www.paulspatterson.com) in how to send an email without the need of a "fancy" WCF RIA Service. You will have to sign up to his website to have access to it. If you wish, I can put together a Demo in how to access Bing Maps and also Echosign and post it here within the Forums. Roger about 2 months ago | | |
-
-
 | DedoOne DedoOne I resolved the issue with many thanks to the Lightswitch Tracing, and your recommendation Michael. My application fetches a templated document, populates many fields within it, and then sends it out for signatures. The problem was due to the fact my application could not find the template. I just changed it from a relative path to an absolute path and everything works as it should Once again Michael, you have helped me greatly. Roger about 2 months ago | | |
-
 | DedoOne DedoOne Thanks for the reply Michael. I'll update this thread as I learn more. BTW, the LightSwitch tracing was something I was looking for, as Fiddler operates outside of the application. Thank you for linking that! Roger about 2 months ago | | |
May 12
-
 | wdarnellg wdarnellg Hi.
I built the Student Information System app from scratch per the steps in the tutorial successfully. Now I am trying to apply it to a personal project and the listbox doesn't display the students. The proper amount of radiobuttons appear, but the names and other data doesn't show but the names are visible in the debugger however. Also if I tick a radiobutton and attempt to save, validation errors occur asking for the 'AttendanceCode', which in my case is 'Type'. The names of the students appear in the lightswitch popup form that is created when the individual validation link is clicked. So I guess my question is two part: What do I need to troubleshoot to find why the names are not being displayed? What do I troubleshoot to see that the control is bound to the Attendance table? about 2 months ago | | |
-
 | Michael Washington Michael Washington 1) I did not know it was possible to connect to a web service in LightSwitch without using a WCF RIA Service (you can google for examples) 2) However, if you have it working when you run in Debug mode then it must be possible. If it does not work when you publish I suspect that the web.config is missing settings 3) Google LightSwitch Tracking that should help you debug Production application problems. about 2 months ago | | |
May 11
-
 | DedoOne DedoOne If I can connect with the SOAP services OK within Visual Studio's development environment, I should be able to do so in a IIS production environment. If so, I am thinking it might be a https binding issue within the web.config file. <br /> <br /> I'll have to tinker with it some more. If anyone thinks I am heading in the wrong direction, please let me know. <img src='/DesktopModules/ActiveForums/themes/_default//emoticons/smile.gif' align="absmiddle" border="0" /> <br /> <br /> BTW, here is a snippet of my web.config file: <br /> [code]
<system.serviceModel>
<client>
<endpoint address="https://egrain.echosign.com/services/EchoSignDocumentService15" binding="basicHttpBinding" bindingConfiguration="EchoSignDocumentService15HttpBinding" contract="ServiceReference1.EchoSignDocumentService15PortType" name="EchoSignDocumentService15HttpPort" />
</client>
<serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true" />
<behaviors>
<serviceBehaviors>
<behavior>
<dataContractSerializer maxItemsInObjectGraph="6553600" />
</behavior>
</serviceBehaviors>
</behaviors>
<bindings>
<basicHttpBinding>
<binding name="EchoSignDocumentService15HttpBinding">
<security mode="Transport" />
</binding>
<binding name="EchoSignDocumentService15HttpBinding1" />
</basicHttpBinding>
<webHttpBinding>
<binding maxReceivedMessageSize="6553600" />
</webHttpBinding>
</bindings>
</system.serviceModel>
[/code] about 2 months ago | | |
-
 | DedoOne DedoOne Hi all,
I am trying to consume Adobe's Echosign API into my lightswitch application. It's webservice is a SOAP Web Service, whereby I can make HTTP requests to their SOAP gateway and receive synchronous responses.
I was successful in integrating it into my development environment, by using Lightswitch's server side 'Service Reference', which was able to retrieve all the various classes from their WSDL url.
However, once I publish into a IIS environment, my application fails to communicate with their web service. Do I need to build this via a WCF RIA service?
Any help would be most welcomed.
Roger about 2 months ago | | |
May 09
-
 | sid sid Hello
I have one to many screen. When I add new child row I want to assign some parent property value as default screen field value. How can I achieve that?
Thanks in advance
about 2 months ago | | |
May 02
-
| <br /> <br /> <br /> Dies ist, was ich interessiert bin in.Welcome mich contace. <br /> <br /> <br /> <br /> <br /> <br /> <br /> __________________________________________________ <br /> [url=http://www.mmobf.com/]Diablo 3 Gold[/url];[url=http://www.mmobf.com/aion-kinah-566/]Aion Kinah[/url];[url=http://www.mmobf.com/]Diablo 3 Gold Kaufen[/url];[url=http://www.mmobf.com/Guild-Wars-2/]Guild Wars 2 Gold[/url] <br /> about 2 months ago | | |
-
| <br /> <br /> This is what I'm interested in.Welcome to contace me. <br /> <br /> <br /> <br /> <br /> <br /> <br /> __________________________________________________ <br /> [url=http://www.mmobf.com/]Diablo 3 Gold[/url];[url=http://www.mmobf.com/aion-kinah-566/]Aion Kinah[/url];[url=http://www.mmobf.com/]Diablo 3 Gold Kaufen[/url];[url=http://www.mmobf.com/Guild-Wars-2/]Guild Wars 2 Gold[/url] <br /> about 2 months ago | | |
April 30
-
 | Omaer Omaer Hi, I'm using Visual Studio 2010 with Lightswitch 2011, and working on a desktop application.
In a data grid with readonly controls, if a user selects a cell and pressed CTRL+C, the entire row gets copied to the clipboard instead of just that cell.
So for example, if my data grid has the following columns:
Username, FirstName, LastName, EmailID
And the user selects a single EmailID cell and presses CTRL+C, then the whole row including Username, FirstName, LastName and EmailID will all get copied into the clipboard instead of just the EmailID. Does anyone know how to fix this? about 2 months ago | | |
|