Announcement

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

    DateTime Picker

    Hello,

    I am having trouble with the date time picker with the Smartclient on mobile,

    Actually this is how the date time picker is showing on mobiles,

    Click image for larger version  Name:	Untitled.png Views:	3 Size:	3.9 KB ID:	254507

    I thought the problem was due to the old version that i was using but I just downloaded the version 12 (demo) and I am still having the same issue,

    Any suggestion?

    Code:
             isc.DynamicForm.create({
                    ID: "myTestForm",
                    titleOrientation: "top",
                    styleName: "footerStyle",
                    disabled: false,
                    width: formWidth,
                    autoFocus: false,
                    padding: 10,
                    numCols: 2,
                    fields: 
                    [
                        {
                            name: "EndDateUTC",
                            width: fieldWidth,
                            required: true,
                            textAlign: "left",
                            canEdit: true,
                            title: "End date",
                            type: "datetime",
                            align: "left",
                            displayFormat: "toEuropeanShortDateTime",
                            titleStyle: "titleStyle"
                        }
                    ....
    Thanks in advance for your help,
    Last edited by slallouani; 14 Aug 2018, 12:39.

    #2
    What mobile platform is this, with what skin, and can you reproduce it by going to a showcase example (to eliminate causes such as bad CSS in your project)?

    Comment


      #3
      Hello,

      The behavior still the same what ever the mobile I am using,

      Code:
      <!DOCTYPE html>
      <html>
      <head>
      <meta charset="UTF-8">
      <title>Title of the document</title>
      </head>
      <body>
          <script>
              var isomorphicDir = "/smartclient12/";
          </script>
          <script SRC=/smartclient12/system/modules/ISC_Core.js></script>
          <script SRC=/smartclient12/system/modules/ISC_Foundation.js></script>
          <script SRC=/smartclient12/system/modules/ISC_Containers.js></script>
          <script SRC=/smartclient12/system/modules/ISC_Grids.js></script>
          <script SRC=/smartclient12/system/modules/ISC_Forms.js></script>
          <script SRC=/smartclient12/system/modules/ISC_DataBinding.js></script>
          <script SRC=/smartclient12/system/modules/ISC_Calendar.js></script>
          <script SRC=/smartclient12/system/modules/ISC_Calendar.js></script>
          <script SRC=/smartclient12/skins/Enterprise/load_skin.js></script>
          <script>
              isc.DynamicForm.create({
                  ID: "dateForm",
                  fields: [
                      { name:"pickListDate", title:"PickList Date", type:"date", change:"dateLabel.setContents(value)", wrapTitle:false},
                      { name:"directInputDate", title:"Direct Input Date", type:"datetime", useTextField:true, wrapTitle:false, change:"dateLabel.setContents(value)"}
                  ]
              });
          </script>
      </body>
      </html>
      SmartClient version: SmartClient_v120p_2018-12-02_LGPL
      Attached Files

      Comment


        #4
        Again, please name any one mobile client you are using where you see this, and also, please answer the question about whether it happens in the Showcase.

        Also, please retest with the latest patched build.

        Comment


          #5
          Hello,

          I just downloaded the lasted version of smartclient,

          I also uploaded the code please reach the following link for an example:
          http://marcpelletierconsultant.com/isomorphic.html

          I tested with the followings devices and the result is always the same:
          MI A2 on Android Pie version 10.0.3, Chrome Version 71.0.9578.99
          MI A2 on Android Pie version 10.0.3, Firefox Version 64.0.2
          iPhone 6S ios 10.3 Safari
          iPhone 6S ios 11.4 Safari
          iPhone 8 ios 12.1 Safari

          It's happening when I click on the calendar,
          Click image for larger version

Name:	toDel.png
Views:	111
Size:	28.8 KB
ID:	256682

          Click image for larger version

Name:	toDel2.png
Views:	84
Size:	32.5 KB
ID:	256683

          Maybe I am missing something?

          Do not hesitate if you need more information,

          Comment


            #6
            All great info, but again the question we keep asking is whether it happens in the online Showcase. So that means the one we're hosting at SmartClient.com.

            Comment


              #7
              Hello,

              Just try it in the showcase and the behavior is not the same, little bit strange since I copied your own code to do my example,
              Click image for larger version

Name:	isomorta3Elkhraa.png
Views:	101
Size:	43.7 KB
ID:	256693

              Is the paid version different? Is there anything you can help me with?

              Comment


                #8
                Hi slallouani ,

                it seems you are looking at different skins. Yours: Enterprise: Showcase: Tahoe. Perhaps related to this? You can easily change the used skin in the showcase.

                Best regards
                Blama

                Comment


                  #9
                  Hello Blama,

                  Thanks a lot for the answer I was not expecting the skin to be the problem,

                  Comment


                    #10
                    So what is the issue here then? Are you able to reproduce the issue you had if you change our online Showcase to use Enterprise or some other skin?

                    Comment


                      #11
                      Hello,

                      The problem is on the skin apparently, in the enterprise the date picker is not showing correctly I took this picture from the Showcase,
                      https://www.smartclient.com/smartcli...sizeIncrease=2
                      Click image for larger version  Name:	Screenshot_20190201-094548.png Views:	1 Size:	89.0 KB ID:	256723

                      But on the same Showcase with a different skin it is showing a lot better, I finally changed my skin to use Tahoe instead and it's working perfectly,
                      https://www.smartclient.com/smartcli...izeIncrease=10
                      Click image for larger version  Name:	Screenshot_20190201-094950.png Views:	1 Size:	94.1 KB ID:	256724
                      Thanks again for your help,

                      Comment

                      Working...
                      X