Help & Guide
Release 2.19r
22.6 Integrated Calendar Check

One of the issues when uploading automatically from Scoring software to Bridgewebs, is that Bridgewebs determines whether it is a new or amended results from the file content.

To overcome this, the Scoring software can provide a conversational popup to determine which event should be updated. This is similar to the manual "Results Administration"

What this can do is, just before uploading, ask Bridgewebs what entries are in the Bridgewebs Calendar for the event day using an "Event Download" API call.

Then, if this returns any calendar entries, you can display them in a popup box and allow the scorer to select

When they choose, you add an extra parameter to the "Upload API" to tell Bridgewebs what calendar entry to attach to and upload as normal.
e.g. event_id = 2.

So this works for new results or amendments

If Bridgewebs sees an event_id it will overwrite/attach results to that Bridgewebs event.

To obtain the Calendar use the "Event Download API"

club     = myclub
password = secret
type     = upload
transfer = events
date     = 20180709 (yyyymmdd)

This will return a JSON argument of the calendar entries for the day as a pair, id = title, file (if uploaded)

json = {"events":{"1":{"file":"2018Jul09!!.dat","title":"Duplicate Pairs"},"2":{"title":"Create New Event"}}}

and a list of events for the day, Title File uploaded

event_id_1 = Duplicate Pairs 10022_res_2018Jul09!!.dat
event_id_2 = Create New Event

If you add a parameter

   format = json

this will return a pure json data file.