Cfif inside cftextarea not possible?

Hi,
I try to make a cftextarea-field required = yes , if another
formfield is set to 'Y'.
I use a <cfif>statement inside the cftextarea.
<cftextarea name="name"
style="width:530;background-color:yellow"
<cfif query.fieldname eq
'Y'>required="Yes"></cftextarea>
I get the error message:
Invalid token 'c' found
When I use <textarea> instead of <cftextarea>
there is no error, but then the required="Yes" attribute doesn't
work.
Please give me a hint what's wrong!
Thanks
Claudia

Hi Dan,
I try your hint by using a hidden cfinput-field in
combination with a javascript function. It looks like this:
The textarea-field should be required, if the radio is set to
"Y".
<SCRIPT LANGUAGE="JavaScript">
function functionname(p_radio)
if (p_radio[0].checked == true)
document.form1.req_value.value = "Yes";
else if (p_radio[1].checked == true)
document.form1.req_value.value = "No";
</SCRIPT>
<cfform name="form1" method="post">
<cfparam name="form.req_value" default="">
<cfinput name="req_value" type="hidden">
<cfinput type="radio" name="radiobutton"
value="Y"onClick="javascript:functionname('document.form1.radiobutton');">
Yes
<cfinput type="radio" name="radiobutton" value="N"
onClick="javascript:functionname('document.form1.radiobutton');">
No
<cfttextarea name="textareafieldname" rows="4"
required="#form.req_value#" message="...">
The value of the hidden field "req_value" changes when I
press the radios, but it has no effect on the "required"attribute
of the cftextarea-field.
Do have an idea?
Other question: Is it possible to set the required attribute
inside the javascript function?
For example like:
document.forms1.textareafieldname.required = true;
Thanks

Similar Messages

  • Premiere Pro cc 2014 do not import After Effects composition. Inside Premiere Pro CC 2014 is not possible call back After Effects, is not possible to work with After Effects. Thank you

    Premiere Pro cc 2014 do not import After Effects composition. Inside Premiere Pro CC 2014 is not possible call back After Effects, is not possible to work with After Effects. Thank you

    You haven't given us much to go on here.  What exactly are you doing and what exactly happens when you try?  Which specific version of each program are you using?  (Go to Help>About...)
    On a side note, a simple, brief thread title is all that's needed.  Something like "After Effects Issue" would be fine.  You don't need the full question there.

  • Not possible to output CFTREEITEM in a CFC function?

    Hi there,
    I am parsing a sorted list of strings (in the form of a/b/c/,
    a/b/c, /a/c/d etc.) and trying to make a treeview out of it.
    I have the CFFORM and CFTREE tag in the top function and the
    code that generate CFTREEITEM in a subfunction, but I got the
    following error:
    Context validation error for tag cftreeitem.
    The tag must be nested inside a cftree tag.
    It seems that ColdFusion doesn't recognize that calling code
    is already nested inside a CFTREE tag in the top function. I
    extract the code generating CFTREEITEMs to a sub function because
    it is called multiple times from different context, it would be a
    lot of hassle and quite stupid to "inline" it.
    If what I am trying is, for whatever reason, not possible,
    would it be possible then to have the sub function generate the
    code into a string and somehow dynamically evaluate that?
    Any hints or tips will be greatly appreciated!
    Billy

    Hi there,
    I am parsing a sorted list of strings (in the form of a/b/c/,
    a/b/c, /a/c/d etc.) and trying to make a treeview out of it.
    I have the CFFORM and CFTREE tag in the top function and the
    code that generate CFTREEITEM in a subfunction, but I got the
    following error:
    Context validation error for tag cftreeitem.
    The tag must be nested inside a cftree tag.
    It seems that ColdFusion doesn't recognize that calling code
    is already nested inside a CFTREE tag in the top function. I
    extract the code generating CFTREEITEMs to a sub function because
    it is called multiple times from different context, it would be a
    lot of hassle and quite stupid to "inline" it.
    If what I am trying is, for whatever reason, not possible,
    would it be possible then to have the sub function generate the
    code into a string and somehow dynamically evaluate that?
    Any hints or tips will be greatly appreciated!
    Billy

  • How to allow some fixed extension go in from outside to inside but not allow go from inside to outside

    how to allow some fixed extension go in from outside to inside but not allow go from inside to outside
    for example, allow JPEG, MOV, AVI data flow from outside to inside
    but not allow JPEG, MOV, AVI files access or upload or get by outside, in another words not from inside to outside
    how to configure?

    Hi,
    The ZBF link sent earlier show how we can inspect URI in http request
    parameter-map type regex uri_regex_cm
       pattern “.*cmd.exe”
    class-map type inspect http uri_check_cm
       match request uri regex uri_regex_cm
    ZBf is the feature on Cisco routers and ASA though concepts are little same but works differently. However it is important that you can be more granular with the protocol (layer 7) inspection only. Like on ASA if you will try to restrict .exe file from a p2p application that won't be possible, But on router you have some application for p2p in NBAR and you can use it file filtering. Please check configuartion example for both devices.
    Thanks

  • SSFCOMPOSER - 154 - No output request open. End not possible.

    Hi Experts,
    I'm trying to print multiple smartforms using FMs SSF_OPEN and SSF_CLOSE. Inside the main program RBDAPP01 (Inbound processing for IDOCS) there is a loop at the IDOCS to be processed. Deep within the processing, we have a custom FM being called which prints smartforms. Since there is a loop at the calling main program, I have organized the code in the custom FM such that the first IDOC calls SSF_OPEN and the last IDOC calls SSF_CLOSE, so that all IDOCS in between will be able to print their smartforms. Here is the call stack:
    8
    SAPLZCUSTOM                   
    ZCUSTOMPROGRAM                             
    113
    FUNCTION                     
    ZCUSTOMPROGRAM                                         
    7
    SAPLPPC1                               
    ZCUSTOMPROGRAM     
    136
    FUNCTION                     
    KK2A_GET_DATA_FROM_IDOC                                     
    7
    SAPLPPC1                               
    LPPC1U01                               
    1
    FUNCTION                     
    KK2A_GET_DATA_FROM_IDOC                                     
    6
    SAPLBD20                               
    LBD20F0A                               
    454
    FORM                         
    IDOCS_PASS_TO_APPLICATION                                   
    5
    SAPLBD20                               
    LBD20F0B                               
    69
    FORM                         
    IDOCS_PROCESS                                               
    4
    SAPLBD20                               
    LBD20U05                               
    260
    FUNCTION                     
    IDOC_INPUT                                                  
    3
    SAPLEDIR                               
    LEDIRU02                               
    182
    FUNCTION                     
    IDOC_START_INBOUND                                          
    2
    SAPLBD12                               
    LBD12U04                               
    37
    FUNCTION                     
    APPLICATION_IDOC_POST_IMMEDIAT                              
    1
    RBDAPP01                               
    RBDAPP01                               
    388
    EVENT                        
    START-OF-SELECTION                                          
    The problem is:
    1. When I only have 1 IDOC being processed, SSF_OPEN and SSF_CLOSE happens in the custom FM at the same time. This creates a successful spool.
    2. Whereas, when I have 2 or more IDOCS, SSF_OPEN happens in the first IDOC, but then it goes back to the calling program, and then when the last IDOC is encountered SSF_CLOSE is called. The FM SSF_CLOSE in this scenario calls the exception INTERNAL_ERROR (sy-subrc = 2).
    The system message is SSFCOMPOSER - 154 - No output request open. End not possible.
    Why is this happening? Is it because that other programs (calling programs) may have affected the status of SSF_OPEN? It seems that the SSF_OPEN is no longer open.
    Thanks in Advanced,
    Jack

    No, it will not hold the smartform open, but you don't need to hold it open in order for printout to be accumulated in one spool. Spool system does the accumulation automatically, provided the spool requests that are to be added to an existing spool request are:
    - generated in the same transaction and
    - have the same attributes (such as user, title, output device, client from which the request was issued, number of copies, priority, cover sheet setting, archive mode, and ABAP session number).
    Important is: where do OUTPUT_OPTIONS like printer come from currently? Is print parameters popup displayed on first Idoc for user to choose printer and options? Or do you use USER_SETTINGS = 'X' to simply take over defaults from user master? If the print options dialog is displayed, it needs to be controlled as well so it's displayed only once.
    Assuming print options come from the user in dialog, the logic without explicit open/close could look somewhat like this:
    On first idoc:
    - call SSF_OPEN  importing  JOB_OUTPUT_OPTIONS to display print options dialog; move-corresponding JOB_OUTPUT_OPTIONS to global OUTPUT_OPTIONS;
    - set OUTPUT_OPTIONS-TDNEWID = 'X' and clear  OUTPUT_OPTIONS-TDFINAL, to ensure new spool will be started (overriding user choices for these parameters!);
    - if the user has set OUTPUT_OPTIONS-TDIMMED = 'X' save it globally and clear it;
    - set CONTROL_PARAMETERS-NO_OPEN = 'X';
    On subsequent idoc:
    - clear OUTPUT_OPTIONS-TDNEWID;
    - clear CONTROL_PARAMETERS-NO_OPEN;
    On last idoc:
    - set OUTPUT_OPTIONS-TDFINAL = 'X' (this is not absolutely necessary, but prevents further appending to the spool);
    - restore OUTPUT_OPTIONS-TDIMMED from the value saved on first idoc;
    Calling Smartform:
    - set CONTROL_PARAMETERS-NO_DIALOG = 'X';
    - call smartform passing OUTPUT_OPTIONS and CONTROL_PARAMETERS;
    The logic is somewhat complicated; I'd wrap it in a class (singleton, which would be de-instantiated after last idoc) to avoid global data and code other than simple method call(s) in FM.
    Even if you decide to refactor the logic, it would still be important to understand, I think, why the current logic does not work (where and why smartform gets closed)... Maybe there are some nasty "surprises" somewhere, and your current algorithm should work.
    cheers
    Janis

  • Change of bin not possible during TO confirmation

    Hi all.
    I am trying to change the destination storage bin during transfer between bins (WM movement 309).
    The strategy is fix bin (maintained in material master), so the TO is created with fix destination bin and operator must change it before confirmation.
    For example, in GR it is possible to change destination bin during confirmation in transaction LT12 but not for transfer. The receiving storage type is the same in both cases. Is there any customizing missing?
    Apart from this, is there any way to confirm items separately inside a TO? For example, during GR I try to confirm a TO in transaction LT11 for just one item and waiting for the rest to be placed physically in order to confirm all the TO but destination bin can not be modified in LT11. Is there any way to confirm item per item but allowing changing destination bin? it is possible to do it in LT12 but not in LT11.
    Many thanks in advanced and best regards.

    Hi,
    Generally, it is possible to change the destination bin during TO confirmation. However, this is not possible under the following conditions:
    o  With dynamic coordinates                                                                               
    o  If the destination bin location is specified in the movement type
    o  For posting change transfer orders                                                                               
    o  For the physical inventory using a putaway                                                                               
    o  For the addition to existing stock for storage units                                                                               
    o  For the transaction Confirm Single Item (transaction LT11)                                                                               
    o  If a bulk storage type is involved in the stock movement                                                                               
    o  In the event of an individual putaway strategy                                                                               
    o  If the first item of a TO with storage units is already confirmed
       since all the other items of the storage unit relate to the same 
       storage bin. When you save the first TO item, the system changes 
       the destination storage bin for all dependent items.                                                                               
    o  If this is a replenishment transfer requirement for a fixed      
       storage bin.                                                     
    Please see SAP Note number 443916 for an explanation.
    Thank you.
    Patrick

  • Is there any way to print  the data inside  the Notes field of MIR6 Report

    Hello Gurús.
    We need to include the data inside the Notes field in the report MIR6 - INVOICE OVERVIEW - report.
    Is there any way to print  the data inside (comments)  the Notes field as well in the Report  ?
    We found that the only way is to open the Notes and print it, but it takes time, any idea ?
    Rgds.
    MCM.

    There's nothing built-in that does that. If you only have text fields and they don't have any formatting or other property that would prevent it (e.g., Date, character limit), you can run a simple script to populate each field with the field name, and then print. A more complicated approach would be a script that adds text annotations near/over each field that shows the field name. This would just be for documentation purposes, but it's possible. Post again if you'd like help with the first. You'll probably have to pay someone for the second approach if you don't want to do it yourself.

  • The upgrade of creative cloud is not possible because there is always the error code 204?

    The upgrade of creative cloud is not possible because there is always the error code 204?

    Please read, and reply back here with information https://forums.adobe.com/thread/1499014
    -and try some steps such as changing browsers and turning off your firewall for downloads
    or
    A chat session where an agent may remotely look inside your computer may help
    Creative Cloud chat support (all Creative Cloud customer service issues)
    http://helpx.adobe.com/x-productkb/global/service-ccm.html

  • No table line started. Output to cell not possible

    Hi Everybody:
    I have developed a smartform where in if i give single record as input, it comes fine, but if more than one record is given thru selection scr, the error comes  No table line started. Output to cell not possible when page break is issued.
    Pls help as to why is it coming,
    I also tried SF TRACE, but when i display the error, it says Cannot read from the database.
    Best Regards, Neetu

    To print the internal table's data in the smartform you should use the TABLE.
    LIke define a TABLE, inside the table define required table types.
    Put your data inside your main ... under the Table by using one of the line type.
    Regards,
    Naimesh Patel

  • I need to generate a still shot from from a video. I would like to accomplish this task using a single application. If this is not possible with my MacBook Pro as purchased from Apple, please recommend which applications I can purchase.

    I need to generate a still shot from from a video I made with my camera. I would like to accomplish this task using a single application. If this is not possible with my MacBook Pro as purchased from Apple, please recommend which applications I can purchase that include this feature. Thanks in advance.

    For FREE do the following:
    When you get to othe part of the video you want a still shot from, put the video on pause. 
    Take a screen shot:  Apple>Shift>4 - which will produce a cross hair so you can manually select which part of the video you want.Check inside either your Applications or Utility folder for an app called Grab.  Will do the above with just a single click.
    If you still want to purchase software, suggest that you do a Google & MacUpdate search.  This way, you can find exactly what you want. 

  • "This virtual machine is configured for 64-bit guest operating systems. However, 64-bit operation is not possible.  This host does not support Intel VT-x"

    Hi, I have installed vmware 5.5 hypervisor on hp G8 microserver. I have created one vm as windows 2008 R2. I have also install vmware workstation 11 on this vm. In this workstation when I tried to run vmware 5.5 hypervisor I come across "This virtual machine is configured for 64-bit guest operating systems. However, 64-bit operation is not possible.  This host does not support Intel VT-x" this statement. Which shows that the host machine does not support virtualization and for that you need to go in Bios and enable it but in present case as host machine is also a vm and you would not find much detail of Bios when you log into the Bios therefore, I am pretty much stuck here. I don't see any information in relation to this. Now my question is:
    1. Can we run ESXi inside a vm which is already sitting on ESXi?

    I moved the discussion from VMware Workstation to Nested Virtualization which contains several hints on what's possible and what needs to be configured to make things work.
    André

  • I guess its not possible to have a scrollable alert

    I often have a lot of text returned from the server but is often to big for the Alert, I guess its not possible to have a scrollable alert?
    I guess I'll just have to use a popup

    GoodfireGeorge wrote:
    SQL*Plus Command Reference - DEFINE
    Whenever you run a stored query or script, SQL*Plus substitutes the value of variable for each substitution variable referencing variable (in the form &variable or &&variable)
    The question is which are the limits of this. Can eg even be between a 'STR&&varING' passed as parameter to some function? Or as parameter I can pass only a single variable and there isnt such auto-casting level ?
    I have created DBCA Scripts to batch create a DB. So I want inside these scripts to replace the DBNAME with a variable. So I can create different DBS with these prescriptions from an API tool.
    E.g here there are 6 different scenarios where I might need to pass the variable. I dont know
    1. On which of the bellow scenarios I can inject the &&var
    2. On which I cant and thus have to create a 2nd VAR to inject the 1st one
    3. Which dont accept variables at all - but only static text
    @D:\app\admin\DBNAMEY\scripts\CreateDB.sql
    spool D:\app\admin\DBNAMEY\scripts\CreateDB.log append
    startup nomount pfile="D:\app\admin\DBNAMEY\scripts\init.ora";
    CREATE DATABASE "DBNAMEY"
    DATAFILE 'D:\app\oradata\DBNAMEY\system01.dbf' SIZE ...
    GROUP 2 ('D:\app\oradata\DBNAMEY\redo02.log') SIZE 51200K,
    I may not start testing the scripts 6 times fearing corrupting my Workstation on half executed scripts.
    If you can't test because you are afraid the test might fail, you need to address that issue first.  No one on the web is going to give you iron-clad assurance that some code you write is going to work exactly as you expect.
    Your script is trying to create a database?  What's the worst thing that can happen if it doesn't work?  Do you know how to manually dis-mantle whatever your script does?  If not, you need to learn.  The knowledge you will gain from that exercise will go a long way to improving your understanding of how these things interrelate.

  • Fscommand inside onSoundComplete not working

    Hi there,
    I'm building a flash movie that needs to run a javascript function afer a particular sound finishes playing.
    Here's the code i'm curently using:
    var som:Sound = new Sound();
    som.attachSound("1_07_8.mp3");
    som.start(0,0);
    som.onSoundComplete = function(){
          fscommand("animation", "ready");
    I'm publishing the HTML as a template for Flash with FSCommand, and I have the following code on the HTML inside the DoFSCommand javascript function:
    if (command == "animation") {
           alert("This slide is " + args);
    This is placed inside an IIS aplication, so that no security issues prevent the comm between the SWF and the HTML/Javascript
    I've successfully done this on a test SWF, but there, the fscommand was triggered by an onPress event from a button. Is it not possible to trigger it with the onSoundComplete event?
    Thx

    Have you though about using the ExternalInterface class instead of FSCommand?
    It is the more modern approach to communicating between Flash and the web page.  You should be able to find some helpful info if you search Google.  Here's a link to an article that covers numerous forms of communications including the ExternalInterface approach.
    http://www.adobe.com/devnet/flash/articles/external_interface.html
    If going that route doesn't appeal to you, turn your attention away from the problem you thought you had and try to recreate what you say you had working from the html end. 

  • HT1937 if you are to update your iphone and after it says the simcard inside is not supported, what can yo do?

    if you are to update your iphone and after it says the simcard inside is not supported, what can yo do?

    That means your phone was hacked to unlock it.
    ONLY the carrier it is locked to can authorize unlocking it.
    It may no longer be possible to process a legitimate unlock on a phone that was hacked/jailbroken. The hack can do permanent damage.
    You can find out who it was locked to and find out if they offer unlocking and if you qualify.
    Don't be surprised if you are never able to use it again. It may be permanently bricked.

  • Can it not possible that i can retrive it for all line items in a single qu

    I have to make report for my application in which I am facing a following problem:
    In the application there are multiple suppliers and each supplier having multiple line items and each item having multipale events. each evant having three status GREEN,RED and BLUE.
    When a user select 'all suppliers' to show the the status time span for a supplier (i.e. for a supplier how many parts and upto how much time parts are in blue, red and green status)
    to show the cumulative status time span I have to find out a event for each line item which is having nearest lower entry time from the lower part of the given time span.for this i have write following query
    SELECT * FROM parts_events
    WHERE vendorid = ? AND partid = ?
    AND visible = 'visible' AND active = 1
    AND entrytime = (SELECT MAX(entrytime) as
    entrytime from parts_events
    WHERE vendorid = ?
    AND partid = ?
    AND entrytime < ?
    AND visible = 'visible'
    AND active = 1)
    the problem is that i have to fire this query for each line item, can it not possible that i can retrive it for all line items in a single query?

    maybe if you can post some sample data and output will help us analyze more youre requirement.

Maybe you are looking for