• If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Announcement

Collapse
No announcement yet.

Form helper program - issues?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Form helper program - issues?

    Hi,

    I am working on my first form helper program. Used to filter dropdown lists in this form and to enable/disable and hide/show some fields.

    Two questions

    1. Date field
    The portal is set to date format DD-MM-YYYY
    I have a date field that I initially fill from my helper program. I have to use format MDY in my RPG in order to show it as DMY. If I use DMY in my RPG it shows as MDY.

    SetValue('REQUESTDATE':%Char(%Date(%Timestamp()):* DMY-));
    shows as MDY

    The tooltip text of the field is: Expected date format d-m-Y.

    While reading the input value in my RPG by
    lrequestDate = vvIn_char('REQUESTDATE');
    I always receive the date in YMD format. While using the vvIn_date function I receive an empty date '0001-01-01'.

    Is this a bug or am I handling the date field in the wrong way?

    2. Form shows before it's rendered completely
    By the initial call of this form it shows before the form helper program is ready. It takes about 1a2 seconds before the form is in its desired state. Meanwhile the user is able to add some data that will be removed.

    Kind regards,
    Theo
    Last edited by Theo Kusters; 12-11-2020, 05:53 AM.

  • #2
    Hi Theo -

    1.) Use *ISO format to when setting the value of your date field. The form widget always expects *ISO format and will then convert it to your specified format (DD-MM-YYYY).
    When using vvIn_date in this case, can you try adding the optional second as "*ISO"?

    2.) We will address this in the next update. Worst case, the form will be masked during the call to "formRender".

    Comment


    • #3
      Hi Theo -

      Issue #2 will be handled in the next update for Valence 6.

      Comment


      • #4
        Thanks for the update

        Comment


        • #5
          Hi,

          I installed the latest Valence 6 update but I still have the issue with:

          2. Form shows before it's rendered completely
          By the initial call of this form it shows before the form helper program is ready. It takes about 1a2 seconds before the form is in its desired state. Meanwhile the user is able to add some data that will be removed.

          Kind regards,
          Theo

          Comment


          • #6
            Hi Theo -

            We will take a look into this. Would you be able to look at Developer Tools -> Network and tell us how long your call to your form helper program is taking?

            thanks

            Comment


            • #7
              The time between showing the initial form and the form with the filled in values is about 3,5 seconds.
              The total time between clicking the app icon and the app completely loaded is 7 seconds.

              Comment


              • #8
                Hi Theo - any chance you would be available for an online meeting so we could take a look at this issue on your system? If so, can you email us directly or at support@cnxcorp.com to setup a time?

                Comment


                • #9
                  Hi Sean,
                  Sorry missed this request. I'll be available next Thursday 14-1. I got one additional remark:
                  Initially I created an app only for order entry (So the initial form helper was in the start page of the app), this took 7. seconds to load.
                  After that I integrated this form in an other app that starts with a grid. Now the problem disappeared.
                  Kind regards

                  Comment


                  • #10
                    Thanks Theo - we will reach out to you to schedule a meeting for Thursday.

                    Comment

                    Working...
                    X