This content has been marked as final. Show 3 replies
if I understand the question correctly,
is one of my favourite attributes when using cfinvoke
But wouldn't argumentcollection pass arguments.fieldid and arguments.field value to the 2nd method? My second method would not know what fieldid was.
arguments.fieldid could be anything for that particular data table e.g. firstname or lastname. arguments.fieldvalue holds the corresponding value of that field e.g. Dave or Phipps.
My 2nd method has arguments for firstname, lastname so argumentCollection would not fit in this situation.
Although could I use cfinvokeargument?? I'll try it in the morning! (00:22 here).
I think I have had a lightbulb moment.
Thanks Dan, you might have pointed me in the right direction!
Problem solved. I used cfinvoke to invoke the second method and then used cfinvokeargument name="#arguments.fieldid#" value="#arguments.fieldvalue#" and it works a treat!!