locked
Dymanically change the Screen Title

    Question

  • Is it possible to programmatically change the Title of a screen in CTP4?

    I have a ViewHouses screen and I would like to change the title from "Houses Detail" (or whatever is entered into the LS Designer) to the Name of the House.

    Thanks


    -Christopher DeMars

    Saturday, March 09, 2013 8:12 PM

Answers

  • hi!

    this works for me:

    in screen created method:

    myapp.my_details_screen.created = function (screen) {
        screen.details.displayName = screen.details.properties.my_entity.value.my_property;
    };

    hth.. 

    Kivito


    Nobody expects the Spanish Inquisition! (M.P.F.C.)

    Saturday, March 09, 2013 9:14 PM

All replies

  • hi!

    this works for me:

    in screen created method:

    myapp.my_details_screen.created = function (screen) {
        screen.details.displayName = screen.details.properties.my_entity.value.my_property;
    };

    hth.. 

    Kivito


    Nobody expects the Spanish Inquisition! (M.P.F.C.)

    Saturday, March 09, 2013 9:14 PM
  • Perfect! Thanks!


    -Christopher DeMars

    Saturday, March 09, 2013 9:26 PM