Print Thread
Code assistant for Types and Tables.
#36281 10/27/09 11:48 PM
Joined: Mar 2007
Posts: 131
California, USA
Sachin Offline OP
Member
OP Offline
Member
Joined: Mar 2007
Posts: 131
California, USA
PLD does not popup values via code assistant when types and tables are used:

Code
CREATE OR REPLACE FUNCTION f_1() RETURN INTEGER IS
  v_result   INTEGER;
  v_emp_id   NUMBER(6);
  v_emp_name VARCHAR2(48);
  CURSOR cur1 IS
    SELECT emp_id,
           emp_name
    FROM   employee_master;
  TYPE ty_empl IS TABLE OF cur1%ROWTYPE INDEX BY PLS_INTEGER;
  tab_empl ty_empl;

BEGIN

  OPEN cur1;

  <<cur1_loop>>
  LOOP
    FETCH cur1 BULK COLLECT
      INTO tab_empl LIMIT 5000;
    EXIT WHEN tab_empl.count = 0;
  
    <<empl_loop>>
    FOR indx IN 1 .. tab_empl.count LOOP
      v_emp_id   := tab_empl(indx).emp_id;
      v_emp_name := substr(tab_empl(indx).emp_name;
      1, 10);
      .. .. .. .. .. .. .. .. .
        RETURN(v_result);
    END f_1;
 


e.g. in the above example, should'nt the list of columns pop up when you type "tab_empl(indx)."?

Thanks,


~Sachin.
Re: Code assistant for Types and Tables.
Sachin #36291 10/28/09 10:51 AM
Joined: Aug 1999
Posts: 22,220
Member
Offline
Member
Joined: Aug 1999
Posts: 22,220
I don't think the parser of the Code Assistant goes that far. I have added this to the list of enhancement requests though.


Marco Kalter
Allround Automations

Moderated by  support 

Link Copied to Clipboard
Powered by UBB.threads™ PHP Forum Software 7.7.4
(Release build 20200307)
Responsive Width:

PHP: 7.1.33 Page Time: 0.037s Queries: 14 (0.014s) Memory: 2.5008 MB (Peak: 3.0427 MB) Data Comp: Off Server Time: 2024-05-18 05:43:19 UTC
Valid HTML 5 and Valid CSS