how can i input a query to a function in a component

Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.

  1. #1

    Default how can i input a query to a function in a component

    Hey All,
    i wanna input a query to a component, but everytime i do this it gives an
    error " u can not convert complex values to simple ones".
    i tried Ben forta's solution in advanced techniques , by making the function
    acces = Remote using the follwoing
    <cfinvoke method="DoSomething" returnvariable = "outputdata"
    arguementcollection = "inputstruct" ......>.

    The problem is i could not understand how to insert the query as an input in
    the previous syntax , & what is the point of argumentcollection , & should i
    add inputstruct= "#myquery#" to the previous piece of code?
    i would appreciate ur help alot
    Zonzy


    Zonzy Guest

  2. Similar Questions and Discussions

    1. #39143 [NEW]: prepared statement with input parameters and db function fails
      From: aspen dot olmsted at alliance dot biz Operating system: Windows XP SP2 PHP version: 5CVS-2006-10-13 (snap) PHP Bug Type: ...
    2. cfmail query using form for input of message
      There must be a way to do this--to search for a group who is to receive the email, let a user create a form message, and send to all those users....
    3. Component function returntype as component name.
      How does the returntype as a component effect the function and the actual return? Is this the same as extending another component? Can someone...
    4. function for capturing form input won't return anything
      I've this function, which is the method of a class. I'm posting the constructor of the class down below. For some reason, when I fill out a form...
    5. BCP query out executed by xp_cmdshell works fine from query analyzer but fails from VB Component
      Hi all, I have a stored procedure which returns a vast number of record and i have to write the output into a csv file. I'm using BCP utility to...
  3. #2

    Default how can i input a query to a function in a component

    Hey All,
    i wanna input a query to a component, but everytime i do this it gives an
    error " u can not convert complex values to simple ones".
    i tried Ben forta's solution in advanced techniques , by making the function
    acces = Remote using the follwoing
    <cfinvoke method="DoSomething" returnvariable = "outputdata"
    arguementcollection = "inputstruct" ......>.

    The problem is i could not understand how to insert the query as an input in
    the previous syntax , & what is the point of argumentcollection , & should i
    add inputstruct= "#myquery#" to the previous piece of code?
    i would appreciate ur help alot
    Zonzy


    Zonzy Guest

  4. #3

    Default Re: how can i input a query to a function in a component

    Argument collection is a short hand way to pass a structure containing all the
    arguments for a function.

    Imagine you have a functon that wants 3 arguments Fname, Lname and Location.

    If you create a structure that contains those EXACT variables you can then
    pass the structure instead of the indivdual arguments.

    Stressed_Simon Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139