Set Date field value through Form datasource

Hello all,
Has anyone set the value of a field of type Date through the form's datasource?
    If (Not Entrega = Nothing And NrDias > 0) Then
        Entrega = Entrega.AddDays(NrDias)
        ds.SetValue("U_data", ds.Offset, Entrega)
    End If
End If
If I change the field to a text field it write to the datasource and display no problem.
Any ideias?
Best regards.

Ups,
Found it.
ds.setValue("U_dataent", 0, Entrega.ToString("yyyyMMdd"))

Similar Messages

  • How to set hidden field value in form?

    I've encountered a problem while developing a forum using JSF. See this code:
    <h:form id="commmentForm" formName="commentForm" >
         <h:input_hidden id="pageId" valueRef="CommentBean.pageId" value="${article.id}"/>
         <h:input_text id="userName" valueRef="CommentBean.userName"/>
         <h:input_text id="userEmail" valueRef="CommentBean.userEmail"/>
         <h:input_text id="userURL" valueRef="CommentBean.userURL"/>
         <h:input_textarea id="content" valueRef="CommentBean.content"/>
         <h:command_button id="submit" label="Leave A Comment" commandName="submit" actionRef="CommentBean.createAction" />
    </h:form>
    I was trying to specify a hidden field that represents the unique ID number of the current article using <h:input_hidden> tag above. But RI complains that runtime expression is not permitted in 'value' attribute. So I set the attribute 'value' to arbitrary number such as '2', but it seems that CommentBean.pageId is still null.
    So the question is:
    1. Why can't I use EL in JSF tags attributes?
    2. How can I resolve my problem mentioned above?
    Thanks very much in advance!

    To solve the problem, you have to use two hiddenfields, say:
    <h:input_hidden id="pageId"valueRef="CommentBean.pageId" />
    <h:input_hidden id="articleId" valueRef="article.id"/>
    I want to set the value of CommentBean.pageId to
    ${article.id} (article is not a managed bean) and to
    let CommentBean.createAction insert a database row
    whose page_id column is ${article.id}, so I think the
    tags you suggested won't work for me.Why can't you interrogate your ComponentBean for its pageId property during your invoke() method? By the time your invoke() method is called, the value from the hidden field will have been pushed to the model, so this should be no problem. You could do Application.getValueBinding("ComponentBean.pageId").getValue() to do so.
    Ed

  • How to set date field in custom form to default to {NOW} plus one year.

    I am developing a subscription site. I have the custom form for inputing a users information. I have the subscribe date set up as a default field of {NOW} that works great.
    Now I need the renewal field to default to exactly one year from the subscribe date.
    Any help would definitely be appreciated.
    thanks in advance

    PHP? http://us2.php.net/manual/en/function.date-modify.php
    Alec Fehl, MCSE, A+, ACE, ACI
    Adobe Community Expert
    AUTHOR:
    Microsoft Office 2007 PowerPoint: Comprehensive Course (Labyrinth
    Publications)
    Welcome to Web Design and HTML (Labyrinth Publications)
    CO-AUTHOR:
    Microsoft Office 2007: Essentials (Labyrinth Publications)
    Computer Concepts and Vista (Labyrinth Publications)
    Mike Meyers' A+ Guide to Managing and Troubleshooting PCs (McGraw-Hill)
    Internet Systems and Applications (EMC Paradigm)

  • Deleting date field value via import

    I need to clear the value in a date field for a few thousand records. I tried doing this via import by setting the value to a space " " but it didn't work.
    Any ideas on how this can be achieved through import or otherwise would be great.
    Thanks.

    Hi Nakul,
    Try any of the following, it will hopefully work in your case:
    1) Import using excel with blank date field (no data in date field). This will erase the already existing value in the date field [provided there is no workflow that restricts such deletion of date data.]
    2) Create a temp workflow on condition "before modified record saved" and update the date field value with blank (no values in fx), do the import, this workflow will delete the existing data.
    Cheers!
    Vix

  • Planning function to change date field value in layout

    Hello experts,
                          I have 1 BPS layout with 2 date fields ( Start date, End date ). With a filter conditions, set of data comes in BPS layout on execution and 2 date fields also contain some value...I want to change values of these 2 dates...both the date fields are char infoobjects..in BPS layout, in planning function I got only 1 function ( Repost function ) to change the value of char infoobject based on some condition. but date field value is not the status field...i want to enter new date instead of old date..if i right exit function in that also i can change only keyfigs values..so please help me to solve this problem..
    Thanks & Regards,
    Priyanka Joshi

    Hi Priyanka,
    As of now master data planning is not so flexibly supported.
    Still u can refer the below link which is enhancement of standard Repost function,and can be used to change master data.
    [http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/10d2b273-0e12-2c10-fab3-a34bde559f92]
    As far as my knowledge goes u cannot directly input date in rows.
    regards,
    Rajendra

  • When I try to access iTunes or safari, I get the following message:The procedure entry point QTCF_CFHTTP message set header field value could not be located in the dynamic link library QTCF.dll  I uninstalled and reinstalled.same result HELP!

    When I try to access iTunes or safari, I get the following message:The procedure entry point QTCF_CFHTTP message set header field value could not be located in the dynamic link library QTCF.dll  I uninstalled and reinstalled.same result HELP!

    Taken at face value, you're having trouble with a QuickTime program file there.
    Let's try something relatively simple first. Restart the PC. Now head into your Uninstall a program control panel, select "QuickTime" and then click "Repair".
    Does the repair go through okay? If so, are you able to launch iTunes and/or Safari now?

  • How can I validate a date field in Portal Forms

    I have a date field in portal forms that I want to perform validation on to make sure it's in the proper format before being accepted (mm/dd/yyyy). How can I validate against that field?

    Hi Ben,
    I took the time to test and revise. This is code that will validate a date entry (format MM/DD/YYYY). Just paste this in the "Before the start of the form..." window of the Additional PL/SQL code section of the form. Then add validateDate(); into the onBlur event window of the field in question. Replace the CYCLE_END_DATE with the field name in question.
    HTP.P('
    <SCRIPT LANGUAGE=javascript>
    function validateDate() {
    var ddObj;
    var mmObj;
    var yyObj;
    var day;
    var mon;
    var year;
    var field_val;
    var field_name;
    for (var j=0; j < document.forms[0].elements.length; j++) {
    field_name = document.forms[0].elements[j].name;
    field_val = document.forms[0].elements[j].value;
    if (field_name.substring(field_name.indexOf(''DEFAULT.'') + 8, field_name.lastIndexOf(''.01'')) == ''CYCLE_END_DATE'') {
    var delimPos = field_val.search(/\//i);
    if (delimPos < 0)
    alert(''Invalid date entry! Please enter in MM/DD/YYYY format. '' +
    ''e.g, Dec 21, 2003 would be entered as 12/21/2003'');
    else
    if (field_val.length != 10)
    alert(''Invalid date entry! Please Please enter in MM/DD/YYYY format. '' +
    ''e.g, Jan 1, 2003 would be entered as 01/01/2003'');
    else {
    month = field_val.substring(0, field_val.indexOf(''/''));
    day = field_val.substring(field_val.indexOf(''/'') + 1, field_val.lastIndexOf(''/''));
    year = field_val.substring(field_val.lastIndexOf(''/'') + 1, 10);
    /* Need to subtract 1 from value because in Javascript, January begins with 0
    and ends with 11 for December */
    month = month - 1;
    ddObj = new Date(year, month, day);
    mmObj = new Date(year, month, day);
    yyObj = new Date(year, month, day);
    if (ddObj.getDate(ddObj.setDate(day)) != day)
    alert(''Invalid day!'');
    if (mmObj.getMonth(mmObj.setMonth(month)) != month)
    alert(''Invalid month!'');
    if (mmObj.getYear(mmObj.setYear(year)) != year)
    alert(''Invalid year!'');
    </SCRIPT>
    ');

  • Set External Field Value by Workflow

    Is there any way to Set External Field Value by SPD 2013 workflow?

    Hi j.kiani,
    According to your description, my understanding is that you want to update an external column in a list by SharePoint workflow.
    I did a test:
    Create a list with an external column
    Create a workflow , and add ‘Set Field in Current Item’ action, select the field is the external column, set the value to a value from the External Content type data source
    Publish the workflow and start it on an item
    The external column was changed to the value that I set in workflow. However, when I refreshed the external column by clicking the ‘sync’ flag, the data was changed to the old value.
    I used ‘Update ListItem’ action, the result was same
    It seems that there is not an OOB way to change external column with SharePoint workflow. You can change the external column by SharePoint web OOB way (Editing item) .
    I hope this helps.
    Thanks,
    Wendy
    Wendy Li
    TechNet Community Support

  • I am working in Adobe Acrobat 9 Pro and just created a pdf form from a MS Word document. I need to find out how to have a date field in my form which will update automatically. Can some one out there help me?

    I am working in Adobe Acrobat 9 Pro and just created a pdf form from a MS Word document. I need to find out how to have a date field in my form which will update automatically.

    Update automatically under which circumstances, exactly?

  • Error while updating Date Field on Process Form.

    Hi,
    I am using java code to pre-pop date on the process form.First I used a java code whic took java.sql.date as input and returned the same java.sql.date.But it gave an error that:java.lang.String cannot be converted to java.sql.date.......
    So I changed the java code and now it takes string as input and returns java.sql.date. This code works fine for Pre-pop adapter and the date is populated on the process form.
    But when i use the same code in a Process Task adapter to update the date, then it gives the following error:
    ERROR [ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)' XELLERATE.ADAPTERS - Class/Method: tcAdpEvent/updateDataSetValuePost encounter some problems: Adapter Execution Error: updateDataObjFieldValuePost: error updating UD_OID_USR_DATE_OF_BIRTH
    ERROR [ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)' XELLERATE.ADAPTERS - Class/Method: tcAdpEvent/updateDataSetValuePost encounter some problems: {1}
    Can anyone suggest any method to update date field on process form?

    Hi Abhi,
    Can you tell me how you have implemented populating an UDF based on Prepopulation of another UDF. I have a similar kind of requirement. It would be great if you share your code or relevant part of it.
    Regards,
    Sunny Ajmera

  • In the script date field value not printing in address window

    Hi Abaper's
    We are working for the upgradation project,my issue is:
    we are upgrading from 4.6 to ecc 6.0,the problem is *one from in 4.6 working fine but after upgradation to 6.o in that from in the address window date field value is not printing.in debugging mode i have checked value is coming properly but in the sppol..the date value is not displying.*can you please suggest on this.is required any changes or need to somting?
    Thanks and regards
    durga.K

    Hi,
    Kindly check if the window size is proper.
    Check if the tab settings are fine.
    Regards,
    Ankur Parab

  • How do I set blank data to date field in pdf form ?

    Dear Sir,
    I made PDF form by Acrobat X on Windows PC and then,
    read the pdf form by acrobat reader on iPad.
    Date field  is included in the form.
    The Acrobat version is 10.1.6 .
    The acrobat reader version is 10.5.0 .
    First, I put the wrong date data to the date field.
    So, I tried to clear the date field.
    I want to put the blank data to the date, but I think
    there are no way to put the blank data on iPad
    I would like to know how to reset the date data.
    If that helps, I tried to the same thing on Android.
    I could put blank data to the date field by BS key.
    Sincerely,
    PV NEXT CO., LTD.
    Kiyonobu Matsuo
    PVネクスト株式会社

    Here is how to clear the Date field on the Ipad.
    NOTE: In order for this to work that has to be another TEXT field in the PDF to get the keyboard to pop-up.
    Click on Text field (this is to get the regular keyboard on screen)
    Click on Date field (date spinner control will show up)
    Click on SAME DATE field (spinner control will disapper)
    Click on "Reset Field" on top of keyboard (date field will now be empty)
    Click any where on PDF that is not another Date field (keyboard will disappear and date field will be empty)
    Bingo! your free and clear.

  • Filling out the date fields in the forms

    Hi,
    I'm trying to fill out a form (http://www.uscis.gov/files/form/i-134.pdf). The regular text fields are working fine, but I've problem with date fields in this document.
    When I set the value of any date field (e.g. see "Date submitted" in the middle-right of last page), Acrobat Reader assigns the same value to all other date fields - which is completely wrong. And if I delete any value it has assigned, it deletes the values of other date fields as well.
    Is it a bug in Reader, or something is wrong with the form? I've the latest Reader 8.1.2 + security patch, running on Windows.
    Regards,
    Michael.

    It is the design of the form. It isn't a bug of Adobe Reader or Adobe Acrobat.

  • Initializing the date field in tabular form

    i m creating one time sheet application. in that i hv created one tabular form to take timesheet entries. current_date attribute is one of them. the problem is that i want to initialize the current date with the sysdate as the form loads and then afterwards the user can edit the date using the calendar if he wishes to. the current_date type is date picker.
    but the before header for computations is not showing thhe item and process is not allowing to create any pl/sql block..can any1 help me?

    In the source of the column use PL/SQL Expression or Function and put there
    SYSDATE (include some formating if you want). This will set the default value of the
    field to what you want once you add new rows.
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://htmldb.oracle.com/pls/otn/f?p=31517:1
    -------------------------------------------------------------------

  • Passing field values to form from another form

    Hi,
    I have multiple detail table for a master table. The master table is project table and the details tables are all related to the project table. In the portal forms we cannot have a form based on multiple child tables. So I am trying to enter one detail table at a time. I have created a master-detail table based on project table and a detail table (cost table). After I enter data in this MD form I want to carry the projectid to another form based on another detail table (resource table) on the next page. I want to navigate to this next form by clicking on a next button after I have entered data on the previous MD form.
    The projectid is a hidden field in the first MD form and is generated by a database sequence. I understood that there is many ways to send field values to a form:-
    1. By creating a moduleid link on the next button. This link will have the projectid value
    2. By calling the form from a PL/SQL procedure on the CALL/GO of the first MD form.
    I am not sure how to get the 'projectid' value generated from the sequence and pass it to the link or a procedure. Will the projectid value be stored in the session ? How do I get it ?
    Is the above way of entering multiple detail tables feasable ? Please advice.

    Hi,
    I have multiple detail table for a master table. The master table is project table and the details tables are all related to the project table. In the portal forms we cannot have a form based on multiple child tables. So I am trying to enter one detail table at a time. I have created a master-detail table based on project table and a detail table (cost table). After I enter data in this MD form I want to carry the projectid to another form based on another detail table (resource table) on the next page. I want to navigate to this next form by clicking on a next button after I have entered data on the previous MD form.
    The projectid is a hidden field in the first MD form and is generated by a database sequence. I understood that there is many ways to send field values to a form:-
    1. By creating a moduleid link on the next button. This link will have the projectid value
    2. By calling the form from a PL/SQL procedure on the CALL/GO of the first MD form.
    I am not sure how to get the 'projectid' value generated from the sequence and pass it to the link or a procedure. Will the projectid value be stored in the session ? How do I get it ?
    Is the above way of entering multiple detail tables feasable ? Please advice.

Maybe you are looking for

  • Can anyone write script for this

    You need to create a class called ?Account? that represents a bank account. The data describing each account consists of the customer?s account number, name and the current balance. Method shoud be provided to deposit an amount of money and to withdr

  • How to set the encoding of an XML-document

    I need to change the encoding of an xml-document. When I convert the document into a string, UTF-8 is used, I want to use ISO-8859-1.

  • Cd not showing up in itunes

    i insert my cd into the drive and usually something comes up in itunes that says "would you like to import these songs into your library" and nothing is coming up like the cd isn't even in there. can someone help me?

  • Unknown Error 4010

    After last iTunes update, I am now getting popup with Uknown Error 4010 about 1-2 times PER HOUR. DId not start until a few days ago after last update. I am sick of this.

  • How can I get the date and time and display it on the report main page?

    Gurus, How can I get the date and time and display it on the report main page? Thanks!