How to set a field in a form of DML to only display?

It seems that it would be obvious, but I can't figure out how to set a field in a DML form read-only.  Thanks for all the ideas.

The most obvious thing is to define the type of item to display only. Save Session State to Yes if the value of the item is required in after not submit treatment or if the value is only for display on the page.

Alternatively, if you want the element to appear as a normal text control, but do not be modifiable, set the item text field and the custom attributes type to readonly .

Tags: Database

Similar Questions

  • How to disable certain fields in the form of a calculation with a checkbox for the fields.

    How to disable certain fields in the form of a calculation with a checkbox for the fields.

    In Canada, we have taxes

    I create a form that allows them to calculate a total

    Shema-pdf-form.gif

    I need to be able to turn off all of those taxes to participate in the calculation and to their field visible should be 0

    I was thinking about using a check box (when the checkbox is enabled (Yes) the tax is calculated, unchecked (Off) the tax is not calculated and visible field should show 0 or anything...)

    I really need help on this one, I am a complete newbie...

    Note that the second tax is calculated on the sum of what the first tax Add (tax first is pan-Canadian tax (all provinces).

    The second tax is never only use (Quebec only (in addition to one Canadian)

    Sometimes to sell outside Canada - no tax at all is calculated...

    What should I do?

    Yes, it's just the JS...

  • How to set the field "default" of a quick dashboard to yesterday?

    Hello world

    I have a dashboard the guest on a date (full name Date.Date and type Date).
    I also have a simple report with two columns: Date.Date and a measure (whatever the name).

    I've managed to filter the day before the current date in the report by adding an advanced SQL filter:
    Date.Date = Cast (TimestampAdd(SQL_TSI_DAY,-1,@{system.currentTime}) as Date)

    Now, I would like to invite him to select the day before the current date by default.
    The filter on Date.Date would be "invited" or more.

    How to set the field "Default" from the command prompt?

    Thanks in advance

    Hello

    go to the command prompt...
    Select SQL results of as default: drop-down list.
    here... you have to write your SQL logic...
    who uses by default the previous date
    something like that...

    * Select case when 1 = 0 then anydate column of another timestampadd (sql_tsi_day-1, CURRENT_DATE) of the end SubjectArea name*.

    write like this... and report back...

    Thank you & best regards
    Kishore Guggilla

  • How to subtract two fields in a form?

    I am working on a form of spending and I everything works except one thing.

    Subtract all on payments reports on previous expenditures on the State of current spending. I'm looking at the tab to calculate the properties of text field.  But I don't see a way to remove my two fields.

    Then, I set up a field that contains a negative, except when I display the field in the form, the negative is positive.  I enter-1 as a default value to my field of 'subtraction '.  I was then several 1 negative against most of payment the amount so I can get a negative on the amount of the payment.  I was then going to add the negative on the amount of the payment for the total amount to pay and arrive at a net due, but it does not work.

    Here is the calculation I'm doing:

    Total spending (field calculated from all previous fields.)

    Deductible expense (entered by the user)

    NET check fresh (Total expenses - deductible).

    Can someone tell me how to proceed?

    Thank you

    Dennis

    With Acrobat, there are 3 options of calculations.

    "The field is the _____ of the following fields:" options are for the sum, product, average, min and max operations or actions that could be repeated on several fields. We do generally not subtract or divide several fields in action.

    'Simplified field notation' uses only the field names and values. The field names must begin with an alphabetic character and has no spaces or special characters. Cannot perform conditional control statements or functions. Special characters or spaces may be in domain names, if the JavaScript escape character precedes the special character or a space. 4 arithmetic operations can be performed.

    'Calculation of custom JavaScript' has no restrictions on field names, control statements, functions or mathematical operations. We have access to the field object and the value property of the field object.

  • How to set CurrentDateTime field date. MinValue in valueChangeListener

    Hello

    I use Jdeveloper 11.1.1.2. I dropped a view as a table object and a validation button below the table for the jspx page and in this table, I have 2 columns is selectBooleanCheckbox
    and another date. MinValue field.

    My requirement is each time a person change the value that is to check/uncheck true/false checkbox, I need to for the column Date.MinValue currentDateTime.

    I'm trying this way

    < af:selectBooleanCheckbox value = "#{row.bindings.DocumentFlag.inputValue} '"
    label = "#{bindings." OTMEmployeeCoursesView1.hints.DocumentFlag.label}.
    required = "#{bindings." OTMEmployeeCoursesView1.hints.DocumentFlag.mandatory}.
    shortDesc = "#{bindings." OTMEmployeeCoursesView1.hints.DocumentFlag.tooltip}.
    ID = "it2' autoSubmit = 'true '.
    valueChangeListener = "#{backingBeanScope.backing_EmployeeTrainingDocuments.setDateonValueChange}" >
    < f: validator binding="#{row.bindings.DocumentFlag.validator}"/ >
    < / af:selectBooleanCheckbox >


    {} public void setDateonValueChange (ValueChangeEvent valueChangeEvent)
    valueChangeEvent.getComponent () .processUpdates (FacesContext.getCurrentInstance ());
    getTableCurrentRow (employeeCoursesTable);

    }

    {} public void getTableCurrentRow (myTable richeTableau)
    CollectionModel cm = myTable.getValue ((CollectionModel));
    JUCtrlHierNodeBinding rowData = (JUCtrlHierNodeBinding)
    cm.getRowData ();
    String LastUpdateDate = rowData.getAttribute("LastUpdateDate").toString ();
    String DocumentName = rowData.getAttribute("DocumentName").toString ();
    String DocumentFlag = rowData.getAttribute("DocumentFlag").toString ();
    System.out.println ("value DocumentName is:" + DocumentName);
    System.out.println ("value of DocumentFlag is:" + DocumentFlag);
    java.sql.Date Date.MinValue = new java.sql.Date (System.currentTimeMillis ());
    SimpleDateFormat formatter = new SimpleDateFormat ("" dd/MM/YYYY HH: mm: a "");
    Formatter.format (inputDate);
    rowData.setAttribute (LastUpdateDate, formatter.format (inputDate));
    System.out.println ("getSqlToday () is:"+Formatter.format(inputDate)); ")
    }


    and I get an error like

    oracle.jbo.NoDefException: Houston-25058: 2011-03-24 16:01 type attribute definition is not found in noCtrl_oracle_adfinternal_view_faces_model_binding_FacesCtrlHierNodeBinding_848.


    can someone help me how to set the value currentdatetime in valuechangelistener.

    Thank you
    Herald

    Suggestion: assuming you are using ADF BC, this would be better done at the level of the Entity object. You just when the Set accessor for the DocumentFlag attribute is called, also call the setter for the attribute date setting the value to the current date/time.

    CM.

  • How to set the alignment of the grid as "First line only" for any style of paragraph

    Hello.. Please help me.

    I have to set the alignment of the grid as "First line only" for any paragraph style.

    I use the code below to set the alignment of the grid as "all lines".

    *********************************************************************************

    TextAttributes InterfacePtr < ITextAttributes > (styleInfo, UseDefaultIID());

    AttrGridAlignment InterfacePtr < ITextAttrGridAlignment > (: CreateObject2 < ITextAttrGridAlignment > (kTextAttrGridAlignmentBoss));

    attrGridAlignment-> SetGridAlignment (Text::kGABaseline);

    textAttributes-> ApplyAttribute (attrGridAlignment);

    Here, I created the text attribute of the alignment of the grid and applied to the styleInfo of the style.

    Now, the problem is that I tried all available of Text::GridAlignmentMetric values, but none of them affect the 'first line only. Please tell me the solution of this problem. I'm short on time.

    Thanks in advance.

    You apply this attribute via kEditTextStyleCmdBoss or equivalent? If this is not the case, consider to do.

    kGABaseline is what you need. In addition (see dialogue change style to a "pipe") you will need kTAGridAlignOnlyFirstLineReportBoss - IID_ITEXTATTRBOOLEAN set to true...

    Dirk

  • Tabular form - how to set a field to a constant?

    I use a tabular form to update a table - and it works. Then I remembered that I also have to update the field which keeps track of who made the change.

    Configuration of the field via SELECT it (for example Select "userX" as a publisher of...) for the tabular presentation fails due to an error of concurrency of db (MRU 20001) on presentation.

    Try to substitute the current value in [column attributes] of the field in the context of the [attribute] - [value = "userX"] he added simply as the second argument to the value of the entry (of the html source).

    Suggestions?

    This as a trigger in the database... Setting that introduced the change, the date/time, and who have created the line is also a function, imo, a trigger for insert/update in the database, not the form...

    Thank you

    Tony Miller
    Webster, TX

    Never give up dreams!
    JMS

  • How to set the default database selection forms 11g

    Hello

    In the past (Forms 10g), we could define the default database by defining userid=@dbname in formsweb.cfg.

    We migrated to form 11g.
    When we set this setting, we have the message ORA-01017 invalid username but the dbname is located in the windows of connection.
    Unfortunately, it generates an error message.

    How can we set the default database 11g-shaped?

    Thanks in advance for your answer.

    If the intermediate platform is Windows LOCAL value the name of db in default.env forms. If the platform is Unix, set TWO_TASK on db name in the default.env. This is not pre-fill the db name field, but in this place, this field may be left blank. Otherwise, you must create your own custom logon dialog box.

    Example:

    LOCAL = dbname

    Or UNIX

    TWO_TASK = dbname

    .

    Published by: Ferrante Michael (Oracle) on August 7, 2012 12:05

  • How to set up 11 GR 2 forms of database connection?

    Once we're done with the initial installation of forms and reports 11 GR 2, how can I get it to connect to the database?

    I assumed that I could configure tnsnames.ora so I have to run the netca.  Only, I get an error "did not find the main class: Oracle.net.ca.NetCa" when I try launching netca.

    It is a server windows 2008 r2 64-bit, with nothing on it, except the forms and reports 11.1.2.2.0 configured for the deployment.

    I wanted to get a connection to the db for I can run the script create_webutil_db.sql and also so my forms and reports could at one point to connect to the db.

    I guess I could just run the script on a different machine tnsnames.ora or copy from another machine, but I'm just surprised netca fails.

    Am I missing something?


    Thank you

    NetCA works do not is apparently a known issue.  You can contact Support and refer to bug 13812101 , or simply set it up yourself.

    You must configure the tnsnames.ora found in the Instance_Home\config directory.  Thus, for example, on Windows the directory can be something like this:

    C:\Oracle\Middleware\asinst_1\config

  • How to set the field date as required field on UI - urgent

    Hello

    I got how set the date as field demands presented on the page.

    Below is the code I used, but giving it as class cast exception.


    MO OAMessageTextInputBean = (OAMessageTextInputBean).webBean.findChildRecursive ("dateFiled");
    mb.setRequired ("yes");

    Please help on this. for the other beans messagechoice it works fine. but only for the data type DATE gives classcast exception

    Try this

    MO OAMessageDateFieldBean = (OAMessageDateFieldBean) webBean.findChildRecursive ("dateFiled");
    mb.setRequired ("yes");

    Thank you
    Shree

  • How to set a field in the XML from a script?

    Hello

    I want to put a flag changes in the xml data when a field is changed. I added a field for that in the xsd, which is linked to the pdf file:

    < xs: element name = "modifiedFields" >

    < xs: complexType >

    < xs: SEQUENCE >

    < xs: element name = "countryModified" type = "xs: int" / >

    < / xs: SEQUENCE >

    < / xs: complexType >

    < / xs: element >

    And I want to access it when a change event occurs:

    salesReport.Page1.ProductNameTableSubForm.ProductNameTable.Row1.country::change - (JavaScript, client)

    countryModified = 1;                              does not work

    $. modifiedFields.countryModified = 1;     does not work

    There is no field in the pdf file that is bound to countryModified. How can I set the value of the countryModified field without going through a field related to this?

    Thanks in advance for your help.

    See you soon,.

    Arne

    Without seeing the entire xml structure I can't give you the exact syntax, but it would be something like this:

    xfa.datasets.data.modifiedFields.countryModified.value = 1

    Paul

  • Documaker: How to set the field of the 2D matrix

    Hello

    I created a matrix 2D field, but is not a 2D matrix...
    You may notice that it is false?

    Policy ID: Data Matrix for Documaker (dm___.ttf)
    Type: Bar Code
    Length: 32
    Format: Data matrix
    Symbol size: 18 * 18
    Scale: 1
    Rule: XDD
    Source name: xxxxxxx

    Example of XML is as follows.

    < code >
    < xxxxxx > 12345678901234567890123456789012 < / xxxxxxx >
    < / bar code >

    In the test, this field is output as follows...

    AIHPBMGKHJENFPFKDK
    AHFMCKOBPOEONLALIK
    ALJLFFJMANLMMJAEBK
    AGFCPMJOBELOEIKFCK
    DDLDDDDDLLLLDLDDDL

    I can output the barcode with the "1:1:2:2 Code 39".
    Please help me.

    Thank you

    If you are talking about the screen, you also have to install TTF fonts to let Windows know to to use. The location in the fonts directory, would only affect that print them in PDF format when you download fonts.

    Find the. TTF file on disk, right-click on it and choose Install. If you do not see the offer to install in your version of Windows, you may need to go to the control panel and choose fonts. Check the list to see if Data Matrix for Documaker has been installed. If you don't see it in the list, then check the offerred help by Windows, how to install a font on your system.

  • How to set the field as password type entry

    Hello

    In display determination Oracle Web interview, I want to Setup text entry as type of password is entered text should be displayed in the form of points/stars. Please tell me how can this be achieved?

    Thank you
    Sri

    Create a custom control that have a tag html input type is password.

  • How to set a field EO based on several fields of VO with validation?

    I'm thinking bad to the top of the best way to design the following requirement:

    EO has a field in a table - combination_id (which is a foreign key to a separate table, say its called xxx_combinations)
    VO emerged from EO, but get the combination_id on xxx_combinations and retrieves the 7 fields that make up the combination.
    Screen has 7 individual fields, say Field1 through field7.
    The user enters the values for all the fields of 7.

    That has to happen is the 7 fields must be validated to ensure that they are a combination eligible (logic quite complicated to determine which combinations are allowed/denied - this is done by calling pl/sql). Assuming that the combination is valid, the 7 fields are searched in xxx_combinations, to return to the combination_id (and if the combination does not exist, it is created). This combination_id should go to the area of occurrence and saved.

    I'm not really sure how to do this. At what level I would validate 7 fields and get the real combination_id to go back and update the EO? It almost seems that I need the OS to have all 7 fields in it, not just the combination_id.

    Hello

    Finally call the Pl/sql procedure to validate the combination of the code of the validateMethod id & validate each field individually from the setattribute method. I think that this will be the best approach for your condition.

    Kind regards
    GYAN

  • How to set up custom and custom forms in R12

    We have the new environment, which is implemented recently started, I demand that I need to configure custom above on the other mount point, please let me know how to do it.


    Thanks for your help.

    Hello

    Check this metalink notes, do a search before posting, repeatedly discussed in this forum.

    How to add the custom in R12.0.6 form

    Note: 304266.1 - where the custom albums Environment Variable should get added?
    101048.1
    176852,1 - integration of customized with Oracle Applications Release 11i Applications

Maybe you are looking for