Contract [ast_contract] - Parent children fields dependent on Record Producer

hongsok
Tera Contributor

Hello,

I have a question regarding the Parent Contract number and Child Contract number on a Record Producer.

I have two variables on my Record Producer:

  1. Parent Contract number – Reference field (Contract [ast_contract])

  2. Child Contract number – Reference field (Contract [ast_contract])

My question is: How can I set the Advanced Reference Qualifier on the Child Contract number to depend on the selected Parent Contract number?

 

Regards,

Hong

 

1 ACCEPTED SOLUTION

It is working as expected on my side.
Please share an updated screenshot after applying the new filter.
The filter must be:
image.png

If this response was helpful, please consider marking it as Correct and Helpful. You may mark more than one reply as an accepted solution

View solution in original post

8 REPLIES 8

Huynh Loc
Mega Sage

Hi @hongsok ,

Please update the reference qualifier for the Child Contract to:
javascript:
parent_contract = current.variables.<technical_name_of_parent_contract_number_variable>.

If this response was helpful, please consider marking it as Correct and Helpful. You may mark more than one reply as an accepted solution



Hi @Huynh Loc ,

 

 

Thanks for the quick response. Since this is a record producer, I tried both of the following options, but neither worked.

javascript&colon; parent_contract = current.variables.contract_number
javascript&colon; parent_contract = current.producer.contract_number

Note: On the record producer, contract_number is the parent variable, and related_project is the child variable.

Hi @hongsok ,
Please share a screenshot which are you configure now.

Here is the Parent Variable:

hongsok_0-1774549207903.pnghongsok_1-1774549225652.png

Here is the Child Variable:

hongsok_2-1774549252866.pnghongsok_3-1774549267137.png