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

Field data error

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

  • Field data error

    Added new field to grid and added to the Json object (saving fields from the grid for later processing). But when I look at the value of the string it is not loading the value and is blank. When I go to read it later I am getting a character representation error.

    Saving the field

    vvJson_putString(lObject
    :'ADCRDA'
    :%trim(GetSelectionChar(gIndex:'ADCRDA')));

    vvJson_putInt(lObject
    :'ADARNO'
    :GetSelectionNum(gIndex:'ADARNO'));
    vvJson_putString(lObject
    :'AMTDUE'
    :%trim(GetSelectionChar(gIndex:'AMTDUE')));


    Getting the field for processing.

    ideba = %dec(%str(vvJsion_getString(lParsed:'ADDEBA')):9:2 ) ;
    icrda = %dec(%str(vvJson_getString(lParsed:'ADCRDA')):9:2) ;
    iord = vvJson_getInt(lParsed:'ADARNO');?


    Need to figure out why I am getting the error.
    ?

  • #2
    What is the value of the field when passed down? Or better yet, what does the JSON structure look like when passed from the front end?

    Comment


    • #3
      Sean, I attached an image of the payload.....the ADCRDA field is blank and should have a value of 3.25

      Doc1.docx

      Comment


      • #4
        Sorry, I should have been more clear. Use the NAB Developer Console to view the network traffic that is sent to this. We are looking to see that the front end is in fact sending down a value for ADCRDA.

        Comment


        • #5
          Sean, I was able to figure out the issue. Thanks for your help

          Comment

          Working...
          X