Need code examples for the use of the PL/SQL and popup areas
Hi allI looked at the documentation, but it does not explain how to use it.
I need to create a region using PL/SQL to retrieve data from the tables and print it on a plain HTML page/region I use APEX 4.0.2 and DB Oracle 11i
Thank you!
Hello
You can do like this:
DECLARE
NUMBER OF V_SAL;
BEGIN
SELECT NVL (SUM (salary), 0)
To emp_sal WHERE the emp_id =: P170_emp_id
IN V_SAL;
HTP.p (')
Salary |
---|
'|| LTRIM (TO_CHAR (NVL(V_SAL,0), 'FML999G999G999G999G990D00')) | » |
END;
Tags: Database
Similar Questions
-
Clean the Code example for the abstract factory
Hello
I read clean Code and I do not understand something.
On page 38, it is suggested to instead use the switch instructions, we can use the abstract factory.
The example is the following:
Instead:
We can do this:public Money calculatePay(Employee e) throws InvalidEmployeeType { switch (e.type) { case COMMISSIONED: return calculateCommissionedPay(e); case HOURLY: return calculateHourlyPay(e); case SALARIED: return calculateSalariedPay(e); default: throw new InvalidEmployeeType(e.type); } }
I don't see why the plant is necessary here. (I know not much make abstract and I am a beginner)public abstract class Employee { public abstract boolean isPayday(); public abstract Money calculatePay(); public abstract void deliverPay(Money pay); } ----------------- public interface EmployeeFactory { public Employee makeEmployee(EmployeeRecord r) throws InvalidEmployeeType; } ----------------- public class EmployeeFactoryImpl implements EmployeeFactory { public Employee makeEmployee(EmployeeRecord r) throws InvalidEmployeeType { switch (r.type) { case COMMISSIONED: return new CommissionedEmployee(r) ; case HOURLY: return new HourlyEmployee(r); case SALARIED: return new SalariedEmploye(r); default: throw new InvalidEmployeeType(r.type); } } }
The abstract class used with his methods wouldn't be enough? Subclasses (CommissionedEmployee, HourlyEmployee,...) are implemented methods that can be called when necessary. Instead of calculatePay (myEmployee), we call myEmployee.calculatePay (). Doesn't it all? So I don't know why the plant is located in this example.
Thanks in advance for any help on this!
lemonbostonlemonboston wrote:
Subclasses (CommissionedEmployee, HourlyEmployee,...) are implemented methods that can be called when necessary. Instead of calculatePay (myEmployee), we call myEmployee.calculatePay (). Doesn't it all?Well, Yes, that's all. Almost everything is. You're right, you call
myEmployee.calculatePay()
where "myEmployee" is an object of the appropriate subclass. But whence this object? At some point, you must have had a line that says
Employee myEmployee = new SalariedEmployee()
or something along that line. But how did you know to create a SalariedEmployee object and not a HourlyEmployee object? It must have been a few if statements going on there. And here comes the factory: you pass a token representing the employee at the factory (a type code of employee of a character, an employee number that it will search in a database, or something else) and the factory returns a derived object of this token.
-
Need a script for the network card and Vswitch info
Hello
Can we have a script to list out the output of information network/vsiwtch as below for all clusters in VC to CSV. Name of host mcadress name of the physical card Vswitch name team Vswitch (NLB/FTL)
Hello
Sorry for the late reply, was absent for a few days
It's the new version:
$output = foreach ($esxi Get-cluster |) Get-VMHost | Name sort)
{
foreach ($vSS in (Get-VirtualSwitch - VMHost $esxi))
{
$pnic = $vSS.ExtensionData.Pnic - replace ".". *- » | Kind of Teddy bear
$mac_address = foreach ($p in $pnic) {$esxi.ExtensionData.Config.Network.Pnic |} Where-Object {$_.} Device-match $p} | %{$_. Mac}}
$esxi | Select-Object @{N = 'ESXi'; E={$_. Name}}, @{N = "Physical map"; {E = {[String]: Join (",", ($PNIC))}}, @{N = "MAC address"; {E = {[String]: Join (",", ($Mac_Address))}}, @{N = 'vSwitch name'; {E = {$vSS.Name}}, @{N = "vSwitch political grouping"; {E = {$vSS.ExtensionData.spec.Policy.NicTeaming.Policy}}
}
}
$output | Export-CSV "C:\output.csv".
Example of output:
ESXi: test
Physical map: vmnic0, vmnic1
MAC address: 11:22:33:44:55:66, 11:22:33:44:55:67
vSwitch name: vSwitch0
vSwitch political group: loadbalance_srcid
ESXi: test1
Physical map: vmnic2, vmnic3
MAC address: 11:22:33:44:55:68, 11:22:33:44:55:69
vSwitch name: vSwitch1
vSwitch political group: loadbalance_srcid
Hope this helps,
Steven.
-
Code example for the information of the applicant
Hello
I need to get information from the applicant in Composite SOA. Can someone show me sample code to get information from the applicant in IOM 11 GR 2.
Thank youRetrieve the Login of the applicant
Object requesterXMLElem = getVariableData ("variableentree", "payload", "/ ns3:process / ns4:RequesterDetails / ns4:Login");
String requesterLogin = ((oracle.xml.parser.v2.XMLElement) requesterXMLElem) .getText ();-Kevin
-
A SCN for the entire database and the different SNA for the data files?
DB Version: 11 g
I always thought that there is a unique SCN for the database as a whole.
A quote from the link below as
When a control point is completed, Oracle stores the RCS individually in the control for each data file file
http://www.dbapool.com/articles/1029200701.html
What does that mean? There is a SNA for the entire database, and there are individual SCN for each data files?Well, unfortunately, the article says more bad than good things. Or if I can't call them wrong, they are rather confusing and rather than clear things for the reader, its making them appear to look more confused.
First things, YVERT is used for read consistency (CR) mechanism and the backbone of the notion of Multiversioning. The control point is the mechanism to help that recovery is decided. Contrary to what said article, not any kind of checkpoints update both the data file and the control file, and also, there is not a type of them as well. In addition, the article says that the LAST_CHECKPOOINT is set to NULL, while its actually set to the infinity since it is not possible to detect the moment when the database is opened, that the last issue of control over the file would be. In the case of complete control point, this number is saved and is also associated with the toa Controlfile own database leader at the next startup. If this is not the case, there is an inconsistency in the stop_checkpoint of the data file and the stop_checkpoint reocrded in the control file, leading to a recovery of the instance.
There are several types of control points. Similarly, there are several types of SNA as well. Without going into the details of these, IMO, the article simply means that when the control point write over a file passes, oracle updates the file checkpoint on it and this is recorded in the Controlifle. as well.
HTH
Aman... -
Y at - it an easy way to have a version number that the code VI has access to, and which is used as the version number for the executable file and the installer builds? Now whenever I update my software I need to change the global variable where I store the version number, and then when I build I have in hand, open the properties and change the version number for the executable file and the installer. Is there an easy way to make these as all corresponding automatically?
Have you tried a search? This question comes up a LOT. Here are the results of a search: http://forums.ni.com/t5/forums/searchpage/tab/message?location=Node%3A170&q=application+version#mess...
-
Hey everyone if I use photoshop mixture do I need to pay for the cloud
Hey everyone if I use photoshop mixture do I need to pay for the cloud
Laughing out loud
-
I want to collect rain for the day, month and year; Can what formula I use?
I want to collect rain for the day, month and year; What formula or expression that I can use.
I use a Rain Wise product that converts impulses to an analog value. The rain wise device can be
"the value measure up to 1", 5", or 10". I will be setting the unit at 10 inches in increments of 0.01 inch.
What I would do is at each time increments of signal I would consider it as 0.01 then after reaching
a period of time a day or a month, back to zero.
Need some advice on this problem.
How about you, using a counter to count the number of times where the signal is less than 0.01?
For example,.
Counter.Count = signal<=>=>
The total number of rain is
Counter * 10 + signal
Use TimeOfDay or TimeOfWeek to reset the counter.
-
Whenever I try to update the 6 CS Master Collection that I encounter the error Code: U43M1D207 for the following applications: Prelude CS6 1.0.2 updated; Adobe SpeedGrade CS6 6.0.4 update; and Adobe Audition CS6.
your download has been altered. You may need to use another connection.
Error in downloading, installing or updating Adobe Creative Cloud applications
-
Satellite 1000-Z2: I need a driver for the display and the LAN
Hello
I reformatted my laptop S1000-Z2, and I have a real problem trying to find all the information about this model!
Basically, I need a driver for the display and the LAN?
Best regards
Austin.
What operating system do you use?
If you use XP, you will not find the network on the site recommended driver driver!
I can't give you advice where to find such driver because I don t know what the LAN card is installed in your oldie.But why you n t check yourself? Try to know what the LAN card you use and googel a bit for compatible applications ;)
-
Satellite M30X-165 - need a driver for the PCI Flash memory
Hey,.
I need a driver for the PCI Flash memory, I have already searched the web and posted in other Forums, but I can't find anything. I heard he is hidden somewhere in another file... ? !
I have a toshiba sm30X-165I would be very happy if someone can help me!
Kind regards
Freddy
Drivers for Satellite M30X are placed in the archive on the European driver Toshiba page.
Product type choose Archive.
Then the Satellite-> Satellite M-> Satellite M30XThere, you must download and install the Cardbus and Chip Set Utility driver
-
2000-2d19wm HP: I need drivers for the PCI device and SM Bus controller
I have a Hp 2000-2d19wm and I have downgraded to win8 to win7. Now I am trying to install the drivers and I can't find it on the HP website. Please help me.
Hello:
You need this driver for smbus controller...
http://h20566.www2.HP.com/hpsc/SWD/public/detail?swItemId=cp_118001_1
You need this driver for the PCI Dev:
Realtek card reader driver
File name: sp64801.exe
-
Need a driver for the gforce 6400 ultra 128 MB graphics card
Original title: find a driver
Hello
I need a driver for the gforce 6400 ultra 128 MB graphics card.
know of anyone who has this?
TNX for help
Hello
Take a look in the manufacturer's website:
http://www.nvidia.in/page/GeForce6.html
-
My genuine Window Vista could not search for the new update, or errors are: Code 80073712
If you forget to say 'thank you '?
Description of the update of the system for Windows Vista tool
http://support.Microsoft.com/kb/9478210 x 80073712 ERROR_SXS_COMPONENT_STORE_CORRUPT component store is in an inconsistent state.
TaurArian [MVP] 2005-2010 - Update Services
-
I get an error code 0xD59 for the update of Service Pack KB2463332? Then he wants to resart my computer for an update failed? Why?
Hello
Click on the below mentioned link to manually install the update on your computer.
Microsoft SQL Server 2005 Express Edition Service Pack 4 for Windows XP.
http://www.Microsoft.com/en-US/Download/details.aspx?ID=184After you install the update, restart your computer and check if the problem is resolved.
Maybe you are looking for
-
Re: No sound on my Satellite A100-496
My laptop is a Toshiba A100-496 The audio controller is a Realtek High Definition Audio. Initially did his, but no more. Have updated to the latest version of the drivers from the Toshiba Web site but still no sound! Looked in Device Manager and it s
-
When I brought my laptop hp, I do not have my laptop motherboard drivers CD... Please send me this CD
-
Mainly interested in CPU upgrade at this time. I have download CPU - Z to determine my profile and I provide this stitched-together set screenshots of this program: I just put the CPU of my Dimension 5150 friend successfully. I would only reproduce o
-
How can I backup a specific folder with vista home edition. Similar to the xp version where you are allowed to specify the files you want to back up.
-
Specific text of color in the listview element
Hello I have in my application: ListView { id: myListViewAya dataModel: dataModelAya listItemComponents: [ ListItemComponent { type: "item" id: listItemComponent_Aya Container { // background: Color.create("#75b5d3") Label { id:label_Aya text: ListIt