Using cfif in input fields

I know rest buttons are useless, but my customer wants one,
so here I am. I have a form, and the text input and radio buttons
have cfif statement to check for values. It all works well. But, by
putting cfif in the input fields, the Reset button will not work.
If I take the cfif statements out, the Reset button works fine.
Just not with the cfif statements. Is there any way around this?
My code is:
<input type="radio" name="first_rate_calc" value="0"
onfocus="CLEARFORM()" <cfif
isDefined('form.first_rate_calc')><cfif form.first_rate_calc
EQ 0>checked="true"</cfif></cfif> />
and
<input name="current_multiplier" type="text"
id="current_multiplier" size="5" maxlength="5" <cfif
isDefined('form.current_multiplier')><cfif
form.current_multiplier NEQ "">Value=
"<cfoutput>#form.current_multiplier#</cfoutput>"</cfif></cfif>
/>

DaSpaz wrote:
Define 'Does not work'?
Other then some horable tag nesting going on there, I do not
see any
obvious reason why your code would not work with the 'reset'
HTML control.
Clicking on the reset button should return any changed values
in the
form to the original value when the form was first rendered
by the
client browser.

Similar Messages

  • How to set filter criteria for month and year using in timestamp input field?

    Hi,
    I am using jdev 11.1.2.3,
    I have one problem with Report generation,,,,,,I have one report table which is in the form of VO(query based) and i want to search this table as month and year basis
    but in this table(query) that field having timestamp based value.. how to search with month name and year only.. Here i am using totally query base VO's for generating
    reports........ Can any one guide me.
    Thank You.

    You can use a inputdate, which allows you to selecte a moth, year and a day. Once the selection is made you convert it to only allow moth and date like
            <af:inputDate label="Label 1" id="id1" autoSubmit="true" value="#{bindings.myMonthYear1.inputValue}">
              <f:convertDateTime pattern="MM/yyyy"/> 
            </af:inputDate>
            <af:outputText value="Selected #{bindings.myMonthYear1.inputValue}" id="ot1" partialTriggers="id1"/>
    then you have a string holding month and year only. This value you split into two variables you or pass it as a whole parameter to the query and split it there.
    Another way is to add two static lovs one for month and one for year and use them to get to the filter values.
    Timo

  • Need snapshot names of clustered Data ONTAP volumes in WFA3.1 for use in user input fields

    Hi, I want the operator of workflows choose from a list of snapshot of volumes (e. g. to use it as a base for a cloning operation). For this I need the snapshots of cDOT volumes in a table (e. g. cm_storage.snapshot) in order to use sql statements to select them. I am aware of the discussions in thread1 or in thread2. But the solution in thread2 cannot be imported in WFA3.1 (see my comments in both threads). Meanwhile the creator of the solution in thread2 has left NetApp and may not update it. NetApp itself seems not to be able or willing to solve this issue (either in  filling this table in WFA by default or porting the solution of thread2 to WFA3.1). I would create this table, datasource and OCUM/cluster connection by myself, if someone can tell me the steps how to do this. Is there somebody who can describe/share what to do to get such a table filled with snapshot names from clustered DataONTAP volumes? Thanks in advance. Walter

    Hello, I like to know your requirement first.I can see, there is a table namely 'Snapshot' under cm_storage_smsv from which you can pick the snapshots. So I think, below query will suffice the same: SELECT    Snapshot.name AS 'name',    Snapshot.volume AS 'volume',    Snapshot.vserver AS 'vserver',    Snapshot.cluster AS 'cluster',    Snapshot.snapmirror_label AS 'snapmirror_label',    Snapshot.timestamp AS 'timestamp'FROM    cm_storage_smsv.Snapshot SnapshotWHERE          Snapshot.volume = '${VolumeName}'          AND Snapshot.cluster = '${ClusterIP}'          AND Snapshot.vserver = '${VServerName}' Let me know if I misunderstood something.Thanks                --Gaurab

  • How to display zero in the screen's input field using numc type

    Hi,
    I want to display the zero value in the input field , when I  using the NUMC input field on the screen .
    The zero will be changed to blank ,when I click the Enter key.
    What I should do for it?
    Any help is appreciated.
    Regards,
    Trevor

    Hi ,
    Thanks for your quickly answer!
    I use the numc input field in the dialog's screen.
    I am not sure how to do the realize the function like 'UNPACK'?
    In fact, I can't changed my input field's data type.
    When the status of my input field is display, I can display the zero on the screen. But when the input field is input status , there is blank!
    Regards
    Trevor

  • Setting input fields to an empty string BIG PROBLEM

    Hi Rob, thanks for your rerply, It makes sense alright, but I am using 2 seperate input fields. I have discovered what is causing the problem .
    After the user types into the inputfield and moves on to a different frame, I have set the input field to an empty string and this is what is causing the problem.
    I have tried setting the input field to an empty string in a movie script and on individual sprites and the first right answer is not excepted.I have to type in the right answer twice to get get a right response. I am actually using three seperate input fields in total, each with a different name and behavior. Even If I use one input field I still have the same problem. Its driving me crazey. Any Ideas.
    Anne

    I believe that the FIM Service always does trims on string, so you may be out of luck.
    What is your scenario / what are you trying to accomplish by setting a space in an attribute? A space is not an empty string in my definition.
    Regards, Soren Granfeldt
    blog is at http://blog.goverco.com | facebook https://www.facebook.com/TheIdentityManagementExplorer | twitter at https://twitter.com/#!/MrGranfeldt

  • Search help for a Input Field........

    Hi,
      I'm fairly new to BSP and I would like to know how to attach Search Help to the Input Field in BSP application.
    Thanks
    NP.

    Hi nagendra
                        Search Help for input field Provide using attribute of input field is showHelp and onvaluehelp
                      This is providing the search help .

  • Losing variables using loadMovie in input Text Field

    Hello! Im trying to load an swf into another swf that has a variable in the text input field. Im a designer and not a programmer but I am using this tutorial to get started in loading a form with a variables in it.
    http://www.kirupa.com/developer/actionscript/flash_php_email.htm
    What im doing is trying to duplicate is the text box so that when i want to load new_box.swf (with a variable name "company") into main.swf into a movieclip with an instant name "loader." using this:
    on (release) {
        loadMovie ("new_box.swf", "_root.form.loader");
    I can get the movie to load but it loses the variable "company" in the process and when i send the form it doesnt work. If i just keep it in the main timeline it works but not when i loadMovie. Any info would help. Thank you.

    when you load an swf into another, the _root will refer to the root of main swf.
    try add this code to first frame of your loaded swf.
    this._lockroot = true;

  • JS error while using input fields with type=file on XP SP2

    Hi all,
    we found a new problem in applications which use input fields with type=file running in a browser on Microsoft Windows XP with SP2.
    A typical test layout might look like:
    <html>
      <head>
        <title>File-Upload</title>
      </head>
      <body>
        <form action="/cgi-bin/upload.pl" method=post
              enctype="multipart/form-data">
          <input type=file size=50 maxlength=100000 name="file"
                 accept="text/*"><br>
          <button onclick="document.forms[0].submit();">Send</button>
        </form>
      </body>
    </html>
    When you add a link without the fully qualified path (for example pic01.jpg instead of c:\pictures\pic01.jpg) and click on the 'Send' button, nothing happens and you get a Javascript error 'Access denied'.
    The solution can be found in the MS Knowledge Base article 892442:
    http://support.microsoft.com/default.aspx?scid=kb;en-us;892442
    We still investigate this issue and will inform you about the further proceeding.
    Regards,
    Rainer

    Hi Yepin Jin,
    I am facing the same issue did you solved it?
    Regards,
    Orlando Covault

  • How to use wild card character in input field

    Hi
    I'm creating model in which the Purchase Order information need to be entered in Input Field.
    My requirement is search using wild char char as '*'
    Let say in input field  i gave PO order as 20* then it'll search for all the PO's which starts from 20.
    Could you please share some documents/guidelines, for this issue
    Thanks and Regards
    Puneet

    Hi,
    You can use the wild card char in the input box.please try  below steps.
    1.Check whether the input string has ' * '  char using "CONTAINS(text,pattern)" operation.
    2.If yes, Replace the ' * ' with space by "REPLACE(text,pattern,repstr)" operation.->consider this result as input2
    3.Now , Have a Filter from ur webservice(which gives your Purchase Order information )
    and filter it by the condition " BEGINS(WSField,input2)"
    the Final expression in the filter will be "_=IF(CONTAINS(input,""),BEGINS(HelpWSField,REPLACE(input,"\","")),true)_"
    Hope it helps.
    Regards,
    Priya
    Edited by: priya on May 20, 2009 12:49 PM

  • Dropdown funda using input field

    Hi
    I wanted to do something as follows
    in drop down u have options rite so i wanted those drop down options in a inputfield
    meaning when the user clicks on some button besides the input field then i want to open a drop down kinda box where all the options are displayed in the form of a tree and the user selects it it should be populated in the input text field ( i know that we can use a pop up window and a table with all the options inside it but i want this in a tree view and that to the dropdown like box should be xactly below the input field) any help will b appreciated.
    regards
    sudheer

    Hi manoj
    there is some reason behind why i am using input field for achieving this drop down functionality
    i have achieved what i want by doing the following way
    i have changed my layout to row layout and in the first row i have created the input filed and a button
    and in the second row i have created the tree structure i wanted and made it as invisible ok
    when the user clicks the button the tree will open up and the according to what the user selects i have set to the context from which the input field is set ( so the selected thing has ben displaying)
    the problem in this method is
    all the contents which are after the row 3 are moving down when i am making the tree visible which i dont want
    so i am searching for the alternatives. i know that EVS or SVS will help but according to my need i want a tree with options rather than table with options( as the case with EVS or SVS )
    any ideas will help me alot
    thanks and regards
    sudheer varma

  • How to hide input fields on selection screen using variant attribute

    Hello all,
    I want to know how to hide input fields on selection screen using variant attribute conpletely.
    As you know, when setting the attribute of variant "Hide field" checked, the field is temporarily hidden, but when clicking "All Selections(F7)" button on the selection screen, the fileds become appeared.
    I want to hide the field completely. Di you know how to do ?
    Thank you for your support.
    Regards,
    Hideki Kozai

    Use this attribute hide field and save the variant. Then create transaction for this program setting default variant for parameter Start with variant . The user who runs it will have it by defualt set.
    Otherwise
    in PBO simply use LOOP at screen and output = 0 for this field. This will ensure that field is invisible in any case.
    Regards
    Marcin

  • Input field validation using JSP in HTMLB

    Hi All,
    How can we validate an input field in a form in BSP page.
    Like: There are two input fields in my form.I want the user to enter value in any one and only one of the fields.If the value is entered in both fields or none of the fields the user should get a popup and form  must not be submited.
    Shall i use the onClientClick attribute of Button element or doValidate attribute of Inputfield element or  validationScript attribute of From element?
    Please help.
    Thanks a lot,
    Anubhav.

    Here you go:
    <%@page language="abap" %>
    <%@extension name="htmlb" prefix="htmlb" %>
    <htmlb:content design="design2003" >
      <htmlb:page title=" " >
        <htmlb:form id="form1" >
          < script t-ype = "text/javascript" >     "Remove "-" between t & ype in type
          function checkInput()
           var field1 = document.form1.field1.value;
           var field2 = document.form1.field2.value;
    var error = "";
    if(field1 != "" && field2 != "")
              { error = "X";
                  javascript error message here          }
    if(field1 == "" && field2 ==  "")
              { error = "X";
                                javascript error message here
    if(error == "")
              htmlbSL(this,2,'mybutton:Submit');
          < / script >
              <htmlb:textView text      = "Hello World!"
                              textColor = "RED"
                              design    = "HEADER1"
                              align     = "CENTER" />
              <htmlb:inputField id        = "field1"
                                value     = "<%= var1 %>"
                                type      = "integer"
                                alignment = "CENTER" />
              <htmlb:inputField id        = "field2"
                                value     = "<%= var2 %>"
                                type      = "integer"
                                alignment = "CENTER" />
              <htmlb:button id            = "mybutton"
                            text          = "Press Me"
                            onClientClick = "javascript:checkInput();" />
        </htmlb:form>
      </htmlb:page>
    </htmlb:content>
    Raja T
    Message was edited by:
            Raja Thangamani

  • Input fields of the used DC view is disabled

    Hi Experts,
    I am new to webdynpro and working on the support project. i have came across one unusual problem which i would require your help.
    I have a DC which have one one more DC added in the "Used DC list". Now We already have embedded the View of the Used DC into our own DC.
    Now the problem is the Input fields like date etc which is der on the embedded view is visible but not enabled. I checked it on the ORIGINAL VIEW of the USED DC and there the property enable is true. But when we embed into some other DC then those fields were not seems enabled.
    Please Help
    Thanks
    Shobhit

    Hi Shobit,
    Now the problem is the Input fields like date etc which is der on the embedded view is visible but not enabled. I checked it on the ORIGINAL VIEW of the USED DC and there the property enable is true. But when we embed into some other DC then those fields were not seems enabled.
    the problem is with Node cardinality. please check the cardinality of ur node it should be 1:1. if the cardinality of ur node is 0 to n, in design time input field will be enabled but in the runtime, the input field will be disbaled mode.
    Thanks and Regards,

  • Not allows to assign default value to input field using values in datastore

    Hi Masters,
    Consider that I have one input field in a form. I should assign default value to it. I should assign to it, the value which i have stored in a datastore. When i run the application, if i give default value as 123 ,then it is working fine i.e., it is showing 123 in the textfield in form , but if i give the default value as STORE@ProductId, then it is not displaying that value in the form.
    Please help me out.
    Thanks & Regards,
    Kaushik Sreeram

    Hi,
    i faced this problem and here's what i concluded:
    There's no way you can set default value for input field dynamicly, since the default value of input control is caculated only once (i think on initializing of the iView). The input control and the data store are initialized at the same time, STORE@productID is empty that time...
    If you don't need to recieve value through the input field you're trying to initialize, but just to display the value from the store - I suggest you try using another control - Expression Box. It's value is calculated continiously, just like the Label's, and you can refere to it later.
    Regards,
    Yulia

  • Change input fields of used component

    Hello,
    I am creating a web dynpro and don't have a lot of experience so I hope you can help me.
    I am using the component /PLMU/WDC_SEA_QS_CRIT_DO which contains an input field OBJECT_TYPE.
    How can I enable this field in my web-dynpro?
    Thank you very much.
    Best regards,
    Daisy Heremans

    Hi
    If you can't set the interface property of node in enhancement then there is another way.
    Keep the node as it is.
    Keep some static class attribute for enable \ disable.
    Set this static class attribute in your component and use this attribute in used component ( any of post\ pre overwrite methods ) to set this attribute value to the attribute which is bound to UI element enabled property.
    @ thomas: any inputs from your side, can we achieve this in any other way apart from enhancement through personalization \ component configuratio etc ?
    Regards
    Manas Dua

Maybe you are looking for