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

Using checkboxes in an application

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

  • Using checkboxes in an application

    I am using a checkbox to filter completed transactions. I have added the controller event and I can see in the chrome inspector network tab that the request headers on the vvvcall.pgm are returning either "true" or "false". I coded my RPGLE pgm to receive the header, but it didn't work. I ran the service job debug and I am not getting any data returned in statement below. Do I need to use "vvIn_boolean" or some other method?

    Query String Parameters:
    pgm: NOCSTRACE
    action: getRecs
    begdate: 2018-11-16
    enddate: 2018-12-12
    customer: 11143
    showrelease: false



    Code:
    monitor;                                  
     showrelease  = vvIn_char('showreleased');
       on-error;                              
        showrelease = 'false';                
       endmon;

  • #2
    Looks like a typo in your code to me... Your front-end is passing "showrelease" while your back-end is looking for "showreleased"...

    Generally speaking, vvIn_boolean() is a good route to go as it checks for true, on, 1, etc.

    Comment


    • #3
      Thank you for your help. It always helps to have a 2nd set of eyes....

      Comment

      Working...
      X