I have a datawindow control named dw_1. Inside this control is a datawindow named rpt_1 and there's a computed field on rpt_1 called co_insp1.
I need to assign co_insp1 a value I calculate through an external function and the value will be different for every row. By default, I assigned co_insp1 a value of 0.
Here's my code. I'm running it in the rowretrieve event:
dw_1.Object.rpt_1.Object.co_insp1[row] = ls_inspdata
(ls_inspdata is a value I get from another function)
Can anyone tell me why I can't assign new values for this computed field?
I've also tried assigning ls_inspdata to an existing (non-computed) column:
dw_1.Object.rpt_1.Object.v_alllogs_insp_type[row] = ls_inspdata
(v_alllogs_insp_type is the column name from database)
But that gives me this error:
Is there another way to do this? I'm using PowerBuilder 12.5 .NET.
Have you tried calling your function directly from the computed field? (I'm not sure about PowerBuilder.NET, but with PowerBuilder Classic, this was possible.)