Opens the default home page of an address or, if it does not exist, searches the company name directly in Google
Product line
Standard
|Expert
Operating mode
CLOUD ABO
|ON-PREMISES
Modules
Services & CRM
Budget & Phases
Purchases
Resource Planning
Business Intelligence
Opens the default home page of an address or, if it does not exist, searches the company name directly in Google.
version | description | Scripting |
---|---|---|
6.0 | Script for Vertec versions before 6.7.0.12 and to run in the Script Editor for all versions. | Homepage_open60.py |
6.7.0.12 | Uses selectedobjects. | Openhomepageorsearchaddressingoogle.py |
At a single address.
# coding: windows-1252 # #---Bezeichnung: Homepage öffnen oder Adresse in Google suchen # Klassen: Adresseintrag # Selectedobjectsscript: Yes # Condexpression: self->size = 1 # EventType: Kein # EventClass: # EventMembers: # ExtendedRights: #---Öffnet die Homepage der Adresse oder, falls nicht vorhanden, sucht nach dieser in Google. #---2013-12-18, Vertec AG: erstellt. # 2016-03-29, SR: Umgestellt auf executeurl ab Vertec 6.0. # 10.10.2024, sth: Angepasst an selectedobjects ab Vertec 6.7.0.12. def main(addresslist): for address in addresslist: if address.standardhomepage: vtcapp.executeurl(address.standardhomepage) else: vtcapp.executeurl("https://www.google.com/search?q=" + address.name.replace(" ", "+")) main(selectedobjects)