+ Start a Discussion
SjaleelSjaleel 

Custom Button related

Dear Developer,

 

I have a standard page for my object  Utilization Report, its has got a custom button that generates a document report. The button is executed by Java srcipt. The condition set for the button to generate the report is that the status on the UR page should be set to approved.

I need to add one more condtion to it that is Utilization Report is the parent  obeject for Utilization Report List Item. This list Item has few list values and data associated to it eg. Engine, APU, Landing gear,..etc. An error should be generated if the user does not create a URLI for the engine hours/cycles, APU hours/cycles, Landing gear hours and cycles, if the button is clicked . Or  is there a way to hide the send email button if no URLI was created?

 

Regards and thanks in advance

Safiya

 

Andy BoettcherAndy Boettcher

Hiding the button - not really through native code.  I would attack that one through checking for your business logic via APEX and changing record types - one layout with the button, one without.

 

-Andy