locked
Change control's displayName in Javascript - Lightswitch HTML Client RRS feed

  • Question

  • Example:

    I have a Textbox (Question) Control with displayName "Question"

    In Javascript, on certain postrender method, when I do,

    contentItem.screen.findContentItem("Question").displayName = "Question Text";

    This change doesn't reflect on the UI. Any solution?


    T$R

    Tuesday, November 12, 2013 6:33 AM

All replies

  • Hi,

    It seems that you can modify button name at the screen.created event, you can simply change the content item's displayName, we discussed similar issue before.

    for example:

    myapp.Browse.created = function (screen) {

        screen.findContentItem("Method")

            .displayName = "New Display Name";

    };

    hope it helps.

    Regards


    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.

    • Marked as answer by Angie Xu Wednesday, November 20, 2013 2:32 AM
    • Unmarked as answer by TSR Dev Wednesday, November 20, 2013 5:04 AM
    Friday, November 15, 2013 7:07 AM