How to have dynamic variable based messages in a constraint using the check construct.

How to have dynamic variable based messages in a constraint using the check construct.

book

Article ID: KB0085146

calendar_today

Updated On:

Products Versions
TIBCO Collaborative Information Manager -
Not Applicable -

Description

Resolution:
How to have dynamic variable based messages in a constraint using the check construct.

Environment:
==========
TIBCO Product name and version: TIBCO Collaborative Information Manager 8.0
Operating System(s): All Operating Systems

Symptoms:
========
None

Cause:
=====
N/A

Resolution:
========
A sample constraint to have dynamic messages populated for constraints using "check" constraint is given below:

&ltconstraint>
    &ltname&gtShowMessage</name>
    &ltdescription&gtShow Dynamic Message</description>    
    &ltusefor>
    &ltvar&gtSHORTDESC</var>
    </usefor>
        &ltaction>
            &ltcheck>
                &ltexplanation>
                    &lttext><![CDATA[    &ltParameter name='RECORD_TYPE'/>: is    the    value of RECORD_TYPE]]></text>
                        &ltParameter>
                            &ltname&gtRECORD_TYPE</name>
                            &ltvar&gtRECORD_TYPE</var>
                        </Parameter>
                </explanation>
            &ltundefined>
            &ltvar&gtRECORD_TYPE</var>
            </undefined>
            </check>
        </action>
</constraint>

Attachments:
==========
None

References:
=========
None

Issue/Introduction

How to have dynamic variable based messages in a constraint using the check construct.