Verifying if number in a text field will evaluate to a date format

I have a field, FieldA, that contains 6 numbers, (although the field is a text field). I need to know if that field's numbers evaluate to a true date in the format of mmddyy. For example, if FieldA contains 060110, then that would evaluate to a true date of 6/1/10. However, if FieldA contains 130110, then this is not a valid date and the test will indicate accordingly. I was thinking of using a case statement, but unsure of how to test if the numbers evaluate to a valid date..
Sort of:
CASE WHEN FieldA = 'Valid Date' THEN FieldA TO_DATE(FieldA, 'mm-dd-yyyy')
Any help is appreciated..
Thanks..

user12296489 wrote:
I have a field, FieldA, that contains 6 numbers, (although the field is a text field). I need to know if that field's numbers evaluate to a true date in the format of mmddyy. For example, if FieldA contains 060110, then that would evaluate to a true date of 6/1/10. However, if FieldA contains 130110, then this is not a valid date and the test will indicate accordingly. I was thinking of using a case statement, but unsure of how to test if the numbers evaluate to a valid date..
Sort of:
CASE WHEN FieldA = 'Valid Date' THEN FieldA TO_DATE(FieldA, 'mm-dd-yyyy')If fielda contains '060110' (meaining June 1, 2010), then you want to use 'mmddrr' as the 2nd argument to TO_CHAR, not 'mm-dd-yyyy'.
Any help is appreciated..The following thread has a couple of different solutions:
Re: how to select valid dates only

Similar Messages

  • How can I create a form for users wherein the text field will expand to accommodate additional text?

    How can I create a form for users wherein the text field will expand to accommodate additional text?

    You need to use LiveCycle (PC Only) to create a dynamic form like that.
    The best you can do with Acrobat to view all of the text in a field is to set the field to multiline, and set the size to "Auto" (If you don't set the size to 'Auto', you can enter as much text as you wish, but the user will need to use the scrollbar to view all of the text.)

  • My text fields will not expand

    I have a suggestion form that i created in adobe livecycle. The text fields will not expand when there is more text than what fits in the box. A scroll bar comes up when there is more text than what can fit,  but this will not do. I have the 'expand to fit' checked and allow multiple lines. Any help?

    Hi,
    Have a look at this example of the process for making fields dynamic: http://assure.ly/g80MVY.
    A couple of pointers:
    The form will need to be saved as a Dynamic XML Form in the save-as dialog.
    You should group objects that don't need to be flowed into a Positioned subform(s), as step 3 will move things around.
    The page will need to be set to Flowed in the Object > Subform palette.
    That should get you most of the way there.
    Niall

  • Number of visible text fields

    Hi all,
    Trying to upload document numbers from Excel into SAP via transaction F-03 using SAP GUI Scripting.
    My approach is to enter values one by one and press Enter when the last visible text field is reached. Then enter another batch of values, press Enter and so on..
    The problem is that I do not know how to get that event when the last visible field is reached.
    I know the solution but for tables when you can count a number of visible rows (.visibleRowCount).
    Thanks in advance.

    Hi Dmitry,
    in this case, I would proceed as follows:
    1. before the position command the system error handling switch off with
    on error resume next
    2. behind the position command the test of error number with
    if err.number < 0 or err.number > 0
    For example:
    on error resume next
    err.clear
    'position command from existing script
    if err.number > 0 or err.number < 0  then
    'processing . . .
    end if
    on error goto 0
    Declaration on the solution: In a non-relevant line will it not work. This one can evaluate it.
    Regards,
    ScriptMan
    Edited by: ScriptMan on Apr 19, 2010 7:36 PM

  • When click on button - Number in a text field increase by 1

    Hello!
    I have no coding experience and want to create a game like Cookie Clicker. An idle clicker game.
    So I have my button and a text field which says "0$". How can I make it, that when I click on the button the "0$" turns to "1$" and so on... ?
    I use Actionscript 3 as a file type, I hope this is correct.
    I hope someone will help me.
    Greetings!

    I will mark your answer when it works. Now I get no error report, but when I start the game its like this:
    When I click on the button its like this:
    When I click again on the button, it is only the $ symbol again and it doesn't change after.
    Can I send you my file somehow, so you can check?
    Thanks for all your help so far!

  • Multiple lines in text field will not print

    I have created several text fields in a form that was created to be filled in and then printed. The text fields allow for multiple lines but when they are printed they only print the text that has been displayed. Is there any way to get Adobe to print all of the text in the field? Thanks! Teri

    I am also having trouble with this. I am using LiveCycle Designer that came packaged with Adobe Pro. I have a form that has several one-line text fileds and checkboxes at the top and then the last field is a text field for comments. I need this text box to expand to a second page, if necessary. I am VERY new at this and I find the help features with the applicaiton hard to understand. I have the field set to "expand to fit" and I have checked the "allow multiple lines" and saved as dynamic form. It allows me to type as much as I want but it doesn't print. Just displays a + sign at the bottom. I looked at the sample purchase order form and that didn't help me. Can someone give me simple clear instruction on what to do?
    Nay hekp would be ver much appreciated.
    Thanks
    Kathy

  • Rich text field will not show proper font attributes! (Bug? - RTF OTF font handling)

    I created two text form fields (rich text)...
    In Windows 7, Write program (using it to format the rich text content)... I edited my two lines.
    Line one: mix of two font sizes and a few attribute changes... pasted into the first text field perfectly.
    Line two: similar to the above... pasted into the second text field but the font is appearing in bold! It is not bold in the source, nor is it preset in the text field properties! I even pasted it back into Write AND Word and it pastes as I intended it.
    Why is Adobe doing this? I even tried to toggle >Text Style > bold on/off, clear formatting... these functions do not work!
    If I bring up the properties toolbar (Ctrl-E), bold is toggled on but I cannot toggle it off, I can add underline, I can change the font size.
    UPDATE: It seems that Adobe Acrobat is NOT reading the OTF font correctly! If I change to a different font, in the same family, the problem changes from set on bold to set on italics!
    It is specifically related to the font I am using but is ONLY a problem when using Rich Text fields. In other words, the entire font family works perfectly if I inserted a text box or use the font family in any other Adobe product.
    I have submitted a bug report: https://www.adobe.com/cfusion/mmform/index.cfm?name=wishform&loc=en

    Another possibly revealing clue is that when I go to Text Field Properties > Appearance tab > Text / Font, I see the entire family of this particular font. However, when editing the text in the properties toolbar (Ctrl-E), only a small sub-set of this font family appears and the attributes behave in an odd manner. Example: normal font appears as italics but if I switch on BOLD, the italic attribute is gone... and other strange attribute problems.

  • Please help. Text fields launch email for XML data

    Let me start by saying I have only been using LiveCycle for two days. I did buy a book and have exhaustuvley searched for a solution....with that said....
    After completing almost the entire form, somehow or other I managed to make all the text fields but one initiate email of xml data as soon as you try to type in them in PDF preview or reader or pro.
    I added a new text field for test and it does NOT do the same thing. I can't for the life of me figure out how to turn this off.
    Issue:
    When checking pdf preview, if I click inside a text field to type, it stops the preview and launches an email window with a blank XML file. It does the same thing if I open the file in Reader or Pro.
    Solution I am looking for:
    My form is nearly complete and i would hate to have to start all over. Basically, I do NOT want the text fields to initiate an email of the form data. I just want the user to be able to type in them as required. In my opinion this should only happen with the "email form" button.
    Thanks,
    Joe
    [email protected]

    funny, i found a workaround. after nearly 3 hours and finally posting here, in 15 minutes i found something. I still would like to know
    what caused this if anyone knows.....
    Fix:
    By selecting the text field and changing object type to "Text" then changing it back to "TextField" then save, it now works fine. Of course I had to do it on all 25 fields but way better than redoing all the custom fields i created.

  • How to force all characters in prompt text field will be in uppercase???

    Hi everybody
    How to get that all characters in a prompt field of a Webi report will be compared in uppercase with the database field ?? Even if the user input text in lower case.
    this is due to the database all filelds are in uppercase, and avoid to say to the users they input fileds in uppercase.
    i looked for a parameter in a universe and in oracle.prm filed, and i didn´t find it.
    Thanks in advance
    Guillermo
    DB: ORACLE 10G
    BO: XI r2

    Thanks a lot rohy.
    now i use that solution, but my intention is try to solve to all objects, not each object individualy, due to i have a lot of objects that a user can choose from a prompt, and i have a lot of filters to do that
    i would like to change some parameter to do that at one time.
    i investigate about it......
    thanks again.
    best regards Guillermo
    have a nice day

  • Using variables to add and subtract a number in a text field?

    The adding bit works fine:
    // get this pconn count
    var this_p_conn:Number = Object(this).parent.p_conn;
    // get current pconn total
    var c_this_p_conn:Number = Object(root).part_count.p_conn_count.text    
    // add this pconn count to total pconn
    var v_this_p_conn:Number = Number(this_p_conn+c_this_p_conn);
    // Update total pconn with new value
    Object(root).part_count.p_conn_count.text = String(v_this_p_conn)
    Removing a value from the total is another story, this looks like it should work but it does not:
    // get this pconn count
    var count_p_conn:Number = Object(this).parent.p_conn;
    // get current pconn total
    var total_p_conn:Number = Object(root).part_count.p_conn_count.text;
    // subtract this pconn count from total pconn
    var new_p_conn:Number = Number(total_p_conn-count_p_conn);
    // Update total pconn with new value
    Object(root).part_count.p_conn_count.text = String(new_p_conn);
    Any ideas or suggestions? My eyes are a bit blurry from looking at code, maybe I missed something obvious. Thanks in advance!

    Never mind, I got it worked out now.
    I had the subtraction code firing AFTER my remove self code, so the player never got to fire the subtract code:
    var b:MovieClip = Object(this).parent;
    Object(this).parent.parent.removeChild(b);
    I placed the subtract code before the above code and now it works fine... I think I need powernap...
    The lesson here is that apparently code fires from the top to the bottom, mind the order of how your code is stacked.
    Sorry for the fuss! Carry on.

  • Incrementing a Number in a Text Field by Holding a Button

    Hi All,
    Just wondering... is there any way to increment a display number up or down my clicking / holding a button?
    im making a project to select a fuel tank capacity and want the default to be 0.0 gallons and have the user increase the number or decrease the number by clicking and up or down arrow button... If they hold the same button that function would ideally increment faster, perhaps by multiples of ten until it reached a max / min number.
    Thank you for any help... i have no idea where to begin.
    Pat

    if tf is your textfield and you use movieclip buttons:
    btn1.change = .1;
    btn1.onPress=function(){
    this.onEnterFrame=editTF;
    btn1.onRelease=function(){
    delete this.onEnterFrame;
    btn2.change = -.1;
    btn2.onPress=function(){
    this.onEnterFrame=editTF;
    btn2.onRelease=functino(){
    delete this.onEnterFrame;
    function editTF(){
    tf.text = this.change+Number(tf.text);

  • Extracting and Sorting a Number in a Text field

    Hi everybody,
    I have a column in LOAN_DTL Table as LOAN_DESC which contains data like this:
       CUSTOMER LOAN A/C : CAR  10.00%
       CUSTOMER LOAN A/C : CAR 11
       CUSTOMER LOAN A/C - HOUSE 15.5%
       CUSTOMER LOAN ACCOUNT - CAR 5.50%
       CUSTOMER LOAN A/C - CAR 9%
       CUSTOMER LOAN ACCOUNT : HOUSE 10%
       CUSTOMER LOAN A/C : PERSONAL LOAN 8.50
       CUSTOMER LOAN ACCOUNT : HOUSE 7.75
       CUSTOMER LOAN A/C : HOUSE 6.00
    From the above data, I need to extract the Group i.e. CAR, HOUSE etc. and sort the Group on Rate of Interest order as below :
              CUSTOMER LOAN ACCOUNT - CAR 5.50%
              CUSTOMER LOAN A/C - CAR 9%
              CUSTOMER LOAN A/C : CAR  10.00%
              CUSTOMER LOAN A/C : CAR 11
              CUSTOMER LOAN A/C : HOUSE 6.00
              CUSTOMER LOAN ACCOUNT : HOUSE 7.75
              CUSTOMER LOAN ACCOUNT : HOUSE 10%
              CUSTOMER LOAN A/C - HOUSE 15.5%
              CUSTOMER LOAN A/C : PERSONAL LOAN 8.50
    How to go about the above ?

    Like this?
    SELECT loan_desc,REGEXP_SUBSTR(loan_desc,'[[:digit:],.]+%?') extract_string
    FROM loan_dtl
    ORDER BY 1,
             DECODE(loan_desc,
                    loan_desc,
                    TO_NUMBER(REGEXP_SUBSTR(loan_desc,'[[:digit:],.]+')));
    Message was edited by: 000000

  • Refreshing a text field in an applet

    I wrote a program which produced a lot of numbers as output. I installed this program into an applet by calling it from the start() override and converting the number to a string then placing it in a text field. However, it only seems to display the last number. I am getting the impression that the display is only refreshed when the applet finishes. Is this generally the case? I have put in a call to repaint() after each output but it doesn't seem to make any difference. I know the program is working because the numbers appear in the OUTPUT window in IDE too, as I have done a System.out.print.

    Here is my crazy programme. I put a sleep in but no difference. If I append to the buffer then all goes on the same line, which is not what I want. Also all appear at once when the program completes, but I want to watch this thing running. It produces prime numbers and increasing mp makes it produce lots and lots of them.
    * SimpleScrolling.java
    * Created on 21 March 2002, 15:00
    * @author me
    import java.awt.* ;
    import java.applet.Applet;
    import java.awt.TextField ;
    public class SimpleScrolling extends java.applet.Applet {
    TextField field;
    public void init() {
    initComponents();
    //Create the text field and make it uneditable.
    field = new TextField();
    field.setEditable(false);
    //Set the layout manager so that the text field will be
    //as wide as possible.
    setLayout(new java.awt.GridLayout(1,0));
    //Add the text field to the applet.
    add(field);
    validate(); //this shouldn't be necessary
    addItem("initializing... 1");
    addItem("initializing... 2");
    addItem("initializing... 3");
    addItem("initializing... 4");
    addItem("initializing... 5");
    addItem("initializing... 6");
    addItem("initializing... 7");
    public void start() {
    addItem("starting... ");
    addItem("starting...2 ");
    addItem("starting...3 ");
    addItem("starting...4 ");
    addItem("starting...5 ");
    primes() ;
    public void stop() {
    addItem("stopping... ");
    public void destroy() {
    addItem("preparing for unloading...");
    void addItem(String newWord) {
    String t = field.getText();
    System.out.println(newWord);
    field.setText(newWord);
    try {
    repaint() ;
    Thread.sleep(100) ;}
    catch (InterruptedException e) {}
    public void primes()
    String primeString ;
    long i=3 ;
    int j, k=0, t=0 ;
    final int mp = 10 ;
    long[] primes; // declare an array of integers
    primes = new long[mp]; // create an array of integers
    for (j = 0 ; j < mp ; j = j + 1 ) primes[j] = 0 ;
    primes[0] = 2 ;
    while (t!=2)
    j = 0 ;
    t = 0 ;
    while ( t == 0)
    if (j>=mp) {t=2; break;}
    if ((primes[j] * primes[j]) > i) {t = -1 ; break;}
    if (i % primes[j] == 0 ) {t = 1 ; break;}
    j = j + 1 ;
    if (t == -1)
    k = k + 1 ;
    if (k < mp) { primes[k] = i ; } ;
    if (k % 1 == 0)
    primeString = String.valueOf((int) i) ;
    addItem(primeString);
    validate();
    i = i + 2 ;
    /** This method is called from within the init() method to
    * initialize the form.
    * WARNING: Do NOT modify this code. The content of this method is
    * always regenerated by the Form Editor.
    private void initComponents() {
    setLayout(new java.awt.BorderLayout());
    // Variables declaration - do not modify
    // End of variables declaration

  • Text Field Problems

    Subject: Creating a form for user input.
    The text field allows the user to type in more information than the visible portion of the text field. I see where I can limit the number of characters however this is not a good option. Depending on the character or if it is capitalized the total length of the string will change where some text will be hidden or leave too much space before the end. How can the text field stop the user from adding more text when reaching the end?
    Another question:
    My form asks a question where the answer starts on the same line and then continues below. The text field below is much wider (width of the page) where I can't find the option of an odd shape text field to accommodate this. So far I will place a text field on the short line and add another text field on the line below. I can't find where the two text fields can be joined and the text cascade from one to the other.
    My impressioin:
    So far I am not very impressed with the from option as the text fields cannot be sized through the properties.
    You cannot change the text box that the form adds to a check box without deleting the text field and creating a check box. Additionally if you copy and paste a check box multiple times it creates a new check box that is connected to the original. You have to rename each check box otherwise if the user selects a check box all check boxes that was copied and paste will receive a check.
    Similarly if you copy a text field and paste into the form without renaming the field anything you type into the first text field will automatically be shown in all text fields that were paste into the form.
    The text box height does not resize when selecting a font size. You have to go out of edit and type into the text field to see if the  complete font will be shown or there is too much extra space.
    There has to be a better form making software available. Can anyone provide information towards other software that may be more suitable and eliminate the issues pointed out above?
    Thanks for your help

    To prevent the user from entering text beyond the size of the field - set the font's size to anything other than 'Auto', and uncheck the 'Scroll long text' and 'Multiline' checkboxes in the 'Options' tab. If you need multiline text, the text will always scroll. Setting the size to 'Auto' will reduce the text to fit the box (it will fit to one line if multiline is off, or to the entire box if multiline is on)
    Most of your complaints I don't agree with. Why should the field resize when you change the font size? That's up to you to decide the size/position/properties of the field. You do have the ability to select multiple fields and set them to the same height/width/both.
    And copy pasting a field shares the same value, that's a good thing. That allows you to show the same information in multiple areas easily. You need to change the field's name if you want to have a different value (shouldn't the field's name be different if the value it represents is different?).
    There is an alternative to Acrobat PDF forms, you can use Adobe Livecycle to create dynamic PDF forms. It is much more advanced (you can create dynamic fields which change size, can be added as line items, and much more). It's also a much larger learning curve.
    If you think using Acrobats form features a problem, try creating a form in Microsoft Word.

  • Text Field on top of a Button

    I'm using buttons to display an image dependent on a dropdown and need to include a text form on top of the images. When I put another drop down on top of the button it is still accessable but when I put a text field on top of the button the text field disapears and can't be selected to put type in. Is there a way to move it on top of the button?
    (function () {
    if (!event.willCommit) {
    var v = event.changeEx;
    this.getField("FlangePic").display = (v=="Flange") ? display.visible : display.hidden;
    this.getField("Dropdown4").display = (v=="Flange") ? display.visible : display.hidden;
    this.getField("PinionPic").display = (v=="Pinion") ? display.visible : display.hidden;
    //I would like to display "Number of Splines" text field on top of the picture of the spline
    this.getField("SplinePic").display = (v=="Spline") ? display.visible : display.hidden;
    Thanks

    TSN has a point, but since forms were introduced the tab order is also the z-order of fields. But if they are not read-only, they can recieve the focus, and a field that has the focus will appear to be on top. So if you set the button to read-only and set the tab order so the button is before the text field, it should work OK.
    Another option is to take advantage of the button label, which can have a number of placements. When the button is clicked it could prompt the user (e.g., app.response) to enter some text and then update the button label. You'd use the field.buttonSetCaption JavaScript method for this: http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/JS_API_AcroJS.88.738.html

Maybe you are looking for

  • Robohelp 10 output line spacing for numbered lists is off

    I wondered if you have had this situation occur with your output from Robohelp 10. I created my help system and CSS using Robohelp 10. My CSS contains a numbered list style and an alpha list style, both having line spacing of 3pt before and 3pt after

  • Wireless syncing

    Okay... here's what I want to do. I have a 5th gen iPod in a universal dock and from that dock an S-vid cable to the TV and a stereo out to the stereo. Using the output to TV setting, I am able to watch movies on the bigger screen and listen to them

  • Check condition record

    Dear all, Do anyone know how to check those articles which have no condition record (without retail price record) in the system? Is there any standard function to check these data? Thanks and regards Chris

  • Scripting Editor

    i am unable to upload the XML file to Interactive Scripting editor.I am CRM 4.0 sp8. When i try to upload the file, it doesnot give me any error but it doesnot even show me the uploaded file also. Does anyone have any idea ??

  • Applying patch 8919491 on apps tier to upgrade from 12.1.1 to 12.1.3 failed

    errors in adpatch.log: Program completed successfully Completed: file fwkportlink.ldt on worker 25 for product fnd username APPS. Completed: file jtfumprof.ldt on worker 31 for product jtf username APPS. Program completed successfully Program complet