Problem with apex_collection data access

Hello

I had a problem with an apex_collection. I'm trying to fill this collection in a loop threw a database cursor. It is part of a process (on charge - before header). It looks similar to the following:
loop
    FETCH curs_1 INTO l_key;
    EXIT WHEN curs_1%NOTFOUND;
    select v.name, p.price
    into l_name, l_price
    from table_1 v, table_2 p
    where v.key = l_key
    and p.fkey = v.key;
 
    APEX_COLLECTION.ADD_MEMBER(p_collection_name => 'temp_collection',
                                   p_c001            => to_char(l_key),
                                   p_c002            => l_name,
                                   p_c003            => to_char(l_price));

   l_temp := l_temp||l_name||chr(10);

end loop;
As you can see I'm filling a temporary variable (l_temp). When I display this variable in an element, it displays the correct values. But when I do a select on the collection, there is no data in the report. The report is on the same page as the process. Query for the report is:
SELECT c001, c002
   FROM APEX_collections
 WHERE collection_name = 'temp_collection'
I hope someone can help.

Thanks in advance
Sebastian

All collection names are allways UPPERCASE. If you are using tiny, she won't, and no error message will be issued.

Denes Kubicek
------------------------------------------------------------------------------
http://deneskubicek.blogspot.com/
http://www.Opal-consulting.de/training
http://Apex.Oracle.com/pls/OTN/f?p=31517:1
------------------------------------------------------------------------------

Tags: Database

Similar Questions

  • Problems with the date and time - have to reset the date & time on reboot

    original title: problems with the date and time

    Whenever I turn on my computer (Windows XP 2002) I click on F2.  Then I re - set the date and time it occurred in January 2006 1 h every time I have turn off the computer.  Can someone tell me what I need to do?

    You need to replace the battery in time clock (RTC) real of your computer.  It can also be called the CMOS or BIOS battery.

    Many computers, this battery is an inexpensive CR2032 button available in almost every pharmacy corner.  There are, however, some computers (especially laptops) that require a different (and probably more expensive) battery.

    Whatever the expense, almost all of these batteries are easy to replace.

    To get help, post back with the brand and model of your computer.

  • Problems with the data connection

    Hello
    I bought a Z3 Compact Xperia on December 10, 2014. I live in Italy and I use Vodafone as my everyday.
    I got a SIM card replacement nano with LtE capabilities just to get the phone in the new fast network. The problem I encounter is that, since on January 13, 2015, I had some problems with the data in mode 3 G connection.
    So far, I used my phone normally, then I tried to send a text message with WhatsApp and phone stuck with the clock icon in the lower corner of the bubble of the message. I thought it was a temporary network problem but I'm not sure about this.
    I live in a small town where the coverage is really good, either in 3G and LTE. I tend to use the 3G because it uses less battery and it does not affect my 4G data plan.
    Th issue, it's that if I do a speedtest when I feel that network glitch I have a ping, but with very good download speeds up to 2000ms.
    The problem is that I believe that this is not a network problem because my mother has a phone HtC One S and runs vodafone without problem even when I'm having the glitch.
    I tried to reset the phone to factory settings, but it did not help.
    In LTE / 4G I do not experience this issue. In fact, I think if there is problem need a phone related software because the antenna works very well.
    If it doesn't I'll try to contact ad Vodsfone then I'll send my phone for the helpdesk if Vodafone tell me that the question is not on their network.

    Thanks in advance for your help.
    Simone

    It's pretty strange, double check the APN settings and contact EE in this regard.

  • Problem with Capture Date & time change

    I just became aware of a problem with the Date of Capture use to is very strange. Initially, a brief explanation of the import workflow I'm used with jpeg image 6 iPhone since Lightroom Mobile was presented. The images appear in the section of times iPhone app Photo, and from there I transfer to a collection in Lightroom Mobile. Once the collection syncs to Lightroom on my Mac (running latest El Capitan), they sort by capture time and I make choices and rename images. I have a naming preset that adds automatically the date to all the images. Recently, I noticed that some of these images, but not all, have been appointed with the wrong date. I had traveled without my computer - only my iPad, and it was a month before the images have been synced on my Mac it was very obvious that the dates were incorrect. The problem may have expressed earlier, but if the date was off by a day or two he would not have been as sensitive.

    The problem occurs when I take pictures with the app in time of MomentLens company. I use the application because it is designed to work with instant attachment lenses and the case of the Moment (which makes no difference in time to capture problem).


    Once that the images are added to LR Mobile news for images show good capture date and time. That's when they images sync for LR (latest version) that the problem occurs. And this is not a problem of LR Mobile, such as changes of date and hour occur if images of the iPad are added to LR without using mobile LR (from the iPad to Mac with AirDrop). Looking at the EXIF metadata Panel in LR, images taken with the iPhone camera app show three dates: Date time Original Date time digitized and Date time - all the which three are the same. Show only pictures taken with the application of the time Date time, but it's the same as in the iPhone Photo app and in LR Mobile capture time. However, when I show info on imagine in Lightroom, the time that appears to capture the time is the time that the image has been synchronized (if it came at LR Mobile) or the time that the image has been added to the iPad over wifi. It is also the time that is added to the preselection of naming. Note that if I send a picture directly from the iPhone to the Mac with AirDrop the date and time is correct.

    For the life of me, I can't understand this anomaly. I did thorough Imaging tests, and it happens only with the application of the time - other camera apps do not exhibit this problem. Interestingly, LR recognizes both the time Soft, which is reported under EXIF on the range of software and the lenses of the Moment when it is used with the iPhone the Moment case.

    If anyone has any ideas I'd be pleased to entrance. Thank you

    The link to the file is Dropbox - Photo of the Moment

    I have just confirmed with Exiftool that the sample file does not EXIF:DateTimeOriginal, although it does not contain EXIF:DateTime.

    You can send the following to the current time, the EXIF 2.3 specification:

  • Problem with field date

    Hello
    I have problems with the dates. I have a datagid which fills the XML values. Some examples of dates in the xml document.
    (1) 2008-08 - 05T 00: 00:00Z
    2) 2008 - 07-22 T 00: 00:00Z
    (3) 2008-08 - 04T 23: 00:00Z
    4) 2008 - 07-11 T 11: 18:20Z

    I have the function that is called when an element is clicked on the data grid. This function is supposed to take the above date and the date of the datefield in a summary Panel. I continued to get xmllist@23232 to date conversion error if I tried to bind the property of selectDate datefield in dataGrid value.

    I've seen examples of datefield defined using a date object. So I stored the date above in a string. Screens of the string data fine only thing is a the componenet (T) of time as well. So I split the string using the string to split the function and the use of "T" as a separator. The problem is the 2nd and 4th dates in the above examples worked well and display perfectly in the datefield.

    The 1st and 3rd dates however wrongly displayed. I've posted the table stored items from split, which found that the date of the first one 2008-08 - 05T 00: 00:00Z rose in 2008-08-06 instead of on 2008-08-05
    and for 2008-08 - 04T 23: 00:00Z rode in on 2008-08-05 instead of 2008-08-04. I checked the string that was storing the data grid data and who has been properly storing the value.

    any suggestions?

    see you soon
    Aerts

    sorted,
    lacked a bit of caffeine. I had another string of storing a value different date and because of my stupidity, I tried to parse this string and get the two different dates.

    see you soon
    Aerts

  • Problem with the DATA types, in a UNION

    Hello
    I m trying to disply a custom message when no data found using the structure below. Unfortunately I ve you have a problem with the data types I im trying to union
    I tried different types of data in the 2nd SELECTION tool but the rest of the problem. Help, please.

    SELECT HOSP_NAME 'HOSPITAL' DOC_SUR 'NAME', 'NAME' DOC_NAME, d.DOC_ID ID, diagnosis
    H., DOCTOR d, (SELECT d.DOC_ID, COUNT (d.DIAGN_ID) diagnosis
    OF PATIENT_DIAGNOSIS d
    GROUP BY d.DOC_ID)
    WHERE diagnosis > 1

    UNION ALL

    SELECT TO_CHAR ('test'), TO_CHAR ('test'), TO_CHAR ('test'), TO_CHAR ('test'), 0
    OF THE DOUBLE
    If NOT EXISTS (HOSP_NAME 'HOSPITAL' 'NAME' 'NAME' DOC_NAME DOC_SUR, d.DOC_ID ID, diagnosis
    OF ΝΟΣΟΚΟΜΕΙΟ h, ΙΑΤΡΟΣ d, (SELECT d.DOC_ID, COUNT (d.DIAGN_ID) diagnosis
    OF PATIENT_DIAGNOSIS d
    GROUP BY d.DOC_ID)
    WHERE diagnosis > 1);


    ORA-01790: expression must have same type of data, matching expression
    01790 00000 - "expression must have the same type of data, matching expression.

    DOC_SUR 'NAME' DOC_NAME 'NAME', ID d.DOC_ID, HOSP_NAME "HOSPITAL", diagnosis

    What is the data type for these columns

    To_char('test'), to_char ('test'), to_char ('test'), to_char ('test'), 0

    What you're doing here 'test' is already a character. Why do you use TO_CHAR?

  • problems with the date picker

    I found some problems with the date picker to make my first presentation of object BPM.

    I created a group with a datetimestamp it contains. When I click on it in run mode, it will bring a new tab in the browser. This behavior is different from that of a date picker outside a group where there just a small javascript popup.

    Anyway around this problem?

    Also, would be nice if could be set by default to the current date. is there a way to who?

    For the component "time" it seems impossible to define the default value - at least on the tab object structure.

    Thank you

    Try to set the property "DHTML" to control date Yes. This option is under the Properties tab-> the calendar section. This will force it to use the popup javascript on screen instead of opening a new browser window/tab.

    To set a default value for a date/time, you can simply set the value in the constructor of the BPM object in which the property is located.

  • Problems with the date in the procedure on Oracle 11 g

    Hi gurus,

    I have some problems with the date under Oracle 11 g format.

    Let me explain the situation:

    When I start such a request
    Select to_number (to_char (to_date('01.04.2009','dd.mm.yyyy'), 'yyyy'))
    of sys.dual

    I had as a result 2009 under the number.

    When I do the same thing in a procedure of a package like this

    my_year: = to_number (to_char (to_date('01.04.2009','dd.mm.yyyy'), 'yyyy'));

    the my_year variable contains the value 9 instead of 2009.

    Can someone explain to me what goes wrong?

    I just tested with the evolution of the variable nls_date_format of environment for the session and the database is complete without success.

    Kind regards
    Björn

    Yes, it has everything to do with your environment settings.

    SQL> set serveroutput on;
    SQL>
    SQL> declare
      2    my_date date;
      3    my_zeitstempel varchar2(32767);
      4    my_tageswechsel float;
      5  begin
      6    my_zeitstempel := '01.03.1998 07:00';
      7    my_tageswechsel := .25;
      8    my_date := to_date (substr (my_zeitstempel, 1, 10), 'dd.mm.yyyy') + my_tageswechsel +1/24;
      9    dbms_output.put_line( my_date);
     10  end;
     11  /
    01-MAR-98
    
    PL/SQL procedure successfully completed.
    
    SQL> alter session set nls_date_format = 'dd.mm.yyyy hh24:mi:ss'
      2  /
    
    Session altered.
    
    SQL> declare
      2    my_date date;
      3    my_zeitstempel varchar2(32767);
      4    my_tageswechsel float;
      5  begin
      6    my_zeitstempel := '01.03.1998 07:00';
      7    my_tageswechsel := .25;
      8    my_date := to_date (substr (my_zeitstempel, 1, 10), 'dd.mm.yyyy') + my_tageswechsel +1/24;
      9    dbms_output.put_line( my_date);
     10  end;
     11  /
    01.03.1998 07:00:00
    
    PL/SQL procedure successfully completed.
    
  • Equium A100 - 027 PSAAQ - having problems with WiFi Internet access

    Just installed Windows XP Home edition on my Equium A100-027 (PSAAQ) Vista didn't like. Now I'm having problems with Internet access. Should what drivers I download and how to install?

    Thank you.

    Hello

    I suggest you to check the site toshiba driver
    -> http://eu.computers.toshiba-europe.com/cgi-bin/ToshibaCSG/download_drivers_bios.jsp

    You can search your machine and download the wlan drivers. If you don t know that you you just all download and install ´em, one of the drivers SHOULD work. ;)

    Welcome them

  • IHAVE problems with mywireless and access point

    I have problems with my wireless

    Hello

    There are hundreds of models of Points of access configured on systems with different computers in different variations, there may be hundreds of reasons why it does not work.

    Please, help us to reduce the factor of "guessing game" to provide assistance and give the relevant details of your computer systems.

    -----------------------------

    There is an inherent Catch22 to attempt to repair a computer wireless through wireless. Given that the without wire is not connected to the source, there is no interaction between the wireless source and the Wireless Client and no frame of reference to find what works and what does not.

    As a first step, I will temporarily move the computer to a place close to the wireless router and plug with a wire.

    When he works with a wire, switch Off the Wireless Security in the router, disconnect the wire and try to make wireless work. This must be done when the computer is always close to the wireless router to compensate for the weak, and or blocked the signal that could be part of the problem in the new suite spot work.

    In the computer itself.

    Most laptops have a physical switch for the wireless card. Read the manual of the computer and make sure that the wireless adapter is on.

    Check the Device Manager for the wireless card valid entry.

    http://www.ezlan.NET/Win7/net_dm.jpg

    If there is no valid entry, remove any entry from fake and re - install the drivers for the wireless card.

    Check network connections to make sure that you have a network icon/entry wireless connection, and that the properties of the icon (right-click on the icon) are correctly configured with the TCP/IPv4 protocol in the properties of network connections.

    http://www.ezlan.NET/Win7/net_connection_tcp.jpg

    Make sure that if there is Wireless Utility a utility vendor is not running with the native Windows wireless utility.

    Make sure you firewall No. preventing / blocks wireless components to join the network.

    Above everything is OK and it connects to the wireless router. Log in from any computer which is, or can be connected to the router with a wire wireless, disable wireless security, make sure that the wireless streaming is enabled and try to connect with no. wireless security.

    When the work turns on the Wireless security.

    Note * people sometimes make mistakes in writing and retype the password for security.

    Another way is to copy in the menu of the router and then paste it when asked of the wireless card.

    Jack-MVP Windows Networking. WWW.EZLAN.NET

  • Problem with cells date for integrated workbooks ADFDI

    Hello

    I have some problems with my built-in workbook DI ADF date fields. My situation is as follows:
    -My request for merger is hosted on a server from another time zone. The time difference is 10 hours.
    -In my workbook, I insert a new line. For the lines that represent the dates, I insert the current date.
    -Excel workbook, I download the new created the line on demand.
    -The result is that in the database, full dates are converted to the zone time server (ex: 26/01/2012 is converted to 25/01/2012 14:00).

    Can you help me with an ideea?

    Thank you
    Alex.

    I have to disagree. A date and time object represents a time: noon in California is from 15:00 in New York. More important still, if you enter noon in California and upload, you had better get back midi when you download then (in California) little any where servers can be. ADFdi guarantees than uniformity.

    can more details on how I change the type of my date attributes

    I suggest that to start a new thread for this question.

  • 5 d Classic - problems with the Date of creation on the files

    I use Bridge CS5 v 4.1.0.54 and am having a problem with my 5 d classic, where some of my photos are dated correctly, and then some are dated as 11 hours later. They were all kick the same camera and same lens (no), a few seconds apart. Date information only appear to be incorrect in Bridge and are therefore sorted incorrectly, making it difficult for the workflow. However, I still have the pictures on my camera, so I took the CF card and examine its contents in Windows. In this case, all dates seem to match and be consistent. I posted in other forums, and most have suggested that there is probably a problem with Bridge, ACR, or Photoshop.

    I have provided links below for an example of images with different info Date created by bridge and then the correct information of the Date of creation in Windows when you view them on the map see

    I saw cela in at least two different scenarios recently. Haven't looked through all of my recent photos still to say whether or not it's got more than that.

    Any help would be appreciated.

    Thank you

    Jamie

    -Adobe http://www.jamiegphotography.com/portals/0/images/datecompare.jpg

    -Windows http://www.jamiegphotography.com/portals/0/images/PhotosWindows.jpg

    Have seen the problem before.  Two things to try.

    1. empty the cache in the folder with the bad weather (Tools/cache/purge cache folder xxxx).

    2. read this link http://forums.adobe.com/thread/854763.  The guy is from Austrialia and concluded that, after a certain time bridge labled it the next day.  Where are you from?

  • database stress test - datagenerator problem with import data from oracle

    Hi all

    Today, I'm doing a stress test on my new server. Someone from this forum told me that there is a nice software for it:

    http://www.dominicgiles.com

    I have a problem with Datagenerator. I can't fill my user directly in the database. DataGenerator always has an exception. What ever...

    I tried to generate data on hard drive. It seems to go well. In the file data, I found a large number of files:

    *.dat
    *. CTL
    *. SQL

    N, anyone know how I can import only the files of user oracle?


    see you soon

    Dlugasx

    I do the table drop in the first place, I think it's to be sure, there are no objects before loading.

    Nicolas.

  • Problem with Trunc (Dates)

    Hey guys,.
    I need your help with a statement trunc.

    I have a SHTTRAN table with 3 columns:

    SHTTRAN_ID SHTTRAN_SEQ_NO SHTTRAN_REQUEST_DATE
    901325 2 7/20 / 2008 18:11:28
    900678 4 7/20 / 2008

    The request date column has a few documents with time stamps and little without timestamp as shown above.
    I have a procedure of a package that deletes a record in this table as follows:

    exec deletepackage.p_delete_szptpsr ('901325', 2, July 20, 2008 ');
    exec deletepackage.p_delete_szptpsr ('900678', 4, July 20, 2008 ');

    I have something (shttran_request_date) inside the procedure to remove the timestamp as shown below:

    CREATE OR REPLACE PACKAGE BODY "DELETEPACKAGE"
    PROCEDURE p_delete_szptpsr (p_shttran_id IN saturn.shttran.shttran_id%TYPE,
    p_shttran_seq_no IN saturn.shttran.shttran_seq_no%TYPE,
    p_shttran_request_date IN saturn.shttran.shttran_request_date%TYPE) IS

    BEGIN

    DELETE FROM saturn.shttran
    WHERE shttran.shttran_id = p_shttran_id
    and shttran.shttran_seq_no = p_shttran_seq_no
    and trunc (shttran_request_date) = p_shttran_request_date;
    COMMIT;
    DBMS_OUTPUT. Put_line (' delete request number (' | p_shttran_seq_no | student (' | p_shttran_id |') for the requested date (' | p_shttran_request_date |'))) ') ;

    END p_delete_procedure;
    END DELETEPACKAGE;
    /

    If I run the procedure, it is not delete the record with the time stamp. Can someone help me with this?

    Thank you so much in advance.

    Hello

    What is the data type of shttran.shttran_request_date?

    If shttran_request_date is a DATE, it is impossible to have data like this:

    SHTTRAN_ID  SHTTRAN_SEQ_NO  SHTTRAN_REQUEST_DATE
    ---------   --------------  --------------------
    901325          2              7/20/2008  6:11:28 PM
    900678         4              7/20/2008
    

    because all DATEs have hours, minutes, and seconds. Perhaps you meant:

    SHTTRAN_ID  SHTTRAN_SEQ_NO  SHTTRAN_REQUEST_DATE
    ---------   --------------  --------------------
    901325          2              7/20/2008  6:11:28 PM
    900678         4              7/20/2008 12:00:00 AM
    

    In addition, if shttran_request_date is a DATE, you must call the procedure with a DATE as the 3rd argument.
    For example:

    exec deletepackage.p_delete_szptpsr('900678', 4, TO_DATE ('20-JUL-2008', 'DD-MON-YYYY'));
    

    Which probably won; ' t solve the problem you are having now, but it will not solve the problem you will have later.

    The problem you are having now is that the date truncated in the table must match the date not truncated passed to the procedure.
    The last line of the DELETE statement is:

    and trunc(shttran_request_date) = p_shttran_request_date;
    

    Depending on what you want to do, you probably need TRUNC on both sides of the = operator or on any of the two camps.

  • problem with the data record

    Hi, I'm new to LabView so I know that the thing I'm doing is relatively easy, however, I'm stuck.

    I made a small program that gets 5 steps (for now replaced with random numbers) and as well as the date and time data in the text file. I intend to run the program for long periods of time, so I want to increment the file name/path every hour, but after the addition of this part of the program does not create any file, although the program runs without error.

    Block diagram is attached, could someone point out to me what is wrong and what I should do to reach my goal?

    Thanks in advance!

    Hi marcis,.

    Acually, the logic of the program was completely wrong.

    1. your comments the file path will never help you. Because after leaving of while loop, the structure of matter will run once and LV will stops running.

    2. open and close the datalog only once file. Try to make all your manipulations between opening and closing your file datalog. Otherwise, it will be difficult to manage when you develop your code.

    3 case construction outside the loop is meaning less. If you want to run the program permanently, place all functions inside the while loop you want to run. While the loop will run continuously until you get satisfied.

    4. incorrect data streams. All programmers need well with the data stream.

    Just go into the basics of labview here and try to realize your logic again

Maybe you are looking for

  • XP Home Edition does not start without the installation CD after reinstall.

    I reinstalled XP Home Edition on my PC without formatting the drive first in order to keep all of my data.  I have installed all service packs.  However, for some reason, I had to call Microsoft to get validated.  The only problem I have now is that

  • You have an HP550?

    I want to know if this is normal behavior for my laptop. I think it's probably, but I have little experience, so I don't know about you. When I turn it on it is around 20 ° C. He then made his way up to around 40 ° C. At some point the fan turns at t

  • HP LaserJet 5550 does not print A3

    I rMBP (Maverics 10.9.5) and network HP LaserJet 5550 (pilot 19.8). After the last Update my priter won't print A3. I reinstall the printer drivers. I reconnect my printer, but it does not solve my problem. How to set up the paper of trey?

  • Impossible to uninstall proinstaller156

    Original title: Windows Firewall What is proinstaller156? It's on my list of programs that are allowed to communicate through Windows Firewall. I tried to delete it, but couldn't.

  • Adding file to a jpeg file information affects quality?

    If I add only some info file to a JPEG (no photo editing), it alters the quality of the picture? As if I put only in a description for the file of information on...  Photoshop will understand that I changed only the information about the file and not