Apex_application.g_print_success_message do not work
Hi all
I try to use my PL/SQL package (on Apex Pasing schema) this command:
apex_application.g_print_success_message: = "error";
But no message appears on my Apex page, when the code is executed.
Any help?
I use Apex 4.2
As FAR AS I KNOW apex_application.g_print_success_message CACCNOT BEING CALLED inside the package
You can do like this
CREATE a function inside the package that will return a flag
FUNCTION FNC_name (P_ID | IN table.ID%TYPE) |
RETURN NUMBER
IS
-- --------------------------------------------------------------------------------
L_FLAG NUMBER: = 0;
NUMBER OF L_EXISTS;
-- --------------------------------------------------------------------------------
BEGIN
FOR REC IN (SELECT columns | |
TABLE | |
WHERE condition) | |
LOOP |
IF (condition) THEN | |
L_FLAG: = 1; | |
ON THE OTHER | |
L_FLAG: = 0; |
END IF; |
END LOOP; |
RETURN L_FLAG; | |
END FNC_name;
You can create a process plsql as this call that work inside the package
CREATE A PLSQL PROCESS: -.
declare
L_RETURN VARCHAR2 (500);
Start
IF
PACKAGENAME. FNC_NAME(:P42_ID) > 0 THEN
() apex_error.add_Error
p_message-online "already exists."
p_display_location-online apex_error.c_inline_with_field_and_notif,
p_page_item_name => 'P42_DISPLAY_ERROR');
ON THE OTHER
-ANY OTHER ACTION
apex_application.g_print_success_message: = 'created successfully.';
END IF;
end;
Tags: Database
Similar Questions
-
Hi, I use apex_application.g_notification or apex_application.g_print_success_message to display an error in a page, but it shows nothing.
The code is:
apex_application.g_print_success_message: = "error ambos campos en blanco."
Any help?Faustina,
You can use the CSS span for this text tags, or include it in the css and use the style.
apex_application.g_print_success_message := ' Notification message set from the pl/sql process ';
When it is rendered on the page, the notification message would be bold and red.
Or you can directly include it in your .css file and use it in your application to all notification messages.
Hope this helps,
Rajesh. -
I have a process of application the button create: -.
DECLARE
Start
IF PACKAGENAME. FUNCTIONNAME (PARAMETERS) = 1 THEN
apex_application.g_print_success_message: = 'Record already exists for a same schedule. "
ON THE OTHER
INSERT PROCESSES
END IF;
END;
With apex_application.g_print_success_message, everything works fine but
If I use apex_application.g_print_error_message
giving following error
ORA-06550: line 10, column 20: PLS-00302: component 'G_PRINT_ERROR_MESSAGE' must be declared ORA-06550: line 10, column 3: PL/SQL: statement ignored
Because
apex_application.g_print_error_message is a variable,
but you can't run it as an "order".
But my question is can we change the background color of apex_application.g_print_success_message
not only red text? is it possible.
Hi Reema,
Modified your sample application to change the color of the success message.
This is the change of background color
Change the Page-> Css-> - Inline. Insert the code below
#success-message { background: none no-repeat scroll 0 0 #99CCFF !important; }
You can replace the color code you want.
hope this helps you,
Kind regards
Jitendra
-
I have 2 pages where I put in apex_application.g_print_success_message - the two branch of pages to other pages.
On my first page when the branch is completed, I see the success message, that I put.
On my other page, when the branch ends, I don't see the success message - he disappears into the air.
Could there be a setting somewhere that I'm missing?Kennelwood,
Go to the branch that does not work and make sure the checkbox "include the success of process message" is checked.
Kind regards
Danhttp://danielmcghan.us
http://sourceforge.NET/projects/tapigen
http://sourceforge.NET/projects/plrecur -
the form validation (Checkbox) does not work for the interactive report
Hello
I use the oracle apex 4.0 and oracle 11g.
I wrote a under select query on interactive report
Select
apex_item. CheckBox(1,RESIDD) | apex_item. Hidden(2,RESIDD) row_selector.
apex_item. Text(3,RESNUM) as resnum
of 'PDRRES '.
and written validation to display the error message ( error of function return text ) as
DECLARE
vRow directory;
BEGIN
-apex_application.g_print_success_message: = NULL;
BECAUSE me in 1... apex_application.g_f01. COUNTY
LOOP
vRow: = apex_application.g_f01 (i);
apex_application.g_print_success_message: = apex_application.g_f01 (i) | » -'|| apex_application.g_f03 (vRow) ;
END LOOP;
END;
Output: No data available error message
As long as it works for sql report with above logic because apex built in line selector
but it fails in the case of interactive report for some reason any.
Please suggest.Saroj Nayak
Saroj Nayak says:
DECLARE vRow BINARY_INTEGER; BEGIN -- apex_application.g_print_success_message := NULL; FOR i IN 1 .. apex_application.g_f01.COUNT LOOP vRow := apex_application.g_f01(i); apex_application.g_print_success_message := apex_application.g_f01(i)||'-'|| apex_application.g_f03(vRow) ; END LOOP; END;
You have set the value of vRow to the value of the number box i which is checked. There is probably nothing in the apex_application.g_f03 with RESIDD as index table
What you want is hollow loop all the hidden objects g_f02
and with in this loop through all verified elements checkbox g_f01
and if the values of these in the game, you have your line for checking f03for k in 1 .. apex_application.g_f02.count loop for p in 1 apex.application.g_f01.count loop if apex_application.g_f01(p) = apex_application.g_f02(k) then apex_application.g_print_success_message := apex_application.g_f01(p)||'-'|| apex_application.g_f03(k) ; end if; end loop; end loop;
Nicolette
PS your NPA between{ code }Your code { code } without the spaces between {, } and code
-
apex_item. CheckBox (40, rowid) on master do not work
Hello
I have a column of type checkbox on the page master thar are not working properly.
Request Express 4.1.0.00.32.
Source page look like this:
Select
APEX_ITEM. Chk CheckBox(40,ROWID).
"ROWID",.
"f1", "f2", "f3", "f4", "touch"f5", 'f6', 'f7',"f8","f9","f10","f11","f12","f13"
from 'table1 '.
Then, I created a page process:
Process Poit-> suite present - after the calculation and validation
Source:
BEGIN
BECAUSE me in 1.HTMLDB_APPLICATION. G_F40. COUNTY
LOOP
DELETE
FROM TABLE1
WHERE ROWID = APEX_APPLICATION. G_F40 (i);
END LOOP;
END;
Conditions: When you press the button Button1->
Condition type: vacuum
Finally, a dynamic action on Button1, which refreshes the page
JavaScript:Window.Location.Reload();
Well well, the click on the button nothing happens. The page is refreshed and the previous selected records never remove.
What I am doing wrong?
THX,
Radu
Published by: 911284 on January 31, 2012 04:36
Published by: 911284 on January 31, 2012 06:33Hello
You need to send the page and there is no need to use the dynamic for this action as far as I understand your problem. Fact simple page reload will not work.
---
Lavenu
MaxApex accommodation
http://www.maxapex.com -
Can you please fix the problem? Appstore cannot update or install apps... App Store not worked yesterday.
We cannot solve a problem for you, but we can make suggestions of troubleshooting...
Have you tried restarting your iPhone yet?
- Press and hold the sleep/wake button until the Red slider appears.
- Drag the slider to turn off your device completely off.
- Once the device turns off, press and hold the sleep/wake button again until you see the Apple logo.
-
Safari does not work after installing macOS Sierra
Safari and apple store does not work after installing macOS Sierra
Alas, my crystal ball is in the shop for cleaning, so you will need to provide more details on what "doesn't work" and above all error messages. First of all, let's start the App Store. Provide as much information as possible for those of us who do not sit on your shoulder.
-
My iPad Apple 3rd generation wifi + his cell phone does not work
MY 3rd generation Apple iPad, wifi + cell
model number MD408LL/a
Serial number DM * VGL
THE SOUND DOES NOT WORK
< personal information under the direction of the host >
All sounds, or simply notification and sounds apps (for example do music and videos app still have sound)? If notifications and apps you have notifications on mute: on the iPad side switch - Apple Support ? If the sounds in all applications which have tried for example soft-reset/reboot of the iPad, insert/remove the headphones?
-
I installed the latest update required for my iphone ios 6 a few days ago, and now when I try to download pictures from my iphone to my PC (via USB connection), the PC does not see the iphone. iTunes sees it yet, but windows Explorer does not work. It seems that some setting has been broken through the update of ios. A way to solve this problem?
Restart the computer and the iPhone. Unlock the iPhone before connecting it to the computer. Any change?
TT2
-
QuickBook 2015 does not work on OS Sierra
Hello! My quick book 2015 will not work on the newly installed MacOS Sierra. "You cannot use this version of Quickbooks 2015.app with this version of Mac OS" is someone has a solution to this problem
Seems what intuit has changed their Quickbooks for a right to use a month for their application
According to their web site. or a close to $300. cost for a licence of the only machine (more?)
Some research suggests that QuickBooks version 17 exist, maybe it's the subscription model
as their single version machine says it's version 16. For Intuit Quickbooks information, rely on them:
• For Mac - accounting software - Intuit QuickBooks:
https://QuickBooks.Intuit.com/Mac/
The subscription models, suggest that they offer a "free trial" then a monthly fee.
I have not read past the first page. -Not certain what options may exist, to Intuit.
And I'm not a user of QuickBooks...
Edited to add: see quickbooks support:
Is Quickbooks for Mac going to Sierra? Is there an another altern...
https://community.Intuit.com/.../1394425-is- QuickBooks- for-mac-goes-for -sierra- is-t
Update 2015 is here: http://http-download.intuit.com/http.intuit/Downloads/2015/US_R8/QuickBooksProMa c2015.dmg
- IntuitBiscotti
- 7 days ago
Good luck and good hike!
-
Open the link behind Mail does not work
Sierra using my link opened behind Mail does not work. The link opens on the top of the window.
This option works for me in Sierra... is working for you with your previous version of the OS?
-
iPhone 5 home button does not work after ios 10
My 5 Iphone Home button does not work after update final IOS version of 10.
The home button works on the first push to wake the phone but it will not open the phone the second button.
I activated the assist button, which does not work either. But what I discover is if I open device for assistance then touch and lock screen click on the button home will work once to open the phone. If I open any app I can't close it unless I go through the same routine.
You attempted to restart your phone?
You can do so by holding the sleep/wake button and the Home button simultaneously until the Apple logo appears
-
Do not disturb (on request) does not work
I have an iPhone 7 more with iOS 10.0.2. I had set up as NEW when I got it. I use the function do not disturb I SLEEP every night to block the incoming notifications apps and emails (including work with the application Outlook email). I leave the phone won't cut not so I can make sure my alarm wakes me up the morning. But it does not work. I still wake up emails and notifications of the app. It worked on my old iPhone with iOS 6, 8, 9 or even 10.
I see a lot of old messages and questions about DND not work, but they were more specific to older phones and ' iOS.
Anyone else having this problem?
Any ideas for help?
Thank you.
I'm sure that I understood this.
I had "only when locked" checked and not 'always' in settings do not disturb.
I leave my iPhone unlocked all night using the bedside table Central app as my alarm clock.
There we go.
-
Contact ID does not work after update iOS10.0.2
http://www.Macworld.co.UK/how-to/iosapps/iOS-10-troubleshooting-tips-3646690/
Troubleshooting iOS 10 tips: Touch ID does not work
Some users have reported that a previously happy Touch ID installation stopped working when they made the update to iOS 10. It is a pain, but rescuable - you will probably need erase your fingerprints and re-enter.
First, however, try something simpler: go to settings > Touch ID & password, enter your password, then press the buttons next to pay Apple and iTunes and App Store so that they become white. Turn off your iPhone and turn it off again, then go back to settings and turn the two knobs back to green (you will need to enter your password Apple ID).
Who fixed the problem? I haven my Aff!
If not, go through the fingerprint stored in settings > Touch ID & password - press each of them in turn - then erase fingerprints. Then go back and press Add A digital footprint and put back them in. It's a bit complicated, but it should fix the problem.
I did all that, but the problem could not be solved.
Try the following steps:
1. go in the settings, press button ID & password, enter your password. Then turn off iTunes and App Store. Restart your iPhone or iPad. Return to Touch ID and password in the settings and re - turn on iTunes and App Store. Press Add a fingerprint to add another print.
2 remove and re-add fingerprints: settings > Touch ID & password > enter your device code > scroll to find fingerprints fingerprints. Press the fingerprint, that you want to remove, and then press DELETE.
3. restart your iPhone by pressing and hold the Sleep/Wake and home.
Maybe you are looking for
-
Should project files I absolutely to be stored on the boot drive by FCP 6
Hello. I always understood that the FCP 6 project files must be stored on your boot drive and would like to know if it is still the recommended location (and why in this case) or I can store them on a 2nd internal drive or an external drive without a
-
1. open Thunderbird2. open an email first, everything seems OK3 open other emails, some are OK - showing their own content, but some are incompatible - all done at a mall which was inaugurated. This means that I've lost. It happened several times. Ca
-
Re: Equium A60-672 will record not on - winlogon.exe - Ordinal not found
Hi, am a satellite with a start problem in Windows XP Home Edition. It crosses the main screen then shows the above and the message "the orinal found 258 in SHELL32 dynamic link library. LL. When I press OK it comes up with a user interface failure m
-
I have HP notebook: no boot device found after the death of the computer during the update
During an update my PC is dead, I know it must have been plugged and now boots to no device found startup please install an operating system on your hard drive
-
need to change password administrator due to typing incorrectly
When you set up this computer I misstyped the password and now cannot enter the administrator user account