Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
180
Expression Tree
posted

Hi,

I have an UltraCalcManager to which I have added a formula.

While I know that the calc manager will happily work out the result of the formula for me; I am interested in finding out the elements that are in play within the formula.

So, a formula of:

( a + b ) * ( c + 10)

I want to know that I've got:

a, b, c and 10 involved in the formula.

 

Is this possible with the UltraCalcManager (in version 10.3)?

 

TIA

Alan

Parents
No Data
Reply
  • 53790
    posted

    Hello Alan,

     

    I`m not sure that I understand well your questions, but maybe one possible way to find the elements (for example columns, values and etc. – if a,b,c    are your columns in the UltraGird ) which are include in the formula  is to handle ultraGrid1_SummaryValueChanged() and check the properties:

    -SummarySettings sumSettings = e.SummaryValue.SummarySettings;

    -UltraGridColumn gc = sumSettings.SourceColumn;

    -string formula = sumSettings.Formula;

     

    By using the UltraCalcManager you are able to use the different functions in the FormulaBuilder class. Please let me know if you think that I misunderstood your requirements or if you have any questions.

    Regards

    Georgi

Children