How do I put a timestamp in a form field in a business process?

At a specific step in the process, when a user approves a form, I would like to put their name and a timestamp in a text field that is locked.  I think there are some different ways to do this, but each has their own issues.
Javascript in form:
I could do this via javascript before the form is submitted, but how do I know which step in the process we are in?
Business Process:
I don't think I can directly access the form from the process.  I can read from the form, but cannot set values, correct?
Custom Render Process:
I have a custom render process but I would need to extract all the data from the form, merge with the xml for the new field, then merge back in with the document.  Not sure how to do this.
Any ideas on what the best way to handle this would be?
Thanks

Hi,
You can use the executeScript component to set the timestamp in the form or varible. Mention below is an example to get the timestamp in dd/MM/yyyy format.
java.text.DateFormat dateFormat = new java.text.SimpleDateFormat(
                "dd/MM/yyyy");
java.util.Date date = new java.util.Date();
String datetime = dateFormat.format(date);
System.out.println("Current Date Time : " + datetime);
patExecContext.setProcessDataStringValue("xpath of the form field or variable", datetime);
Regards,
Waqas

Similar Messages

  • How do i put a box in my form and have consecutive numbering in it

    How do i put a box in my form and have consecutive numbering in it

    Hi,
    Sorry, this is not supported in Adobe FormsCentral.
    Thanks,
    Lucia

  • How do I use SE80 to view details of a Front Office Business Process?

    Hello all,
    I posted the following question in the ABAP general forum but did no reply was posted. So, I am hoping that experts in this forum may be able to help me with an answer.
    I would like to use SE80 (or any other transaction for that matter (except EWBC)) to get details of a Front Office Business Process. By details I mean information about methods, programs and anything else that can help me debug a problem I am having with transaction EC20. I have used transaction EWBC but I cannot get details about programs behind a given step. I get a list of steps and container info. Double clicking on the actual thing does not get me anything, and SE80 does not seem to be able to give me the needed information either, or at least I don't know how to go about it. So, which category, which sub-category or which button will do the job please?
    Your help is greatly appreciated.

    Hello,
    First of all go to transaction EWFC and enter the right Front Office configuration.Go to the appropriate transaction group containing the button you want to investigate.  Double click it and a new screen will pop up.  On this screen there should be a radio button 'Method'.  Next to this button you'll find a field with the object type.  Copy this type ( eg. PREMISES) to your clipboard and open another modus.
    Go to transaction SE80. In the left upper corner, a little under the text 'Object Navigator' there's a button 'Edit object'.  Click this one.  Go to the tab 'Business engineering' and select radio button 'Business object type'.  Fill in the object type from the previous step and you'll find the interfaces, key fields, methods, events etc.
    To customize this object you have to create a z-object derived from the main object.  You can add methods, events etc. as you like!
    Kind regards,
    Stijn

  • How do I create a text box or form field on the top of every page of a pdf in XI Pro for titles?

    I generate pdf content from another program and then in Acrobat XI Pro I want to add titles to each page.
    I'm thinking I can use form fileds and duplicate across all pages but how do I make each form filed unique?
    Or could i add a form field to a background and then apply the background to every page in the pdf?
    thanks.

    This type of thing is probably best done with a script, either by adding a uniquely named field to each page or by spawing a template page that contains just the form field (like your last idea). There's not a built-in method for doing this. If you add a blank page to the beginning of the document, create the field in the location you want, and make the page a template, you can run the following script in the interactive JavaScript console (Ctrl+J):
    // Get a reference to the template
    var t = getTemplate("Field");
    // Spawn the template on each page, automatically renaming the fields
    for (var i = 1; i < numPages; i += 1) {
        t.spawn({nPage: i, bRename: true, bOverlay: true});
    To run the code, select it all in the console and press Ctrl+Enter, or Enter on the numeric keypad.
    To make a page a template in Acrobat 11, make sure you're on the page you want to make a template and select: Tools > Document Processing > Page Templates
    and enter a name. I used a name of "Field" in the example above, but you can use anything.
    To create a blank page, you can use the following script:
    newPage({nPage: 0, nWidth: 8.5 * 72, nHeight: 11 * 72});
    for an 8.5"x11" page. Adjust the numbers to match whatever your page size is. It will be added to the beginning of the document and you can then add the field and make it a template. Once the fields have been added, you can remove the template page.

  • How to combine two PDF files without consolidating form fields

    I have two PDF documents with form fields in each. Someone else created the documents. Certain fields were untitled and thus were given names as "undefined" in each document. However, some of those fields contain different information in each document. When i combine the document, these fields mix and incorrect information gets put into certain fields.
    For example, there is a blank field in doc A, titled "undefined." In doc B, there is a field with "johnson" titled "undefined." When I combine them, "johnson" appears in the blank field.
    Is there a way to combine the documents without combined fields?

    Is this the correct window I should see? I hit start and it said it was completed, but nothing seemed to happen.

  • How to embed more than 393 chars in form fields

    how to embed more than 1000 character in the field.
    I have written a xsl template which is about 2 pages in length.
    How do I embed it in the word template fields.

    1. create a new template and flag it as sub template
    2. import this in rtf using <?import:xdo://APPCODE.TEMPLATE_CODE.lang.TERR?>
    where
    APPCODE is the Application code you assigned to the subtemplate in the Template Manager. For example, if you associated this template with the Receivables application, enter "AR".
    TEMPLATE_CODE is the template Code you assigned to the subtemplate in the Template Manager. For example, AR_CommonComponents.
    lang is the two-letter ISO 639 language code for the template language you specified for the subtemplate in the Template Manager (for example, English is "en"). This entry must be lowercase.
    TERR is the two-letter ISO 3166 country code for the template territory you specified for the subtemplate in the Template Manager (for example, United States of America is "US"). This entry must be uppercase.
    --Prasanna                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • How do I restore the "Flatten annotations and form fields" Preflight profile?

    The "Flatten annotations and form fields" Preflight profile (sub: PDF fixups) was accidentally deleted from my computer. I don't know how to reinstall/recreate it. I use it all the time... please help.

    In which case, just recreate it yourself:
    Preflight > Pptions menu > New Preflight Profile
    Give it the name you want
    Custom Fixups section on the left, add two entries from the list
    "Flatten all annotations into page contents"
    "Flatten all form fields into page contents"
    Save it in the PDF Fixups category and lock it

  • How to display/edit timestamp in a Form Field ?

    Hello,
    i have a table which has a TIMESTAMP column and i have a form based on this. What i want is to be able to have a user see it during displaying in a form and be able to insert or modify these timestamp values. I looked through the various DATE pickers in Page Item | Display as, but i didn't find a suitable one for TIMESTAMPs. The closest one to my needs is that of DD/MM/YYYY HH24:MI but if i use it the user can't provide seconds and if form in update mode, when the user presses save without actually making any modifications the seconds part of the field is lost.
    Any idea how to solve this situation? Have you had such a similar problem in your implementation? How do you implement in your applications TIMESTAMPS?
    TIA
    Edited by: Dionyssis on 7 Ιαν 2010 3:12 πμ

    >
    Any idea how to solve this situation? Have you had such a similar problem in your implementation? How do you implement in your applications TIMESTAMPS?The DatePicker doesn't support timestamps. In our applications we have used non-database date fields to handle the user display/entry side of life and then manually populated these fields from the (hidden) timestamp fields during record 'build' and then used a process to set the timestamp field to match the user-updated date field during submit - in our case we're also using timezones.
    It's a pain... I'd like a better alternative!
    Andy

  • How do I put a label in a null field in the result set of a group-by query

    I run the query:
    select section, count(*) from nparcel group by section
    and get the result
    section1 100
    section2 200
    section3 300
    400
    I would like to modify the query to put a label, perhaps 'BLANK', in the last returned row. Is that possible and if so how.
    Thanks in advance for helping.

    Hi,
    In SQL*Plus you have some additional options, that apply to all queries until you override them or end the session.
    COLUMN section NULL BLANKapplies only to the column called "section".
    SET NULL BLANKApplies to all columns.

  • How do I put a crosstab on a form?

    I need to set up a matrix-type canvas on a form where each cell will become a record on a table with the row value and column value forming the key. The row and column values will be retrieved from another table.
    Any ideas? I don't even know where to start.

    for example I have a table:
    emps( empno number, start_time date, end_time date );
    And I'd like to have a form that looks like:
    EMPNO 8am 9am 10am 11am 12pm 1pm 2pm
    1 - x x x x - x ....
    2 x x x x - x x ....
    that shows empno = 1 works from 9am-12pm, is off for 1 hour (and
    so on...)
    and I said...
    Well, once we create a view, this is easy. The view isn't easy
    to come up with perhaps but once there -- its trivial to use.
    We'll start with an extra table:
    [email protected]> create table hours
    2 as
    3 select rownum-1 hour
    4 from all_objects
    5 where rownum <= 24;
    Table created.
    That has a row for every hour in the day...
    Here is my emp table. I have a column DAY that is for
    illustrative purposes -- you might not need it (you could also
    substitute TRUNC(start_date) where I reference DAY in the view
    below). I made it a column so I could index it and query it
    easily...
    [email protected]> create table emp
    2 ( empno number,
    3 day date,
    4 start_time date,
    5 end_time date
    6 )
    7 /
    Table created.
    [email protected]> create index emp_idx on emp(empno);
    Index created.
    [email protected]> create index start_idx on emp(day);
    Index created.
    [email protected]> alter session set
    nls_date_format='dd-mon-yyyy hham';
    Session altered.
    [email protected]>
    [email protected]> insert into emp values
    2 ( 1, '07-jul-2000', '07-jul-2000 9am', '07-jul-2000 12pm'
    1 row created.
    [email protected]> insert into emp values
    2 ( 1, '07-jul-2000', '07-jul-2000 1pm', '07-jul-2000 6pm' );
    1 row created.
    [email protected]>
    [email protected]> insert into emp values
    2 ( 2, '07-jul-2000', '07-jul-2000 8am', '07-jul-2000 11am'
    1 row created.
    [email protected]> insert into emp values
    2 ( 2, '07-jul-2000', '07-jul-2000 12pm','07-jul-2000 5pm' );
    1 row created.
    [email protected]>
    [email protected]> insert into emp
    2 select empno, day-1,
    3 start_time-(1+1/24), end_time-(1+1/24)
    4 from emp;
    4 rows created.
    [email protected]>
    [email protected]> select * from emp;
    EMPNO DAY START_TIME END_TIME
    1 07-jul-2000 12am 07-jul-2000 09am 07-jul-2000 12pm
    1 07-jul-2000 12am 07-jul-2000 01pm 07-jul-2000 06pm
    2 07-jul-2000 12am 07-jul-2000 08am 07-jul-2000 11am
    2 07-jul-2000 12am 07-jul-2000 12pm 07-jul-2000 05pm
    1 06-jul-2000 12am 06-jul-2000 08am 06-jul-2000 11am
    1 06-jul-2000 12am 06-jul-2000 12pm 06-jul-2000 05pm
    2 06-jul-2000 12am 06-jul-2000 07am 06-jul-2000 10am
    2 06-jul-2000 12am 06-jul-2000 11am 06-jul-2000 04pm
    8 rows selected.
    So that is the data we have to work with. 2 days worth for 2
    emps. Hours are different by day...
    [email protected]> alter session set
    nls_date_format='dd-mon-rr';
    Session altered.
    Here comes the view:
    [email protected]> create or replace view empV
    2 as
    3 select empno, day,
    4 max( decode( hour, 0, flag, null ) ) "0",
    5 max( decode( hour, 1, flag, null ) ) "1",
    6 max( decode( hour, 2, flag, null ) ) "2",
    7 max( decode( hour, 3, flag, null ) ) "3",
    8 max( decode( hour, 4, flag, null ) ) "4",
    9 max( decode( hour, 5, flag, null ) ) "5",
    10 max( decode( hour, 6, flag, null ) ) "6",
    11 max( decode( hour, 7, flag, null ) ) "7",
    12 max( decode( hour, 8, flag, null ) ) "8",
    13 max( decode( hour, 9, flag, null ) ) "9",
    14 max( decode( hour, 10, flag, null ) ) "10",
    15 max( decode( hour, 11, flag, null ) ) "11",
    16 max( decode( hour, 12, flag, null ) ) "12",
    17 max( decode( hour, 13, flag, null ) ) "13",
    18 max( decode( hour, 14, flag, null ) ) "14",
    19 max( decode( hour, 15, flag, null ) ) "15",
    20 max( decode( hour, 16, flag, null ) ) "16",
    21 max( decode( hour, 17, flag, null ) ) "17",
    22 max( decode( hour, 18, flag, null ) ) "18",
    23 max( decode( hour, 19, flag, null ) ) "19",
    24 max( decode( hour, 20, flag, n ull ) ) "20",
    25 max( decode( hour, 21, flag, null ) ) "21",
    26 max( decode( hour, 22, flag, null ) ) "22",
    27 max( decode( hour, 23, flag, null ) ) "23"
    28 from ( select empno, day, hour,
    29 decode( sign(
    start_time-(trunc(start_time)+
    30 hour/24)), 1, NULL,
    31 decode( sign(end_time-(trunc(end_time)+
    32 hour/24)), 1, 'X', NULL ) ) flag
    33 from ( select * from hours ),
    34 emp
    35 )
    36 group by empno, day
    37 /
    View created.
    The view works by:
    o "from (select * from hours ), emp" creates 24 rows for each
    row in the emp table we are interested in. Each of these rows
    has an hour associated with it now. So, where we had 8 rows,
    we'll get 8x24 rows (less if we use a predicate on the view as
    see below)...
    o the decode in the from list says:
    if ( start_time - HOUR ) > 0
    then
    -- start time is bigger then hour, we did not work in that
    -- hour
    return NULL
    else
    if ( end_time - HOUR ) > 0
    then
    -- end_time happens AFTER that hour hence we WORKED in
    -- that hour
    return 'X'
    else
    return NULL
    end if
    end if
    o we now have a set such that for each row in emp we have 24
    rows with the numbers 0..23 and a flag that says whether we
    worked in that hour or not...
    o we can use a simple decode and group by to pivot on empno and
    day...
    Now lets see how it works and how it performs
    [email protected]> select * from empV;
    EMPNO DAY 0 1 2 3 4 5 6 7 8 9 1 1 1 1 1 1 1 1 1 1 2 2 2 2
    1 06-jul-00 X X X X X X X X
    1 07-jul-00 X X X X X X X X
    2 06-jul-00 X X X X X X X X
    2 07-jul-00 X X X X X X X X
    That shows empno=1 works from 8am-11am (upto not including
    11am) and 1pm-5pm on 6/jul (easier to read with a wider screen
    The following shows that we can efficiently query this as
    well:
    [email protected]> set autotrace on explain
    [email protected]> select * from empV where empno = 1;
    EMPNO DAY 0 1 2 3 4 5 6 7 8 9 1 1 1 1 1 1 1 1 1 1 2 2 2 2
    1 06-jul-00 X X X X X X X X
    1 07-jul-00 X X X X X X X X
    Execution Plan
    0 SELECT STATEMENT Optimizer=CHOOSE
    1 0 VIEW OF 'EMPV'
    2 1 SORT (GROUP BY)
    3 2 NESTED LOOPS
    4 3 TABLE ACCESS (FULL) OF 'HOURS'
    5 3 TABLE ACCESS (BY INDEX ROWID) OF 'EMP'
    6 5 INDEX (RANGE SCAN) OF 'EMP_IDX' (NON-UNIQUE)
    Even though the view looks too complex to merge predicates
    into -- it can. It used the index on emp to find empno 1 and
    then did the work. The following shows the same can be true of
    the other indexed columns:
    [email protected]> select * from empV where day = to_date(
    '07-jul-00' );
    EMPNO DAY 0 1 2 3 4 5 6 7 8 9 1 1 1 1 1 1 1 1 1 1 2 2 2 2
    1 07-jul-00 X X X X X X X X
    2 07-jul-00 X X X X X X X X
    Execution Plan
    0 SELECT STATEMENT Optimizer=CHOOSE
    1 0 VIEW OF 'EMPV'
    2 1 SORT (GROUP BY)
    3 2 NESTED LOOPS
    4 3 TABLE ACCESS (FULL) OF 'HOURS'
    5 3 TABLE ACCESS (BY INDEX ROWID) OF 'EMP'
    6 5 INDEX (RANGE SCAN) OF 'START_IDX'
    (NON-UNIQUE)
    null

  • How do I put a hyperlink into a text field?

    Hi,
    I am using flash for the first time and I need some help. I
    created a button called Contact and when the user scrolls over text
    appears with contact details. I have an email address in there and
    would like to make it into a hyperlink. I tried putting <a
    href='mailto: into the URL Links box but it doesn't work.
    Can anyone help me do this? Any help would be really
    appreciated!
    Thanks,
    Gill

    Hi,
    Thanks so much for helping. Unfortunately the link still
    doesn't work
    I have it as dynamic text, does that make any
    difference?
    Thanks again,
    Gill

  • How can i display console outputs in my form field?

    Hi,
    I have an application which performs some actions like, insert 200 rows in the database. While inserting data i am using
    int i=0;
    system.out.println ("Insert "+i+" row in database");
    i=i+1;
    The output displays on the commnad line
    what i am trying to do is i have a form, which has text area. I want to display the console output "Insert 1 row in database" and next "Insert 2 row in database"..... and soon in the text area. How could i do that?
    Thanks in advance!!
    pin2g

    solution removed, because you crossposted.
    Message was edited by:
    Navy_Coder

  • How to extract a value from a dynamic form field

    Hello everybody!
    I created a field by the following command:
    htp.p(HTMLDB_ITEM.TEXT(1,'',20,30,'','VAL4','VAL5'));
    Then I created submit button.
    Question: In what way I can address to that value after I submit my page? Does anybody know?

    you'd be able to reference that value while your page is being submitted by pointing to the associated value captured in an array with something like...
    htmldb_application.g_f01(1)
    ...so you could do an...
    insert into my_table (my_col) values (htmldb_application.g_f01(1));
    ...to trap that value. but having said that, i don't know if you want to go that route. if you render an element using the htmldb_item api, that element's value won't be stored into session state. you can only get to it when you page is being processed/submitted (in an html db process, computation, or validation). if you really only just want one text field to display on your page, i'd strongly suggest just adding an html db Item of type "Text Field" to your page. that way you can refer to the value stored to that item from anywhere in your app. anyhow, you might already know that. getting back to your question, though, the htmldb_item items are stored to pl/sql varchar arrays when submitted to the html db engine. i explained that briefly in...
    Validations in Updatable Report
    ...(except i was calling the two api's wwv_flow_item and wwv_flow), and it's explained in better detail in our tabular form how-to document at http://otn.oracle.com/products/database/htmldb/howtos/tabular_form.html please do take a look and let us know if you need further assistance.
    regards,
    raj

  • How can I display a value in a form field

    I have tried using the set_value_as_string and set_value functions functions in query buttons PL/SQL event handler .But then the value is not getting displayed in the field.
    Could I get any help on this ........

    solution removed, because you crossposted.
    Message was edited by:
    Navy_Coder

  • How to get data dynamically into the input form fields.

    hey guys,
           I have created an input form in VC and it has 2 fields which r 'drill-down' type.Now what i want is that the entries for the fields should come automatically on deployment in the portal.what i mean is that e.g. u have a field 'location' and it is drill down type. Now when u run the model , in the input form the 'location' field entries should be populated automatically i.e the entries should b fetched from the server directly.If u guys have any idea then plz help me.I m very liberal in awarding points.

    Hi Anshul,
    1.Create an form in your workarea.
    2.Double click on the form element.
    3.Add an dropdown component by clicking the Add button(+)
    4..Go through the below link to populate values in it,
    http://help.sap.com/saphelp_nw04s/helpdata/en/bf/39becc90824d4d999eb05336345e5e/frameset.htm
    http://help.sap.com/saphelp_nw04s/helpdata/en/96/c33a3382914f6d8aeba11413e3e356/frameset.htm

Maybe you are looking for

  • Strange Behavior of af:inputListOfValues

    Hi, I've tried the demo for How-to build Oracle Forms style List-of-Values in ADF Faces RC at [http://www.oracle.com/technology/products/jdev/tips/fnimphius/lov/listOfValues.html|http://www.oracle.com/technology/products/jdev/tips/fnimphius/lov/listO

  • Powershell New-object Command not reconized am i missing a module?

    I want to configure high trusted app for app dev in SharePoint, end to do so i need first to insert some commands in the powershell editor like :     $publicCertPath = "C:\Certs\HighTrustSampleCert.cer"      $certificate = New-Object System.Security.

  • System check PL/SQL

    Can any body forward me the PL/SQL to check how many total # of tables, view, triggers, & indexes i have in my db.

  • I can't complete the export command,help!

    I wanted to export a user's data ,but failed. the command is as following "exp username/password owner=wksys" you know wksys is a system user in oracle and the error hint is "EXP-00008: ORACLE error 1406 encountered ORA-01406: fetched column value wa

  • Limiting workflow approval process

    Hello, There's a workflow process for the talent management module HR_APPRAISAL_DETAILS_JSP_PRC. The approval process is going up many levels to the top person in the organization (using the supervisor hierarchy), but I want to limit this to only one