Official Content

Assigns an existing location to a Location variable.


&data_type = GetLocation( Exp )


    Is the Location name(a Character value). If the location refers to a web service that has been imported to the Knowlege Base as an External object, the External object's name is the location name.

Type Returned:


Objects: Procedure, Transaction, Web Panel, Panel, Data Provider
Generators: .NET, .NET Framework, Java, Ruby (up to GeneXus X Evolution 3), Visual FoxPro (up to GeneXus X Evolution 3), Apple, Android, Angular


When you have a Location variable, you must assign a location name to it. You do this by using the GetLocation function. The parameter indicates an existing location, that is, a GeneXus main object must exist with that value in the Location property, or the Name property for Web Services.

&Location = getlocation(!'ExtObjectName')

In case of using Modules, the locationName should be ModuleName_ExternalObjecName, something like this:

&Location = getlocation(!'Module_ExtObjectName')

See Also


Last update: November 2023 | © GeneXus. All rights reserved. GeneXus Powered by Globant