Developer forum

Forum » CMS - Standard features » Summary fields with IndexBuilderExtender fields

Summary fields with IndexBuilderExtender fields

Nuno Aguiar Dynamicweb Employee
Nuno Aguiar
Reply

Hi,

 

I ran into a situation with a customer:

 

  • He was creating a summary field using fields that come from an index builder extender
  • The result wascoming up emtpy
  • We got to the conclusion that the IndexBuilderExtender only runs after all summary fields have been processed

 

Is it by design that all summary fields are processed before the IndexBuilderExtender runs? This makes sense in my mind, but the opposite also does, so I wonder what would be best:

  • In the builder have an option to process Summary fields before OR after the extenders
    OR
  • Exclude certain fields from dropdown list creating summary fields

 

Thoughts?

 

Best Regards,

Nuno Aguiar


Replies

 
Nicolai Pedersen
Reply

Yes, that is by design - extenders run after the fields. Otherwise the field values would not be available for your extender. So kind of a hen and egg problem.

 
Nuno Aguiar Dynamicweb Employee
Nuno Aguiar
Reply

Hi Nicolai,

 

Fair enough. But what can we do to avoid our customers to know how to distinguish which fields are eligeble on Summary fields vs not. Would that be just a matter of naming the fields accordingly so that the customer "knows" not to use them?

 

Nuno

 

You must be logged in to post in the forum