tays01s

Reset field and update evaluation2

Discussion created by tays01s on Sep 21, 2015
Latest reply on Sep 21, 2015 by tays01s

Followng: Reset field and update evaluation

I'd got the script:

 

Set Field [ Patient::IO_n; IO 2::__ID ]
Set Variable [ $nutcalc_ioID; Value:Patient::IO_n ]

Commit Records/Requests [ No dialog ]

Go to Layout [ “Nut_calcs” (Nut_calcs) ]

Go to Record/Request/Page [ First ]

Loop

Set Field [ Nut_calcs::_IDIO; $nutcalc_ioID ]

Set Field [ Nut_calcs::Nut; Evaluate(Nut_eqs::Nut) ]

+ some other fields

Go to Record/Request/Page  [ Next ]
Exit Loop If [ Nut_calcs::__IDnuts=52 ]

 

 

working well, but on adding a new IO record, the scipt blanks all fields except the initial: Set Field [ Nut_calcs::_IDIO; $nutcalc_ioID ].


Relationships:

Patient::IO_n = IO 2::__ID

Patients < Calc < IO < Nut_calcs > Nut_eqs.

 

I puzzled the first 'Set Field' works, but suddenly none of the others do.

Outcomes