Quantcast
Channel: PTC Community : Discussion List - All Communities
Viewing all articles
Browse latest Browse all 11539

Can we perform nested if-logic in computed fields?

$
0
0

We are attempting to add some required functionality for our users and need to perform nested if-statements in computed fields. How do we do this?

 

Example that we cannot make work:

 

A short text field. Syntax indented/format to make the logic a bit more readable.:

 

(Type == "Program Requirement")

    ?

    getFieldValue(ID, "Program Requirement Statement")

    :

    (

    (Type == "Product Requirement")

        ?

        getFieldValue(ID, "Product Requirement Statement")

        :

        getFieldValue(ID, "Synopsis")

    )

 

 

 

It addition... I appears that computed short text field has inconsisent results when it refers to a long text field with rich content. Sometimes the <-- MKS HTML> tags are showing up and sometimes not. How do we fix this problem?


Viewing all articles
Browse latest Browse all 11539

Trending Articles



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