I want to associate a function to a Table box coumn. I have create a function test() with a return value Code and I have set the function as SourceExp of the column.
How can I recover the data of the table box in the function?
And how can I display the data of an array in the function into the table box.
In other words: haw can I recover or set a value of a table cell using a function? With the xy coordinates?
0
Comments
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
How can I recover the value of the the selected row and the index of the row?
My world: Dynamics NAV,SQL and .NET
CEO at Solving Dynamics
http://www.solvingdynamics.com
My world: Dynamics NAV,SQL and .NET
CEO at Solving Dynamics
http://www.solvingdynamics.com
If I put a text in a column and a variable as sourceExp, each row of the table box share the same variabile.
How can I set a different sourceExp for each row? Obviously the number of rows is dinamic.
OnAfterGetRecord()
BEGIN
var := Funtion();
END;
This has several problems:
you cannot get the value of a specific line, if you scrolldown and up the records you will get different values.
The best way is to create a field in the table and just use that field to store the value you want.
OnAfterGetRecord()
BEGIN
field := Funtion();
END;
My world: Dynamics NAV,SQL and .NET
CEO at Solving Dynamics
http://www.solvingdynamics.com
make a function Test that accepts 2 parameters:
So in the "SourceExpression" can put
This is a more beautifull way of triggering the function instead of using "OnAfterGetRecord".
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
My world: Dynamics NAV,SQL and .NET
CEO at Solving Dynamics
http://www.solvingdynamics.com
There is no on after get record for a table box if you do not link it to the main form, i.e. if you want to put a table box on a form with variable columns not belonging to the table of the main form you will not have a onaftergetrecord trigger.
My world: Dynamics NAV,SQL and .NET
CEO at Solving Dynamics
http://www.solvingdynamics.com
My world: Dynamics NAV,SQL and .NET
CEO at Solving Dynamics
http://www.solvingdynamics.com