In Oracle Apex I have a region that contains a text field and a button that when clicked on a dynamic action is executed and a pl/sql statement runs which inserts the text_field value into a table.
The issue is when I click on the button the insertion is done, but when I come back to Oracle Apex I encountered the
" your session is end "
error
How can I solve this?
Related
I have a very simple Oracle Apex app. I created a button on the home page. I also created a second page using the "Form" template, and the source for this form is a table in the local database.
I set the button to open the form, and I passed the value of the primary key of this form (it's a column called ID) from the home page to the form page, as this screenshot of the button's behavior shows (3 is the page number of the form, P3_ID is the page item in the form associated with the primary column "ID", and 1 is the value that I passed for P3_ID):
The table that the form references is empty, i.e. there is no row with ID equal to 1. Meaning I want to pass the value of 1 to this form so that it automatically create a row with ID of 1 after the user fills out the rest of the form. Here is the form page:
Now the error. When I run the app and press the button, I get this error:
The error says it's from the process called "Initialize form Warcraft Particulars". I searched everywhere and I couldn't find a process by that name anywhere in the app. What am I doing wrong?
Pre-rendering process (in a form) will try to execute query and fetch a row whose ID = 1; as it doesn't exist, Apex raises the no_data_found error. That's why you got it (the error).
Moreover, you're doing it wrong - don't pass ID you'd want to create, fill it in form's process (or use a database trigger which will put a sequence number into the ID column, or use an identity column if your Oracle database supports it (12c onward)).
Furthermore, I'd suggest a slightly different approach: don't create a form that's alone in the Universe. Approach that lets you both view existing data, update (or delete) it and insert new rows is to use a Wizard and choose a report with a form. Exact naming is different from one Apex version to another; for example, current apex.oracle.com Apex version is 22.2 and it offers "Interactive report", while the 1st Wizard page lets you choose whether you want (or not) to include a form page (you'd say "Yes").
Anyway: once you find the correct option, choose it and wizard will then create an interactive report page you'd use to
view current data
it has an edit icon at the beginning of each row which - when pressed - navigates to the form page where you can edit values or delete entire row
create new row (by pressing the "Create" button)
and a form page which does what I described a moment ago.
Hello we are using oracle ADF 12c. We have some popups with tables blocks and at the top of each table column, there is data filter/search box. Whenever a data is entered in the filter box and "Enter" is pressed the popup gets closed automatically. Next time the popup is opened, the filtered data appears
The problem which I see is that by pressing "Enter", automatically "OK" button is clicked. How can we prevent this to happen and let the popup just refresh the table block only when "Enter" is pressed.
This works very well if the table block is not in a popup, by pressing enter, the blocks gets refreshed and data is appeared but doesn't work in popup and we need to filter data in table blocks of popups also.
Make sure that the popup property autoCancel is set to false. Then I can only assume you use an af:dialog of type OK or OKCANCEL. You can use the type NONE and handle the OK and CANCEL button yourself, just as any other regular button.
Add actionListeners to the buttons, and inside the listeners, you close the popup.
I'm currently designing an application using Apex 20.1. When the user clicks a button I want to update the record in a table.
I changed the button action to define by dynamic action and the dynamic action is to execute PL/SQL:
UPDATE COSTCODETOCATEGORY
SET
ACTIVE = 'N'
WHERE
TROPOS_COSTCODE = :P21_TROPOS_COSTCODE;
Unfortunately no changes are made to the table. Does anyone have ideas what is wrong?
Why dynamic action and not process?
Button, when pressed, by default submits.
Create the process and put
UPDATE COSTCODETOCATEGORY SET
ACTIVE = 'N'
WHERE TROPOS_COSTCODE = :P21_TROPOS_COSTCODE;
and that should just work, with no additional actions.
which trigger fires when press the default insert record button in oracle forms 6i? I need to know available triggers which will fires when or after pressing the default insert record button in oracle forms building with oracle forms builder 6i.
Many triggers may fire. When you press (any) button, when-button-pressed will fire. If the button recieves focus, you may fire when-validate-item as you leave the previous item, and possibly when-new-item-instance as you enter the button
Then on the block there are pre-insert, on-insert, and post-insert all of which could fire if defined.
Alternatively, if you are referring to create record, ie, open up a new blank row, then you'd be looking at when-new-record-instance
I am currently working in Oracle Apex version 5.1.2.
I have four page items on a page in my application. One is a date picker, two are text fields, and one is for the ROWID of the table in the database. The type of the ROWID page item is "Hidden", and the ROWID is the primary key column in the table. Each page item has a "Source" of one of the columns in a single table I created in the database (it's the same table for each page item). I set this source in the Settings for each page item.
I have also created a button for the page. In the "Behavior" section of the settings for this button I have set the "Action" to "Submit Page" and the "Database Action" to "SQL INSERT action".
I have also created a "Process" for my page. The type of the process is "Automatic Row Processing (DML)". In the settings for this process, I have set the "Table Name" as the table that contains the columns I mentioned above, the "Primary Key Column" as "ROWID", and the "Primary Key Item" as "P31_ROWID", which is the name of the page item that has a "Source" of the ROWID in the table. I have set the "Supported Operations" for this process as Insert, Update, and Delete.
The problem: When I run the page and enter in data for the three page items and then press the "Submit Page" button I created, a new line item is added to the table in the database that contains the correct data that I entered into the page items. That works perfectly. However, when I press that "Submit Page" button, the data that I entered into the three page items disappears from the page items. So the data is added to the table in the database correctly, but the data disappears from the page items.
I would like for the data to remain in the page items after I press the "Submit Page" button. Does anyone know if/how I can achieve this?
Thank you in advance.
Make sure, you have in Item attribute Source set Used as "Only when current value in session state is null"
Regard