cancel
Showing results for 
Search instead for 
Did you mean: 

Updating Item Properties

Former Member
0 Kudos

Hey Guys,

Can anyone tell me how I can update the Item properties (QryGroup10, QryGroup11, etc...) using the DI API in SBO version 2004?

There is a Properties property in the Items object in the help but I do not have any examples of how to use it.

When I type it into Visual studio and try to compile I get the following error:

<i>Property, indexer, or event 'Properties' is not supported by the language; try directly calling accessor methods 'SAPbobsCOM.IItems.get_Properties(int)' or 'SAPbobsCOM.IItems.set_Properties(int, SAPbobsCOM.BoYesNoEnum)'</i>

Anyone used this property before in C# or VB.NET?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Laura,

The properties are set with the Properties property of the business partner object.


  Dim oItem As SAPbobsCOM.Items
  ...
  oItem.Properties(1) = SAPbobsCOM.BoYesNoEnum.tNO
  ...

The (1) is the property number that you want to set. You can get the property numbers from the OITG table (ItmsTypCod).

Hope it helps,

Adele.

Former Member
0 Kudos

Thanks Adele.

There must be some kind of problem with using that call in C# as I get the error message noted in the original post. I had to use the following code:

oItem.set_Properties(10,SAPbobsCOM.BoYesNoEnum.tYES);

Answers (0)