Infopath date Default Value ....

Hi, 
I have a date field called "Date" and another date field called "Archive".
I would like archive to contain "21/12/Year of field date".
So i tried many things but i still have the same problem. No matter if a use a calculated default value or a rule to update my field archive, i always have the field underline like if the value wasn't matching with the expected field type ...
The formula is : concat("31/12/"; sous-chaîne(Date; 1; 4))
-> displays 31/12/2014 but with the field highlight
If i pick up the value in the picker it will display the same value but without error message !
Any idea of what's wrong ? 
Regards 

So ... i fanally got it :
So what i did was to use this formula : concat(sous-chaîne(Date; 1; 4); "-12-31T00:00:00"). 
Even if i use date format it seems that adding time to the formula solved my problem.
As Andrew mentionned, the point is that date format has to be entered this way : YYYY-MM-DD whatever your local settings are or the format displayed by InfoPath.
Thank you !
Regards 

Similar Messages

  • Created by and creation date default values on form

    Hi Friends,
    I am a form newbie. I am creating a simple form.
    I have non-display column/fields:
    a.) CREATED_BY - how do I put the default value of the user login ID upon inserting record?
    b.) CREATION_DATE - how do I put the SYSDATE upon inserting the record?
    c.) UPDATED_BY - how do I put the default value of the user login ID when updating the record?
    d.) UPDATE_DATE - how do I put the SYSDATE when updating the record?
    Thanks a lot in advance

    Hi,
    In the PRE-INSERT trigger, write,
         :CREATED_BY    := GET_APPLICATION_PROPERTY(USERNAME);
         :CREATION_DATE := DATE;And in the PRE-UPDATE trigger, write,
         :UPDATED_BY  := GET_APPLICATION_PROPERTY(USERNAME);
         :UPDATE_DATE := DATE;Then your issue will be solved.
    Regards,
    Manu.
    If my response or the response of another was helpful, please mark it accordingly

  • How to set group name as default value in People Picker in Infopath 2010

    How to set group name (shareoint Groupname)  as default value in People Picker in Infopath 2010

    Under the Developer tab in Infopath you can manage Loading Events, unfortunetly i dont have Visual Studio on this PC so i cant laborate, but i believe it's rather simple to figure out.
    Edit: Found a easier way, through Data > Default Values.

  • Select MULTIPLE default values for a multiple selection list box based on another field in Infopath 2010

    Hello there - Before I explain my issue, I would like to point out that I have reviewed some other discussions on selecting default values for multiple selection listbox. But my issue is specific and different, and not answered by any of the discussions
    I visited.
    I have a multiple selection list box (say for example all countries in the world as values), and I would like to pre-select or setup multiple default values (say five countries) based on some criteria that I query from MS SQL database table.
    I know we can go to Data | Default Values option to setup one or many default values for multiple selection list box. When I enter the default values manually this works. I also right click the field under the Multiple-Selection List Box group, then select
    Add another Value Below and set the Default Value for this field to setup multiple default values.
    However, if I reference a field (either an infopath field or a field from SQL database) I am not able to setup multiple default values. Infopath automatically selects the last field I selected for all instances and in the end I am able to see only one
    default value selected instead of many. How to fix this problem? Why would infopath allow multiple default values when we enter it manually but not when we reference some fields?
    Please let me know if you need more info. Appreciate your help.
    Thanks!

    Hi redhotc,
    According to your description, my understanding is that you want to set multiple default values for a multiple checkbox list in InfoPath form.
    I did a test with SQL database table. I set three default values for the checkbox list by adding three values field under the group field(Data->Default values), each value field is for a default value. Then publish it to my SharePoint site, everything
    was fine.Please have a try as the below link:
    http://www.bizsupportonline.net/infopath2010/pre-select-items-multiple-selection-list-box-infopath-2010.htm
    Note: if you are using SQL databse table, you may need to enable ‘Allow cross-domain data access for user form templates that use connection settings in a data connection file’ in CA. More information, please refer to:
    http://answers.flyppdevportal.com/categories/sharepoint2010/sharepoint2010customization.aspx?ID=418b9423-a96c-4e5e-91f9-6a1b010ebb69
    I hope this helps.
    Thanks,
    Wendy
    Wendy Li
    TechNet Community Support

  • Default value don't get displayed for Fetch XML report

    Hi All;
    i have a date parameter in a fetch XML report 
    i set its default value as 01/01/2010 
    when i run this report in SSRS i can see the default value of the date
    But when the same report gets displayed on CRM 2013 online - report section the date default value dont get displayed
    Any help for this much appreciated
    Thanks
    Pradnya07

    Hello Zero-G. _,
    >> But I don't get any "Operation". I can't see my failure. - I tested around for the last few days, but I don't have a Clou, what's wrong...
    I am afraid that you have mixed the WCF and WCF Data Service, here is a WCF Service example(it works with the Entity Framework while it is not WCF Data Service):
    http://www.codeproject.com/Articles/127395/Implementing-a-WCF-Service-with-Entity-Framework, please check it, in your case, you are use this mode and you do not need to create WCF Data Services.
    If you want to write a custom method in WCF Data Service, you could refer to this link:
    https://msdn.microsoft.com/en-us/library/dd744841(v=vs.110).aspx, as you can see, although if we declare a custom method, it would not show in the web browser, we call it as adding
    the method after the based service link directly:
    http://localhost:12345/Northwind.svc/GetOrdersByCity
    Or call it by using a client project which could detect this method and call it as in this blog:
    http://blogs.msdn.com/b/dataaccesstechnologies/archive/2009/12/01/way-to-expose-custom-method-in-an-entity-class-from-wcf-data-service.aspx
    Regards,
    Fred.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How to set a default value for a drop down list box and then apply cascading based on the default value in Infopath 2010.

    Hello Everyone
    I have two drop downs. Both are coming from look up fields from two lists. i want to set a default value(first list item) for the first drop down list box and then apply cascading based on the default value for the next drop down list box. I found one article(http://www.bizsupportonline.net/infopath2010/display-first-item-drop-down-list-box-infopath-2010.htm)
    where in i can set a default value but i can't apply cascading based on that default value. Any suggestions would be highly appreciated.
    Thanks
    Ramanjulu Naidu N

    Hey Ramanjulu,
    Take a look at the below article which I believe will answer your question.
    http://basquang.wordpress.com/2010/03/29/cascading-drop-down-list-in-sharepoint-2010-using-infopath-2010/
    Daniel Christian (MCTS)

  • How to Get Default Value of a Data Type in SQL Query.

    Hi all,
    I am creating a procedure which will take input the table name and Column Name.
    In the Output i would like to have the data type and default value of that data type which will be used by a another procedure to blank the selected column in the database.
    I tried with SET NULL on the column but as the database is of navision the table have property set to NOT NULL.
    Here is what i have done till now.
    Create Procedure Get_Column_type
    @parm_table_name nvarchar(200),
    @parm_column_name nvarchar(20),
    @parm_result nvarchar(20)OUTPUT
    AS
    BEGIN 
    select @parm_result =
    DATA_TYPE from INFORMATION_SCHEMA.COLUMNS IC
    where TABLE_NAME = '[' + @parm_table_name +']' and COLUMN_NAME = '[' + @parm_column_name + ']'
    END
    GO
    Now instead on write a case statement for so many data types in SQL, i was thinking is it possible someway that above procedure also returns the default value which i can set in another procedure.
    Let me know if its possible or not? Thanks in advance.

    Do you looking for something like this?
    create table t10 ( c int default 1)
    SELECT so.name AS table_name, 
              sc.name AS column_name, 
              sm.text AS default_value
         FROM sys.sysobjects so
         JOIN sys.syscolumns sc ON sc.id = so.id
    LEFT JOIN sys.syscomments SM ON sm.id = sc.cdefault
        WHERE so.xtype = 'U' 
          AND SO.name = 't10'
     ORDER BY so.[name], sc.colid
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

  • Error giving a default value to a date column in the attribute settings.

    When im giving a default value to a date column in the attribute settings i get this error when im running my jsp page (bc4j web application):
    Error Message: JBO-25009: Cannot create an object of type:oracle.jbo.domain.Date with value: 31-dic-2099
    How can i fix that?
    Thank u

    The default date format for oracle.sql.DATE which oracle.jbo.domain.Date extends is "YYYY-MM-DD"

  • How to change default value of requested delivery date in va21 create quo

    hi experts,
    My requirement is simple, to add one day to the default value of the Req deliv date under "General header data" in VA21.
    I modified MV45AFZZ (an include in SAPMV45A).
    I added this code:
    if sy-tcode eq 'VA21'.
      case screen-name.
        when 'RV45A-KETDAT'.
         write reqdate to RV45A-KETDAT.
       screen-input = 0. "don't let user change it back.
       screen-active = 1. " but let user see the field and the
      endcase.
    endif.
    reqdate is the new value for RV45A-KETDAT which is sy-datum + 1.
    This code does'nt actaully change anything. I tried to change other values of other fields using the same code and it works. Is RV45A-KETDAT the correct field to use?
    Thank you in advance.

    You don't need to do that via user exit.  You can configure the RDD defautls by document type in SD config, and adding 1 day to the current date is very simple.  You can continue to use the FIELD_MODIFICATION user exit to lock down the field.
    Also, as a general practice in the sales exits, don't use SY-TCODE, use T180-TCODE or T180-TRTYP, even if you're not using BAPIs to create documents.

  • How to set default value to current date in Webcenter Imaging Application?

    Hi
    I have created an application in Webcenter Imaging and have a field called as ScanDate.
    While uploading documents against that particular application, i want that ScanDate field should default to Current Date.
    I tried setting the default value but it becomes a static date.
    Can anyone suggest me what to do in this case?
    Regards
    ACM

    You can't do that anyway. The default values are saved as part of the VI and a built application can not do that. Instead, you will have to do this yourself by saving the data to a file, loading it and wiring it into a local variable of the control. You can do this, for example, with the configuration file VIs or, if you want to rely on the good work that other people already did, you can go to the OpenG site and download their file package, which includes saving control values to INI files.
    Try to take over the world!

  • How to set system date as a default value in UIX/XML page?

    Example: We set default values using following statements:
    <set property="inputValue" target="${bindings.PoNumber}" value="${'1234'}"/>
    <set property="inputValue" target="${bindings.UserName}" value="${param.MyParam1}"/>
    In JDeveloper Help, we cannot find a way to set a Date attribute's default value to today's (system) date. Any suggestions?
    Also, does anyone have a reccomendation on a good book for uix/xml?
    Thanks, Ali.

    bump

  • How to set the Default values for Info Objects in Data Selection of InfoPac

    Hi All,
    Flat file Extracion:
    How to set the Default values for Info Objects in Data Selection Tab  for Info Package
    ex: Fiscal Year Variant  Info Object having values 'K4' 'Y2' etc  in Flat file
    Initially  default value(not constant)  for this info Object value should be 'K4'  in Info Package
    If I set data selection value for this info object K4 it will retreive records with this selection only? how to handle
    Rgds,
    CV

    Hi,
    suppose as your ex. if you are having fiscalyear variant in the dataselection tab then specify K4 in the from column, again the ficalyearvariant row and click on insert duplicate row at the bottom . you will get another row . In that enter Y2 in the from column. now you can extract K4, y2 values .
    haritha

  • How can I use today's date as default value in query string filter web part in SharePoint

    I have a query string filter on my web part page. I am trying to figure out how I can set it's default value to Today? I can't find anything online...

    Hi,
    Per my understanding, you might want to set a default value to the Query String Filter Web Part.
    It would not be able to set default value to the Query String Filter Web Part with the OOTB features available.
    By default, with a Query String Filter Web Part in the current page, we can filter other web part in the same page by adding parameters and values in the address bar
    of browser.
    If setting the “Query String Parameter Name” of a Query String Filter Web Part as “t”, then we can filter the corresponding connected web part by inputting such an
    URL into the address bar:
    http://sharepoint/SitePages/Page1.aspx?t=value1
    Suppose you want to filter the list view with a value dynamically when user opens this page, as a workaround, we can generate an URL with the parameters needed when
    page loaded, then redirect user to this URL afterwards. This can be achieved using JavaScript.
    About how to redirect user to other page with an URL:
    http://www.tizag.com/javascriptT/javascriptredirect.php
    How to get today’s date using JavaScript:
    http://www.w3schools.com/js/js_dates.asp
    Best regards      
    Patrick Liang
    TechNet Community Support

  • Inserting the default value for non existing date

    hello,
    i am designing a matrix report for payslip for month wise in oracle 6i report builder.
    in that i want to display per day working hours of the month.
    i m using following query for achieving my goal :
    select a.paycode,b.empname,c.departmentname,to_char(a.dateoffice,'DD') dateoffice,a.shiftattended,round(decode(a.hw,0,a.mannual_hours,a.hw),0) hw,
    a.ISMANNUAL,A.STATUS
    from tbltimeregister1 a,
         tblemployee  b,
          tbldepartment c
    where a.paycode=b.paycode and
    (a.hw >0 or a.mannual_hours is not null ) and
    a.departmentcode='D05' AND
    a.departmentcode=c.departmentcode and
    a.dateoffice between to_date('01/12/2012','dd/mm/yyyy') and to_date('31/12/2012','dd/mm/yyyy')
    ORDER BY A.PAYCODE,A.DATEOFFICEit is displaying the hours for the date in b/w date ranges exist in master table.
    my problem is that if any date of a month is not in master data ,it should display the given date in DD format with 0 hours , A(absent) status, and null shift by default.
    pl tell me how to modify my query for getting my desirable result.
    Thanking You
    Regards
    Vishal Agrawal

    965354 wrote:
    hello,
    select a.paycode,b.empname,c.departmentname,to_char(a.dateoffice,'DD') dateoffice,a.shiftattended,round(decode(a.hw,0,a.mannual_hours,a.hw),0) hw,
    a.ISMANNUAL,A.STATUS
    from tbltimeregister1 a,
    tblemployee  b,
          tbldepartment c
    where a.paycode=b.paycode and
    (a.hw >0 or a.mannual_hours is not null ) and
    a.departmentcode='D05' AND
    a.departmentcode=c.departmentcode and
    a.dateoffice between to_date('01/12/2012','dd/mm/yyyy') and to_date('31/12/2012','dd/mm/yyyy')
    ORDER BY A.PAYCODE,A.DATEOFFICEit is displaying the hours for the date in b/w date ranges exist in master table.
    my problem is that if any date of a month is not in master data ,it should display the given date in DD format with 0 hours , A(absent) status, and null shift by default.
    pl tell me how to modify my query for getting my desirable result.Your problem isn't exactly clear to me. How do you pass the dates to be compared to the DateOffice column? It will be better to ensure the Master table contain data for each date (with some default values) and you will not have to tweak your sql.
    Below is a possible solution:
    select *
      from
    select a.paycode,b.empname,c.departmentname,to_char(a.dateoffice,'DD') dateoffice,a.shiftattended,round(decode(a.hw,0,a.mannual_hours,a.hw),0) hw,
    a.ISMANNUAL,A.STATUS
    from tbltimeregister1 a,
         tblemployee  b,
          tbldepartment c
    where a.paycode=b.paycode and
    (a.hw >0 or a.mannual_hours is not null ) and
    a.departmentcode='D05' AND
    a.departmentcode=c.departmentcode and
    a.dateoffice between to_date('01/12/2012','dd/mm/yyyy') and to_date('31/12/2012','dd/mm/yyyy')
    union
    select a.paycode,b.empname,c.departmentname,to_char(&date_variable,'DD') dateoffice,null,round(decode(a.hw,0,a.mannual_hours,a.hw),0) hw,
    a.ISMANNUAL,'A'
    from tbltimeregister1 a,
         tblemployee  b,
          tbldepartment c
    where a.paycode=b.paycode and
    (a.hw >0 or a.mannual_hours is not null ) and
    a.departmentcode='D05' AND
    a.departmentcode=c.departmentcode and
    ORDER BY A.PAYCODE,A.DATEOFFICEIf this is not what you are looking for, then
    1. Post a script that helps us to create the Tables required in your query
    2. Some sample data. That includes the data for master table that has missing dates (4-5 rows should suffice)
    3. The expected results from the sample data you posted.
    Please do not forget to mention your version:
    select * from v$version;

  • Start/End Date parameters that check day of week and using to set default values.

    Hi,
    I've got a report that presents data between a start and an end date.
    I want it to check if it's a monday and present data from the previous week, otherwise present data from this week.
    For the "Default" value of parameter @startdate, I've got the following expression:
    =iif(WeekdayName(DatePart("w", Today)) = "Monday",DateAdd("d",-8,Today()),DATEADD("d", 1 - DATEPART(DateInterval.WeekDay, Today(),FirstDayOfWeek.Sunday), Today()))
    for @enddate I've got default value:
    =iif(WeekdayName(DatePart("w", Today)) = "Monday",DateAdd("d",-1,Today()),DATEADD("d", 7 - DATEPART(DateInterval.WeekDay, Today(),FirstDayOfWeek.Sunday), Today()))
    but it doesn't appear to be working, I've checked 
    WeekdayName(DatePart("w", Today))
    as an expression in a text box and it evaluates to Monday but my IIF statement above always uses the DATEADD line therefore not returning "Monday" as the value (even though it is).
    Is it a problem that the parameters are of Data/Time data type and I'm trying to evaluate as type text?
    Any help would be appreciated.
    Thanks :)

    StartDate
    =IIf(DateDiff(DateInterval.Day,CDate("01/01/1900"),Today) Mod 7 =0,DateAdd(DateInterval.WeekOfYear,DateDiff(DateInterval.WeekOfYear,CDate("01/01/1900"),Today)-1,CDate("01/01/1900")),DateAdd(DateInterval.WeekOfYear,DateDiff(DateInterval.WeekOfYear,CDate("01/01/1900"),Today),CDate("01/01/1900")))
    EndDate
    =IIf(DateDiff(DateInterval.Day,CDate("01/01/1900"),Today) Mod 7 =0,DateAdd(DateInterval.Day,-1,DateAdd(DateInterval.WeekOfYear,DateDiff(DateInterval.WeekOfYear,CDate("01/01/1900"),Today),CDate("01/01/1900"))),DateAdd(DateInterval.Day,-1,DateAdd(DateInterval.WeekOfYear,DateDiff(DateInterval.WeekOfYear,CDate("01/01/1900"),Today)+1,CDate("01/01/1900"))))
    Please Mark This As Answer if it solved your issue
    Please Mark This As Helpful if it helps to solve your issue
    Visakh
    Hi, 
    This one works but it results to be between monday and saturday, how to make it between sunday and saturday?

Maybe you are looking for

  • Iphone not working since update! Please help!!!

    I got one of those "update your iphone" messages yesterday so i did and since then it seems not to recognise the sim card, either in the phone or when i plug it into i tunes. Really not great with technology, so really need some help Thanks in advanc

  • BPM Container for an abstract interface

    Hello all, I have created few abstract interfaces. But when I create a BPM container of type abstract interface and click on input help, abstract interfaces are not displayed. What might be the problem ? Shankar.

  • Can't print pdf files with adobe XI?

    I can't print any pdf files since I updated to Adobe reader XI

  • Bugs in calendar and alert in new software Anna fo...

    I use my E7 for business. I think it is a good smart phone. My previous one was an HTC with Windows Phone 6.5. But windows decided to shut down 6.5 to develop 7 so deceided to go back to symbiam. I found some problem after I successfully upgraded my

  • Keep being asked to agree End User Licence Agreement!

    I've been using Photoshop Album Starter Edition for a while, and am very happy with it. I've noticed now, though, that every time I doubleclick on a photo (I have this app as default for "Open With"), I am asked to confirm acceptance of the EULA. Tha