Updation of date in my form page

Hi friends,
I created a form page with report, in which the insertion that i made into the forms has to reflect in report
In my form these are the corresponding fields,
Requested by:
start date:
status:
priority:
My requirement in the form is when i logged into the form page for an entry, the start date field should automatically have the current sysdate, and i need the fill up the remaining fields to make an entry in report...
I have also brought the corresponding sysdate in my start date form field when i opened the form, but the problem for me is the start date field alone is not getting inserted into my table, except this field all the other field is getting inserted...
How i made the sysdate to appear in the corresponding start date field means,
Under the item source of the start date field, i made the following changes
source used: replacing an existing value in an session state
source type: static assignment (value equal to source)
source value or expression: i gave the following sql query like
select sysdate from dual;
soon after this change, when i login into the application, for putting an entry in form
sysdate is automatically showing it in the start date field, but it is not getting inserting into my report, soon after i give create button in my form page....
So wat to do......why it is not inserting...whether any other string available for passing sysdate in apex
If it has so means...share with me friends......
Thanks,
Harry...

Hi aaron,
Thanks for your reply...........
I already obtained solution for it.........Since i gone through the steps that you mentioned it is right, but a slight change in it.....
source used: always use existing value in session state.
source type: db column.
source value or expression: respective column(here in case: start_date)
But change the
default value: to_char(start_date,'dd-mon-rr')
default source type: plsql expression, and also set the format mask to the format that you are given.....
It will work perfectly.......

Similar Messages

  • SQL INSERT / SQL UPDATE don't work with form page, don't affect table

    The subject line says it all. No matter what I try, my updates on the form don't appear on the report page, which accesses the table. When I look at the table using SQL WORKSHOP, the changes aren't made there either. What am I missing? I have another report page and form page with a different table in the same application and updates in that table work fine. I coded them both the same. What should I be looking at?
    Steve "the n00b" in Raleigh NC

    Steve,
    How you have created the FORM page? Using FORM WIZARD? Or You have created blank page and after that you have manually created all the form items?
    If you have used WIZARD to create form page, then you can see a page process with Automatic Row Processing (DML) type. Here you need can set DML (Insert/Update/Delete) you wish to use on this form. APEX will take care of the rest.
    If there is no such process in your page, then you need to create one. You may have one process to do both (Insert and Update) and you can have two sepate processes. I prefer having two seperate page processes (after submit), one for Insert and one for Update.
    Now you can make the Insert process conditional so that it only execute when you click button - Create (Add or any similar button you have ) Also make the Update process conditional so that it only execute when you click button - Save (Update or any similar button you have )
    Just a quick note - From the above trigger, I can guess you are allowing users to enter Primary Key manually? In my opinion, Primary key should be always system generated using SEQUENCE. Users can only enter BUSINESS KEY (if any) and we should not use Business key as Primary Key.
    Good Luck :-)
    - Hari
    Edited by: Hari_639 on Oct 23, 2009 8:02 PM

  • Reg Date field in Form

    I am working with a form in which I need to display a date from a XXXX table. Initially when I run that form online it should display MM/DD/YYYY (to let the user know that he/she should enter the date in the specified format)in the date field if the value in the table is empty for the current record otherwise it will display the date from the table. It should allow the user to update the date from the form itself, if it is empty.
    Can anyone help to resolve this issue?
    Thanks

    In then WHEN-CREATE-RECORD you could do:
    COPY( 'MM/DD/YYYY', '<date_item>');
    Copy allows you to copy something that isn't a valid date, into the date item.
    Of course you ought to make this NLS_DATE_FORMAT compliant, and not hard code the format, but that's up to you.

  • Tabular Form Page - Insert and Update Primary Key

    Hi -
    I am creating a Tabular Form page which will display 2 columns:
    CODE (Text Field), DESCRIPTION(Field)
    The *'CODE'* is a primary key to the table/view and *'DESCRIPTION'* is the corresponding detail information for the *'CODE'*.
    I am trying to create an updateable report on this page which will show these columns and when a user wants to add a new row,they should be able to add a new row with CODE='somecode' and DESCRIPTION='description' but shouldn't be able to update (but should be displayed) the *'CODE'* value once inserted into the table or view.
    Is there a way to do that? Please share your expertise.
    Thanks,
    -Seenu

    I't a bit unclear what you want.
    In your first post it seems that you don't want the user to change the PK.
    In your second post the user can change the PK, but you get a db error.
    Anyway, I guess you don't want the user to change the PK.
    I have a few support tables, which are the source for some LOV's.
    For those I also add records with a manual assigned PK, rather then via a sequence, just to improve consistency across applications.
    The data is protected by foreign keys to the main tables.
    You could further add a trigger to your table which throws an error the moment it detects a change on your PK.

  • Two forms that update differrent tables on the same page?

    I tried to add two forms that update different tables on to one page.
    Problem is when I do that the forms gives me an error saying the field does not exist. It's like it is trying to update one table with the other tables fields.
    As an example Say I have one forms that is for people table and another one that is the Jobs table.
    When I go to update the people table, it sends the data for the jobs fields too I get an error like the field job description does not exist.
    I have two different forms for these and everything.
    I would hope it is possible to have two forms that update different tables on the same page.

    I was trying the exact same thing, but i managed to work round it by setting the steps to hide one region, so the user would enter the form see one region submit the region then direct back to the same page with the different region visible and the original hidden.
    I don't know if this would be acceptable for you...

  • Merge pdf form data to an ASP page via HTTP

    I am using Adobe LiveCycle.
    Using LiveCycle has anyone been able to collect data from a PDF form posted on their web page, submit via submit button, that data to an ASP page and use the ASP page to do record manipulation.
    I have successfully created a PDF page and collected the data with JavaScript and updated the database. I'm looking for an alternative solution.

    Hi Robert,
    I am trying to design form to interact with an ODBC.
    Do you have any working example that uses following methods?
    xfa.sourceSet.DataConnection1.addNew();
    xfa.sourceSet.DataConnection1.update();
    xfa.sourceSet.DataConnection1.delete();

  • How do I get pages 5.2 to automatically update the date - use 10.9.2

    How do I get pages 5.2 to automatically update the date in my documents - before the update I could do this. Does anybody have the knowledge or a workaround.
    If not I will dump pages 5.2 and use my old version!!! this feature is important for any and all businesses using pages??
    Any advice on how to achieve this is greatly appreciated
    I use a number of macs all using OSX
    10.9.2

    I have the same problem.
    What confuses me is that all the apple provided templates in pages seem to auto update their time and date upon opening.
    So there MUST be a way to do it... Ive been unable to work out how...
    Amnon

  • Automatically update the date on opening a document in Pages 5

    I can't find how to automatically update the date on opening a document. I could in Pages 4.

    Indeed. That seems to be the only answer to all the "improvements". At least now I can do a word count with or without spaces. Phew. (Note the sarcasm)

  • Update current date in mysql using Update form DW CS4 PHP

    I have a field called datePosted that is set to curdate in the database.  What I want to do is when the checkbox on this form called approved is checked, and the form is submitted, I want that dateApproved field to update to the current date in the database.  When I have tried it, it says zero.  I have tried setting a variable and using now() but cant get it to change on update.
    Here is the form
    <form action="<?php echo $editFormAction; ?>" method="post" name="form1" id="form1">
        <table align="center">
          <tr valign="baseline">
            <td nowrap="nowrap" align="right">JobName:</td>
            <td><input type="text" name="jobName" value="<?php echo htmlentities($row_rs_crave['jobName'], ENT_COMPAT, 'UTF-8'); ?>" size="32" /></td>
          </tr>
          <tr valign="baseline">
            <td nowrap="nowrap" align="right" valign="top">Description:</td>
            <td><textarea name="description" cols="50" rows="5"><?php echo htmlentities($row_rs_crave['description'], ENT_COMPAT, 'UTF-8'); ?></textarea></td>
          </tr>
          <tr valign="baseline">
            <td nowrap="nowrap" align="right">State:</td>
            <td><select name="state">
              <option value="h" <?php if (!(strcmp("h", htmlentities($row_rs_crave['state'], ENT_COMPAT, 'UTF-8')))) {echo "SELECTED";} ?>>hh</option>
            </select></td>
          </tr>
          <tr valign="baseline">
            <td nowrap="nowrap" align="right">FleetID:</td>
            <td><input type="text" name="fleetID" value="<?php echo htmlentities($row_rs_crave['fleetID'], ENT_COMPAT, 'UTF-8'); ?>" size="32" /></td>
          </tr>
          <tr valign="baseline">
            <td nowrap="nowrap" align="right">Approved:</td>
            <td><input type="checkbox" name="approved" value=""  <?php if (!(strcmp(htmlentities($row_rs_crave['approved'], ENT_COMPAT, 'UTF-8'),""))) {echo "checked=\"checked\"";} ?> /></td>
          </tr>
          <tr valign="baseline">
            <td nowrap="nowrap" align="right">DatePosted:</td>
            <td><input type="text" name="datePosted" value="<?php echo htmlentities($row_rs_crave['datePosted'], ENT_COMPAT, 'UTF-8'); ?>" size="32" /></td>
          </tr>
          <tr valign="baseline">
            <td nowrap="nowrap" align="right"> </td>
            <td><input type="submit" value="Update record" /></td>
          </tr>
        </table>
        <input type="hidden" name="jobid" value="<?php echo $row_rs_crave['jobid']; ?>" />
        <input type="hidden" name="MM_update" value="form1" />
      </form>
    And they sql
    if ((isset($_POST["MM_update"])) && ($_POST["MM_update"] == "form1")) {
      $updateSQL = sprintf("UPDATE crave SET jobName=%s, `description`=%s, `state`=%s, fleetID=%s, approved=%s, datePosted=%s WHERE jobid=%s",
                           GetSQLValueString($_POST['jobName'], "text"),
                           GetSQLValueString($_POST['description'], "text"),
                           GetSQLValueString($_POST['state'], "text"),
                           GetSQLValueString($_POST['fleetID'], "int"),
                           GetSQLValueString(isset($_POST['approved']) ? "true" : "", "defined","1","0"),
                           GetSQLValueString($_POST['datePosted'], "date"),
                           GetSQLValueString($_POST['jobid'], "int"));

    Change the SQL like this:
    // Check whether the approved checkbox has been selected
    $_POST['approved'] = isset($_POST['approved']) ? 1 : 0;
    if ((isset($_POST["MM_update"])) && ($_POST["MM_update"] == "form1")) {
    $updateSQL = sprintf("UPDATE crave SET jobName=%s, `description`=%s,
    `state`=%s, fleetID=%s, approved=%s, datePosted=%s WHERE jobid=%s",
                           GetSQLValueString($_POST['jobName'], "text"),
                           GetSQLValueString($_POST['description'], "text"),
                           GetSQLValueString($_POST['state'], "text"),
                           GetSQLValueString($_POST['fleetID'], "int"),
                           GetSQLValueString(isset($_POST['approved']), "defined","NOW()","approved"),
                           GetSQLValueString($_POST['datePosted'], "date"),
                           GetSQLValueString($_POST['jobid'], "int"));
    What that does is check whether the approved checkbox has been selected. If it has, $_POST['approved'] is set to 1 (true); if not, it's set to 0 (false).
    In the GetSQLValueString() function, the value is set to NOW() if the checkbox has been selected. Otherwise, the existing value in the approved column is reassigned.

  • Updating data in adobe form

    Hi All,
    In my java webdynpro application, i want to show an adobe form and allow the user to update the data. Then, i want to store the form in binary in a db table.
    The layout of my form is not fixed as a different form can be uploaded each time. So, all i have is the binary of the interactive form.
    I have added the interactive form uielement in my view. I have bound the 'pdfsource' property to a context attribute that contains the binary of the interactive form to be shown. Also, i have chosen 'usepdf' in the mode.
    Now, after the user updates the form, if i read the context attribute bound to pdfsource, will i get the updated data in the form? Or should i do anything more to get the desired result?
    Thanks and Regards,
    Ram

    Hi Ram,
    In my Project we solved the same type of situation in following Procedure.
    1.) First after the User enters data in to the Form u hav to read it from the PDF
          by using this code .It converts the Data in to XML Format.
    public String getData(String pdfSource) throws EJBException
    ByteArrayOutputStream pdfSourceOutputStream = new ByteArrayOutputStream();
    try
       InputStream pdfSourceInputStream = new FileInputStream(new File(pdfSource));
       IOUtil.write(pdfSourceInputStream, pdfSourceOutputStream);
       pdfSourceInputStream.close();
    catch (Exception e)
       System.out.println(e.getMessage());
       throw new EJBException(e.getMessage());
    IWDPDFObject pdfObject = WDPDFObjectFactory.getPDFObject();
    pdfObject.setPDF(pdfSourceOutputStream);
    ByteArrayInputStream dataInputStream =                                      (ByteArrayInputStream) pdfObject.getData();
      if (dataInputStream == null)
        return(null);
      else
        try
          String output = formatData((InputStream) dataInputStream);
          return(output);
        catch (Exception e)
           System.out.println(e.getMessage());
           throw new EJBException(e.getMessage());                                 
    2.) Then u can get the data from tht XML code easily & store it in the Data Base where u need.
    --> For more Details watch the " TutWD_PdfObject " Sample Application from this site .
    I Think It helps u lot.
    With Regards,
    Roop Kumar.

  • Updating data in Web Forms

    Hi,
    I would like to know if it's possible to update data in web forms :
    * periodically (every 10 seconds for examples)
    * from the server (in a trigger or something like that) for all clients connected
    Thanks

    Taz,
    for the first a timer could do that. The second is not possible without having asynchrous message support in Forms. There are plans for such a feature but its not yet implemented
    Frank

  • Print the form data instead of whole page

    Hello All,
    I am having a problem in my ADF/JSF page. I just want to print the form data of my form instead of the whole page.using javascript:print() method prints the whole page.so can you help me in solving this issue. I have JDev 10.1.3 and do not want to upgrade to JDev 11g!
    Is there some java code to do so?
    Thanks,

    Hi,
    you can apply CSS to the page and use the media selector to deermine which components should appear in the print and which should not.
    Downlad the word document in http://thepeninsulasedge.com/frank_nimphius/wp-content/uploads/2008/05/OldAndLostBlogBusterTips.zip
    and have a look at page 287
    Frank

  • What is the easiest way to get the data from the mailmerge to form Pages files that can be saved separately?

    Using Iwork 09 I have spent several hours setting up a mail merge from a spread sheet in Numbers to create receipts for my customers from a Pages template.
    After the merge I am left with one long Pages document that will not save as separate files; one per customer, it will only save the whole document of several receipts.
    What is the easiest way to get the data from the mailmerge to form Pages files that can be saved separately?
    Many thanks in advance.
    Richard

    Mr. Clark,
    You will probably be more pleased with the iWork apps when you begin to learn your way around. Until you learn such basic things as how to print only one page of a document, you will probably continue to be disappointed.
    Does your Print dialog look like this:
    Or like this:
    If it looks like the first one, then you will want to click this expander control:
    Regards,
    Jerry

  • My simple form page isn't passing along the form variable I need to load my update page?

    I have created a recordset on my update page that specifies a form variable filter that matches the form ID on my simple form page.  When I enter the information on that page and submit, I go to the update page but nothing is loaded.  I've tested the update page using a URL parameter and it loads perfectly.  Why isn't my form variable working?

    Thanks for responding.  Here's the code.  I can't help with the url since I'm running on MAMP.
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>Untitled Document</title>
    <link href="assets/Trigger.css" rel="stylesheet" type="text/css" />
    </head>
    <body bgcolor="#FEFABA">
    <div id="wrapper">
    <table width="680" border="0">
      <tr bgcolor="#FEFABA">
        <td><img src="assets/images/featuredActivities/featuredActivity_logo.png" width="620" height="82" alt="Logo" /></td>
      </tr>
      <tr>
        <td height="98"><p>Update your information</p>
        <p>Please enter you Email Address and the click the Submit button</p></td>
      </tr>
      <tr>
        <td><form id="ml_email" name="ml_email" method="post" action="mailList_update.php">
          <label>
            <input name="text" type="ml_email" />
          </label>
          <label>
            <input type="submit" name="submit" id="submit" value="Submit" />
          </label>
        </form></td>
      </tr>
    </table>
    </div>
    <!--
    //-->
    </body>
    </html>

  • Can a Page with a web part, getting data from a form Library view, be exported to EXCEL?

    Certain data in a form Library is limited to a selected group of people (say Director's Group).
    I have created a Director's view in the Form library.
    Then created a Director's page with a web part connecting that Director's view to get the desired data. 
    Then I have hidden the view, since form library can have contribute permission to all the users.
    Permissions to that Director's page is given to only Director's Group. 
    However, Director's Group would like to export the data to MS EXCEL.  Is it possible?
    If not, any workaround using OOB functionalities?
    Thank you,
    SRA
    SRAEngineer

    Hi SRA, if I understand your needs correctly, the following links provide the answer:
    https://nazishqasim.wordpress.com/exporting-sharepoint-filtered-list-data-to-excelcsv-using-data-view-web-part-jquery-and-net/
    http://danssharepointblog.blogspot.com/2013/10/how-to-create-export-to-excel-button.html
    cameron rautmann

Maybe you are looking for

  • For loop initialization before another for loop commanded by an If condition

    Hello Everybody,  I have made a program which sweeps the total range of the duty cycle of a command signal, for a MOSFET circuit. I use a for loop, and I measure the output power, find the maximum power and block my circuit at this value.  But I want

  • Pages loses text in Word import

    I'm importing a word document, and Pages is leaving out text that TextEdit does not. Specifically the following data: HYPERLINK \l "_Toc190168203" Application Configuration Settings PAGEREF _Toc190168203 \h 33 HYPERLINK \l "_Toc190168204" Application

  • Making copies of a DVD

    Can I make multiple copies at a duplication house of the DVD I make in iDVD?

  • Isg_urgent_genideve

    Hi All; Im getting continuously error in Alert Log File and i m not able to export or import anything in My Database In alert log im getting this error Thu Nov 26 13:09:50 2009 Errors in file /u01/app/oracle/admin/genideve/udump/genideve_ora_14388.tr

  • HTML5 audio with Shoutcast - invalid source

    I have been trying to make the <audio> tags work with Shoutcast broadcasts in IE11 and have been unsuccessful after trying numerous things I have found on the web. It works fine with Chrome, FireFox, and in various Android browsers, but consistently