Read only Text Field for a Date Picker?? (how to)

Hi,
We have BPM Object presentations where we need to accept date values and the presentation puts Date Picker by default. But the text box associated with the date picker is editable. Is there a way so that I can make it non-editable so that i can enforce the data entry via date picker only (a typical use case)?
Thanks in advance,
user8702013.

Hi,
In the BPM Object's Presentation editor for the presentation, click the date field. On the right, click the "Properties" tab. Change the field's "Editable" property for this presentation from the default ("Yes") to "No". This only effects this one presentation.
Hope this helps,
Dan

Similar Messages

  • Formatted Text Field for getting Date

    I need a text field to get Date. does anyone know where I can find such a thing?
    all it needs to do is allow the user to type a date in dd/MM/yy format.
    10x.

    in a jtable it has a problem - when I press tab to exit the field the date is not changed.
    i set the on focus lost behaviour to commit, but still not working.
    also, it allows me to enter 4823749823/02/02 - and it translates it to the right format - I'm interested in something more fixed - allows to enter only 2 digits for day, 2 digits for month,2 digits for year.
    the relevent code I'm using is:
    // a cellEditor that uses a formatted text field that holds a Date object
    public class JFormattedDateCellEditor extends DefaultCellEditor {
    public JFormattedDateCellEditor(final JFormattedTextField textField) {
    super(textField);
    textField.setFocusLostBehavior(JFormattedTextField.COMMIT);
    textField.setHorizontalAlignment(SwingConstants.RIGHT);
    textField.setFont(JUtility.theFont);
    textField.setBorder(null);
    textField.addFocusListener(new FocusAdapter() {
    public void focusLost(FocusEvent e) {
    if (textField.getValue() == null) {
    textField.requestFocus();
    delegate = new EditorDelegate() {
    public void setValue(Object value) {
    textField.setValue((java.util.Date)value);
    public Object getCellEditorValue() {
    return textField.getValue();
    //to set the cell editor:
    column = collectionsTable.getColumnModel().getColumn(CollectionFrame_collectionsModel.DATE_COLUMN);
    column.setCellEditor(
    new JFormattedDateCellEditor(
    new JFormattedTextField(
    new DateFormatter(
    new SimpleDateFormat("dd/MM/yy")))));

  • Focus on Read-only Text field = accelerators not working

    Pretty much explains the problem.
    In a desktop Application i am developping are different accelerators defined which are working as long as the Editable fields of the frames do have the focus.
    If the Focus is on a read only Field or one of the internal Frames (or somewhere else where you cant type in data) ALL of the given accelerators dont work.
    I just ask this in case of its a known bug (i havent found it as a bug) because since we have our own framework to write swing applications it could also be a bug of that;)
    Thanks for every reply.
    Regards
    Balsi

    Convert the Price text type to number type.it will work.
    check this
    http://sharepoint-works.blogspot.in/2012/05/caml-query-to-get-data-from-sharepoint.html

  • Help with read only text field

    trying to refine a KW form
    I don’t want user to enter value in a box so I made it read only.  $<input name="proptax" type="text" size="10" readonly="true">
    Validation says:
    "true" is not valid value for the "readonly" attribute in any of the currently active versions. See the above warnings for more details.[HTML 4.0]
    So now what?

    DW's validation gives me an error.  W3C  says it's ok.  I wonder why DW (v8) disagrees.
    Actually I 'disabled' the field instead which actually works better for me but they all behave the same,  errors in DW  and ok in W3C
    Thanks

  • Make a read-only text field open by using button and javascript

    Hello
    I have a form with text fields that I will pre-populate with data. The text fields will be read-only by default. I want to make it so that when a user wants to make edits, he will need to click on a button and in turn, the text field's background will turn gray and he can make edits to the text field. I can already make the background turn gray but I cannot make the text field open.
    This is the code that will run after the button is clicked:
    color.ltGray = new Array("G", 0.75);
    this.getField('TestField').fillColor = color.ltGray;
    this.getField('TestField').access = "open";
    The text field's background turns gray but it is still read-only. Any ideas?
    Thanks in advance!

    Here's the online version of the Acrobat JavaSript documentation: http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/wwhelp/wwhimpl/js/html/wwhel p.htm?href=JavaScript_SectionPage.70.1.html&accessible=true
    It's also available as a PDF in the Acrobat SDK.
    Regarding your other question about adding a PDF to another, do you want to add it as an attachment, or add the pages from one PDF to another?

  • Read only custom field for particular user

    Hi,
    I have requirement to few enterprise custom field should be edited by only top management,Project manager and team member can only read the same field.
    Like i have one custom enterprise  baseline finish date,which need to update by only IT GM,and other staff can see only as read mode.
    Hasan Jamal Siddiqui(MCTS,MCPD,ITIL@V3),Sharepoint and EPM Consultant,TCS
    |
    | Twitter

    Hasan,
    You have few options, based on the route you want to take"
    1) You could control the "Visbility" of the fields, via using a feature like
    Target Audiences .
    However,this may not  control the same custom field on the page based on user permissions.
    2) Use JavaScript: https://badalratra.wordpress.com/2013/05/04/how-to-disable-pdp-custom-fields-using-javascript/
    3) Jquery: http://epmainc.com/blog/locking-custom-fields-pdp-project-server-2013-using-jquery
    4) Customization: https://epmxperts.wordpress.com/2014/01/20/secure-pdp-pages-as-per-project-server-security/
    5) You could look into a third part product, by Fluent Pro: https://help.fluentpro.com/pdp_manager/start
    I realize these may not be exactly what you need, but with some effort, I am sure you could modify the code and reuse.
    Cheers,
    Prasanna Adavi, Project MVP
    Blog:
      Podcast:
       Twitter:   
    LinkedIn:
      

  • Read-Only Text Field Using JavaScript Code

    I'd like to make a text field read-only by using JavaScript and also having IF & ELSE statements.
    I want it to be like this:
    if the answer from the dropdown menu is YES, then the text field is read only but if the answer is NO then the text field is fillable.
    Thanks in advance

    Use this code as the custom validation script of the drop-down in question:
    this.getField("Text1").readonly = (event.value=="Yes");

  • Exception: non-read-only mapping defined for the primary key field

    Hello.
    I'm new to Oracle and I created Java EE Web Project.
    And I created entities from tableA, tableB, tableC from my database.
    tableA has foreign key to tableB and has unidirectional Many-to-One relationship. tableC has two primary keys and one of these is foreign key to primary key in tableA. tableC also has unidirection Many-to-One relationship to tableA.
    Then I created session bean and data control from it, in design window, created read-only table from tableA.
    And I selected columns in tableA and also in tableB.
    I ran the application and saw the following exception in log window.
    Local Exception Stack:
    Exception [EclipseLink-46] (Eclipse Persistence Services - 2.1.3.v20110304-r9073): org.eclipse.persistence.exceptions.DescriptorException
    Exception Description: There should be one non-read-only mapping defined for the primary key field [tableC.tableA_ID].
    Descriptor: RelationalDescriptor(mypack.tableC --> [DatabaseTable(tableC)])
    tableA_ID is a primary key in tableA.
    How can I solve this error?
    Please help me.
    Edited by: 900471 on 2011. 12. 3 오전 5:32
    Edited by: 900471 on 2011. 12. 3 오전 5:33
    Edited by: 900471 on 2011. 12. 3 오전 5:33
    Edited by: 900471 on 2011. 12. 3 오전 5:34

    There are not enough details to be sure since you have not provided the mappings. From just the error, it looks like you are using the tableC.tableA_ID field as the foreign key in the ManyToOne relationship to A, but have marked it as insertable=false, writeable=false, meaning that it cannot be updated or used for inserts.
    Either make it writable (set the settings to true), or add another basic mapping/attribute in the entity for TableC that maps to the field which you can use to set when you insert a new tableC entity. A simple example is available at
    http://wiki.eclipse.org/EclipseLink/Examples/JPA/2.0/DerivedIdentifiers
    Best Regards,
    Chris

  • How can I have a checkbox that a user checks and populates a field with read only text, then if another checkbox is checked it will allow user text input

    Hi
    How can I have a check box that a user checks and populates a field with read only text, then if another check box is checked it will allow user text input into that same field, her is my javascript
    var a ="Not Applicable"
    if (this.getField("Do").value == "Yes")
    a=""
    if (this.getField("DoNot").value =="Yes")
    a=a + ""
    event.value=a
    say if the "Do" cb is checked, Not Applicable would populate the text field, and if the "DoNot" cb is checked it would allow user input into the same text field, the javascript I have will not allow user input,
    thanks for any help I am new to javascript

    Are these fields mutually exclusive?

  • How to retrieve the data in texts field for ME23N

    hai all,
    i need to do some coding for the item texts field for PO, which can be saw under ME23N. i need to retrieve the details in the text. but i have no idea how am i going to get the data from that field, which table is it under for PO?
    please advice. thanks

    Hi,
    the texts will be stored in STXH table..u need to pass the four values TDOBJECT
    TDNAME
    TDID
    TDSPRAS...U will get the text details
    Or
    use the FM 'READ_TEXT'.
    cehck the below links
    http://www.sap-basis-abap.com/sapac002.htm
    FM READ_TEXT
    reward if helpful.
    Regards,
    Nagaraj

  • Expanding text field to hold data

    This sounds like a pretty simple problem, but... I have created a form using Designer that consists for 4 text boxes that span the width of the page. We are using a middleware product, LogiXML, to populate the form. We have successfully accomplished getting the data to appear in the text fields, but the data is being cut of because of the size of the boxes. I have selected the check box to allow the box to expand and to allow mutiple lines. This doesn't seem to have any effect. Am I missing something here?
    Thanks.

    The only field type that'll let you have multiple lines of text is a text edit. With that object, you can check the
    Allow multiple lines property on the Object palette's Field tab and check the
    Expand Height (in your case since the text fields are side-by-side) property on the Layout palette.
    The combination of these two properties should get you text fields which display their content in total visibility.
    If that still doesn't work, then it's possible you haven't saved your form as a
    Dynamic PDF form (or, if you've saved your form as XDP, that you aren't previewing it as a Dynamic PDF form).
    If you think your problem is the preview type (i.e. you're not previewing as a dynamic PDF), the following entry on my blog should help you out:
    Previewing as Dynamic PDF.
    Stefan
    Adobe Systems
    You can set the default preview type (for unsaved files) in the "Tools | Options" menu on the
    page and you can set the preview type for saved files in the "File | Form Properties" menu's
    Defaults page.

  • Strange behavior with hidden text field for drill down

    Hi All,
    I am pretty sure I know the cause, just not sure how to work around...
    I am trying to create a drill down report just like in the App Dev guide, and I have done everything the same as the example (2 times, once to follow the guide, and now on my app). The only difference is that I am using a text field rather than a numeric field as the link. This shouldn't be a problem (I wouldn't think) except that the text I NEED to use has '<==' in the middle. So when I check my session state var's, this is what I see:
    CHPAG0SC_MAILCDN_000000047_ CHPAG0SC_MAILCDN_000000047_ <==20060525101642
    When what I should see is:
    CHPAG0SC_MAILCDN_000000047_ <==20060525101642
    So I think that I am gettting duplication because of the characters, but again I don't know how to solve it.
    Any thoughts would be appreciated.
    Corey

    Hi Scott,
    I am trying to create a drill down report similar to the one in the app developers guide. I have a query on pg 1 that includes the required text field as the link. When I click the link, I get an error on pg 2 - which is trying to use the value from pg 1. I did check and saw that even though I set this value in session state (I thought that was what happened when I assigned the 'name' and 'value' in the column link), it is passed in the url, which is where I figured it was breaking. As stated, I need to use this text value as it is the only unique key for the data (currently - this is a data validation step (not an ApEx validation), where users are handling issues with data uploaded from a csv).
    My current process is as follows:
    1. User uploads 2 csv's
    2. Proc moves (from wwv_flow_files) and parses csv back into records and inserts into temp (all varchar2) table(s).
    3. User is displayed 3 'reports' - for each type of validation required - from the stage/temp table
    4. User would click on the 'Edit' link (like the drill down sample) to see more details about the record.
    5. Once the user is done with these reports, they would click another button to 'process' the data (move it into base tables)
    Because the text field is always unique, I figured I wouldn't create a sequence for this like I have for the 'base' (destination) tables.
    I didn't know that I was using a 'get' rather than a 'post', but of course it is a link, not a button - so I should ahve known better.
    Is there a way to do this without adding a sequence generated id for each, or is that just the quickest way?
    Thanks again,
    Corey

  • On click of lov new jsp page which has only text area for adding comment

    hi all ,
    please help me to do this task. on click of lov new jsp page should be opend which has only text area for adding comment and upon clicking submit on the jsp page the value entered on the textarea should fall on the text field of lov.
    with regards
    prabhakaran.p

    The only reason I see for such a requirement is "Notes" require more space for entering a detailed note and would be inconvenient to write it in small single-line text input box. But, still in this case, getting the entered text back to the page and displaying it will have the same inconvenience of reading it from that field. And, I still think that removing one amongst the two (text field or image link) would be good, design wise.
    Anyway, did u try the following:
    1. Add a flow layout to the table bean
    2. Add text input and image item to the flow layout.
    3. Attach the notes page as the destination uri for the image.
    Did u start the working on it, let us know how far did u reach so that we can guide you through from that point.

  • How can I read only text files in a directory.

    I've written a program to read files in a directory but I'd like for it to only read the text files of that directory.
    import java.io.*;
    public class Data {
      public static void main(String[] args) throws IOException {
      String target_dir = "C:\\files";
      File dir = new File(target_dir);
      File[] files = dir.listFiles();
      for (File textfiles : files) {
      if (textfiles.isFile()) {
      BufferedReader inputStream = null;
      try {
      inputStream = new BufferedReader(new FileReader(textfiles));
      String line;
      while ((line = inputStream.readLine()) != null) {
      System.out.println(line);
      } finally {
      if (inputStream != null) {
      inputStream.close();

    You have mentioned you want to read only text files.
    If you are referring to some specific set of extentions, you can filter based on that.
    ex: you want to read only .txt files, you can add an if condition as below :
              if(textfiles.getName().endsWith(".txt")) {
                  // Add your code here
    Cheers
    AJ

  • How to right align a read only numeric field in a panel form layout

    Hi, does anyone know how to right align a read only numeric field in a panel form layout? I am using: Style Class = AFFieldNumberMarker, but it only seems to work if the field is disabled. Disabling the field gives it a difference appearance that does not look right on our forms. These are calculated fields, which cannot be modified, so read only is necessary.
    I have looked online for some answers, and it seems that others are having similar issues.
    I have tried different combinations for the properties, but so far I cannot get it to work.
    Thanks
    Judy
    I am using JDEV 11.1.1.5

    Sorry for the delay in my response. Here is the code
    <af:inputText value="#{bindings.TotalAirlineCostEst.inputValue}"
    label="#{bindings.TotalAirlineCostEst.hints.label}"
    required="#{bindings.TotalAirlineCostEst.hints.mandatory}"
    columns="#{bindings.TotalAirlineCostEst.hints.displayWidth}"
    maximumLength="#{bindings.TotalAirlineCostEst.hints.precision}"
    shortDesc="#{bindings.TotalAirlineCostEst.hints.tooltip}"
    id="it20" readOnly="false"
    disabled="true"
    styleClass="AFFieldNumberMarker">
    <f:validator binding="#{bindings.TotalAirlineCostEst.validator}"/>
    <af:convertNumber groupingUsed="true"
    pattern="#{bindings.TotalAirlineCostEst.format}"
    type="number"
    maxFractionDigits="0"/>
    </af:inputText>
    thank you,
    Judy

Maybe you are looking for