• 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.

Mobile not recognizing app variable as numerical

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

  • Mobile not recognizing app variable as numerical

    I have a back end program that is setting an app variable equal to a decimal value from a table, but when i use SetResponse('appVar':'xx':myvar) i have to do a data conversion on myvar to char since the prototype only accepts a character value for field 3. This has been fine in the past since it seems like valence is able to figure out what data type an app variable is.

    Currently, after running this back end program, it reloads a form that has a field which is tied to that app variable (This field is also marked as required.) So after running the program the field goes from having the "This field is required" warning to having a value of, say, 100. This is all working perfectly fine on desktop, but on mobile, after running the program, the field goes from "This field is required" to saying "Value is not a valid number" which is leading me to believe that something on mobile is failing to recognize the app variable as numerical.

    This would also align with a separate issue I've been having where an app variable that is an expression of other app variables is failing to show any result on my form on mobile, as i assume some of the expression's variable that are being set on the backend are failing to be recognized properly, thus messing up the expression which causes a blank result.

  • #2
    So, what type of backend program is it, a.k.a. based on what template program (EXNABBTN, etc.)? Also, what is the definition of the field (Numeric 3,0, etc.)?

    Comment


    • #3
      Its an EXNABBTN program based on the template from qrpglesrc2 and the variable is a DEC(7,3) that i convert into a CHAR(7)

      Comment


      • #4
        Ok, what is the field in the data source you have the app variable linked to defined as? Numeric 7,3?

        Comment


        • #5
          The data source is a sysdummy table so i currently define the field as 1234567. Am i able to declare it as 1234567.123 or something similar?

          Comment


          • #6
            quick update: I changed the data source to have 3 decimal places in the field, but it didn't seem to change anything for the app

            Comment

            Working...
            X