cancel
Showing results for 
Search instead for 
Did you mean: 

C4C - modify objects in Query on custom BO

former_member226070
Participant
0 Kudos

Hi,

We have a custom BO on which we query in the Event-Before SAVE is there a possibility to change the objects - which are results of the query. The current object this. is of course changed but the result of the query is not written to the DB. Must the result object fo the Query be instantiated ?

varqueryGONOGO = GONOGO.QueryByElements;

varselParameterGONOGO = queryGONOGO.CreateSelectionParams();

selParameterGONOGO.Add(queryGONOGO.HDProjectNr, "I", "EQ", this.HDProjectNr);

varresultGONOGO = queryGONOGO.ExecuteFromDB(selParameterGONOGO);

foreach(varresultGONOGOentryinresultGONOGO) {

if ( resultGONOGOentry.HDGoNoGoID != this.HDGoNoGoID ) {

resultGONOGOentry.HDLastGnGobyOpp = false;

HOW TO CHANGE the Query result object ??

}

} // foreach

} // if ACCOORD

Thanks - Regards,

Jeroen Cosijnse

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member226
Employee
Employee
0 Kudos

Hi,

In C4C, whenever you pass the data to any field it should automatically update the same to BO instance. There is no specific method call for SAVE/MODIFY like in traditional SAP CRM.

Thanks

Saurabh