Struggling with array notation when converting to cfqueryparam

I'm checking through some old code, tidying it up a little and making sure everything is using cfqueryparam - I've got the following bit of code and not sure what to do with it - I know cf_sql_array is available but I can't find any examples of information on it (or if that's exactly what I should be looking at):
<cffunction name="myfunction" access="public" returntype="void" output="false">
           <cfloop index="i" list="#visualList#">
               <cfif form["visual" & i] neq "NA">
              <cfquery name="assetVisualCheck" datasource="#APPLICATION.Config.dbdsnd#" username="#APPLICATION.Config.dbuname#" password="#APPLICATION.Config.dbpass#">
                    INSERT INTO assetVisual
                    (visualAssetID, visualBy, visualDate, visualResult)
                    Values ('#i#', '#cgi.REMOTE_USER#', now(), '#form["visual" & i]#')
                </cfquery>
                </cfif>
</cfloop>
</cffunction>
list="#visualList#" should be a straightforward swap, #i# and #cgi.remote_user# don't need binding
'#form["visual" & i]#' is the bit I want to make sure is right. #form.visual1# is a "P", "F" or "X"
Am I overthinking this and it should just be
<cfqueryparam cfsqltype="cf_sql_char" maxlength="1"
value="#ARGUMENTS["visual" & i]#"

Arguments will be passed from elsewhere and will replace the values sent from the current FORM.
I want to make sure I'm on the right track before I start disassembling the code to move it to arguments

Similar Messages

  • Problem with Euro sign when converting it into PDF Format

    Hi all,
    i am facing problem with Euro (u20AC) sign,
    it is displayina s #
    when converting one smartform into PDF format.
    Can any body sugest me in doing this??
    it is appriciable if any body can help m??
    thanks in advance
    Regards,
    Srikanth.

    Hi Srikanth,
    I think I'm facing the same issue as you. I looked at the note 323736 but my system seems to be up to date (at least for this issue). I have SAP_BASIS release 700.
    Did you upgrade your system ? Did you do something else ?
    Thanks for your help.
    Best regards,
    Pierre

  • Array dimensions when converting from a cluster

    Hello,
    I am a beginner Labview programmer. Right now I am working on a VI
    that converts a portion of cluster data to an array of tables. The
    cluster is loop tunneled into a for loop then unbundled. I then build
    it into a 2D array. When I hand the data back out of the for loop the
    array dimensions are the same size. i.e. If the 2D arrays were 2x7 and
    2x6 going in then going out I have both as 2x7's. This happens right
    at the exiting loop tunnel (I suppose when it initializes the 3D
    array). This places zeros in the last row of my 2x6 array. Can anyone
    suggest a fix. Thanks a bunch.
    Peter.

    Hi, Peter:
    I think you want to have an array of different row sizes. I think it's impossible in LabView. At least using only arrays and without clusters.
    And as all rows have the same number of elements, undefined elements get default value. In case of numerics, zeros.
    You could create an array of cluster elements, and each element be an array 2D. Then each element can be an array of different sizes.
    But that's just what you had at start.
    Aitortxo.
    Aitortxo.

  • Problems with Capture Date when converting from PSE9

    I'm trying to troubleshoot a problem I'm having when converting my PSE9 catalog to LR3.4. Specifically, about 20% of my images (abouit 2,500 out of 12,000) didn't import with capture dates. I can clearly see the correct capture dates in PSE9 Organizer, but when I view the same imported images in LR3.4, there is no date. This occurs with dates that I've modified in PSE9 as well as dates straight out of the camera.
    This is a major problem for me because I'm used to organizing my photos in PSE9 using capture dates. On a related note, PSE9 allows you to set the capture date to a known year and unknown month, day, and time, but when imported into LR3, these dates are converted to Jan 01 of the known year. Sorry, but Jan 01 is not the same as unknown. Is there a way to correctly display unknown portions of a capture date in LR3 similar to the way it's displayed in PSE9?
    Sorry if this has been discussed before.

    How did you convert your catalog?  Did you use File > Upgrade Photoshop Elements Catalog, or did you use File > Import Photos?  You should use the former; the latter has many problems, among which PSE doesn't always correctly write medata (e.g. capture dates) into files. If you used File > Upgrade Photoshop Elements Catalog, post an image here and we can take a look at its metadata to troubleshoot.
    function(){return A.apply(null,[this].concat($A(arguments)))}
    On a related note, PSE9 allows you to set the capture date to a known year and unknown month, day, and time, but when imported into LR3, these dates are converted to Jan 01 of the known year.
    Even though Adobe's XMP metadata standard allows for unknown month, day, or time, most programs including LR don't support it -- PSE is the only program I know of that does (and it has problems).  I use the conveniton of 1/1 12:00:00 to represent unknown values.
    See this FAQ for other issues with converting PSE catalogs to LR:
    http://www.johnrellis.com/psedbtool/photoshop-elements-faq.htm#_Converting_to_Lightroom

  • A better way to deal with lost hyperlinks when converting Robohelp to Printed doc?

    I have inherited a 750-page manual that is
    "single-sourced" in RoboHelp X5. When I generate printed
    documentation, all of my hyperlinks and converted to plain text.
    Everytime we release a new version of the manual with any changes,
    we have to re-generate, and then manually go into the MS-Word
    converted document and re-create some 350 hyperlinks and page
    number references. Somebody please tell me that there is a better
    way to do this, or a better tool to manage single-source
    documentation.

    Another post has been raised relating to this problem. See
    http://tinyurl.com/yvpaut
    I am replying here is this is where most of the relevant
    information is.
    You found that using the Style Mapping template solved the
    images problem but the document stopped generating at 450 pages.
    That was sort of what I hoped for. Rather than go to the step I
    will suggest in a moment, I suggested you try something else but
    you never came back to the forum to indicate you had tried it, so
    the assumption is you did and it worked. Patently it did not so
    let's try what I would have suggested next.
    On my website there is a topic on Print Issues and one of the
    them covers Malformed Topics. Try looking for <p
    style="mso-bookmark: as suggested in my earlier reply in this
    thread. You can try RH's Multi file find and replace but FAR from
    http://www.helpware.net/FAR
    may get better results. I think with this error you usually get a
    message. Do you have the Output pane opened and have you read right
    through it for clues? View | Output on the menu. Whether or not the
    Output pane mentions this error, I would search for it anyway.
    Other Points:
    A] It could still be a resource problem. The document is very
    large so, as Harvey mentioned, resources come into it. I know the
    PCs that won't play nicely have good resources but whilst I am no
    expert in this area, don't foget XP is using more of them leaving
    less available to you. It could be an issue but I am inclined
    towards it being something else.
    B] I also suggested a hunt for a rogue topic.
    "What I would try is copying your layout so that you have
    three versions of it. Then delete two thirds from each one. If all
    three work fine, it sort of confirms that size is a problem. If one
    fails, your on the track of the rogue topic."
    Did you try that? Like I said, if all three work fine, then
    we are back with the resource problem but we will have ruled out
    other issues. It should take less than fifteen minutes to set that
    up. Longer to run it but you can be doing something else at that
    point.
    C] On FrameMaker, no real answer but you will soon see
    evidence that Adobe are continuing to better integrate all the
    products we are using. I don't think you will see what you want in
    the upcoming version though.
    NEXT:
    1] Please search for <p style="mso-bookmark:
    2] If that fails, try creating the three layouts.
    3] Then post back how it went. If unsuccessful, tell us if
    the Output pane gave any information about things the process did
    not like.
    Let us know either way as if one succeeds and you post that,
    it helps the next person with the same problem.

  • Problem with image location when converting word document to pdf

    Hello all,
    I am new to all this and this question may be already answered, but when I try to convert a word (2003-2007) document containing images (inserted photos) into a pdf document using Adober Reader 8, the images are moved from their original location and the size and ratio are changed.  Is there either a process for preserving the images as they are in the word doucment or a way to fix the problem?  Thanks for any help you can give.
    Regards,
    Rose

    Really not sure what you are trying to do since you can not import images into Reader. Since Reader can not create PDFs, we are at a loss of your problem. If you mean Acrobat, then tell us exactly the steps you are using to create the and what versions of both programs Like AA8.1., WORD 2003 (possibly release also) or WORD 2007. The different versions of WORD also also interact with Acrobat differently.

  • Problem with ChemDraw structures when converting word doc to pdf

    I am trying to convert a word document with ChemDraw structures in it to a pdf.  When it converts, I doesn't hold the chemical structures together.  Is there a quick solution?

    Bill@VT wrote:
    I realize that many word processors have an option to turn off the printer metric use. I finally found it in OFFICE 2007 and it is indeed off. It is not off in OFFICE 2003. Though it is available to folks, it is far from an obvious option in WORD. In the word processor I use it is NOT an option and there is actually a warning in the help about the printer metrics. The fact that there may be a switch in a package is not a given and the information I provide is not incorrect, though adding a comment about a switch option is reasonable.
    Yes it's on in prior versions that wasn't ny uncertainity. I wasn't positive it was off in Office 2007. Why do you make a strawman argument over something that isn't the point of contention ? <sigh>
    You were incorrect. Printer Metrics is the only answer because it's a global switch. You're not helping by telling people to use a solution that's not permanent. It's a clumsy hack.

  • Problem with logo size when converted to eps

    I am brand new to Illustrator. I have created a logo and converted it to an eps file. My problem is that when I use the logo, it is a big square with a lot of empty space on the bottom. I sized the art board to the area around the logo but when I convert it I still get this big square with the logo on the top part when I paste it into my word document. How do I get it cropped down to the correct size. I have someone waiting for this and I can't even get it in a format they can use.

    Sounds like there is a hidden element somewhere forcing the entire document to wherever that element is, even outside the artboard.  Just a hunch.  Do a Command Y ( Mac ) or Control Y ( PC ) to see outlines.  Then, do a "Select All" and see if the element shows up anywhere.  Find it and delete it.  Now, maybe there is no hidden element.  This is what I do for every logo I've prep'd:  A.) if the artwork is 2" h x 3" w ( hypothetically speaking ), set your artboard size to 3 x 5.  Set an imaginary holding line to the 3x5 size by applying a rectangle 3x5 with no stroke and no fill > then Lock it ( Object > Lock selection ).  You may benefit by Exporting the artwork as an RGB .tiff and using that in Word.  However, you can import or insert an .eps in Word, but whatever works better.  Hope this helps.

  • Problems with Array-Parameters when using Document-Binding

    Hi,
    I use the following environment:
    JDeveloper 11.1.1.3.0
    WLS 10.3.3.0
    I created a small EJB (2.1), containing a simple method, which is using arrays as parameters:
    public String doTestArray(String[] aStringArray, int[] aIntArray)
    throws RemoteException;
    I exposed this EJB as a Webservice using JDev's Webservice wizard. I choosed Document/Wrapped-Binding. WSDL and mapping file are being generated. Made an EAR-Deployment-Profile and deployed the application to Integrated-WLS.
    I tried to test the Webservice with the WLS integrated test client, which is generating the following request:
    <doTestArrayElement xmlns="http://model/types/">
    <!--Zero or more repetitions:-->
    <arrayOfString_1>string</arrayOfString_1>
    <!--Zero or more repetitions:-->
    <arrayOfint_2>3</arrayOfint_2>
    </doTestArrayElement>
    Unfortunately, the invokation fails. WLS returns
    weblogic.wsee.codec.CodecException: Failed to decode message
    at weblogic.wsee.codec.soap11.SoapCodec.decode(SoapCodec.java:188)
    at weblogic.wsee.ws.dispatch.server.CodecHandler.decode(CodecHandler.java:139)
    That only happens in methods, which use array-parameters. Simple parameters are no problem.
    However, when I use RPC/Encoded as Webservice-Binding, everything seems to be fine.
    Does WLS have problems in general using array-parameters and Document-Binding?
    Any help would be appreciated.
    Thanks,
    Stefan

    Hi Josko,
    Where do you have this problem 3.5 or 7.0 BexAnalyzer.
    When ever heirarchy icons are created in BEx, respective hyperlink is assigned to each of them, Make sure that you dont manipulate with them,,
    If you still have problem then create OSS message.
    Regards,
    Vinay

  • Problem with page size when converting spool to PDF

    I have a SmartForm invoice which is formatted perfectly when I print it using the printer options specified when I open the form. However, when I send the output to spool, convert it to PDF using FM CONVERT_OTFSPOOLJOB_2_PDF, then print to the same printer, the format is not correct.
    The PDF generation feature treats the page (standard letter size, portrait) as too large and shrinks the output to fit the page. It scales the entire invoice down by about 1/4 inch, which throws off our mailing envelope.  If I change the page scaling option of Adobe Reader to 'None', my invoice is scrunched up into the top left corner of the page.
    My page format is LETTER Portrait.
    Any help or suggestions will be appreciated. Thanks.

    hello see the sap note 843480

  • How to deal with digital signatures when converting messages?

    Hi there,
    this it not (yet) about the actual implementation. It's more of a logical problem that I'm facing.
    There are two partners A and B. A is sending an EDIFACT document which is digitally signed to B.
    B has a XI instance that is converting all incoming messages into IDocs, in this particular case INVOIC. This IDoc is received by the R/3 system.
    All invoices must be archived due to an eventual tax inspection.
    In order to fulfill the security requirements all archived data must be digitally signed.
    So far so good.
    I guess I'm not allowed to sign my invoices with my own private key due to the fact that i could alter the containing data and sign it again.
    It's obvious that I cant apply the digital signature from the EDIFACT message to my IDoc because the data has changed and therefore the signature is invalid.
    The only solution to this problem, that I can imagine, is to archive EDIFACT alongside IDoc.
    Have you experienced a similar problem or do you have any other idea in order to solve this issue?
    I hope my problem is well defined.
    Any comment is appreciated.
    Thanks in advance
    Bastian Stratmann

    Hi Bastian,
    it is not possible to separate the signature from the document signed.
    The system A generates and EDIFACT message -> A has the responsibility on this message and so A sign it.
    XI manipulate the message received from A, that means XI generates a new message. -> XI has the responsibility on it, so if you want a signature this should be generated by XI.
    As the IDoc was generated by XI it cannot be signed by A (neither technically nor logically) because A has no responsibility on it.
    XI <b>is</b> altering the message so XI is responsible for it.
    In this case you have to store both the EDIFACT message and the IDOC and maybe sign this new document (EDIFACT+IDOC) with XI signature .
    Kind Regards,
    Sergio

  • Problem with array param when calling a webservice from a BPM Process

    Hi. I have a web service and uses an array as parameter.
    The array (named "atributos") as part of a business object is defined here:
    <xs:schema targetNamespace="http://xmlns.oracle.com/bpm/bpmobject/DataTypes/TrackPCPDOTrans" ...>
    <xs:complexType name="TrackPCPDOTransType">
    <xs:sequence>
    <xs:element name=... />
    <xs:element name="atributos" nillable="true" type="ns2:AtributosType" maxOccurs="unbounded"/>
    </xs:sequence>
    </xs:complexType>
    <xs:element name="TrackPCPDOTrans" type="TrackPCPDOTransType"/>
    </xs:schema>
    <xs:schema targetNamespace=... >
    <xs:complexType name="AtributosType">
    <xs:sequence>
    <xs:element name="key" nillable="true" type="xs:string"/>
    <xs:element name="value" nillable="true" type="xs:string"/>
    </xs:sequence>
    </xs:complexType>
    <xs:element name="Atributos" type="AtributosType"/>
    </xs:schema>
    In the service task activity, I pass the params to the web service:
    "descripcion" --> TrackPCPDOTrans.atributos[1].key
    DataObject.descripcion --> TrackPCPDOTrans.atributos[1].value
    "estado" --> TrackPCPDOTrans.atributos[2].key
    DataObject.estado --> TrackPCPDOTrans.atributos[2].value
    "justificacion" --> TrackPCPDOTrans.atributos[3].key
    DataObject.justificacion --> TrackPCPDOTrans.atributos[3].value
    But when I test the process, an error ocurrs:
    <auditQueryPayload auditId="8712004" ciKey="380019">
    <dataState>
    <dataObject name="FaultMessage" isBusinessIndicator="false">
    <value> oracle.bpm.bpmn.engine.model.runtime.microinstructions.TrappableException: faultName: {{http://schemas.xmlsoap.org/ws/2003/03/business-process/}selectionFailure} messageType: {{http://schemas.oracle.com/bpel/extension}RuntimeFaultMessage} cause: {faultName: {{http://schemas.xmlsoap.org/ws/2003/03/business-process/}selectionFailure} messageType: {{http://schemas.oracle.com/bpel/extension}RuntimeFaultMessage} parts: {{ summary=<summary>empty expression result. The expression bpmn:getDataInput('trackPCPDOTrans')/ns:atributos[2]/ns1:key is empty. An attempt to read or copy data referenced or computed by the XPath expression either had invalid data, according to the XML schema, or did not contain certain optional data. Ensure that the variable or expression result named in the error message is not empty. Enable XML schema validation of related data elements to ensure the run-time data is valid. </summary>} } </value>
    </dataObject>
    </dataState>
    </auditQueryPayload>
    What is wrong?
    Thanks for your help.

    I did the assignment in XPATH:
    oraext:parseXML(concat('<AtributosTracking xmlns="http://xmlns.oracle.com/bpm/bpmobject/DataTypes/AtributosTracking">
    <arrayAtributosTracking>
    <key xmlns="http://xmlns.oracle.com/bpm/bpmobject/DataTypes/Atributos">','descripcion','</key>
    <value xmlns="http://xmlns.oracle.com/bpm/bpmobject/DataTypes/Atributos">',bpmn:getDataObject('DataObjectDDSAO')/ns:descripcion,'</value>
    </arrayAtributosTracking>
    <arrayAtributosTracking>
    <key xmlns="http://xmlns.oracle.com/bpm/bpmobject/DataTypes/Atributos">','estado','</key>
    <value xmlns="http://xmlns.oracle.com/bpm/bpmobject/DataTypes/Atributos">',bpmn:getDataObject('DataObjectDDSAO')/ns:estado,'</value>
    </arrayAtributosTracking>
    </AtributosTracking>'))
    AtributosTracking.xsd:
    <?xml version="1.0" encoding="UTF-8"?>
    <?bpmo version="11.1.1.6.0.15.53" build="15.53" fullName="DataTypes.AtributosTracking" modifiers="268435456"?>
    <xs:schema targetNamespace="http://xmlns.oracle.com/bpm/bpmobject/DataTypes/AtributosTracking" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://xmlns.oracle.com/bpm/bpmobject/DataTypes/AtributosTracking" xmlns:ns1="http://xmlns.oracle.com/bpm/bpmobject/DataTypes/Atributos" xmlns:bpmo="http://xmlns.oracle.com/bpm/bpmobject/" >
    <xs:import namespace="http://xmlns.oracle.com/bpm/bpmobject/DataTypes/Atributos" schemaLocation="Atributos.xsd"/>
    <xs:complexType name="AtributosTrackingType">
    <xs:sequence>
    <xs:element name="arrayAtributosTracking" nillable="true" type="ns1:AtributosType" maxOccurs="unbounded"/>
    </xs:sequence>
    </xs:complexType>
    <xs:element name="AtributosTracking" type="AtributosTrackingType"/>
    Atributos.xsd:
    <?xml version="1.0" encoding="UTF-8"?>
    <?bpmo version="11.1.1.6.0.15.53" build="15.53" fullName="DataTypes.Atributos" modifiers="0"?>
    <xs:schema targetNamespace="http://xmlns.oracle.com/bpm/bpmobject/DataTypes/Atributos" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://xmlns.oracle.com/bpm/bpmobject/DataTypes/Atributos" xmlns:bpmo="http://xmlns.oracle.com/bpm/bpmobject/" >
    <xs:complexType name="AtributosType">
    <xs:sequence>
    <xs:element name="key" nillable="true" type="xs:string"/>
    <xs:element name="value" nillable="true" type="xs:string"/>
    </xs:sequence>
    </xs:complexType>
    <xs:element name="Atributos" type="AtributosType"/>
    </xs:schema>
    But a new error occurrs when I run the BPM process:
    <auditQueryPayload auditId="8724004" ciKey="380025">
    <dataState>
    <dataObject name="FaultMessage" isBusinessIndicator="false">
    <value> oracle.bpm.bpmn.engine.model.runtime.microinstructions.TrappableException:
    faultName: {{http://schemas.xmlsoap.org/ws/2003/03/business-process/}selectionFailure}
    messageType: {{http://schemas.oracle.com/bpel/extension}RuntimeFaultMessage}
    cause: {faultName: {{http://schemas.xmlsoap.org/ws/2003/03/business-process/}selectionFailure}
    messageType: {{http://schemas.oracle.com/bpel/extension}RuntimeFaultMessage}
    parts: {{ summary=<summary>XPath query string returns multiple nodes.
    The assign activity part and query bpmn:getDataObject('AtributosTracking')/ns:atributosTracking are returning multiple nodes.
    The assign activity part and query named in the error message returned multiple nodes. It should return single node.
    According to BPEL4WS specification 1.1 section 14.3, the assign activity part and query named in the error message should
    not return multiple nodes. Verify the part and xpath query named in the error message at line number -1 in the BPEL source. </summary>} } </value>
    </dataObject>
    </dataState>
    </auditQueryPayload>
    Any idea?
    Thanks
    Edited by: César on 10/01/2013 11:02 AM

  • Problems with some photos when converting Publisher files to PDF using Acrobat 9

    I tried to make a pdf of a publisher document that has a number of photographs. Two of the photographs appear grey with streaks -looks like some of the colours are not converting properly. The same document works fine with Acrobat 8 but not with version 9. Anybody have this experience?

    Graffit's suggestion did not work for me.
    I work for the Ontario government, and we are still using Office 2003. I am not sure what version of 9 we are using as we get bulk licences to use the program. I only got the program in August 2010. I used the default settings in the program.
    I try to open the publisher document in Adobe. I have also tried opening the publisher document, then converting it to the PDF. Both have two of the photos that don't convert properly. The other photos are fine.
    The two photos in question were given to us by the Communications department. I don't have the originals. The photos were copied from other document. I don't know what the format of the orginal photos were. The person in Communications has not responded to my request yet.

  • Illustrator images with jagged edges when converting a document to pdf

    Hi,
    Illustrator CS6.
    I created some images in illustrator. Saved the images as a .tff. Put the images in a Word.docx. Looks great. Convert the word.docx to a pdf and my images have jagged edges. I have anti-alaising check in my preferences but still the image looks bad.
    Any suggestions?
    thanks

    Did you resize the images larger than when inserted into Word?
    What resolution did you export the TIF from AI at?
    What was the Anti-aliasing setting (type or art optimized or none)?
    Are you using Word's Save As PDF, or the Adobe Acrobat add-on?
    Are you viewing the result in Acrobat (or Adobe Reader) at 100% or larger?
    Mike

  • QT7Pro - Movies convert with no sound when converting to iPod

    I bought QT7Pro last night, wanting to convert movies (.avi and .mpg) I have on my computer. They play and have sound in QT just fine, but when I go to convert them to MPEG-4 or convert for iPod, the options claim to have no audio track and it winds up being a silent video. How can I convert my movies without losing the sound on them?

    QuickTime Pro doesn't (can't) export audio from muxed files (MPEG 1 or 2 and Flash).
    Use other software to export those formats to the iPod settings. A quick search through the iPod discussions pages (now over one million views) will give you some software ideas.

Maybe you are looking for

  • Upgrade cs5 to cs5.5

    how do i upgrade CS5 to CS5.5 on a mac I have the application already

  • Why does my iChat require a login keychain?

    there's this thing that comes up whenever i try to login "messages can't log in to (my username) because your login ID or password is incorrect". It then prompts me to fill out a password. I have tried entering my apple ID, my actual computer passwor

  • Error: "We had difficulty downloading episodes from your feed." I don't see what I've done wrong?

    When I try to submit my podcast I receive the error "We had difficulty downloading episodes from your feed." I don't understand what's wrong. My feed is "http://sleuthcast.tumblr.com/rss".

  • Can't open the Toolroom Ten booklet!

    I can't open the Toolroom Ten iTunes booklet! I re-downloaded several times, but the Adobe Reader said: "Adobe Reader could not open 'iTunes Booklet - Toolroom Ten.pdf' because it is either not a supported file type or because the file hase been dama

  • Regarding the FM and FG in a Transport Request

    hI Experts, I have created a Function Module and make some changes in the Function Group but in the Transport Request i see that i have only Function Group only. Is Function group automatically contain the function module.? Regards, RG