Menu

#12 checkboxes dont work outside of main form

open
None
7
2007-04-24
2006-03-17
JT Moree
No

As we have been dicussing checkboxes are NEVER checked
outside of the main form. I have forms in xiwa
(Reports/Objects/Detailed.pm) which contain checkboxes.
The same checkboxes are defined in both forms. main
and display. The checkboxes in main work properly.
Checkboxes in display NEVER show up checked. I even
set the checked attribute manually just before calling
printForm and they are still NOT checked.

I swapped the forms AND the checkboxes WORK properly in
the display form renamed to MAIN AS i suspected.

THIS is a huge problem because I am using these
checkboxes for required functionality in xiwa.

Discussion

  • JT Moree

    JT Moree - 2006-05-05

    Logged In: YES
    user_id=236631

    It appears that the real problem is the way the portal is
    using the form objects. I am re-using the same object to
    display multiple forms and the portal is calling
    formObj->clearErrors. AFter that call ALL MY checkboxes are
    RESET to NOTHING. This is wrong. the checkboxes should be
    left alone on clearErrors. I looked over the clearErrors
    code and dont see how this is even happening. I am
    attaching my testing scripts.

     
  • JT Moree

    JT Moree - 2006-05-05
     
  • JT Moree

    JT Moree - 2007-04-24

    Logged In: YES
    user_id=236631
    Originator: YES

    i have worked around this by changing the formSubmitted variable to be main instead of the form name by using substitution on the body of the doc before displaying it.

     
  • JT Moree

    JT Moree - 2007-04-24
    • priority: 9 --> 7
     

Log in to post a comment.

Auth0 Logo