/ Forums / Advansys Formativ / Creating Solutions with Formativ / Configure Formativ Portal / Reply To: Configure Formativ Portal
November 29, 2005 at 1:53 pm
#7397
Every script must contain a Main subroutine – the Formativ IDE automatically inserts one when you create a new applet.
I think the source code you are looking for will be something like:
Sub Main(Client, GWEvent) dim oPortal dim oPortals set oPortals = GroupWise.PortalManager.Portals set oPortal = oPortals.Item("MyCompany") if oPortal is nothing Then set oPortal = oPortals.Add oPortal.Caption = "My Company" oPortal.TabCaption = "My Company" oPortal.ID = "MyCompany" oPortal.NavigationControlsEnabled = false oPortal.URLInputEnabled = false end If oPortal.Url = "http://intranet" oPortal.Show oPortals.ActivePortal = oPortal.ID set oPortal = nothing set oPortals = nothing End Sub
Regards,
Advansys Support