Case Table
Load the following elements in Windchilldatabase usingWindchillloader:
isadvanced
lb-valueset
XML Format
Case Tables with Formula
The attribute isadvanced is used to specify that a case table supports formulae.
<!ATTLIST lb-casetable
isadvanced %yesnovalues; "no"
>
The allowed values are:
Yes (Formulae supported as case table cells)
No
When the attribute is not specified, it is set to No by default for backward compatibility.
Conditional Value Sets
The attribute lb-valueset is used to support a case table cell containing a conditional value set.
<!ELEMENT lb-row (lb-expression | lb-any | lb-stepinterval | lb-valueset)*>
<!ELEMENT lb-valueset (lb-values?)>
<!ATTLIST lb-valueset
type CDATA #REQUIRED
key CDATA #REQUIRED
value CDATA #REQUIRED
>


<!ELEMENT lb-values (lb-const | lb-stepinterval | lb-valueset)*>
<!ATTLIST lb-values
size CDATA #REQUIRED
>
Example: Case Tables with Conditional Value Sets
Value
Example
ELSE values set for an integer parameter
<valueset type="long" key="ELSE" value="#ELSE"/>
ALL value set for a string parameter
<valueset type="java.lang.String" key="ALL" value="#ALL"/>
NOT value set for a real (double) parameter
<valueset type="double" key="NOT" value="#NOT (20 #OR 30 #OR 40 #OR 70 #OR 80)">
<values size="5">
<const type="double" value="20"/>
<const type="double" value="30"/>
<const type="double" value="40"/>
<const type="double" value="70"/>
<const type="double" value="80"/>
<values/>
</valueset>
OR value set for a real (double) parameter
<valueset type="double" key="OR" value="10 #OR 20 #OR 30">
<values size="3">
<const type="double" value="10"/>
<const type="double" value="20"/>
<const type="double" value="30"/>
</values>
</valueset>
NA value for an integer parameter
<valueset type="long" key="NA"/>
這是否有幫助?