$ACTION
Case ACTION
When "EXEBOUT" : Gosub BOUTON
Endcase
Return
##############
$BOUTON
If BOUT="3" ###### this is the code of our button in Window dictionary
# Contains the result header and body
Local Clbfile RESHEAD(0),RESBODY(0)
Local Integer RETVAL
# No additional parameter nor additional header value are given here (only the values given in ORDER definition are used)
Local Char PCOD(100)(1..10),PVAL(100)(1..10),HCOD(100)(1..10),HVAL(100)(1..10)
RETVAL=func ASYRRESTCLI.EXEC_REST_WS("ExchangeRate","GET","/latest",PCOD,PVAL,HCOD,HVAL,"{}", 0,"",RESHEAD, RESBODY)
If RETVAL=200 : infbox(RESBODY) : Else infbox("somwthing Went wrong") : Endif
Endif
Return