Can anybody help me?
Im using vb.net with api for remedy 6.3 and i want to know how to get access to the label of each field in a given form.
Until the moment i can access and store in a sql 2005 database the databasename and id for each field of a form that i choose.
I use the GetFieldNames method from Server class. Is there other
method to store the label value of the fields?
My code is like this:
###############
Try
RM.Login(server, user, pass, "")
Catch a As ARSystem.Exception
MessageBox.Show(a.Message)
End Try
Dim listform As System.Collections.ArrayList
listform = RM.GetListSchema
ComboBox1.DataSource = listform
list = RM.GetFieldNames("MESP:zImport")
With DataGrid1
.DataSource = list
End With
Dim x As FieldName
Dim z As Field
SqlDataAdapter2.FillSchema(DataSet11, SchemaType.Source, "Description")
SqlDataAdapter2.Fill(DataSet11, "Description")
Dim tbldescription As DataTable
dt = DataSet11.Tables("Description")
For Each x In list
Dim dr As DataRow
dr = dt.NewRow()
dr(0) = x.Name
dr(1) = x.FieldId
dt.Rows.Add(dr)
Next
SqlDataAdapter1 = New SqlDataAdapter
SqlDataAdapter2.Update(DataSet11.Tables("Description"))
###############
Thanks