The simplest way would be using the ContractRow variable that contains the dataset row of the selected contract. It is available in the latest Zorro beta version.