Skip to Content

C4C - modify objects in Query on custom BO

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Feb 20, 2017 at 06:39 AM

    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

    Add comment
    10|10000 characters needed characters exceeded