LightSwitch HTML 5 Application

Can someone please provide some help in creating an HTML5 LightSwitch Application that triggers stored procedures from a custom button on an add/edit screen.  I have been following this tutorial https://msdn.microsoft.com/en-us/library/jj635144.aspx
but it is geared towards a desktop application and the final code shown in VB/C# has to implemented in .js for the Web Application.

The javascript equivalent of this:
Private Sub UpdateEmployeeInfo_Execute()
Dim dataWorkspace = New DataWorkspace
Dim employee = Me.Employees.SelectedItem
Dim operation =
dataWorkspace.ApplicationData.UpdateEmployeePersonalInfoOperations.AddNew()
operation.EmployeeID = employee.EmployeeID
operation.NationalIDNumber = employee.NationalIDNumber
operation.BirthDate = employee.BirthDate
operation.MaritalStatus = employee.MaritalStatus
operation.Gender = employee.Gender
dataWorkspace.ApplicationData.SaveChanges()
End Sub
is this:
myapp.BrowseEmployees.UpdateEmployeeInfo_execute = function (screen) {
var employee = screen.Employees.selectedItem
var operation =
new myapp.UpdateEmployeePersonalInfoOperations();
operation.EmployeeID = employee.EmployeeID
operation.NationalIDNumber = employee.NationalIDNumber
operation.BirthDate = employee.BirthDate
operation.MaritalStatus = employee.MaritalStatus
operation.Gender = employee.Gender
myapp.activeDataWorkspace.ApplicationData
.saveChanges().then(function () {
alert("Success");
HTH,
Josh

Similar Messages

  • 'Days Elapsed' computed field in lightswitch HTML client

    I am developing a simple lightswitch HTML application to keep track of research experiments. I have a table called 'Experiments' and one of the fields is 'ExperimentDate'. I want to display the number of days that have passed since the date of experiment.
    Is there any way to do this?

    Use a custom control to display 'ExperimentDate' and display the calculation. Use in-built JavaScript datetime functions or add a JavaScript library such as moment.js. Similar to this MSDN article sections:
    Format a Date
    Moment.js
    You can see the use in this
    stackoverflow post.
    var date1 = new Date("02/Feb/2015 00:00:00"),
    date2 = new Date("25/Feb/2015 10:09:00"),
    diff = date2.getTime() - date1.getTime(),
    days = Math.floor(diff / (1000 * 60 * 60 * 24));
    Cheers
    Dave
    Dave Baker | AIDE for LightSwitch | Xpert360 blog | twitter : @xpert360 | Xpert360 website | Opinions are my own. For better forums, remember to mark posts as helpful/answer.

  • Set connection timeout in LightSwitch HTML

    Hi.
    I am creating Lightswitch HTML application and implementing export functionality using ServerApplicationContext.
    I am trying to export a lot of data and i when i call for DB objects I get connection error. I have tried to set ;Connection Timeout=300 in connection string in web.config but it seams like not functioning, and still failing after 30sec. 
    Can you please guide me where can I set a connection timeout in order to change it's default value from 30 sec to something bigger?

    Igor,
    I think what you are looking for is "CommandTimeout" and not connection timeout. The connection timeout is how long the SQL Client will wait while establishing a connection. A command timeout is how long the SQL Client will wait for a command to complete.
    So if you are executing a long running command, you will run into command timeout issues.
    In order to set the command timeout for your SQL data source, add a "key" to your web.config's <appSettings> node of the following form:
    <appSettings>
    <add key="DataSourceName_CommandTimeout" value="60" />
    </appSettings>
    Replace DataSourceName with the name of your data source.  So if you are using the ApplicationData data source, the key would be named "ApplicationData_CommandTimeout". Look in your Solution Explorer under "Data Sources" for the name of your
    data source.
    The value is the number in seconds for the timeout.
    Eric
    http://blogs.msdn.com/b/eric_erhardt/

  • Occasionally Connected LightSwitch HTML Apps Using JayData

    JayData, as many are probably aware from prior blog posts and discussions on this forum, is a powerful JavaScript utility library for OData providers, including LightSwitch. 
    Recently, the JayData developers have expanded the
    provider offerings to include many other database programmatic interfaces. 
    Their latest release, JayData 1.3.6, codenamed “Advanced Sync Edition,” aims to support occasionally connected apps by exploiting the local storage capability of the browser (Web SQL. sqLite, IndexedDb, etc.). 
    Development is simplified when using the same data model and API for writing to both local storage and the OData endpoint.
    An example of this is shown at How to Create a Synchronized Online-Offline Data App with JavaScript and JayData. 
    This model, the “To Does” project, was successfully adapted to a LightSwitch HTML app without difficulty. 
    Although “To Does” projects like this serve as a nice proof-of-concept, they are excessively simple compared to real world business applications. 
    Fortunately, JayData 1.3.6 also includes support for configurable foreign keys. 
    With this, more complex object-relational mapping that would typically be used with Entity Framework and similar RDBMS may be approximated.
    To illustrate, the To Does project was expanded to include entity relationships. 
    Specifically, a To Do must be assigned to a single individual Project, and any single Project can have many To Does. 
    A Project can be assigned to an Employee or to multiple Employees, while an Employee can have a single Project or many Projects, thus defining a many-to-many relationship between Employee and Project.
    So how might and online-offline LightSwitch HTML application work in practice? 
    Ideally in my opinion, the transition from online to offline and back should be seamless and transparent to the user, allowing for both UX and UI to be unperturbed. 
    This approach turned out to be too difficult for me as a developer, as I experienced problems with the closed-end nature of LightSwitch’s Visual Collection object, for instance. Separation of concerns is a real challenge with this approach.
     There is also the separate UI approach for both offline and online data entry, which have been nicely illustrated by Michael Washington and Paul van Bladel on their blogs using JayData and BreezeJS with AngularJS alongside a LightSwitch HTML
    app.  This approach is valid, and from the viewpoint of the developer has its advantages. From a design standpoint, it is likely to be frustrating for an end-user who must deal with “spotty” network coverage, necessitating changing back-and-forth
    from one UI to another.
    I opted for a hybrid approach, staying entirely inside the LightSwitch HTML app environment but having individual menu options to select depending on the user’s online status, which is constantly displayed with a status icon (see Main Menu figure). 
    In many cases, the native LightSwitch screen and menu buttons are fully functional in the offline state. 
    When they are not, most often with regard to a “Browse” screen or involving a Visual Collection, I have substituted the updated WinJS library (now at
    version 4.0, capable of replacing LightSwitch’s v1.0 with no breaking changes) to create a custom control that resembles the LightSwitch listview.
    To use the app, you can use any of the online Menu buttons to enter Employee, Project, or To Do data in the usual way while connected.
      The Offline menu buttons are functional in either a connected or disconnected status, which can be tested by disabling your devices WiFi, for example. 
    This LightSwitch app does not work with all browsers, however. 
    Because the local database is stored using the Web SQL/sqLite JayData API, it is not supported by either IE or FireFox. 
    It is supported by Chrome, Safari, Opera, Android browsers, Kindle Fire, and iPad browsers
    (see link). 
    To see the local data stored in Web SQL while using Chrome, you can press F12, select Resources, and expand Web SQL to see the Table data updated with each transaction (see figure).
    After entering data using the Offline menu selections, you will want to synchronize your local data with the remote LightSwitch database, which is performed by clicking “Synchronize Offline to Online” on the Main Menu. 
    A success or error dialog message should follow, depending on the result of the sync. 
    The dates and times of the last synchronizations are displayed on the Main Menu. 
    With each online database transaction, including offline to online syncs, the offline database is updated to reflect the very latest LightSwitch application data. 
    This method attempts to have the LightSwitch online database as the “single source of truth” as much as possible while the user is online.
    Lastly (if anyone is still reading this far), note that by design there is no business logic programmed into this application; business logic is a separate issue to be addressed. 
    There can be as many incomplete To Does as you want, an Employee can be assigned the same Project many times, etc. 
    If your application requires business logic, you will have to program it into the client-side in order for the user to be prompted to follow it while offline.
    To experiment with LightSwitch OfflineToDoes app, go to:
    http://offlinetodoes.azurewebsites.net/htmlclient
    …and log in with username “testuser” and password “Testuser1!” 
    In a few days I will try to load the sample project code to MSDN for anyone to download and review if desired.
    TL;DR:
    JayData provides an attractive solution for creating online-offline LightSwitch HTML apps by automating a single codebase to carry out CRUD operations on both a local datasource and the remote LightSwitch database. 
    Integrating the offline portion of the app into the LightSwitch UI requires an individualized solution and is code-intensive, however.

    Thank you both for the input. Zardoz, I tried making a couple of updates to address items you mentioned.  I left unfixed the problem that occurs when editing an offline Project's budget item..this still does not work.  LightSwitch identifies this
    entity as a decimal, WebSql expects a plain number, but LightSwitch's post-processing business type formats it to currency (I see USD, you may see NZD, AUD, etc.)  In the console there is a "getModel() is undefined" in msls.js.  If I take
    out the Money business type to regular Text on the View, it works fine.
    I'm not sure if I understood your last item just right, but I tweaked the Add Edit Offline Project screen to prevent the Project from being null if the user only enters a new To Do. Not sure why the screen validation wasn't firing before.
    Regarding navigation, I don't wish to use the browser's back or forward buttons at all for the app, especially the Offline portion, only the LightSwitch menu navigation and command buttons. I know Xpert360 has shown how to put the former LightSwitch back
    button in the app which is useful too. Navigation, cacheing and disposing were some of the tricky parts getting to integrate between LightSwitch UI and offline custom controls.  Occasionally I felt like I was having to be "clever" at solutions,
    except that when it comes to programming, I'm not a fan of cleverness.
    The project is published
    here. Hopefully this serves as a good starting point for someone, and I look forward to seeing how it can be improved upon and used in practice.

  • Using html5 input search type in lightswitch html

    Hi Everyone
    I want to use the new html5 input search type for a search box in my lightswitch html application so what i did is in the postRender method for a text box i added this:
    searchInput = $(element).children("input:first");    searchInput.attr({        placeholder: "Search",        type: "search",    });
    and it works but now the search dose not work any more so how can i add an event listener when the value changes in the input field?
    In plain JavaScript it would be
    var s = document.getElementById("search");
    s.addEventListener("search", function(e) {
    }, false);
    But in lightswitch i can not find element by id so how can i do that?
    (there is no jquery alternative for that as i know).
    Thanks

    and it works but now the search dose not work any more so how can i add an event listener when the value changes in the input field?
    In plain JavaScript it would be
    var s = document.getElementById("search");
    s.addEventListener("search", function(e) {
    }, false);
    For the usage of addEventListener, Huy shares her
    experience on this.
    If you're using addChangeListener / addEventListener
    in your code, objects on HTML Client have different lifetime. Entity Objects tend to stay around much longer than Screen Objects. So if you add event listeners to an Entity Object on a Screen, when that Screen is closed, the listeners are still active and you
    need to clean up that listener.
    Hope it helps.
    Best regards,
    Angie
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How to access the C# file in server from Lightswitch HTML Client

    Hi,
    In that LightSwitch HTML Application i have some c# file in the server project.How can i access those C# file in the screens (HTML Client project )
    thanks,
    goblalakrishnan s
    gobalakrishnan S

    Hi,
    with implementing Generic File Handlers (.ashx)
    See follow link:
    http://lightswitchhelpwebsite.com/Blog/tabid/61/EntryId/174/Full-Control-LightSwitch-ServerApplicationContext-And-Generic-File-Handlers-And-Ajax-Calls.aspx
    regards
    j.nord

  • Lightswitch HTML Client - Detail picker for each related List Item

    I have a doubt in Lightswitch Html Client application.
    Scenario:
    Suppose i have two tables  "Property" and "PropertyVaues".
    A Property can have many PropertyValues is the relationship between them.
    I want to show the data on screen like below:
    Property List:
    XYZ            [___10____(+)]
    MNO          [___abc____(+)]
    PQR           [___30.5___(+)]
    Xyz  is the list item
    assume [___10____(+)]  is the detail picker of
    PropertyValues which allow to select one value related to
    XYZ Property item, and same for other list items.
    Only Related "PropertyValues" for each list item must be available in the detail picker.
    Please help me out if any one has the solution to solve it.
    Or you can give me any other way to accomplish the above scenario.
    Thanks

    Hello Josh,
    I am implementing it on AddEdit screen.
                      (1)                                              
    (2)                           
    Screen description:
    [Note: Some Images are in my next post]
    1. Image(1) shows the list of properties (GSM, Mill Name, CMS). These Properties have its respective property values in drop down.
    2. When i select any value from the dropdown list (eg. 10 from GSM). the value is assigned to all other drop down.
    [shown in image(3) next post]
    (4) Again when suppose i select value for "Mill Name" Property as "Abc", it is assigned to all other drop down.
    [shown in image(4) next post]
    I want that a property value must be assigned to its respective Property only.
    Please help me on this. Or suggest me another way out to accomplish such scenario.
    Thanks
    Ravi Patel

  • LIGHTSWITCH HTML ENTITY SOFT DELETION

    Hello all,
    I am working on LightSwitch HTML client application. I have an issue regarding entity soft deletion.
    For your kind information, I have also referred Beth Messi's link:
    http://blogs.msdn.com/b/bethmassi/archive/2011/11/18/using-the-save-and-query-pipeline-to-archive-deleted-records.aspx
    My Scenario:  
    I have an Accounts table which is related to other tables.
    In Accounts edit screen, I have a delete button. On deleting account from edit screen Account should be marked as deleted in database(i.e. soft delete) if it has no reference in any other table, otherwise show client side an error message
    myapp.EditAccount.DeleteAccount_Tap_execute = function (screen) {
    // Write code here.
    screen.Account.deleteEntity();
    myapp.applyChanges().then(function success() {
    // Delete successful message.
    }, function error(e) {
    // Delete failure message.
    According to Beth Messi's example: On deletion, the entity will discard changes and mark the entity as soft deleted. 
    So, If data is discarded then I do not get the server side exception " Could not delete. entity is in use." and my code inside function error() could not execute.
    Any different way to accomplish this is also appreciated.  
    Thanks,
    Ravi Patel

    HI Ravi,
    As Beth’s blog said, it marks records for deletion without actually deleting them from the database. It discards the changes, this reverts the deletion.
    As I know, myapp.applyChanges(), calling apply will save all the changes of the current changeset. If only one changeset exists, it will save them to the database. If the current changeset is a nested scope, it will commit the changes to
    the parent changeset. I don’t think you can use myapp.applyChanges()
    method in this scenario.
    Best regards,
    Angie 
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • SSRS reports from Lightswitch Html Client

    I have created a Lightswitch desktop application that list the available reports that are stored in a table and also provides a button that when clicked launches the web browser to the URL for the report on the SQL server. My problem is now I'm trying to
    create the HTML client for the application and have no experience with Java Script. Does anyone know how to accomplish the something that I did on the desktop application on the HTML client?
    Below is the code that I used to open the URL in the browser in the desktop application.
    Imports Microsoft.LightSwitch.Threading
    Imports System.Runtime.InteropServices.Automation
    Namespace LightSwitchApplication
    Public Class ListReports
    Private Sub RunReport_Execute()
    ' Write your code here.
    Dim uri As New Uri(ReportsSet.SelectedItem.ReportAddress) 'website stored in the ReportsSet.ReportAddress field
    If (AutomationFactory.IsAvailable) Then
    Dim shell = AutomationFactory.CreateObject("Shell.Application")
    shell.ShellExecute(uri.ToString)
    ElseIf (Not System.Windows.Application.Current.IsRunningOutOfBrowser) Then
    System.Windows.Browser.HtmlPage.Window.Navigate(uri, "_blank")
    End If
    End Sub
    End Class
    End Namespace

    This may help:
    Creating Reports in LightSwitch HTML Client
    // Show Loading message
    var LoadingDiv = $("<div></div>");
    var Loading = $("<h1>&nbsp;&nbsp;&nbsp;&nbsp;Loading Report...</h1>");
    Loading.appendTo(LoadingDiv);
    LoadingDiv.appendTo($(element));
    // Get Report
    var HTMLContent = $("<div></div>").html(
    "<object width='650px' height='650px' data='../reports/ReportViewer.aspx?SurveyId="
    + contentItem.screen.SurveyId + "'/>"
    // Make report appear on top of the Loading message
    HTMLContent.css({
    "margin-top": "-50px"
    HTMLContent.appendTo($(element));
    Unleash the Power - Get the LightSwitch 2013 HTML Client / SharePoint 2013 book
    http://LightSwitchHelpWebsite.com

  • LightSwitch HTML Client pubished on azure get an 400.0 bad request error

    Well, I have this problem: "Request failed with status code '400' and the status text 'Bad Request'." when I run my LightSwitch HTMLClient application that are published in Azure Web Applications.
    I already look everywhere for 3 days and still could not find the answer to this problem.
    I hope someone in this forum can help me.
    Thanks.

    Hi, thank you for respond.
    let's see, the fiddler throws these:
    NOTICE: Don't follow the links, they are dummies
    GET http://myapp.azurewebsites.net/ApplicationData.svc/$metadata
    400 Bad Request (text/html)
    The Request
    GET /ApplicationData.svc/$metadata HTTP/1.1
    MaxDataServiceVersion: 3.0
    Accept: application/xml
    Referer: http://myapp.azurewebsites.net/HTMLClient/default.htm
    Accept-Language: es-MX,es;q=0.8,en-US;q=0.5,en;q=0.3
    Accept-Encoding: gzip, deflate
    User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; Trident/7.0; rv:11.0) like Gecko
    Connection: Keep-Alive
    Host: myapp.azurewebsites.net
    Cookie: ARRAffinity=354b4b5b87b2f1e4e8b6c19a5566c6e055bf3e4047b54b4d2ea846ba1b33d561; msls-client-parameters=preferredLanguage=es-MX; ASP.NET_SessionId=bkf52whz0rkufhcxmqrfuirm
    The Response
    HTTP/1.1 400 Bad Request
    Cache-Control: private
    Content-Type: text/html
    Server: Microsoft-IIS/8.0
    X-AspNet-Version: 4.0.30319
    X-Content-Type-Options: nosniff
    X-Powered-By: ASP.NET
    Date: Wed, 01 Apr 2015 04:23:39 GMT
    Content-Length: 1647
    Connection: Keep-Alive
    The azure logs, the lightswitch diagnostic and the debugger not show any difference from these.

  • Lightswitch HTML Sharepoint App: Access Control Methods

    I have a Lightswitch HTML SharePoint App. Which is working well.
    I have implemented user access security on the entities using SharePoint groups.
    partial void UserAccessGroups_CanUpdate(ref bool result)
    result = false;
    var clientContext = Application.SharePoint.GetHostWebClientContext();
    Microsoft.SharePoint.Client.Web web = clientContext.Web;
    Microsoft.SharePoint.Client.GroupCollection UserGroups = web.CurrentUser.Groups;
    clientContext.Load<Microsoft.SharePoint.Client.GroupCollection>(UserGroups);
    clientContext.ExecuteQuery();
    foreach (var item in UserGroups)
    var permission = "UserAccessGroupAdmin";
    if (item.Title == permission)
    result = true;
    break;
    This works fine when I am debugging the application and it is running on localhost.
    However when I publish theapp and it is running in an Azure site it doesn't work and I am un able to edit the entitiy.
    I have set up the SharePoint Group on the site that is running the appp and assigned the user to the group.
    Has anyone else had a similar experience or have any suggestions.
    Thank you,
    Andrew

    This may help:
    An End-To-End LightSwitch SharePoint Workflow Application
    I have SharePoint permissions in that example and I tested it in production and it definitely works.
    bool isMemberOfVacationApprovers = false;
    var clientContext = this.Application.SharePoint.GetHostWebClientContext();
    //Load the properties for the web object.
    Microsoft.SharePoint.Client.Web web = clientContext.Web;
    // Get the current web
    clientContext.Load(web);
    clientContext.ExecuteQuery();
    // Groups for current User
    Microsoft.SharePoint.Client.GroupCollection UserGroups = web.CurrentUser.Groups;
    clientContext.Load<Microsoft.SharePoint.Client.GroupCollection>(UserGroups);
    clientContext.ExecuteQuery();
    foreach (var item in UserGroups)
    if (item.Title == "Vacation Approvers")
    isMemberOfVacationApprovers = true;
    if (!isMemberOfVacationApprovers)
    results.AddEntityError
    ("Only members of Vacation Approvers can edit this record.");
    Unleash the Power - Get the LightSwitch 2013 HTML Client / SharePoint 2013 book
    http://LightSwitchHelpWebsite.com

  • RoboHelp HTML Application closed

    I was working on another system while my RoboHelp project was
    up. I might have had too many things up at once. I received a
    message that the RoboHelp HTML Application has encountered a
    problem and needs to close. I didn't get a chance to close
    properly. I selected Send Error Report but I'm not sure what will
    come of it. I tried clicking on the Debug button and nothing
    happens. When I try to load my project, it gives me this error
    message and will not bring it up. Does anyone know what I can do to
    locate the probelm and get my project to work again?
    Jencie

    Hi Jencie
    We first need to determine if it's just this single
    application or if RoboHelp itself is wonky. Are you able to open
    RoboHelp HTML generically? Create a totally new project or open one
    of the sample projects with no issue? If you can't do that, you are
    possibly looking at reinstalling RoboHelp. If the other projects
    open without issue, you are facing an issue with just this project.
    If this is the case, the answer might be as simple as locating and
    squashing the ProjectName.CPD file, then opening the project using
    the .XPJ file so the .CPD will be rebuilt.
    Hopefully this helps... Rick

  • Lightswitch html use the 'any' query method

    Hi
    Can someone please tell me how i can use the "any" query method for entity collections in lightswitch html?
    Thanks

    Hi Xpert360
    It's for a type of EntityCollection this is the code from the msls-2.5.2.vsdoc.js line 2220
    any: function any(predicate) {
    /// <summary>
    /// Determines whether this sequence contains any
    /// items that optionally satisfy a condition.
    /// </summary>
    /// <param name="predicate" type="Function" optional="true">
    /// A function to test each item for a condition.
    /// <br/>Signature: Boolean item.predicate(item)
    /// </param>
    /// <returns type="Boolean">
    /// True if this sequence contains any items that
    /// satisfy the condition, if any; otherwise, false.
    /// </returns>
    var result = false;
    this.each(function (item) {
    if (!predicate || predicate.call(item, item)) {
    result = true;
    return false;
    return true;
    return result;
    Check it out and let me know if you know how to use it, my problem is how to use the call back function.
    Thanks

  • How to run a query in VEV HTML application?

    Hello,
    We are developing an HTML application using VEV sdks. Anybody knows how we can run a query saved in a .rhq file using on-click event in HTML?

    You call the executequery(string) JavaScript function. That means you need to have the text from the rhq file. You can ignore the comments there (// lines and text following // on any line).
    If you you want to read the text literally from the file, you can do that in HTML5 with a method like this
    How to open a local disk file with Javascript? - Stack Overflow
    Most likely you will use fixed strings or compose them in JavaScript and then run them via the function call.

  • Extending Screens for Multi-Select in the LightSwitch HTML Client

    Hi i
    read Mike Droney's article of 
    Extending Screens for Multi-Select in the LightSwitch HTML Client
    But i just want to understand the code, so what is the ‘__isSelected’ property? from where does it come?
    why does the contentItem.value.details have an ‘__isSelected’ property?
    is the value of the contentItem not the screen?
    and also how can i implement the ‘Can Execute Code’ only if one or more check boxes are checked?
    Thanks  

    But i just want to understand the code, so what is the ‘__isSelected’ property? from where does it come?
    why does the contentItem.value.details have an ‘__isSelected’ property?
    is the value of the contentItem not the screen?
    and also how can i implement the ‘Can Execute Code’ only if one or more check boxes are checked?
    The '__isSelected' property is a private member of the class msls.ContentItem related to the backing data for the selected item.  That is to say, it would be a private member if JavaScript actually had encapsulation and information hiding like a typical
    object-oriented language. I like to reference David Herman's description from his book
    Effective JavaScript:
    Often, JavaScript programmers resort to coding conventions rather than any absolute enforcement mechanism for private properties. For example, some programmers use naming conventions such as prefixing or suffixing private property names with an underscore
    character (_). This does nothing to enforce information hiding, but it suggests to well-behaved users of an object that they should not inspect or modify the property so that the object can remain free to change its implementation.
    ...which means that it's generally not recommended to directly get or set backing data properties like __isSelected, instead working with the public property 'selectedItem', although it may work fine in certain cases like this one.
    To make _canExecute fire only when an item in the list is selected to enable a button method, try:
    return (screen.Contacts.selectedItem !== null);

Maybe you are looking for

  • Error in SXMS_LMS_CONF-User Defined Message Search

    Hi Experts, I  am trying to implement the user defined message search feature in PI 7.1 EHP1. I have done the require configuration as mentioned in the help document http://help.sap.com/saphelp_nwpi711/helpdata/en/48/c85598f63335bfe10000000a42189d/fr

  • Error code:-2147217394 Error code name:missingParameterValueError

    As seen on: Re: Problem exporting Crystal report from Portlet JSR-168 instead of servlet. I have all old code using "com.crystaldecisions.sdk.occa.report.data.Fields" and I would like to iterate through all items and convert them to the new ReportCli

  • Newly Puchased Refurb iMac Display blew; Send back or repair?

    Just wanted to get some thoughts from the forum gang. I just purchased a new refurb iMac Intel Core 2 Duo white from the Apple Online Store, and it worked great...for about 2 weeks, when last night the display freaked out and then blacked out. I took

  • "Message Illegal character used in property name" C4043 what is illegal?

    hi *, does anyone know what are legal chacters for JMS properties for SJSMQ? according to http://docs.sun.com/app/docs/doc/819-4469/aeqgo?a=view which mentions: C4043 Message Illegal character used in property name - {0} {0} is replaced with the ille

  • Interlace lines when export Alpha Ch.

    Hey all video fanatics out there, here is one for you! I'm chroma keying a subject behind a green screen...worked great! My problem is when I export to Quicktime + Alpha channel (using Quicktime Animation setting) the QT file has an annoying interlac