Skip to Content

C4C - modify objects in Query on custom BO

Feb 16, 2017 at 09:07 AM


avatar image


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

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Saurabh Kabra
Feb 20, 2017 at 06:39 AM


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.



10 |10000 characters needed characters left characters exceeded