Script: Open homepage or search Google by name

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

Created: 18.12.2013
Updated: 10.10.2024 | Script version from Vertec 6.0 with executeurl

Content

This script can be registered to address. It will then appear in the listing menu or right-click menu and will open the default home page of an address or, if it does not exist, search the company name directly in Google.

Execute

On individual addresses. Please use the script that fits your current Vertec version.

Versions

Vertec version description Scripting

from Vertec 6.0

Uses the Python function executeurl.

Homepage_Open60.py

Script text

# coding: windows-1252
#
#---Description: Open homepage
# Class: Address Entry
#   CondExpression:
#   ObjectScript: Y
#   ContainerScript: N
#   EventType: None
#   EventClass:
#   EventMembers:
#   ExtendedRights: N
#---Open the homepage of the address or, if it does not exist, search for it in Google.
#---2013-12-18, Vertec AG: created.
#---2016-03-29, SR: Changed to executeurl (runs from version 6.0)

def main():
    URL = argobject.standardhomepage
    if not URL:
        URL = “https://www.google.de/search?q=” + argobject.name.replace(“ “, “+”)

    vtcapp.executeurl(URL)

main()
Bitte wählen Sie Ihren Standort