To use a value stored in a complex custom field (for example, Sample_CustomFields or Compound_CustomFields), you must first save the required value as a Custom Extractor variable.
The following example shows how to calculate with a compound custom field that has been named CompoundPara1.
Create a Single Injection template.
Alternatively, choose a composite group that is repeated on injections, and carry out all actions inside this group.
Create a composite group that is repeated on compounds (for example, use Compound_ID).
Inside this group, add the snippet Fields > Compound > Custom Fields. In the CustomExtractor Info dialog, click Cancel.
Save the value of this data field (that is, the entire XML string) as a CustomExtractor variable with the name para1.
Set the data field to invisible.
Below this data field, add another field for your calculation.
Use the following expression to reference the compound parameter:
=para1(GetValue("CompoundPara1"))
Instead of using a composite group that is repeated on compounds, you can alternatively use a table. The first column of this table must be invisible and contain the following expression: =Compound_CustomFields Save the expression of the first column as CustomExtractor variable. In the other columns, you can then reference the variable as described above. |