Why is the number 2 displayed?

Hi all,
I´m confused trying to work out why the code arg2 in
hash signs displays the number 2? I can´t see a 2 anywhere- Is
the fntest doing a len function? Thank-you very much

<CFFUNCTION NAME="fnTest" OUTPUT="YES">
<CFARGUMENT NAME="arg1">
<CFARGUMENT NAME="arg2">
#arg2#
</CFFUNCTION>
<cfoutput>#fnTest[1,2]#</cfoutput>
This code produces an error, as it should. Coldfusion
complains of an "Invalid CFML construct found on line 9 at column
20.". The offending line is the cfoutput line.
As Dan rightly hinted, you shouldn't call a function with
square brackets, but with normal brackets, so: fnTest(1,2) or
fnTest(arg1=3,arg2=5) or fnTest(arg2="myVar") ,..., and so on. The
last example, where just one variable is passed, is possible
because arguments are optional by default. However, we cannot do
fnTest() because the function explicitly requires arg2.

Similar Messages

  • In the info bar at the bottom of the iphoto window, why is the number of items different from the total

    In the info bar at the bottom of the iphoto screen, why is the number of items different from the total?

    What version of iPhoto and system are you running? What mode are you in, i.e. Events, Photos?
    If it's the Photos mode the number at the bottom will represent the number of photos displayed in that mode or the number of photos selected in that mode. The number will match the number next to the photos mode only when there are no photos in that mode that are selected. 
    If you click on the Events icon and then back on the photos icon the numbers should match.
    OT

  • Why do the number of active JMS connections increase?

    <strong>Problem</strong>
    - Number of active JMS connections and current JMS messages increases until the Weblogic instances crash with an OutOfMemory exception
    <strong>Setup</strong>
    - Weblogic v9.2.3, Cluster with 4 Nodes
    - A JMS Message is sent from a MDB in Weblogic to a distributed queue which has a member on each of the 4 Weblogic nodes. The session is created as follows session = connection.createSession(false,Session.AUTO_ACKNOWLEDGE), the message delivery mode is set programmatically to persistent and the delivery mode override of the queue setup is set to persistent too
    - Standalone JMS client processes: each one is attached to <strong>all</strong> 4 nodes. Each one uses a unique JMS message selector so that we have more than one queue consumer for one queue but every message is exactly dedicated to one queue consumer. We us weblogic.jar for the clients.
    - Use of Weblogic auto reconnect feature. JMS client code:
    Connection connection = this.connectionFactory.createQueueConnection();
    final WLConnection wlconnection = (WLConnection)connection;
    wlconnection.setReconnectPolicy(JMSConstants.RECONNECT_POLICY_ALL);
    wlconnection.setTotalReconnectPeriodMillis(-1);
    wlconnection.setReconnectBlockingMillis(-1);
    <strong>Remarks and Questions</strong>
    - There are no pending JMS messages which is good
    - In our setup, each JMS client is connected to all 4 nodes as the messages are not distributed to all nodes: if a message is put to Queue A but the client is only connected to Queue B, the message is NOT transfered from Queue A to Queue B. We set the parameter "Forward Delay" to 5 seconds with no effects. Is this the normal behavior?
    - Not all JMS clients are visible in the Weblogic console under JMS Services -&gt; JMS Servers -&gt; [Server] -&gt; Monitoring -&gt; Active Connections. Which one are visible? Which one are not visible? There are also clients where the number of connections is not zero but stays constant; we know that as several independent clients on different hosts are started and the IP adress is visible in the Weblogic console. Why....?
    - What reasons can lead to increasing connections? Is this due to client or server problems? Do we have to acknowledge the message in the onMessage(Message) method of the client JMS consumer? So far as I know, we don't have to.
    - Are the increasing number of current messages due to the increasing number of JMS connections?
    - May the RECONNECT_POLICY_ALL policy produce this problem?
    Any hint is appreciated.
    Peter
    Edited by: pkeller on 23.10.2008 17:08

    To answer the question about the forwarding of messages from one queue to another myself: As mentioned at http://forums.bea.com/thread.jspa?threadID=400000611, the forwarding for queues does only work if all queue consumers are attached to the same queue. This means that our setup is OK.
    But the main question is still unanswered: why do the number of active JMS connections increase? I forgot to mention that
    - all messages arrive at the clients and that no exceptions are visible in the log
    - if you kill the client, the connections are still visible in the Weblogic console!?
    Please help as this problem is very urgent.
    Peter
    Edited by: pkeller on 24.10.2008 09:06
    Edited by: pkeller on 24.10.2008 09:10

  • Why must the number of states on all pages be equal?

    Hi,
    I'm building a complete interactive website in Fireworks CS5 using Master Pages, States and Behaviors for some neat interactivity on the mockup.
    My question is why must the number of states be equal on all pages? I have a Master Page with a simple rollover effect on all the links, but on the Profile page I have a popup where you can insert tags. To create an interactive popup on the Profile page I need a couple of states for that popup on the Profile page. As soon as I add more states to the Profile page it loses the content from the Master Page, even if I tell all the layers in the Master page to "share on all states", when forcing the Profile page get's disconnected from the Master page.
    There has to be a simpler way of doing this!
    Thanks!

    There is no way of doing what you want in Fireworks. It's not an HTML editor and can't generate more than rudimentary interactive objects. To create more sophisticated interactive objects you need have some knowledge of coding and use software like Dreamweaver or Flash.

  • TS3899 Why is the number of e-mails higher on my iPhone than in my e-mail when I log into it on my computer?  The difference between the 2 keeps climbing.

    Why is the number of e-mails higher on my iPhone than in my e-mail when I log into it from my computer?  And how do I fix it?  The number keeps climbing on my phone, making the difference between the two greater.

    You're welcome.
    In order to have the account's Sent mailbox synchronized with the server with the Mail.app on your Mac and with the iPhone's Mail application, you must store the account's Sent mailbox on the server with each. The same applies to the account's Drafts and Trash mailboxes.
    With store sent messages on the server deselected for the account preferences with the Mail.app on your Mac, create an "On My Mac" location mailbox. At the Mail.app menu bar go to Mailbox and select New Mailbox. Choose On My Mac for the mailbox location - which will be stored locally on your computer's hard drive and enter a name for the mailbox. You can name this mailbox MobileMe Sent. Select OK to create the mailbox, which will be available under "On My Mac" in the Mail.app mailboxes drawer.
    Select your MobileMe Sent mailbox. Select a sent message in the mailbox and at the menu bar go to Edit and choose Select All. Follow this - at the Mail.app menu bar go to Message and select Move To and then select the new On My Mac location mailbox in the window provided. This will move all messages from the account's locally stored sent mailbox to the newly created On My Mac location mailbox. When this transfer has been completed, re-select store sent messages on the server for the account preferences.
    Now do the same with the newly created On My Mac location mailbox where all sent messages were transferred to. Select a message in the mailbox and at the menu bar go to Edit > Select All. At the menu bar go to Message > Move To and select your MobileMe account's server stored Sent mailbox under Sent in the window provided. This will transfer all messages stored locally on your computer's hard drive from the newly created "On My Mac" location mailbox to the account's server stored Sent mailbox. These messages will no be available when accessing the account with the iPhone's Mail application.

  • Why is the number "1" when setting up the dial fat thickness did not change the font? Is it possible to adjust the font in the thick klavioture typing?

    Why is the number "1" when setting up the dial fat thickness did not change the font? Is it possible to adjust the font in the thick klavioture typing?

    paulcb wrote:
    Using the Bold Text Accessibility option does make the keypad numbers a little bolder.
    Yep - I was only looking at Text Size.
    But still, not sure what the deal is. The "1" is just as readable as any other number on the keyboard regardless.

  • How can I change the number displayed when I make a call/send a sms? Despite transferring my old number across to my iphone messages.and Facetime are made from the original sim number and not mine. Any ideas?

    I've transferred my old number by PAT code to my new iphone and most of the time it works fine however there are problems when replying to tests and using Facetime when the original sim muber is displayed. My frined can text me on my correct number but if I reply she receives it from the different number. Also when using Facetime the number displayed is the one the came with the iphone. Anyone know what to do to get the number id correct?

    Tell her to contact her carrier and get a new phone number.

  • Why are the CAPTIONS displayed smack across everyone's face?

    Why are the CAPTIONS displayed smack across everyone's face on the screen???  I need the captions to HEAR better but I still want to SEE the show.  When the text is displayed across everyone's eyeballs it's very disruptive.  And I want ONE BUTTON on my remote to turn captions on/off; from a user perspective it is unnecessary to go through the menu settings everytime.  Take a stand and do something about improving CAPTIONS!!!

    mibrnsurg wrote:
    skeeterintexas wrote:
    JoannaG wrote:
    Why are the CAPTIONS displayed smack across everyone's face on the screen???  I need the captions to HEAR better but I still want to SEE the show.  When the text is displayed across everyone's eyeballs it's very disruptive.  And I want ONE BUTTON on my remote to turn captions on/off; from a user perspective it is unnecessary to go through the menu settings everytime.  Take a stand and do something about improving CAPTIONS!!!
    The CC text is on the bottom third of the screen.  I don't understand the problem.  *shrugs*
    Actually when I first replied, I checked the CC on the channel I was on and it was in the 'face' position the OP complained about.  Now checked here on recording of Sprint Cup qualifying and it's at the bottom.  Looks like some are not in the bottom 1/3 of the screen.
    Chris
    Please NO SD stretch-o-vision or 480 SD HD Channels
    Need Help? PM ATT Uverse Care (all service problems)
    ATT Customer Care(all other problems)
    Your Results May Vary, In My Humble Opinion
    I Call It Like I See It, Simply a U-verse user, nothing more
    You're right...some closer to the bottom, some closer to the top.  I wonder if it's a network decision or just random.

  • Why is the hour display set to 19 when I run the attached VI

    Why is the hour display set to 19 when I run the attached VI?
    Thank you.
    Solved!
    Go to Solution.
    Attachments:
    Untitled 1.vi ‏10 KB

    Are you in US Eastern Time?  This looks like an offset due to time zone (EST is -5 hours).  Setting the UTC constant to TRUE will fix that.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • Why is the number of photos in the Photos app different than the number of photos in iPhoto on the Mac?

    I have an iPhone 4S and a MacBook Air. On the MacBook Air, in iPhoto, the number of photos is 3,563 (this is the number that appears next to the word Photos under library in the left hand pane). When I synch my phone with iTunes, I've selected Synch Photos from iPhoto and the number that follows that line is 3,546 photos. I have checked All Photos, albums, Events, and Faces.
    On my iPhone under Settings, General, About, there are 4,293 Photos shown (the Camera Roll is empty).
    I don't understand why these three numbers are not identical. Anyone know?

    What version of iPhoto and system are you running? What mode are you in, i.e. Events, Photos?
    If it's the Photos mode the number at the bottom will represent the number of photos displayed in that mode or the number of photos selected in that mode. The number will match the number next to the photos mode only when there are no photos in that mode that are selected. 
    If you click on the Events icon and then back on the photos icon the numbers should match.
    OT

  • Why is the "Number of Rows" for a report seem to be cached in the session?

    When I change the Number of Rows in any given report that this change doesn't immediately take effect. After much poking around and gnashing of teeth -- I found that I have to go into Manage Session State and Remove State for my session before these changes go into effect.
    Can anyone explain why this setting would be stored in the users' session state and why when I login and get a new session_id this setting seems to persist.
    Thanks,
    Jason

    1. if you login with a new session, the pagination should be reset and the new number of rows should be displayes - which version do you use. I just checked on apex.oracle.com and it worked.
    2. You should try using reset pagination option to see what happens.
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://apex.oracle.com/pls/otn/f?p=31517:1
    http://www.amazon.de/Oracle-APEX-XE-Praxis/dp/3826655494
    -------------------------------------------------------------------

  • HT1535 Why does the number of tracks in my library and the number on my iPod differ. I have just synced and 'lost' over 20 tracks. Am fuming!

    Why didn't the above display the question I set as originally written? I have just synced and 'lost' over 20 tracks! They are listed on my library but after syncing they have vanished from my ipod yet remain in my library.
    Another question, if I may, I have two ipods and want to merge the separate libraries into one and transfer the lot to another type of MP3 player, any ideas on how I do this please.
    Am so angry I could spit!
    Many thanks,
    An angry English female

    Have you looked at the previous discussions listed on the right side of this page under the heading "More Like This"?
    BTW this is the iPod touch forum

  • How to change the number displaying rows in a table

    Hi all,
    i have a table for resources in Debrief Work order (Standard Screen), we need to change the default displaying rows. inistially it displayed 3 empty rows.
    i tried to change the Records Displayed for the table but it did not affect.
    also it is possible to change the "Add 3 rows" button in the table to add for example 5 rows instead?
    any idea?
    Regards,
    Mahdi Charara

    Hi,
    Through personalization we can do.On standared page top right u will find personalization link.click on the clink next expand all there find apporiate table .Here u will fine reorder button set as u want display and save. then u can see the change.For add row functionality u need to extend the co.

  • Why does the put display to sleep setting put the hard drive to sleep

    In the energy options (preferences) for power adapter, I have set the display to sleep after 1 minute but the hard drive is set to never. I do this when I am downloading but don't need to use the macbook. However, the macbook seems to go to sleep anyway - any idea why? Any new settings?
    I've maintained these settings on my Power Book G4 and it puts the display to sleep but keeps the Power Book on while downloading.
    Thanks
    Kru
    Macbook   Mac OS X (10.4.9)  
    Macbook   Mac OS X (10.4.9)  

    May be try magic
    Resetting your Mac's PRAM and NVRAM
    and
    Resetting MacBook and System Management Controller (SMC)

  • Why is the text displaying blurry in Creative Cloud Illustrator?

    Ever since starting to use the illustrator provided as part of the creative cloud, I can not produce anything with clear text. Why? It looks blurry on the art board and looks blurry in the final document.

    view >> pixel preview >> off
    if the type looks more stairstepped than blurry, then prefereces >> enable Anti-Aliased Artwork

Maybe you are looking for

  • Use of variable types and rounding...

    I'm kinda confused on what variable types to use. I want it so that when I divide two numbers, it'll either round up or down, and give me a rounded number w/o a decimal. Examples... 184/2683=7 164/2683=6 I have been fiddling with it for a while now,

  • SAP BI 4.0 Installation on Linux Machines

    Hi, Can some body send me the document or Detailed steps regarding how to install the SAP BI 4.0 software on the Linux machines.also let me know what are the pre-requisites for this installation. This software needs to be installed in both Server and

  • OLAP Re-Aggrigation functionality or Alternative for complete refresh

    I have a question related with reaggrigation. My scenario: 1) I have Product Dimension (dim) and Sales Cube. 2) In Sales Cube, product dim is used. 3) In first time, i have complete refresh of dim and cube. 4) But if i modify data in Product dim for

  • R12 Upgrade- lookup types?

    Hi gurus- I am in the middle of an R12 upgrade and doing mapping. I see references in custom code to the table FND_LOOKUP_TYPE_USAGES. This does not exist in R12. Where does this data map to now? Is there an equivalent quick code table? Thanks in adv

  • Calendar keeps crashing on Mountain Lion

    Calendar worked fine for three weeks since I've gotten my new mac but now it keeps crashing whenever I try to open it. And it leaves this message: Process:         Calendar [345] Path:            /Applications/Calendar.app/Contents/MacOS/Calendar Ide