1 of 1 people found this helpful
instead of two layouts, one for status a and one for status b just use one layout with buttons or exposed scripts that perform a scripted find to show status a or status b
enter find mode
set status field = a
set error capture = on
set error capture off
If ( get( FoundCount) = 0 then...
ps it is good practice to turn quick find off for fields that you do not want to actually include when a user does quick find.
turning quick find on causes an index to be built for the field and can cause file size to grow when not necessary.
Only set quick find for what you know your users will need on any given layout.
Since you have a relationship, you can also use Go To Related Records. And you still won't need more than the one layout.
Sorry should have clarified I was wondering if this could be done without a script.
Script is not required but then use of Find mode IS required.