I am using Oracle APEX 21.1
I am trying to create Data loading page with data load definition, which is required with APEX 21.1.
I have bulk upload on MD page, so I have PX_ID item which i want to set as default (fk column) for all new rows from bulk upload.
Related
I have to show oracle database table data in oracle apex interactive report. This table has a clob column(mime type: text/plain).
I am able to successfully display clob data in oracle apex interactive report as guided in below post
https://www.foxinfotech.in/2019/12/displaying-clob-contents-in-oracle-apex.html
Now, I should be able to edit clob column data and save the updated clob data back to database. But I am unable to do this.
Can some one help with this?
Your requirement is to View and Edit a CLOB Content.
This can be achieved by using AJAX in Oracle APEX.
I have created a Blog Post for the above requirement. Please use the link below:
https://akilramesh.blogspot.com/2021/06/display-and-edit-clob-content-in-oracle.html
Demo: https://apex.oracle.com/pls/apex/workspace_akil/r/demo/show-and-edit-clob
I have a page in apex with multiple interactive grid. In one of the interactive grid i am trying to update the data of a column of a table in the database. The column named defect kind is a dropdown in the grid and on click of save should be able to updated the column value in database with the selected value in the grid.
While clicking on save apex is showing an error as follows:
Ajax call returned server error ORA-20987: APEX - ORA-02015: cannot select FOR UPDATE from remote table for.
I have used the type interactive grid - automatic row processing(DML) for saving the grid. Only defect kind is selected by the user rest all column value are coming directly from the table.
Interactive grid image:
NOTE:For this workspace the tables are accessed through a database link. I am using APEX 5.1.
This error is raised specifically because you are working over a database link.
Error code: ORA-02015
Description: cannot select FOR UPDATE from remote table
Cause: An attempt was made to select FOR UPDATE on a remote table (directly, or via a view) that had abstract data type columns, and the
view or select list contained abstract data type columns or non-column
items.
Action: To attempt a select FOR UPDATE, use a view or select list that consists only of base columns from the remote table, none of
which may be abstract data type columns.
I can't tell from what you've posted if the issue is with the query you're using to populate the IG or with some underlying view or the table itself. Depending your ability to locate and remove the "abstract data type columns or non-column items" (if that's even possible with an IG) you may not be able to make this work with automatic row processing over a database link at all. It may require a custom PL/SQL API instead.
Have you tried to set the attribute Lock Row (group Settings) to No in your Interactive Grid - automatic row processing(DML) process?
I have created an apex page with static content.
The details are as below:
Pre-rending-> fetch rows from P_IT_PEOPLE table with primary key person_id defined.
Region-> The columns which are to be used defined along with primary key PERSON_ID which is kept hidden.
other items-> P5_ASSIGNED_DEPT,P5_APPROVER,P5_PERSON_NAME.
Region Buttons-> SAVE/CANCEL
SAVE-> Server side-> Submit-> SQL Update action
Processing:
Create process rows of P_IT_PEOPLE
Automatic Row Fetch Legacy
Table name, primary key defined (PERSON_ID)
Supported operations-> only update selected as i just want this page to update the columns person_name, assigned_dept and approver accordingly.
Whatever fields i enter should get updated in the table.
However in app, after i click save, no updates. It is successful but neither db, nor front end, nowhere updates happen.
What am i doing wrong?
[1]: https://i.stack.imgur.com/7JpNA.png
[2]: https://i.stack.imgur.com/UjbXD.png
I've been able to create APEX forms with reports and interactive grids successfully, but when I tried to just create a simple DML form, using the wizard, I get a page where I can create a row, but I can't see the existing data in the table.
This particular table always has only one row and I just need a form to update that 1 row. How can I get this view to open in update mode?
If you don't know ahead of time what any of the values in one of the columns, you can use ROWID as the primary key and set it to the row's ROWID in order to trigger the automatic row fetch process.
Create a hidden item called P1_ROWID. Its Source should be set to Database Column, ROWID.
On the Automatic Row Fetch process, set Primary Key Column to ROWID and Primary Key Item to P1_ROWID.
Create an additional process, to run before the automatic row fetch process, that executes a query like the following:
select rowid into :P1_ROWID from mytable;
In DynamicData,
I have a datatable generated at runtime dynamically for a table while user is viewing a page. I need to insert these records from datatable to database Table(based on dynamicdata table page).
How can i do ?
Use the INSERT.aspx template provided in Dynamic Data under the folders
Dynamic Data --> PageTemplates