I have a data view called ‘ReportCredential’ in my PXGraph. I set ‘ReportCredential’ as a primary view for a PXFormView. Also I have a funtion called ‘reportCredential’. When the form is loading, I find the function will be called several times. Since I will call external web services in this function, I need this function to be called only once. Is there any other event handlers for the screen loading? The following is my code.
Best answer by Naveen B
You have written the view delegate i.e “reportCredential”, which will invoke multiple times when commits happened on the form document level.
Still, you can have a flag i.e. in side this viewdelegate like below, and which invoke only when you are making an API call.
public virtual IEnumerabel reportCredential()
if(Base.IsContractBasedAPI == true)
// logic here