sys. HTP. Print empty?, for the sample GET empsecformat requests / {empname}

Hello

What could be wrong with my setup because I do not result in the tester of SQL Services Restful workshops?

in Glassfish application server.

With CLARKE the GET empsecformat gives nothing in the tester of Restful SQLWorkshops Services:

If I test the script and make prints of debugging, with bind CLARKE.

DECLARE
  prevdeptno   number;
  deptloc      varchar2(30);
  deptname     varchar2(30);
  v_out        varchar2(4000);
     
  CURSOR getemps IS select * from emp 
                     where ((select job from emp where ename = :empname)  IN ('PRESIDENT', 'MANAGER')) 
                        or deptno = (select deptno from emp where ename = :empname) 
                     order by deptno, ename;
BEGIN
--  sys.htp.htmlopen;
--  sys.htp.headopen;
--  sys.htp.title('Departments');
--  sys.htp.headclose;
--  sys.htp.bodyopen;

  v_out := '============== test ws script =====================';
  dbms_output.put_line(a => v_out);

  for emprecs in getemps
  loop

      if emprecs.deptno != prevdeptno or prevdeptno is null then
          select dname, loc into deptname, deptloc 
            from dept where deptno = (select deptno from emp where ename = emprecs.ename);
          if prevdeptno is not null then
--              sys.htp.print('</ul>');
                v_out := prevdeptno||': prevdeptno is not null ';
                dbms_output.put_line(a => v_out);
          end if;
          
            v_out := 'Department deptname: '||deptname||' located in deptloc: '||deptloc;
            dbms_output.put_line(a => v_out);
--          sys.htp.print('Department ' || deptname || ' located in ' || deptloc || '<p/>');
--          sys.htp.print('<ul>');
      end if;

--      sys.htp.print('<li>' || emprecs.ename || ', ' || emprecs.job || ', ' || emprecs.sal || '</li>');
            v_out := 'emprecs.ename: '||emprecs.ename||' emprecs.job: '||emprecs.job||' emprecs.sal: '||emprecs.sal;
            dbms_output.put_line(a => v_out);

      prevdeptno := emprecs.deptno;

  end loop;
--  sys.htp.print('</ul>');
--  sys.htp.bodyclose;
--  sys.htp.htmlclose;
END;

I see that it returns the following:

= ws test script =.

Deptname Department: ACCOUNTING located in deptloc: NEW YORK

emprecs. Ename: emprecs.job CLARK: emprecs.sal MANAGER: 2450

emprecs. Ename: KING emprecs.job: emprecs.sal PRESIDENT: 5000

emprecs. Ename: emprecs.job MILLER: emprecs.sal CLERK: 1300

10: prevdeptno is not null

Deptname Department: located in deptloc RESEARCH: DALLAS

emprecs. Ename: emprecs.job ADAMS: CLERK emprecs.sal: 1100

emprecs. Ename: FORD emprecs.job: ANALYST emprecs.sal: 3000

emprecs. Ename: emprecs.job JONES: MANAGER emprecs.sal: 2975

emprecs. Ename: SCOTT emprecs.job: ANALYST emprecs.sal: 3000

emprecs. Ename: emprecs.job SMITH: CLERK emprecs.sal: 800

20: prevdeptno is not null

Deptname Department: SALES located in deptloc: CHICAGO

emprecs. Ename: ALLEN emprecs.job: emprecs.sal VENDOR: 1600

emprecs. Ename: emprecs.job BLAKE: MANAGER emprecs.sal: 2850

emprecs. Ename: JAMES emprecs.job: CLERK emprecs.sal: 950

emprecs. Ename: MARTIN emprecs.job: emprecs.sal VENDOR: 1250

emprecs. Ename: emprecs.job TURNER: emprecs.sal VENDOR: 1500

emprecs. Ename: emprecs.job WARD: emprecs.sal VENDOR: 1250

emprecs. Ename: emprecs.job of emily: emprecs.sal VENDOR: 222

= ws test script =.

With bind values return nothing I get ERROR 500 tests.

Rgrds Paavo

The problem here is that the query is not designed to handle the case where more than one employee sharing the same value of ENAME. In the sample data that comes with the Application Express, there is no name used twice, so the problem does not occur, but it's easy when playing with the data to add a duplicate and then name that breaks queries in the service who assume a single result is possible and that's why the error message. This was the case in my own work space.

I had to delete the EMP and DEPT tables and then perform the SQL workshop | RESTful services | Reset the sample data to restore the original data set, and then the service works as expected:

https://Apex.Oracle.com/pls/Apex/RestEasy/HR/empsecformat/Clark

Tags: Database

Similar Questions

  • C4750 all-in - One Printer: software for the printer driver removal

    Hey guys!  I was hoping that someone could help me with this package to uninstall.

    I have installed this package on the next page, but really don't need all this: HP Photosmart C4700 all-in-One Printer series full feature software and driver.  Now, because my computer is a bit slow, wanted to uninstall what is not necessary.  I hope soon will get some components better and won't have to worry as much speed.

    I want as little as possible on the left above, just need to print wireless, scan and the volume of ink.

    1. wireless

    2 scan

    3. set the Volume of ink

    I'll do the kidnapping with Revo if can just get some advice.  Don't really want to uninstall each thing if not unnecessary.  The question is, some drivers are hidden, and I do not know in which package they belong.  If this isn't common knowledge here just to uninstall each thing.

    I'll try to insert a picture to show what I left, because I remove some of them already.  Thank you! the love of my HP

    http://support.HP.com/us-en/drivers/selfservice/HP-Photosmart-C4700-all-in-one-printer-series/379461...

    Welcome @pcpunk,

    Thank you for your participation in the forums! I see that you would like to know what else you can uninstall the printer without affecting the wireless, scanning and adjusting the Volume of ink. Thanks for providing the screenshot. I'd love to help you.

    You should be able to remove the following text:

    • HP Customer Participation Explorer.
    • HP Photo Creations.
    • HP Smart Web Printing.

    Feel free to click on the 'accept as Solution' and the 'Thumbs Up' If this helped. Please let me know the results. Best regards

  • Additional printer drivers for the latest operating systems?

    Hello, I have a computer running Windows XP Professional with a HP Deskjet D4200 printer. I have guests who often connect to the network using their own computers. Unfortunately, often the printer share fails because they use Windows 7 or Windows Vista. When I try to add printers for these operating systems, I do not see an option. The box options is by clicking on start > printers and faxes, right click on the shared printer, click Sharing, and click additional drivers.

    1. download the files from one day to the next and save them to a USB key that you can give to your guests.

    2. take HP on their offer to sell you a CD with the driver.  If order Vista and Windows 7 and if you call rather than ordering it on the Internet, maybe you can get them to give you a break on the shipping.

    3 Variant 1: go to your local public library where there is a high speed Internet connection and download the drivers there and the record to a thumb drive.  If you do not have a library with free Internet access, you may be able to find an Internet café or FedEx/Kinko's or similar.  Even if you pay for the time, it would probably be cheaper than the CD from HP.  There are some shops with free wifi (e.g., Starbucks, Panera Bread), but you must have your own laptop.

  • Lexmark X 6100 printer drivers for the NEW Windows 8

    I have upgraded to Windows 8 and boy that I came across several problems...  The only problem I have most pressing difficulty is my multifunction printer/scanner/fax X Lexmark 6100 series. I have no driver for it.  Lexmark said Microsoft should have one for her, but Microsoft 8 can't find it.  Any suggestions?

    The latest Lexmark driver released for the X 6100 series is for Windows Vista.  It looks like the same old story - the manufacturer of the printer refuses to update its drivers so that they can go wrong in buying a new printer.

    For the same reason, "Universal printer drivers" Lexmark do not work for these no more.

  • Where is the source code for the samples of 8 JavaFX?

    Hello

    I just downloaded the samples for JavaFX 8 and the popup menu in the upper left really caught my attention.

    I want to study the source code for it. Anyone know where I can find it?

    I expected it here http://hg.openjdk.java.net/openjfx/8/master/rt/file but it seems it isn't here.

    Alternative: Jasper Potts presented a kiosk application to Devoxx 2012 (Antwerp), which was also used at JavaOne. I think that this application uses the same Menu. And he says that sources are available. But I do not remember the link.

    https://jdk8.Java.NET/Download.html

  • Dynamic problem with lookup-query for the purpose of resource request

    Hi all
    I need to set up several IOM user exchange mailboxes, I can set up AD account and account of the mailbox without any problem, but only for the first ad and Exchange account. For the second and third, etc. I get the error: "Invalid login name" during Exchange of account provisioning. I discovered that this problem exists with Exchange Connector - it is not able to collect correct GUID. So in my xml Dataset I use dynamic query Lookup to select manually correct Alias, the login name and GUID. The query for the GUID is the sequel (I cloned RO for AD and Exchnage):

    AttributeReference available-in-bulk = "true" length = "32" widget = 'search query' type = 'String' attr-ref = "Object GUID" name = "Object GUID" >
    * < lookupQuery search-query = "select distinct UD_KFUSER_OBJECTGUID GUID, ud_KFUSER_uid like UD_KFUSER UD_KFUSER, orc orc Login, sta sta where UD_KFUSER.orc_key = orc.orc_key and orc.usr_key = ' $Form data." Take ' and UD_KFUSER. "UD_KFUSER_AD = 27 and orc.orc_status = STA.sta_status AND STA.sta_bucket! = 'Cancelled'" display-field = "GUID" save-field = "Object GUID" / > *.
    * < / AttributeReference > *.


    My questions are:

    1. I have to type * to run the query in the user interface, without * I got error:

    + < 17 February 2012 11:12:22 THIS > < error > < oracle.adfinternal.view.faces.config.ric +.
    h.RegistrationConfigurator > < BEA-000000 > < ADF_FACES - 60096:Server Exception durin
    PPR, #10 g
    oracle.iam.platform.canonic.base.NoteException: an error occurred during executin
    g the search query.
    to oracle.iam.platform.canonic.agentry.GenericEntityLookupActor.perform)
    GenericEntityLookupActor.java:337)
    Is this right?

    2. when I got correct values (from the search query) - they are missing on the details of the application and form of RO - what Miss me?

    I use OIM 11.1.1.5, in my xml dataset I use correct attr-Ref (labels), when I type the values manually, they are propagated to form RO and Exchange mailbox is created.
    Best
    MP

    I not had no problem when writing search query.
    This works very well for me.
    The request will be filled for the field, so why choose *?
    I used as

  • For the Adobe CS6 Proxy request

    Hi people,

    I'm pulling what's left of my hair on it. Let me put the problem as clearly as possible.

    I work in a United and we are due to a massive upgrade of the hardware and software this summer so I thought it is a good idea to do some tests of installation Adobe CS6 Design & Web Premium.

    I want to install on iMac running 10.6.8 at the moment and we move on 10.8 iMacs when they arrive after Apple announce the release of Mountain Lion.

    How studio iMacs are put in place.

    • Two partitions, a native boot from disk with the operating system and all applications on 1 and 1 as a student, local work to this iMac only drive.

    • There is an Admin user and a generic student user.

    • We have to run through a proxy secured for web access on the machines of the student/studio.

    I tried the installation methods.

    • I can't install the software CS6 no problem that I can use a proxy different setting (Admin xxx.xx.xx.55) allowing unlimited access to the web. I tried this in both the Admin login and the login for the student and the software settles – no problems so far.

    • I also created a deployment package and installed via ARD. I have to say that it was much easier that I thought it would be and probably will be our method of deployment. (We tried a NetRestore image as we have done several times before, but this method has forced us to enter the serial code and register with Adobe on each station... not good on 200 + iMac).

    The problem.

    Once installed the software CS6 iMacs are then set to the secure proxy (xxx.xx.xx.221). Now when I run Illustrator, Dreamweaver, Flash, InDesign etc. I get an authentication window appears asking me to enter the connection information for the proxy. It's really annoying.

    • Why apps now make this request? We never had this problem with CS2, 3, 4, 5 or 5.5.

    How can • I stop from happening? (I can't have the proxy don't forget my ID as it will be remembered for any query http... it would really be wrong in an environment United).

    Any help would be greatly received as aid phone Adobe was not helpful at all.

    : )

    GAV

    I think I have it solved. Please let me know if what I have done is a bad thing.

    I moved the following files in the Adobe Application Support folder in folders named to break the link so that they won't load in applications.

    In the Adobe Application Support folder, I moved 'Help' and 'HelpCFg' in a folder called "of Adobe Application Support. This fixes the problem of proxy with Illustrator and Indesign.

    In the CS6ServiceManager folder, I moved the folder "SearchForHelp" in a folder of"CS6ServiceManager" caller. This solved the problem of proxy with Dreamweaver, Flash and Fireworks.

    I have a few tests to make with the rest of the Adobe applications as they are less used. The only drawback I see right now is that we lose the use of the help options.

    Now, to try to build an entire iMac NetInstall image.

    : )

    GAV

  • No printer available for the new Macbook Pro

    I got a new Macbook Pro 13 inch OS X El Capitan.  I used my Time Machine backup of my previous Macbook pro to get running.

    Everything works except printer / scan options.  When I go to system preferences / printers it says "there is no printer available" even when I click on the

    + symbol.  The folder library/printer has the printer options.  I tried the recovery of backup options, but still no printer.  Ideas?

    Hello..


    "no printer is available."

    Visit the website for your printer manufacturing and research of drivers for v10.11 El Capitan compatibility you can download then install.

    BTW, your new Mac may have been sitting in inventory for a short time, that is why it is running v10.11.3.

    Download and install the v10.11.4 update on the App Store and then download and install the drivers for your printer.

    You can access the App Store by clicking on your high Apple  left of your screen, then click on App Store. When the App Store opens, select updates from the top of the menu in the window of the App Store.

    Your Mac may restart several times during the update process. That's ok.

  • How can I route printing jobs for the main tray instead of the photo tray?

    If I send a mail with an attachment JPG to the e-mail address of my printer, it will always try to print it by using the photo tray. I guess he assumes simply because it is an image file, happened to print using photo paper. Although it is not a bad assumption, it is not necessarily what the user wants. I was wondering how I could implement the ePrint to control which tray to use for printing the attachments of the image files. Thank you.

    PS My printer is Photosmart 7520.

    Hello

    At this point, you will not be able to do so through ePrint. Please also read the following post:

    http://h30434.www3.HP.com/T5/eprint-print-apps-mobile-printing-and-ePrintCenter/eprint-attachment-tray-selection/TD-p/2729103

    Kind regards.

  • Writing data to extend the acquisition of data for the sampling rate high file

    These are the tasks that I have to do to take noise measurements:

    (1) take continuous data to USB 6281 Office, in a sample of 500 k (50 k samples at a time) rate.

    (2) save data continuously for 3 to 6 hours in any file (any format is OK but I need to save in a series of files rather than the single file). I want to start writing again file after every 2 min.

    I enclose my VI and pictures of my setup of the task. I can measure and write data to the file continuously for 15 minutes. After that, I see these errors:

    (1) acquisition of equipment can't keep up with the software (something like that, also with a proposal to increase the size of the buffer...)

    (2) memory is full.

    Please help make my VI effective and correct. I suggest to remove him "write in the action file" loop of consumption because it takes a long time to open and close a file in a loop. You can suggest me to open the file outside the loop and write inside the loop. But I want to save my data in the new file, after every 2 min or some samples. If this can be done efficiently without using Scripture in the measurement file then please let me know.

    Thank you in advance.

    This example here is for a single file and a channel, you should be able to loop over that automatically. The background commentary should be the name of the channel, no group namede the name of the channel in the control.

  • Cannot install the printer drivers for the KODAK ESP5250.

    I have everything that I can think, the printer worked fine with a Netgear router, but will not be installed with the Linksys E1000 router.

    Please contact me at * address email is removed from the privacy *.

    Please provide more details, including:

    1. Windows version, including service pack
    2. What model is your Netgear router
    3. have you changed the mode to the default value of 'Mixed' E1000 wireless network (p.20 User Guide)
    4. Why you try to reinstall the printer
    5. What happened when you tried to reinstall the printer (include the full text of all messages in error without paraphrase)
    6. have you read and followed the instructions given here? --> http://resources.kodak.com/support/shtml/en/manuals/urg01081/urg01081c2s1.shtml
    7. If you answered Yes to Q. 6, what's happened (be specific)
    8. Using the control panel of the printer, follow these steps:
    • Press Home.
    • Press [down] to select the network settings, then OK.
    • Press [down] to select The setting display, and then press OK.
    • Report to what is shown for each of the following:

    Connection
    IP address
    Type of IP address
    Network subnet
    Security
    Authentication
    Radio (power switch)

    9. on your computer, follow these steps:

    • Open a command prompt window (start > run > cmd > OK)
    • Type the following in the black command prompt window, and then press ENTER after each line

      ipconfig/all > "% UserProfile%\Desktop\ipinfo.txt".
      Notepad '% UserProfile%\Desktop\ipinfo.txt '.

    • Copy the contents of the Notepad window and paste it into your reply here (after copying, click in the window of response and select Paste)
    • When you are finished, you can close the command prompt window and close and delete the file ipinfo.txt to your desktop
  • Print option for the page to print no?

    Is it possible to select a page to not print when you print to a pdf package? without having to change to print setting every time that you print?

    Hi kristas61535376,

    Try to change the settings in the print options and see if it works.

    Open Acrobat > click on print > under Pages to print > select the page range you want to print and have not let.

    For ex - there are 10 pages, and you don't want page 5 to print.

    Under Pages to print, type 1-4, 6-10.

    Here is the screenshot:

    Let us know the results.

    Thank you!

    Shivam

  • Display area empty for the latest version of flash player in FF7

    Hi all

    I got the new version of flash in a few days and since then, all embedded flash just appears as an empty area and nothing happens - even not an error message. Normal messages, advising who settle Flash is required for this content do not appear. Running under Win7 64, FF7, install would have as much success, deleted and reinstalled the plugin, ran as administrator, no dice. What now?

    Thanks much for any help.

    Well, I used the flashplayer11_2r202_233_win_32bit.exe installer, and all is fine now the bat. This is after several rounds of uninstall/install the latest version. Giving to think that there is something wrong with the new version.

  • Of the column in the task list is empty for the Windows Firewall notification

    Friends,

    I have a problem in my work flow when there is submiision by the employee, that it will receive notification th as the sjipment pointed out.
    Now, when he has got the notification of its connection to the title of the list of tasks I can only the notification message in the "SUBJECT" line, but under the 'FROM', it is empty. Why is it so?

    When occurs the approval as at the first level, it will receive another notification of approval and here also the subject line consists of the approval message but under the 'FROM' line, it is empty. but instead, it must match the name of the approver.

    How can achieve us?


    Kind regards
    SKG

    Hello

    You need create and populate a message attribute called #FROM_ROLE with the name of the role that sends the notification.

    Who will be then fill in the field when the notification is sent.

    See http://download.oracle.com/docs/cd/B10500_01/workflow.920/a95265/defcom25.htm for more information

    HTH,

    Matt
    -----
    WorkflowFAQ.com - the independent resource ONLY for Oracle Workflow Development

    Review alpha chapters of my book "developing with Oracle Workflow" are available through my website http://www.workflowfaq.com
    Have you read the blog at http://www.workflowfaq.com/blog?
    WorkflowFAQ support forum: http://forum.workflowfaq.com

  • HP 8610 Pro: why don't still no button "Cancel printing" fast for the printer HP 8610 Pro? And issue of the queue.

    This printer prints so fast that he NEEDS an option button fast cancel to cancel a print job.  A quick solutions?

    Also, sometimes when printing from a web application, the printer displays a "printing spool" minutes before it actually prints.  Can it be sped up or cancelled?  Still, the X on the LCD screen does not seem to work. Any thoughts on these issues?

    @Avalon11,

    If it only happens when you print from the Web, it could be a number of things. Could you run printing HP and doctor Scan?

    You can also check and see if the Web browser that you are using requires some updates or try another browser.

    Any help?

Maybe you are looking for

  • Can't see favorite. They are described, but text has disappeared.

    I tried to change the themes and the text is still missing. If I fly over the bar shows tool bookmark outline, and I click on they take me to the pages, but all the text disappeared. I don't remember that they all are.

  • I need 64-bit drivers for Windows 7 for HP ENVY 17-jo27cl

    I searched the forum for a solution to this problem and didn't see anything for my particular model. I gave to Windows 8 a relatively long test - about 2 weeks.  Hatred is not strong enough a Word.  I "upgraded" to Windows 7 Ultimate 64-bit.  I have

  • Can I use view Lab for agent based modeling?

    Dear all, I have a project to do, it is the optimization of the costs associated with the management of the maintenance in a particular type of contract.I'm looking to take an agent based modeling for the project. I just started using Labview and I d

  • Reduce/enlarge printing

    How to enlarge or reduce a document scanned or copied on my officejet 6700 model h711n product CN583A

  • Constrained nonlinear adjustment in V8.5 - non optimized result

    Please can someone could give me information on where I can flick up with the restricted non-linear curve adjustment function? A little history: I have data that must match a resonance curve. I can adjust the curve to the data, but the results are no