Hi Irene
- How can I obtain the user (created using the TopoBase Admin) currently logged with VB code? If possible, how to obtain the user id?
You can use following code to get the user name and use id
(I suppose you are doing this in some plug-in, ‘Me’ here represents the plug-in instance)
Me.Application.UserName
Me.Application.UserId
- How can I make a filter, using VB code, to obtain a subset of the information when loading the "show form" dialog?
You can use following code to filter the data in the form:
Topobase.Forms.Dialog dialog = Me.Document.Dialog.Items(featureClass)
‘
‘ Build a sql where clause formatted like: ‘fid in (1, 2, 3)’
‘ You can use it to filter the data
‘
String whereClause = Topobase.Data.Provider.BuildInCondition(…)
dialog.Show(whereClause)
Hope this helps
Best regards
Andreas