0

I was having an issue with setting a property within a group within my custom control.

   compositeData.MyGroup.MyProperty = "foo";

I reported this to Notes tech support and they got back to me with a solution and I can't remember the details but the said I first need to create the group object.

Something like:

 compositeData.MyGroup = new GroupObject;    

Of course that is not the right syntax. Does anyone know how to create this object?

Bruce Stemplewski
  • 1,343
  • 1
  • 23
  • 66

1 Answers1

0

Figured this out. To pass a property value back to the xPage using a group, you must do the following.

In the CC:

if (compositeData.MyGroup == null)
 compositeData.MyGroup = new com.ibm.xsp.binding.PropertyMap;

 compositeData.MyGroup.MyProperty = "Test";
Bruce Stemplewski
  • 1,343
  • 1
  • 23
  • 66