cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

utilizar funcion Count

cerrejon
Super Contributor

Hi,

As I can use the Count function in MEGA, it is to show the number of applications on the website

 

Thank you

1 Reply

jhorber
MEGA
MEGA

Hello cerrejon

 

The is not direct or indirect link between a static web site and the application objects displayed in the pages of this web site

 

However You can use API to browse the web site definition (GetGeneratedObjects)

 

Code example (VB script)

 

Set oWebSiteDescription = oWebSite.WebSiteDescription
'Get list of pzhr
 
Set oObjectGeneratedList = oWebSiteDescription.GetGeneratedObjects
For Each oObjectGenerated in oObjectGeneratedList
  Print GetObjectFromID(oObjectGenerated.GetClassID).GetProp("Name") & " : " & oObjectGenerated.GetProp("Name")
Next

 

Then you need to filter objects of the Metaclass 'Application' and count them.

Jerome