locked
HTML Client : property description RRS feed

  • Question

  • Hi,

    In SL client, the controls include both DisplayName and Description Properties.  That does not seem to be the case in HTML client.  contentItem.description is undefined.  Is there a way to get the description from the designer properties for use in js code of HTML client?

    TIA,

    Josh

    Tuesday, April 23, 2013 3:09 PM

Answers

All replies

  • Hi Josh,

    For HTML Client, the LSML model file will be transformed into a model JSON object to be used by the JavaScript runtime (model.json under GeneratedResources). Unfortunately it looks like the Description of Content Items are not preserved in the model.json file, so it's impossible to get to them on the HTML Client. I'm checking to see if this is intentional or a bug. You can also log a Microsoft Connect bug for this issue.

    Best regards,
    Huy Nguyen

    Tuesday, April 23, 2013 4:36 PM
  • Huy, Thanks for your reply.

    Connect bug here:

    Lightswitch HTML Client - Description Property Missing



    • Edited by joshbooker Tuesday, April 23, 2013 5:16 PM
    • Edited by Yann DuranModerator Friday, April 26, 2013 7:31 PM Fixed link text
    • Marked as answer by Angie Xu Tuesday, May 7, 2013 3:23 AM
    Tuesday, April 23, 2013 5:15 PM
  • Thanks for logging the bug, Josh.
    Thursday, April 25, 2013 6:53 PM
  • This is fixed in VS2013 RTM.  Here is a nice use of contentItem.description for help text:

    Interacting with Content Items on the Screen with the LightSwitch API (Kevin Mehlhaff)

    HTH,

    Josh


    • Marked as answer by joshbooker Wednesday, February 19, 2014 12:10 AM
    • Edited by joshbooker Wednesday, February 19, 2014 12:14 AM
    Wednesday, February 19, 2014 12:10 AM
  • vs 2013 update 2.

    project is upgraded from vs 2013 (it seems to be the cause).

    to have contentitem.description working you have to reset the value - like add  symbol - run - delete sumbol - run.


    Sergey Vdovin

    Monday, June 30, 2014 3:09 PM