4 Replies Latest reply on Jan 29, 2010 7:37 AM by user21370

    Calculation based on Objectname

    user21370

      Title

      Calculation based on Objectname

      Post

      I have a container field which is filled with an image from a related repeated container.

      The calculation I use for this field: 

       

      Case ( 

      Project Status = "Offerte" ; Project|Voorkeuren::gContainer [2]  ; 

      Project Status = "Order" ; Project|Voorkeuren::gContainer [3]  ; 

      Project Status = "Factureren" ; Project|Voorkeuren::gContainer [4]  ; 

      Project Status = "Gefactureerd" ; Project|Voorkeuren::gContainer [5] ;

      Project|Voorkeuren::gContainer [6] 

      ) 

       

      Everything works fine. 

       

      The Container field with calculation is needed multiple times with other parameters. My first thought was to expand the calculation which would use the Objectname to define the case to use. This way I don't have to duplicate the field in the table multiple times and keeping it slim. But I can't find the right function which gets the objectname (only active objectname).

       

      Now I have to duplicate the container field for the other versions.