in a form trigger, it's better to only call a function which does your code...
BTW, declare a variable: type = record, subtype = the same record of rec.
then click view, properties on this variable and set temporary to yes.
after that you can use TRANFERFIELDS to copy all the values from your rec to the temptable and then use INSERT on the temptable.
then you can use the table like any other.
but...in which trigger you want to put your code?
-Mirko-
"Never memorize what you can easily find in a book".....Or Mibuso My Blog
in a form trigger, it's better to only call a function which does your code...
BTW, declare a variable: type = record, subtype = the same record of rec.
then click view, properties on this variable and set temporary to yes.
after that you can use TRANFERFIELDS to copy all the values from your rec to the temptable and then use INSERT on the temptable.
then you can use the table like any other.
but...in which trigger you want to put your code?
Thanks, realized it after I submitted the post.
Sometimes writing something down really helps you think.
I have called a function which takes care of everything.
Comments
BTW, declare a variable: type = record, subtype = the same record of rec.
then click view, properties on this variable and set temporary to yes.
after that you can use TRANFERFIELDS to copy all the values from your rec to the temptable and then use INSERT on the temptable.
then you can use the table like any other.
but...in which trigger you want to put your code?
"Never memorize what you can easily find in a book".....Or Mibuso
My Blog
try to search the forums, there's a lot of topic here regarding temptable.
be smart before being a clever.
Thanks, realized it after I submitted the post.
Sometimes writing something down really helps you think.
I have called a function which takes care of everything.
Thanks a lot