In this step you will extend the Details WebRoutine to use the employee address fields to set up the URL string which will be output as the #ADDRESS field.
Review the example Google URL provided in Objectives, and note the Brooklyn Bridge address values in that string.
An employee address such as:
70 MAIN STREET (field ADDRESS1)
NEWTOWN NSW (field ADDRESS2)
AUSTRALIA (field ADDRESS3)
Must be used to produce a string inside the Google URL such as:
MAIN+STREET,NEWTOWN,NSW,AUSTRALIA
Your code needs to do the following:
Define Field(#addr1) Reffld(#address1)
Define Field(#addr2) Reffld(#address2)
#addr1 := #address1.removecharacters( "1234567890" ).remove( " " )
#addr1 := #addr1.replace( " ", "+" )
#addr2 := #address2.replace( " ", "," )
#ADDRESS := 'http://maps.googleapis.com/maps/api/staticmap?center=' + #addr1 + ',' + #addr2 + ',' + #address3 + '&zoom=14&size=340x340&maptype=roadmap&markers=color:blue%7C' + #addr1 + ',' + #addr2 + ',' + #address3 + '&sensor=false'