Calculation using the same field (from related item)
Hi everyone.
Have an app with 2 field:
- - Level: calculation field
- - Parent: relationship field to the same app, single value
I trying to do calculate the level based on the rules:
- - If no parent => level =1
- - If there is a parent => level = parent's level +1
I think it should be possible with these code,
but the PROBLEM is: i just CANNOT get the "@All of level" on field selection on calculation. It's just dont appear.
My code (support to be):
var lvl = 1;
var temp=@All of level;
if ( temp[0]!==null) { lvl=temp[0]+1;}
lvl
Any suggestion or is it not possible to calculation using the same field(from related item)?
Thank you.
Please sign in to leave a comment.
Comments
2 comments