Business Process Flows - TypeScript methods extensions #32
DejWass
started this conversation in
Troubleshooting Guide
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi fellas,
in past few days I struggled a lot with one bug on our Real Estate client.
I needed to hide field Agent when value of the field Direct is equal to Yes.
The issue was that it was not working in all cases and I was not able to found out why.
I had to use TS method to hide the field Agent. You probably know that when you try to getControl of an attribute in BPF you will use header_process_ prefix.
This method was working fine except situation when I had BPF from Lead to Opportunity. This BPF has 4 branches and that was causing the issue.
The attribute Agent is there 4 times. It means that when I am trying to get control header_process_ in this BPF it will get only the first one. Because of that this method was not working:
Those "duplicated" attributes are added with this suffix:
It means that the method have to be defined this way to access all attributes:
This bug really haunted me for a while. If you have similar issue you will probably have to use Console (F12) to access those duplicated attributed since you cannot find them in source control.
Simply open Console and write command:
You will get all controls on the page:
Beta Was this translation helpful? Give feedback.
All reactions