Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9164

Re: RAS: set section condition formula

$
0
0

Hi Don,

 

The key objective is to detect BAD expressions in format condition formulas.

 

Problem 1: There is no .Check() method for such Formulas. Only for REGULAR formulas.

Solution 1: create a dummy regular formula with that same expression and .Check() it.

 

Problem 2: If the expression we check is bad due to it being a String rather than Number or Boolean, it will not be detected as bad because the act of assigning the bad expression to the dummy formula changes its data type.

Solution 2: ask DEV to not change the data type (if already assigned) of a formula when assigning an expression to it.

 

To replicate: 1. create a formula in code  2. Set its data type to numeric  3. set its expression to a string ("""Some Text""").  Note that the formula data type somehow just changed to String. And a .Check doesn't detect a problem.

 

One more thought: a much better solution would be if DEV added a .Check() method for Format Condition Formulas, so we don't have to jump through hoops to check them.


Viewing all articles
Browse latest Browse all 9164

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>