tmannais
21st August 2018, 04:54
Hi,

I am using Extension Calculated Fields to get description from a CDF (See attached image) then I set the calculated field to have its value be the same as the description found.
When the record is found, the calculated field is not updated right away. I have to press Tab over the last field in the session in order to make it display the correct value. Please help.

giggty
21st August 2018, 09:12
Mm, have you tried calling display("ext.cpcl.dsca") afterwards? Just a guess.

JaapJD
21st August 2018, 11:01
Did you install solution 1985278 already? Seems that KB 1972054 solves your problem.

tmannais
23rd August 2018, 07:09
@giggty display("ext.cpcl.dsca") does not work. It even gives errors and causes the session to unable to open.

@JaapJD I followed the KB you mentioned and installed the solution needed. However, the problem still persists.

Ajesh
3rd September 2018, 13:24
Can you put it in Debug and check the value? Does the value gets assigned the first time?

tmannais
3rd September 2018, 13:58
No. It seems like the hook gets executed (this is where the value gets assigned) only when I press Tab over the last field.

Ajesh
4th September 2018, 10:15
I tried your exact same scenario but in my case the Value does gets assigned the first time..

Try adding find.data before or after the execution....

tmannais
4th September 2018, 11:17
Adding Execute(find.data) before the execution gets this error "Fatal Error : Function 'ext.fld.hook.exec': recursion not possible; refcount=2." and the session is forced to close. Adding the same to after the execution makes the session unable to open giving out errors.

The situation of mine has 3 CDFs. Each of them does the same thing, which to query and find the description of its own field. Only the first and the second CDFs are having the problem because they are not the last field. With that being said, only the last CDF works fine because when I press Tab over it, all of the CDFs gets updated to the correct value/description because the hook is executed only at this moment.

JaapJD
4th September 2018, 12:18
An execute of find.data on field level will never work.

I really don't understand. 1972054 fixed it for me (in tools 10.6).

tmannais
4th September 2018, 12:42
1972054 has already been installed but it still doesn't work.