Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    JS difference between SmartClient and SmartGWT showcase (easy SmartClient problem)

    Hi Isomorphic,

    I'm trying to display the currently used version in an easy to copy manner.
    I started with the latest 11.1d Feature Explorer and came up with with code that works as expected in a Bookmark:
    Code:
    javascript:
    isc.Window.create({
        title: "Used SmartClient version",
        autoCenter: true,
        isModal: true,
        showModalMask: true,
        showMinimizeButton: false,
        width: 460, height: 60,
        items: [
            isc.DynamicForm.create({
                autoFocus: true,
                width: 390,
                colWidths: [60, "*"],
                items:[
                    {
                        width: 390,
                        type: "text",
                        name: "Version",
                        title: "Version",
                        selectOnFocus: true,
                        wrapTitle: false,
                        defaultValue: isc.version
                    }
                ]
            })
        ]
    });
    It also works in the 11.0 documentation application and the 11.0 Feature Explorer

    It does not work in the current 6.0/11.0 SmartGWT showcase and also not in my 5.1p SmartGWT application.

    What am I doing wrong here?
    The Developer Console stays empty and I also don't have JS errors in the browser console. I tested with Chromium 56.

    Thank you & Best regards
    Blama

    #2
    Try adding the following setting to your Window:

    Code:
    autoDraw: true

    Comment


      #3
      Hi Isomorphic,

      that did it, thanks.

      Best regards
      Blama

      Comment


        #4
        Hi all,

        above works only in Chrome for me, this is working in FF26 as well:
        Code:
        javascript:(function(){isc.Window.create({
            title: "Used SmartClient version",
            autoCenter: true,
            autoDraw: true,
            isModal: true,
            showModalMask: true,
            showMinimizeButton: false,
            width: 460, height: 80,
            items: [
                isc.DynamicForm.create({
                    autoFocus: true,
                    width: 390,
                    colWidths: [60, "*"],
                    items:[
                        {
                            width: 390,
                            type: "text",
                            name: "Version",
                            title: "Version",
                            selectOnFocus: true,
                            wrapTitle: false,
                            defaultValue: isc.version
                        }
                    ]
                })
            ]
        });})()
        Best regards
        Blama

        Comment

        Working...
        X