Beruflich Dokumente
Kultur Dokumente
Dev talks blog: Quick tip 3: How to get List index in oracle forms builder
About Me
D A R K O K A LI NI C P O D GO R I CA , MO NTE NE GR O
FUNCTION getListIndex (LIST IN VARCHAR2, VAL IN VARCHAR2) RETURN INTEGER IS BEGIN IF To_Number(Get_List_Element_Count(LIST))>0 THEN FOR i IN 1..To_Number(Get_List_Element_Count(LIST)) LOOP IF Get_List_Element_Value(LIST,i) = VAL THEN Return i; END IF; END LOOP; ELSE RETURN -1; END IF; END;
And to find out which index you selected by clicking on the list, call getListIndex(blockX.listX , :blockX.listX); This will return selected index, and -1 if the list is empty For example, to delete something from some list you just cdouble-clicked, call: -- on WHEN-MOUSE-DOUBLECLICK trigger:
devtalks.blogspot.com/2008/07/quick-tip-3-how-to-get-list-index-in.html
Blog Archive 2010 (4) 2009 (17) 2008 (21) December (1) November (4)
1/3
2/4/13
Dev talks blog: Quick tip 3: How to get List index in oracle forms builder
October (2) September (3) August (3) July (8) working with finances in java Quick tip 3: How to get List index in oracle forms... Some of the SAX Parser issues I came up to... Izaao je Eclipse 3.4 Ganymede Quick tip 2: Enable TDBGrid to show all columns wi... Quick tip 1: Session save path Unwriteable (tested... How to bring back old component palette look to BD... Creating and using Java beans in Oracle Forms buil...
2 comments: Anonymous said... MUCHAS GRACIAS POR EL APORTE ME HA AYUDADO MUCHO :-), DE VERDAD MUCHAS GRACIAS
12 March 2011 17:49
Post a Comment
(6) PL/SQL (5) Borland C++ Builder (4) Eclipse (4) Books
(2) My applications (2) PHP SAX Parser (2) (2) Subversion (2) Tomcat (2) Web services (2) Glassfish (1)
JavaScript (1)
devtalks.blogspot.com/2008/07/quick-tip-3-how-to-get-list-index-in.html 2/3
2/4/13
Dev talks blog: Quick tip 3: How to get List index in oracle forms builder
Visit related blogs Baze podataka MySQL, Oracle, PostgreSQL, MS SQL Server, Access, modelovanje podataka ... Andreas Weiden About Oracle Francois Degrelle's blog Inside dev
devtalks.blogspot.com/2008/07/quick-tip-3-how-to-get-list-index-in.html
3/3