Windev Magazine May 2026

PROCEDURE SendPendingMessages() LOOP FOR EACH Outbox_Table WHERE Status = "PENDING" // Prepare REST call to WebDev cloud server Request is httpRequest Request.URL = "https://cloud.myapp.com/api/v1/sync" Request.Method = httpPost Request.ContentType = "application/json" Request.Body = Outbox_Table.PAYLOAD Request.Execute()

This architecture respects the network boundaries: the cloud never touches your firewall, and the premise never blocks the user for network errors. windev magazine

// Inside the "Save" button of an Order window HAdd(Outbox_Table, "TYPE", "ORDER_CREATED") HAdd(Outbox_Table, "PAYLOAD", JSONBuild(Order_Record)) HAdd(Outbox_Table, "STATUS", "PENDING") // Commit the local transaction immediately HTransactionEnd(Global_DB, hCommit) Use WebDev Scheduler to trigger a download

// Write to Cloud HFSQL Cloud_Order.ID = OrderInfo.ID Cloud_Order.Date = OrderInfo.Date Cloud_Order.Status = "SYNCED_FROM_DESKTOP" windev magazine

// Return success ResponseWriteStatus(201, "OK") ResponseWriteJSON("{""result"": ""accepted""}") END What about data created on the Mobile app? You need a "Pull" mechanism. Use WebDev Scheduler to trigger a download.

SIGN UP FOR THE VIP LIST

SIGN UP FOR THE VIP LIST

Get insider info about my upcoming releases, sales and freebies - plus extras like behind-the-scenes peeks, bonus scenes and more!

You have Successfully Subscribed!