English 中文(简体)
Oracle APEX - Setting up a Tabular Form with default values
原标题:

I pretty new to APEX and I m having a bit of trouble working with my first Tabular form. The table I ve linked it to is fairly simple. The columns are as follows:

  • Primary key representing an internal code for a college major
  • Foreign key representing the "real" code for the college major
  • Description for the college major
  • The user that inserted/updated the row in the table
  • The date the row was inserted/updated

At the moment, I m facing two problems.

  1. I want the user to be able to specify their own primary key for the row but not to be able to change any existing primary keys. When I specify the column type as "Text Field" users are able to edit existing rows primary keys and it also seems to break the report when trying to add a new row as I get a checksum error.
  2. I would like the user and date columns to default to the currently logged in user and the current date, but specifying default values for either of these columns also seems to cause syntax/SQL errors. Does anyone have any examples of how to use the default value functionality for a column? Fixed. I can just use SYSDATE as a value on it s own when specifying the PL/SQL type for default. Username can be obtained through functions in APEX_UTIL
问题回答

Perhaps you could use 2 conditional fields. If the field value is null, display the edit box, if the field value is not null display the display-only field.





相关问题
Oracle Apex - Optional List of Values (LOV)

Is there a way in Oracle APEX to use a list of values or select list but do not force the user to select an item and allow them to enter different items? The basic functionality which I require is ...

Oracle APEX: Tooltip on cell of the report

I have an APEX tabular form, all columns of which are standard report columns. Is it possible to display a tooltip on mouse over of a particular cell of the report?

Keeping a DHTML tree expanded in Oracle APEX

I have created a list item to be used as the primary navigation within my APEX application. The tree can be expanded and clicking on a leaf node takes you to the correct page. However, on arrival at ...

Oracle APEX - Setting up a Tabular Form with default values

I pretty new to APEX and I m having a bit of trouble working with my first Tabular form. The table I ve linked it to is fairly simple. The columns are as follows: Primary key representing an ...

How to create a submit button template in Oracle APEX?

I m trying to create a template for a button in Oracle APEX but I don t seem to have access to the appropriate substitution strings to make it work. For non-templated buttons APEX seems to insert a ...

热门标签