AnsweredAssumed Answered

onobjectvalidate (?) validating against parent fields

Question asked by PaulSmith on Dec 7, 2010
Latest reply on Dec 7, 2010 by FentonJones

Title

onobjectvalidate (?) validating against parent fields

Post

Greetings,

Consider the following:

customer::templateIDfk

template::idpk

template::description

template::validfrom (date)

template::validuntil (date)

I'm using a popup to select the template on the customer record.

I need to validate whether the validfrom>currentdate or validto<currentdate and display a message. The message is just a warning, so it can ultimately be.

My problem is that if I use the onobjectvalidate trigger the related record in the parent file (template) hasn't been retrieved yet, so I can't check the dates.

I know it's something simple, could someone please point me in the right direction of forcing the parent record to load?

Many thanks (again)

Paul

Outcomes