Importing data against radio buttons

Hi,

I was trying to import data using web services against a radio button. The value 0 is assigned to the "No" and the value 1 is assigned to the "Yes" answer in my CRF. 
Every time I imported the value 1 it was fine, but when I imported 0 the value wasn't recorded in the database (the radio button remained unchecked). According to the web service messages everything went fine but I have missing radio button values.
Has anybody else experienced this issue before?
Thanks,

Csaba

Comments

  • kristiakkristiak Posts: 1,293 ✭✭✭
    What happens if you enter "No" directly on the CRF page? Does it work normally then?
  • csabahalmagyicsabahalmagyi Posts: 21
    It worked fine. 
  • lindsay.stevenslindsay.stevens Posts: 403 ✭✭✭
    via Email
    I've found that the web services won't check item values other than that
    item oids match, so it would accept dates in an int field etc. Maybe first
    check you're really sending a zero, or that the item choice isn't a capital
    O in a string field.

    Or try seeing what is being submitted to the database. There is a
    postgresql.conf setting called log_statement that is on 'none' by default.
    Set it to 'all' and every submitted statement will be logged. Then restart
    the database server (or just reload configuration), run your web service
    code, and check the logs for clues.
    On 23/01/2015 10:37 PM, "csabahalmagyi"
  • csabahalmagyicsabahalmagyi Posts: 21
    Thank you for your answer Lindsay!
This discussion has been closed.