Problem when working with lists of shuttle at the APEX 3.2

Hi all

My requirement is to fill a table DDL SQL is:

CREATE TABLE 'C_BIA_MOD_PROD_LINE_VER_REL '.
("PRODUCT_LINE_VERSION" VARCHAR2 (100) NOT NULL ACTIVATE,)
ACTIVATE THE "MODULE_CODE" VARCHAR2 (100) NOT NULL,
ACTIVATE A ("PRODUCT_LINE_VERSION", "MODULE_CODE") PRIMARY KEY CONSTRAINT 'C_BIA_MOD_PROD_LINE_VER_R_PK '.
)
;
ALTER TABLE 'C_BIA_MOD_PROD_LINE_VER_REL' ADD 'C_BIA_MOD_PROD_LINE_VER_R_FK1' ("MODULE_CODE") FOREIGN KEY CONSTRAINT
ACTIVATE THE "C_BIA_MODULE" ("MODULE_CODE") REFERENCES;

ALTER TABLE 'C_BIA_MOD_PROD_LINE_VER_REL' ADD 'C_BIA_MOD_PROD_LINE_VER_R_FK2' ('PRODUCT_LINE_VERSION') FOREIGN KEY CONSTRAINT
ACTIVATE REFERENCES "C_PRODUCT_LINE_VERSION" ("PRODUCT_LINE_VERSION");
--------------------------------------------------------
Now in the form of CREATION of C_BIA_MODULE, I added a region and an element of 'The shuttle list Type' for PRODUCT_LINE_VERSION. For the button CREATE, I prepared the PL/SQL like:

DECLARE
prodlinever_selected APEX_APPLICATION_GLOBAL. VC_ARR2;
BEGIN

prodlinever_selected: = APEX_UTIL. STRING_TO_TABLE(:P4_PRODUCT_LINE_VERSION);
BECAUSE me IN 1.prodlinever_selected.count
LOOP
INSERT INTO C_BIA_MOD_PROD_LINE_VER_REL (MODULE_CODE, PRODUCT_LINE_VERSION)
VALUES (: P4_MODULE_CODE, prodlinever_selected (i));
END LOOP;
Returns true;
END;
----------------------------------------------------------

The question is where to use this PL/SQL? The column 'Conditions' under 'Edit Page buttons' does not have this. In addition, the 'action of database' options are not enough to fill a selection in an array of other (C_BIA_MOD_PROD_LINE_VER_REL) as the current page of the table (C_BIA_MODULE). Any other approach? Help, please. Not enough info in the user guide.

Thank you
-Marie

Published by: Mary Agarwal, July 14, 2009 12:26 AM

Published by: calling Marie on July 22, 2009 22:08

Mary:

You can write a pl/sql loop to generate the ':' separated string.
Something similar to

str varchar2(2000);
begin
for x in (select deptno from emp where not deptno is null) loop
 str:=str || x.deptno || ':';
end loop;

str := substr(str,1,length(str)-1 );
end;

CITY

Tags: Database

Similar Questions

Maybe you are looking for

  • How can I remove 1 bookmarks folder level?

    Initially, I imported my favorites of IE. Under Favorites, they are in a folder "From Internet Explorer". I have to go in this folder, then click down through other subfolders for the entrance that I need. Is there a way to remove this highest level

  • Satellite P500 - screen remains blank after updating BIOS 2.90

    I installed the new WOOD update through the station of service and after restart, the screen remains blank (out of service)? Any suggestions?

  • When I type a partial address in the address box, I am redirected to searchalot. How can I stop this?

    For some reason any on this machine in particular, when I type a partial name in the address box, I redirected to a place called a lot.com. They then try to give me the results of what I typed in the address bar, as if it was a search on their web si

  • MJB: FF 3.6.6 falls down repeatedly, even when idle

    [My apologies, I clicked on the incorrect URL and close the previous thread by mistake.] I have FF 3.6.6 to random crashing when I am still doing nothing. I have two websites open normally, none of them use Flash or Adobe plug-ins. A self-actualizati

  • Windows Vista won't load disc

    Windows Vista 64 bit frozen and would not.  After reading the book has decided that I should restore disk factory.  Press F12 by following the instructions (I did all the retore point Jules Destrooper, no go).  After hitting F12 it says press F1, set