fgiannacchi
10th February 2023, 15:58
Hi,
I'm new about LN and I'm trying to create a calculated field that will retrieve the text from one inner field (tffam100.txta), use text.to.buf() (because the text appears as a number in the query, and I've read that the text.to.buf function is needed) and save the text in the calculated field.
It seems to not execute the .calculate() at all.
I've created other 2 calculated fields and they work correctly.
I've no idea about that.

Thanks

andreas.toepper
13th February 2023, 08:11
Try :tffam100.ctgy in the where clause. The ":" is defining the field as a "input variable" for the select statement.

fgiannacchi
13th February 2023, 08:49
Thanks for the answer. I've modified as you suggested, but the message at the top of the function is not showing. It seems like the function itself (etx.text.calculate()) is ignored. Any ideas?

ee05220
13th February 2023, 16:38
Have you confirmed properties of calculated field? For example if field name ext.text is correct...

fgiannacchi
13th February 2023, 16:50
Yes, the name is correct. Maybe I forgot something, but I've no idea

JaapJD
14th February 2023, 14:32
Isn't your field on the Configurable Fields tab (Campi Configurabili)? Field will not be calculated if it is not visible on the screen.

fgiannacchi
14th February 2023, 14:49
Thank you so much! I made the field visible and now it works! Now I've to understand how to obtain the right values and put them in the field.

Thanks again :)