Auto-fill calender date and validate other fields depending upon selected date for infopath forms

I have a calender box in infopath form which i want to autoselect when user opens the form..Ex..i am opening form on 14th march the calender should show as 19th march and also i have to perform few validation and action such as if i am selecting date with
more than 5 days gap should open other field which is a dropdown..How can i perform this..

Do you have Excel Services? if so, this article may be of use to you:
http://sergioblogs.blog.co.uk/2013/01/08/infopath-2010-and-excel-services-in-sharepoint-15407321/
You can configure an excel workbook to validate if a date is a working day and then use formulas to workout the working date for 5 days after the date you enter, then link your InfoPath form to connect to the excel workbook and return the result of your
calculation.
Regards
Sergio Giusti
http://sergioblogs.blog.co.uk/
Whenever you see a reply and if you think is helpful, click " Vote As Helpful". And whenever you see a reply being an answer to the question of the thread, click "
Mark As Answer".

Similar Messages

  • Showing a field depending upon selection

    Hi,
    I have  created a executable type program. The generated screen has two radio buttons and a push button.
    Depending upon the radio button selected(push button need not be clicked) i want to display a input field.
    How can we achieve this?
    Thanks & Regards,
    Vijith

    REPORT zrsdvsr1
           LINE-SIZE 220
           LINE-COUNT 65(5).
    TYPE-POOLS : slis.
    TABLES
    TABLES: vbak.
    DATA DECLARATIONS
    Ranges
    RANGES: r_posnr FOR vbap-posnr.
    DATA: BEGIN OF t_veramt OCCURS 0,
            vbeln TYPE vbap-vbeln,
            posnr TYPE vbap-posnr,
            matnr TYPE vbap-matnr,
            netwr TYPE vbap-netwr,
            mwsbp TYPE vbap-mwsbp,
          END OF t_veramt.
    DATA: BEGIN OF t_disamt OCCURS 0,
            vbeln TYPE vbap-vbeln,
            posnr TYPE vbap-posnr,
            matnr TYPE vbap-matnr,
            netwr TYPE vbap-netwr,
            mwsbp TYPE vbap-mwsbp,
            netwr_v TYPE vbap-netwr,
            mwsbp_v TYPE vbap-mwsbp,
            disc_val TYPE vbap-mwsbp,
          END OF t_disamt.
    *&   ALV FIELDS
    DATA : alv_fcat TYPE slis_t_fieldcat_alv WITH HEADER LINE,
           alv_layout TYPE slis_layout_alv.
    SELECTION SCREEN
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
    PARAMETERS:  p_ver RADIOBUTTON GROUP g1 USER-COMMAND rad DEFAULT 'X',
                 p_sab RADIOBUTTON GROUP g1 .
    SELECTION-SCREEN END OF BLOCK b1.
    SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-002.
    SELECT-OPTIONS: s_vbeln FOR vbak-vbeln NO INTERVALS MODIF ID gr1.
    PARAMETERS:    p_dwfile TYPE  rlgrap-filename
                   DEFAULT 'C:\test1.txt' MODIF ID gr2,         "#EC NOTEXT
                   p_upfile TYPE  rlgrap-filename
                   DEFAULT 'C:\test.txt' MODIF ID gr3.          "#EC NOTEXT
    SELECTION-SCREEN END OF BLOCK b2.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_upfile.
    **************F4 Help For Input File Name****************************
      CALL FUNCTION 'F4_FILENAME'
           EXPORTING
                program_name  = syst-cprog
                dynpro_number = syst-dynnr
                field_name    = 'C:\'
           IMPORTING
                file_name     = p_upfile.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_dwfile.
    **************F4 Help For Input File Name****************************
      CALL FUNCTION 'F4_FILENAME'
           EXPORTING
                program_name  = syst-cprog
                dynpro_number = syst-dynnr
                field_name    = 'C:\'
           IMPORTING
                file_name     = p_dwfile.
    AT SELECTION-SCREEN OUTPUT.
      LOOP AT SCREEN.
        IF  p_sab = 'X'.
          IF screen-group1 = 'GR1' OR screen-group1 = 'GR2'.
            screen-active = '0'.
            screen-invisible = '1'.
          ELSE.
            screen-active = '1'.
            screen-invisible = '0'.
          ENDIF.
          MODIFY SCREEN.
        ELSE.
          IF screen-group1 = 'GR3'.
            screen-active = '0'.
            screen-invisible = '1'.
          ELSE.
            screen-active = '1'.
            screen-invisible = '0'.
          ENDIF.
          MODIFY SCREEN.
        ENDIF.
      ENDLOOP.
    START-OF-SELECTION
    START-OF-SELECTION.
    Check Radio Button
      IF p_ver = 'X'.
        PERFORM get_details_open_so_vertex.
      ELSE.
        PERFORM get_details_open_so.
      ENDIF.
    Display the output.
      PERFORM diplay_report .
    regards
    vinod

  • How to store/manipulate Date and long text fields with Dictionary project

    I am able to save string values into my backend (SQL Server) database in my web dynpro project but I am getting errors dealing with my date string and my long text (comments) field. 
    I want to figure out both how I need to define the fields in the dictionary project, how to define the context variables in web dynpro, and how to code the statements to pull the values out of the context and into fields I can use in my SQL insert. 
    Currently I have the date defined in the dictionary project as "date" and the comments as a 256-character string. 
    In the web dynpro context I have the date field defined as "date" and the comments field defined as "string".  Should I define a 256-character string type and use that as field type??
    In the code I am using the following to get the values:
         String s9 = (String) wdContext.nodeReceipt().getElementAt(wdContext.nodeReceipt().getLeadSelection()).getAttributeValue("Comments");
    String s5 = (String) wdContext.nodeReceipt().getElementAt(wdContext.nodeReceipt().getLeadSelection()).getAttributeValue("DateReceived");
    SimpleDateFormat sdf = new SimpleDateFormat("dd/mm/yyyy");
         try {
         Date dt = sdf.parse(s5);
         } catch (Exception e) {
              e.printStackTrace();
    I then try to insert all of my values with the following code:
    InitialContext ctx = new InitialContext();
      javax.sql.DataSource ds = (javax.sql.DataSource) ctx.lookup("jdbc/SAP/BC_JMS");
      java.sql.Connection con = ds.getConnection();
      java.sql.Statement stmt = con.createStatement();
      stmt.executeUpdate("insert into AVD_GEN_REC(VENDOR,DATE_RECEIVED,TOTAL_PIECES,LOGGED_BY," +
           "ADDRESSED_TO,BLDG_NO,CARRIER,TRACKING_NO, COMMENTS) values('s1','s5','s2','s6','s3','s7','s4','s8','s9')");
       } catch (Exception e) {
             wdThis.wdGetAPI().getComponent().getMessageManager().reportSuccess("Exception "+e.getMessage());
    Any help/ideas would be appreciated...

    The comment error seems to have resolved itself but I still get an error with the date field:
    Exception The SQL statement "INSERT INTO "AVD_GEN_REC" ("VENDOR","DATE_RECEIVED","TOTAL_PIECES","LOGGED_BY","ADDRESSED_TO","BLDG_NO","CARRIER","TRACKING_NO","COMMENTS") VALUES ('s1','d5','s2','s6','s3','s7','s4','s8','s9')" contains the semantics error[s]: type check error: new value (element number 2) is not assignable to column "DATE_RECEIVED" 
    The DATE_RECEIVED is defined in the data dictionary as "date", the context variable "DateReceived" is also a "date", and the statement to pull d5 is being stored to a "Date".  Is there a difference between the "Date" and "date"?
    Date d5   = wdContext.currentReceiptElement().getDateReceived();

  • How do we validate input fields on the selection screen

    How do we validate input fields on the selection screen

    hi balram,
    u can validate input fields using <b>AT SELECTION-SCREEN</b>  Event.
    PARAMETERS : p_werks TYPE marc-werks.
    AT SELECTION-SCREEN ON p_werks.
    SELECT SINGLE *
    FROM t001w
    WHERE werks = p_werks.
    IF sy-subrc <> 0.
    MESSAGE 'Invalid Plant' TYPE 'I'.
    ENDIF.
    Like this, we can validate user input for plant.
    check this link:
    http://help.sap.com/saphelp_nw04s/helpdata/en/9f/db9a2e35c111d1829f0000e829fbfe/frameset.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/56/1eb6c705ad11d2952f0000e8353423/content.htm
    Reware me if useful......
    Harimanjesh AN

  • The add ons i want to use are asking me to be able to continue to sign a liscense agreement...i dont know where they are to be able to sign them...one of the is WIRED-MARKER and the other is JUREEKA...thanx for the help

    Question
    the add ons i want to use are asking me to be able to continue to sign a liscense agreement...i dont know where they are to be able to sign them...one of the is WIRED-MARKER and the other is JUREEKA...thanx for the help edit
    Details

    Syncing to a "New" Computer or replacing a "crashed" Hard Drive: Apple Support Communities

  • In the Date Picker, How can I default to select * dates if the user does ..

    In the Date Picker, How can I default to select * dates if the user does not select a date.
    Thanks,
    Doug

    Doug,
    Now lets say l want everythingCould you post some sample data and the output that you want to get..? It would be much easy to understand the requirements...
    When you mean everything, I am assuming you need all possible dates possible between date1 and date2.
    you can use... (from asktom.oracle.com).
      1  select to_date('12-jan-2009','DD-MON-YYYY') + rownum -1
      2    from ALL_OBJECTS
      3    where rownum <= (to_date('20-jan-2009','dd-mon-yyyy') -
      4*                     to_date('12-jan-2009','DD-MON-YYYY') +1 )
    sql> /
    TO_DATE('
    12-JAN-09
    13-JAN-09
    14-JAN-09
    15-JAN-09
    16-JAN-09
    17-JAN-09
    18-JAN-09
    19-JAN-09
    20-JAN-09
    9 rows selected.
    For your case, since you have date1 and date2...
    select to_date(:p12_date1,'DD-MON-YYYY') + rownum -1
      from ALL_OBJECTS
      where rownum <= (to_date(:p12_date2,'dd-mon-yyyy') -
                        to_date(:p12_date1,'DD-MON-YYYY') +1 )Should work.. in my opinion...Haven't tested the second one in Apex .
    Is this what you were looking for ..?? If not, please elaborate...
    Thanks,
    Rajesh.

  • F4 help for a field Based on the data in the other fields

    Hi,
    We have a selection screen(Report Program) with three fields Bill Number, Billing Date and Plant. Bill Number and Plant are stored in one table and Bill Number and Billing Date are stored in another table, Bill number is common in Both the Tables. We want to  have a F4 Help for Bill Number based on Both the Plant and Billing date. For this we are trying to get it thorugh Search Help,, Can any of you help us in this context.
    Thanks & Regards,
    Satish P.

    hi,
    FORM F_GET_details .
    REFRESH INT_RET.
    *--THIS WILL FETCH THE details
    SELECT aBill aplant Number b~BillingDate
    INTO TABLE int_table
                    FROM ( ztable_numplant AS a
                      INNER JOIN
                        ztable_numdate AS b
                          ON  abillnimber = bbillnumber ).
      IF SY-SUBRC NE 0.
    *--MESSAGE IS 'NO data found'
      ELSE.
        CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
          EXPORTING
            RETFIELD        = 'screen field'
            VALUE_ORG       = 'S'
          TABLES
            VALUE_TAB       = INT_tab
            RETURN_TAB      = INT_RET
          EXCEPTIONS
            PARAMETER_ERROR = 1
            NO_VALUES_FOUND = 2
            OTHERS          = 3.
        IF SY-SUBRC <> 0.
          MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                  WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        ENDIF.
        READ TABLE INT_RET INDEX 1 INTO INT_RET.
        WF_data_needed = INT_RET-FIELDVAL.
      ENDIF.
    ENDFORM. 
    if hlped rwrd points
    anver

  • When require to fill my name and particulars to an application and the auto fill is displayed and when I click on the auto fill reques turns bleu and refused to auto fill in the document. Your assistance is appreciated.

    When require to fill my name and particulars to an application form or document, thr AutoFill box appears and when directing to auto fill, the message box turns blue and refuses to auto bill. I went to AutoFill in Safari preference but could not find any adjustment to correct the shortcoming. Your assisance is appreciated.

    https://discussions.apple.com/message/23547507#23547507
    This work arround worked for me.. using the icon

  • Hw to skip first field of input file in ctl file and map other fields- cols

    I need to write a ctl file where in my input file has 3 fields by comma separated.
    My table has 2 columns. In my ctl file I am using
    LOAD
    INFILE *
    TERMINATED BY ','
    COL1 need second field in the file
    COL2 need third field in the file
    Not sure how to skip the first field.

    Not sure abt it as
    load data
    infile *
    into table [table name]
    terminated by ','
    (COL1 has to be filled wth second field of the data file,
    COL2 has to be filled wth third field of the data file )
    i need to skip first field of the data file.

  • Substr to get the date and validate

    Hi all,
    I had a file with name as Emp_Names20101028_123245.txt
    Now i want to validate the date part ( 20101028_123245 ) in the filename having the format YYYYMMDD HH24:MM:SS.
    The date format should be only in the format as shown as above.other wise it should thrown an exception in a plsql procedure.
    Declare
    l_filename Varchar2(30);
    Begin
    l_filename = 'Emp_Names20101028_123245.txt'
    /* Sql statement to check the format */
    Exception
    When others
    Dbms_output.put_line(" Invalid File date Format");
    End;Edited by: Rede on Dec 1, 2010 12:41 PM

    Hi, Rede,
    Rede wrote:
    Frank
    Will the given mask ever contain other variable-length items, such as 'RRRR' or 'fmMONTH'?
    No, The give mask is standard.It will not  contain the Variable length items.
    That makes things a lot simpler! If the date is always in a standard format, there's no real need to use a varaible.
    Is there any other way you can determine what the date part of l_filename is? For example, does it always come after '...Names' and before '.txt'?
    It will always comes after the '...Names' and before '.txt'.
    I think we can use the SUBSTR function but there is an underscore (_) which is making a little complex sql statement.The underscore only has special meaning when you're using the LIKE operator, and even then, it can be escaped.
    Yes, you can use SUBSTR, like this:
    TO_DATE ( SUBSTR ( l_filename
                 , 6 + INSTR ( TRANSLATE ( UPPER (l_filename)
                                            , '012345678'
                              , '999999999'
                        , 'NAMES99999999_999999.TXT'
               , 15
            , 'YYYYMMDD_HH24MISS'
    REGEXP will be slower option, so i am looking to avoid REGEXP int his case.That's a good thing to keep in mind, but does it really matter in this case? Are you going to be parsing thousands of filenames at a time?

  • Form Letter Report - How To Format Date and Number Hidden Fields

    Hi
    Is it possible to format date and number fields in a form letter report. This case were Paper Design shows fields as $<hire_date>. The examples in reference book only print character values which do not require formatting. I cannot determine how to achieve this. Cannot select fields from Paper Design view as per other report styles where can apply formatting. Do I have to perform formatting in the query to return date as string in format I wish for? This is not case for other report styles.
    Thanks

    you could add a field, set the source of the field to hire_date (assuming hire_date is a column in the data model), and put a format mask of whatever format you want. then set visible to No.
    then instead of &<hire_date> you can instead type &<name of your new field>.

  • Firefox 4.0 wont auto-fill log-in and passwords that are stored

    My log-in and passwords used be auto filled by Norton Security suite prior to upgrade to 4.0. I checked in the "options" menu and the passwords and log-ins are still stored on my computer. How do I get Firefox to use them to sign in automatically?

    This online community is GREAT!
    I followed the info you sent and was able to exactly what I want to do.
    From an old man (70), thank you so much.
    Jim

  • Is there a way to add an auto fill on name and address

    I have a document, and it has multiple places where they have to put their name and address. Is there a way to add an auto fill so they do not have to type it so many times

    there is no auto save feature.
    if your work was with audio recordings, you might be able to rescue the audio fils themselves. ctrl-click the project, select Show Contents, and open the media folder. if the fiels are there, drop them into a the timeline of a new project

  • BAPI for changing delivery date and delivery time fields in LIKP table

    Hi All,
         Is there any BAPI or function module to change the delivery date and delivery time in LIKP table ?
    Please tell me experts if exists.
    Thank you,
    Raghu.

    try these:
    BAPI/FM to update LIKP and VTTK tables
    http://sap.ittoolbox.com/groups/technical-functional/sap-dev/bapi-for-changing-sales-headertable-likp-662800

  • Loading Historical data to the new field without deleting the data in cube

    Dear BI Experts,
    I have enhanced a new field to the Generic data source in BI 7.0 .
    I need to load historical data to the newly  appended field.
    As we are having very huge data it is not possible to delete and do init again.
    Is there any  other possibility to load the historical data for the new appeneded field without deleting the old requests?
    Thanks for your Kind  help.
    Kind Regards,
    Sunil

    Dear Sushant,
    Thanks for your reply.
    But I am just wondeing if there is any possibility of loading historical data for new field using Remodelling  concept
    with out deleting old requests.
    I do not know about Remodelling conept but heard that it is not recommeneded to use.
    Can you please suggest and help.
    Thanks and Regards,
    Sunil Kotne

Maybe you are looking for

  • LInksys Router BEFW11S4 version 2 and MacBook Pro Snow Leapord

    I bought my Linksys Router Model # BEFW11SW version 2 in 2002. I bought my MacBook Pro Dec.'09. My airport works in public location with wireless networks, but not in my house. Is my router not compatible, or can I re-configure something to make it w

  • Ringtones function not available on my iTunes

    I do not have ringtone functions on my iTunes, I've updated to latest versions, completely uninstalled everything apple or iTune related on my computer, and redownloaded, and still can't get the functions! Flatmates version has right click - create r

  • My iPod touch will access the app store, but it won't install from it.

    I was given a used iPod Touch, and I don't know any of its history. Eveything was working fine, and then one day I tried to install from the App store and it won't work at all. I can press the "install" button, but then the app store will just close

  • Handling Consignment Stock at Customer Location

    Hi Experts, Please advise how to handle consignment stock at customer location in SAP B1 2005B, the situation is in this way; The customer pays for the goods but the delivery is a consignment shipment. Regards, Shakeel

  • I want Apple to restore IPA fonts natively to OSx-10.7 and 7

    As I work in multiple languages as a professional singer, I would like to see Apple to restore and include natively IPA fonts as they did in an earlier OS. I've tried to jerry-rig getting them on to my cpu but the experience altogether very windows-l