Hi Dynamicweb,
Can it be possible to override the ID when creating a ProductField by the api? Because when making integrated solutions we need to know the id of the field.
So in the Else-section of "Save(ByVal fieldIdStr As String)"
If objDataset.Tables(0).Rows.Count > 0 Then objRow = objDataset.Tables(0).Rows(0) Else objRow = objDataset.Tables(0).NewRow objDataset.Tables(0).Rows.Add(objRow) ID() = NumberGenerator.GetNumber("FIELD") objRow("ProductFieldID") = ID() objRow("ProductFieldSystemName") = SystemName() objRow("ProductFieldTypeID") = TypeID() objRow("ProductFieldTypeName") = FieldType.getFieldTypes(TypeID()).Item(0).Name End If
I would like to have this instead:
objRow = objDataset.Tables(0).NewRow objDataset.Tables(0).Rows.Add(objRow) If Not String.IsNullOrEmpty(fieldIdStr) Then ID() = fieldIdStr Else ID() = NumberGenerator.GetNumber("FIELD") End If objRow("ProductFieldSystemName") = SystemName() objRow("ProductFieldTypeID") = TypeID() objRow("ProductFieldTypeName") = FieldType.getFieldTypes(TypeID()).Item(0).Name
Best regards, Anders