I use the webservice
function to retrieve a json dataset and a recorded macro to update it on pressing a button.
Here’s the recorded macro that i use:
sub Update_Price
rem define variables
dim document as object
dim dispatcher as object
rem get access to the document
document = ThisComponent.CurrentController.Frame
dispatcher = createUnoService("com.sun.star.frame.DispatchHelper")
dispatcher.executeDispatch(document, ".uno:UpdateTableLinks", "", 0, Array())
end sub
I need to extend this macro so that after the new data is loaded it compares the content of the cell with the function to another cell, and only if they don’t match replaces the content in that other cell with the new data and updates the current date and time in the third cell.