Requirement:
The requirement was to display information of selected records of form Grid on a string control.The information on custom string control should change during the marking of records in real time.
Sample Code:
Copy the method in form datasource.
- public void markChanged()
- {
- AcxBrandMaster acxBrandMaster1;
- str brandStr;
- MultiSelectionHelper multiSelectionHelper = MultiSelectionHelper::construct();
- multiSelectionHelper.parmDatasource(AcxBrandMaster_DS);
- acxBrandMaster1 = multiSelectionHelper.getFirst();
- FormStringControl1.text(“”);
- while (acxBrandMaster1.RecId)
- {
- brandStr = brandStr + acxBrandMaster1.Brand;
- acxBrandMaster1 = multiSelectionHelper.getNext();
- }
- FormStringControl1.text(brandStr) ;
- super();
- }