0

Import first image Google in ImageField

I'm trying to import with a button the first imageresult of google

 

"//Building URL field";
let myURL := "http://www.google.com/search?q=" + 'Nome Hotel';
"//Putting the URL in the URL-Field to display";
'URL IMMAGINE' := myURL;
"//Delete the existing picture";
'Immagine Hotel' := null;
"//Getting the URL-image from internet and display it in the picture field";
importFile(this.ID, 'URL IMMAGINE', "hotel.jpg");
'Immagine Hotel' := first(files(this))

This is the result I get:

Image

 

Down the image that I need to import

Image 2

 

Is there also a way to import in another field the map that I get as result in png in google? So I mean the second result?

 

Thanks

Reply

null

Content aside

  • 3 yrs agoLast active
  • 633Views