Oracle Apex modify session time out message - oracle

Is there a way you can modify the default Apex session timeout message in Oracle Apex? Can you show the step? Apex version: 20
From this image:
To this:

If your goal is to change what is written on the message, you can customize the Text Message
Go to Shared Components / Globalization / Translate / Text Messages
Create a new Text Message
You can translate the message by adding the ID of the message on the Name field, and your custom message on Text
In your case, for the first picture, it would be APEX.SESSION.ALERT.MAX_WARN
You can check more translations for the other timeout message here : Translating Messsages

Related

APEX 19.2 - Run validations before dynamic action

Have a page to create a login, where the user name is an email address. None of the validations run prior to a Dynamic Action on button press.
Written, and very much needed validations are:
Email format: regular expression indicating if the entered email is formatted correctly (i.e. have not forgotten part of the email). This same email format validation works correctly on other pages.
Password: multiple validations for password - minimum of 8 characters, contain both Upper and lower case, has at least one number, and at least one special character
This is PL/SQL code for the Dynamic Action which needs to run after the validations - when there are no errors on the page. Have set the Server Side Condition for this dynamic action to "Inline Validation Errors NOT displayed". However because this runs first, there are never validation errors. This dynamic action calls a DB package procedure and sends a verification code by email to the entered user name (email address):
declare
vCode varchar2(5) := dbms_random.string('X',5);
begin
:P3_SENTCODE := vCode;
MY_PKG.EmailCode(v('P3_USERNAME'), vCode);
end;
The email is sent, however none of the validations run at all. It will even send to a non-existent email such as: help123#test (not formatted correctly, no entry of what comes after "test"). How do I run the validations before the dynamic action which sends an email?
The validations run okay after the dynamic action, and when a user clicks on the create button. Then the information is there prior to submitting. Was really trying to alter the dynamic action PL/SQL to include validations, however that did not work. Thank you all for looking at this and your help!

How to Send an Email on Oracle Apex

I'm building a little application using Oracle Application Express Online. I'd like to send automatically email when an user inserts into the database a row.
I created an Item, called Email, in which I put the address of the user of the application:
Select User.Email from Users wher Users.Username=:APP_USER
Query works, because in the application I see right email.
Then I create a process in the way you see in the screen I'll post here. But nothing happens. Can you help me, please?
As you see, in the centre of the photo there are 2 items: one has to go into the database to store a new row, the second one is the email that is in the process. But, as I said early, nothing happens.
If you click on any attribute in APEX, and click the "Help" tab, you get some very useful information - in this case, that the field expects a substitution syntax for this scenario.
To
Enter the email recipients by specifying one or more email addresses.
For multiple email addresses, use a comma-separated list. Use
substitution syntax if you want to use a dynamic value.
Examples
john.doe#test.com, jane.doe#test.com
John Doe <john.doe#test.com>, Jane Doe <jane.doe#test.com>
&P6_TO.

Microsoft Access 2013 VBA code changes bound control on change of record am getting write conflict

Have just got back into coding in Microsoft Access, so it might be something stupid.
Situation:
Sqlite database linked to Access db via ODBC.
Have created a form which has bound controls from a table.
Due to the way sqlite stores dates, as text, I am not able to use the calendar picker. I thought easy I can create an unbound text box control, set the format to date and then I will have a date picker. Then in VBA just get it to change the value of the bound date control, which would be hidden.
Me.txt_Date_of_birth.Value = Format(Me.Txtdate_of_birth_with_calandar_control.Text, global_date_format)
It works it changes the value of the bound control (which for testing is not hidden).
But when I change records I am getting an error of
Write conflict. This record has been changed by another user since you
started editing it. If you save the record, you will overwrite the
changes the other user made.
From my testing it is being caused by this unbound control updating the bound control. Anyone know a simple fix?
And I would prefer not to get my data from a query that formats the text field into a date field.
And I can confirm that the error does not occur when I create an access table and try to update a bound control.
Try saving the record at once:
Me.txt_Date_of_birth.Value = Format(Me.Txtdate_of_birth_with_calandar_control.Text, global_date_format)
Me.Dirty = False
Does this table have a primary key? - in the eyes of Access - by which I mean when you look at the table in design view with Access.....
If not try adding that.

On-Message Trigger working just in the Form Level?

i'm trying to create a Form Module where i show how to use the different Trigger Levels in Oracle Forms (I have a blog).
I'm trying the create this scenario:
Have the user update a specific Item (SALES_REP_ID) and show a message (On-Message Trigger) in the Item Level.
Have the user update a another Item (different than SALES_REP_ID) in the same Block(Orders) and show a message in the Block Level.
Have the user update a different Block other than Orders and show a message in the Form Level.
I know this could be done in a different way, but as i said i'm trying the show how the hierarchy in the Form Triggers works.
What i did trying the achieve this:
I created the ON-MESSAGE Trigger with the property: Execution Hierarchy = Override in every level as showed in the image:
enter image description here
For some reason only the trigger in the Form Level is firing even if i change the property Execution Hierarchy to Before or After in all the triggers.
Any suggestion would be highly appreciated.
In case you want to check the issue a bit closer, module is in this Google Drive Link:
https://drive.google.com/file/d/0BzbEh5klWdQdQmJGTDRjRFNULVk/view?usp=sharing
Data Base: ORCL (Sample DataBase), Schema: OE.
I think, you should get rid of all ":System.Message_Level" statements. They may prevent to fire on-message trigger(s) with respect to their level.

Joomla 2.5 - custom registration field not remembering values

Im using custom profile plugin found at http://library.logicsistemi.it/images/joomla/plg_user_testprofile.zip
I have created several fields, both, optional and required and they all work. But there is a tiny problem.
When I enter some value in that custom fields and submit the form it can happen that some fields dont pass validation (which is good). However values entered are cleared and I must fill all the fields from the beggining.
Demo: http://goo.gl/eH1G2
Enter some (not all) data under the 'legend' named User Registration
Enter some (not all) data under the 'legend' named Company
Informations
Press Register button
Error message will pop in. -
Data entered in the User Registration will be saved
Data entered in the Company Informations (which are custom fields)
will not be saved.
If all required fields are entered, form will submit data to database
(which is ok).
I want that data in the Company Informations are saved, so users dont have to type in all over again.
The problem in your demo is on the template you are using.
For some reason it gives Javascript errors. These errors blocks the Javascript client side validation and your form is submitted with invalid data.
If you want only server side validation you can modify the onContentPrepareData function in your plugin by loading posted information from the user state. To do this you have to permeform a different action when user_id is not set under "Merge the profile data." comment.
I think next week I will write a new tutorial on http://library.logicsistemi.it to explain this. For now try to fix your Javascript code.
Regards

Resources