ilogic form -> external rule -> open different webpages

ilogic form -> external rule -> open different webpages

mario170979
Advocate Advocate
271 Views
1 Reply
Message 1 of 2

ilogic form -> external rule -> open different webpages

mario170979
Advocate
Advocate

Hello,

 

i struggle to find a effective way to archiv following goal with less es possible forms and rules: 

 

I would like to have a ilogic form with buttons where i can open by click in my browser webpages. 

 

One Page is easy: The ilogic  rule get the code to open the webpage and in the form i place the rule and so i get the button to start the rule. 

 

but is it possible to handle several webpages which i can open only with 1 external rule and 1 form and nothing else? 

MR
Autodesk Inventor Professional 2025
Autodesk Vault Professional 2025
0 Likes
Accepted solutions (1)
272 Views
1 Reply
Reply (1)
Message 2 of 2

Michael.Navara
Advisor
Advisor
Accepted solution

According to this post is it possible to use InputListBox?

You can set as many web pages as you wish.

Sub Main
	Dim webPages As New List(Of WebPageItem)
	webPages.Add(New WebPageItem("www.autodesk.com", "Autodek"))
	webPages.Add(New WebPageItem("www.google.com", "Google"))

	Dim selectedItem = InputListBox("Select page", webPages)
	Process.Start(selectedItem.WebAddress)
	
End Sub


Class WebPageItem
	Public Sub New(value As String, displayName As String)
		Me.WebAddress = value
		Me.DisplayName = displayName
	End Sub

	Public Property WebAddress As String

	Public Property DisplayName As String

	Public Overrides Function ToString() As String
		Return DisplayName
	End Function
End Class