Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Oracle Forms: Validierungstrigger können navigieren

811 views

Published on

http://www.opitz-consulting.com/go/3-6-11

Validierungstrigger in Oracle Forms erlauben im Sourcecode nur die Verwendung von unrestricted Built-Ins. Eine Navigation mit go_item oder go_block ist jedoch immer restricted und somit nicht möglich.

Unser Experte für Oracle Forms, Gerd Volberg, zeigte in seinem Vortrag beim Treffen der DOAG Forms Community am 21.10.2014 in Essen, wie man mit einfachen Mitteln die Navigation aus dem Sourcecode der Validierung extrahiert und in einem eigenen Event startet.

Weitere Infos: http://www.doag.org/termine/termine.php?tid=480190

--
Über uns:
Als führender Projektspezialist für ganzheitliche IT-Lösungen tragen wir zur Wertsteigerung der Organisationen unserer Kunden bei und bringen IT und Business in Einklang. Mit OPITZ CONSULTING als zuverlässigem Partner können sich unsere Kunden auf ihr Kerngeschäft konzentrieren und ihre Wettbewerbsvorteile nachhaltig absichern und ausbauen.

Über unsere IT-Beratung: http://www.opitz-consulting.com/go/3-8-10
Unser Leistungsangebot: http://www.opitz-consulting.com/go/3-8-874
Karriere bei OPITZ CONSULTING: http://www.opitz-consulting.com/go/3-8-5

Published in: Technology
  • DOWNLOAD THIS BOOKS INTO AVAILABLE FORMAT (Unlimited) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { https://soo.gd/qURD } ......................................................................................................................... Download Full EPUB Ebook here { https://soo.gd/qURD } ......................................................................................................................... Download Full doc Ebook here { https://soo.gd/qURD } ......................................................................................................................... Download PDF EBOOK here { https://soo.gd/qURD } ......................................................................................................................... Download EPUB Ebook here { https://soo.gd/qURD } ......................................................................................................................... Download doc Ebook here { https://soo.gd/qURD } ......................................................................................................................... ......................................................................................................................... ................................................................................................................................... eBook is an electronic version of a traditional print book THIS can be read by using a personal computer or by using an eBook reader. (An eBook reader can be a software application for use on a computer such as Microsoft's free Reader application, or a book-sized computer THIS is used solely as a reading device such as Nuvomedia's Rocket eBook.) Users can purchase an eBook on diskette or CD, but the most popular method of getting an eBook is to purchase a downloadable file of the eBook (or other reading material) from a Web site (such as Barnes and Noble) to be read from the user's computer or reading device. Generally, an eBook can be downloaded in five minutes or less ......................................................................................................................... .............. Browse by Genre Available eBooks .............................................................................................................................. Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, Cookbooks, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult, Crime, Ebooks, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, ......................................................................................................................... ......................................................................................................................... .....BEST SELLER FOR EBOOK RECOMMEND............................................................. ......................................................................................................................... Blowout: Corrupted Democracy, Rogue State Russia, and the Richest, Most Destructive Industry on Earth,-- The Ride of a Lifetime: Lessons Learned from 15 Years as CEO of the Walt Disney Company,-- Call Sign Chaos: Learning to Lead,-- StrengthsFinder 2.0,-- Stillness Is the Key,-- She Said: Breaking the Sexual Harassment Story THIS Helped Ignite a Movement,-- Atomic Habits: An Easy & Proven Way to Build Good Habits & Break Bad Ones,-- Everything Is Figureoutable,-- What It Takes: Lessons in the Pursuit of Excellence,-- Rich Dad Poor Dad: What the Rich Teach Their Kids About Money THIS the Poor and Middle Class Do Not!,-- The Total Money Makeover: Classic Edition: A Proven Plan for Financial Fitness,-- Shut Up and Listen!: Hard Business Truths THIS Will Help You Succeed, ......................................................................................................................... .........................................................................................................................
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • DOWNLOAD THIS BOOKS INTO AVAILABLE FORMAT (2019 Update) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { https://soo.gd/irt2 } ......................................................................................................................... Download Full EPUB Ebook here { https://soo.gd/irt2 } ......................................................................................................................... Download Full doc Ebook here { https://soo.gd/irt2 } ......................................................................................................................... Download PDF EBOOK here { https://soo.gd/irt2 } ......................................................................................................................... Download EPUB Ebook here { https://soo.gd/irt2 } ......................................................................................................................... Download doc Ebook here { https://soo.gd/irt2 } ......................................................................................................................... ......................................................................................................................... ................................................................................................................................... eBook is an electronic version of a traditional print book THIS can be read by using a personal computer or by using an eBook reader. (An eBook reader can be a software application for use on a computer such as Microsoft's free Reader application, or a book-sized computer THIS is used solely as a reading device such as Nuvomedia's Rocket eBook.) Users can purchase an eBook on diskette or CD, but the most popular method of getting an eBook is to purchase a downloadable file of the eBook (or other reading material) from a Web site (such as Barnes and Noble) to be read from the user's computer or reading device. Generally, an eBook can be downloaded in five minutes or less ......................................................................................................................... .............. Browse by Genre Available eBooks .............................................................................................................................. Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, Cookbooks, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult, Crime, Ebooks, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, ......................................................................................................................... ......................................................................................................................... .....BEST SELLER FOR EBOOK RECOMMEND............................................................. ......................................................................................................................... Blowout: Corrupted Democracy, Rogue State Russia, and the Richest, Most Destructive Industry on Earth,-- The Ride of a Lifetime: Lessons Learned from 15 Years as CEO of the Walt Disney Company,-- Call Sign Chaos: Learning to Lead,-- StrengthsFinder 2.0,-- Stillness Is the Key,-- She Said: Breaking the Sexual Harassment Story THIS Helped Ignite a Movement,-- Atomic Habits: An Easy & Proven Way to Build Good Habits & Break Bad Ones,-- Everything Is Figureoutable,-- What It Takes: Lessons in the Pursuit of Excellence,-- Rich Dad Poor Dad: What the Rich Teach Their Kids About Money THIS the Poor and Middle Class Do Not!,-- The Total Money Makeover: Classic Edition: A Proven Plan for Financial Fitness,-- Shut Up and Listen!: Hard Business Truths THIS Will Help You Succeed, ......................................................................................................................... .........................................................................................................................
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • DOWNLOAD THIS BOOKS INTO AVAILABLE FORMAT (2019 Update) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { https://soo.gd/irt2 } ......................................................................................................................... Download Full EPUB Ebook here { https://soo.gd/irt2 } ......................................................................................................................... Download Full doc Ebook here { https://soo.gd/irt2 } ......................................................................................................................... Download PDF EBOOK here { https://soo.gd/irt2 } ......................................................................................................................... Download EPUB Ebook here { https://soo.gd/irt2 } ......................................................................................................................... Download doc Ebook here { https://soo.gd/irt2 } ......................................................................................................................... ......................................................................................................................... ................................................................................................................................... eBook is an electronic version of a traditional print book THIS can be read by using a personal computer or by using an eBook reader. (An eBook reader can be a software application for use on a computer such as Microsoft's free Reader application, or a book-sized computer THIS is used solely as a reading device such as Nuvomedia's Rocket eBook.) Users can purchase an eBook on diskette or CD, but the most popular method of getting an eBook is to purchase a downloadable file of the eBook (or other reading material) from a Web site (such as Barnes and Noble) to be read from the user's computer or reading device. Generally, an eBook can be downloaded in five minutes or less ......................................................................................................................... .............. Browse by Genre Available eBooks .............................................................................................................................. Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, Cookbooks, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult, Crime, Ebooks, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, ......................................................................................................................... ......................................................................................................................... .....BEST SELLER FOR EBOOK RECOMMEND............................................................. ......................................................................................................................... Blowout: Corrupted Democracy, Rogue State Russia, and the Richest, Most Destructive Industry on Earth,-- The Ride of a Lifetime: Lessons Learned from 15 Years as CEO of the Walt Disney Company,-- Call Sign Chaos: Learning to Lead,-- StrengthsFinder 2.0,-- Stillness Is the Key,-- She Said: Breaking the Sexual Harassment Story THIS Helped Ignite a Movement,-- Atomic Habits: An Easy & Proven Way to Build Good Habits & Break Bad Ones,-- Everything Is Figureoutable,-- What It Takes: Lessons in the Pursuit of Excellence,-- Rich Dad Poor Dad: What the Rich Teach Their Kids About Money THIS the Poor and Middle Class Do Not!,-- The Total Money Makeover: Classic Edition: A Proven Plan for Financial Fitness,-- Shut Up and Listen!: Hard Business Truths THIS Will Help You Succeed, ......................................................................................................................... .........................................................................................................................
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • DOWNLOAD THIS BOOKS INTO AVAILABLE FORMAT (Unlimited) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { https://soo.gd/qURD } ......................................................................................................................... Download Full EPUB Ebook here { https://soo.gd/qURD } ......................................................................................................................... Download Full doc Ebook here { https://soo.gd/qURD } ......................................................................................................................... Download PDF EBOOK here { https://soo.gd/qURD } ......................................................................................................................... Download EPUB Ebook here { https://soo.gd/qURD } ......................................................................................................................... Download doc Ebook here { https://soo.gd/qURD } ......................................................................................................................... ......................................................................................................................... ................................................................................................................................... eBook is an electronic version of a traditional print book THIS can be read by using a personal computer or by using an eBook reader. (An eBook reader can be a software application for use on a computer such as Microsoft's free Reader application, or a book-sized computer THIS is used solely as a reading device such as Nuvomedia's Rocket eBook.) Users can purchase an eBook on diskette or CD, but the most popular method of getting an eBook is to purchase a downloadable file of the eBook (or other reading material) from a Web site (such as Barnes and Noble) to be read from the user's computer or reading device. Generally, an eBook can be downloaded in five minutes or less ......................................................................................................................... .............. Browse by Genre Available eBooks .............................................................................................................................. Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, Cookbooks, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult, Crime, Ebooks, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, ......................................................................................................................... ......................................................................................................................... .....BEST SELLER FOR EBOOK RECOMMEND............................................................. ......................................................................................................................... Blowout: Corrupted Democracy, Rogue State Russia, and the Richest, Most Destructive Industry on Earth,-- The Ride of a Lifetime: Lessons Learned from 15 Years as CEO of the Walt Disney Company,-- Call Sign Chaos: Learning to Lead,-- StrengthsFinder 2.0,-- Stillness Is the Key,-- She Said: Breaking the Sexual Harassment Story THIS Helped Ignite a Movement,-- Atomic Habits: An Easy & Proven Way to Build Good Habits & Break Bad Ones,-- Everything Is Figureoutable,-- What It Takes: Lessons in the Pursuit of Excellence,-- Rich Dad Poor Dad: What the Rich Teach Their Kids About Money THIS the Poor and Middle Class Do Not!,-- The Total Money Makeover: Classic Edition: A Proven Plan for Financial Fitness,-- Shut Up and Listen!: Hard Business Truths THIS Will Help You Succeed, ......................................................................................................................... .........................................................................................................................
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • DOWNLOAD THIS BOOKS INTO AVAILABLE FORMAT (2019 Update) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { https://soo.gd/irt2 } ......................................................................................................................... Download Full EPUB Ebook here { https://soo.gd/irt2 } ......................................................................................................................... Download Full doc Ebook here { https://soo.gd/irt2 } ......................................................................................................................... Download PDF EBOOK here { https://soo.gd/irt2 } ......................................................................................................................... Download EPUB Ebook here { https://soo.gd/irt2 } ......................................................................................................................... Download doc Ebook here { https://soo.gd/irt2 } ......................................................................................................................... ......................................................................................................................... ................................................................................................................................... eBook is an electronic version of a traditional print book THIS can be read by using a personal computer or by using an eBook reader. (An eBook reader can be a software application for use on a computer such as Microsoft's free Reader application, or a book-sized computer THIS is used solely as a reading device such as Nuvomedia's Rocket eBook.) Users can purchase an eBook on diskette or CD, but the most popular method of getting an eBook is to purchase a downloadable file of the eBook (or other reading material) from a Web site (such as Barnes and Noble) to be read from the user's computer or reading device. Generally, an eBook can be downloaded in five minutes or less ......................................................................................................................... .............. Browse by Genre Available eBooks .............................................................................................................................. Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, Cookbooks, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult, Crime, Ebooks, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, ......................................................................................................................... ......................................................................................................................... .....BEST SELLER FOR EBOOK RECOMMEND............................................................. ......................................................................................................................... Blowout: Corrupted Democracy, Rogue State Russia, and the Richest, Most Destructive Industry on Earth,-- The Ride of a Lifetime: Lessons Learned from 15 Years as CEO of the Walt Disney Company,-- Call Sign Chaos: Learning to Lead,-- StrengthsFinder 2.0,-- Stillness Is the Key,-- She Said: Breaking the Sexual Harassment Story THIS Helped Ignite a Movement,-- Atomic Habits: An Easy & Proven Way to Build Good Habits & Break Bad Ones,-- Everything Is Figureoutable,-- What It Takes: Lessons in the Pursuit of Excellence,-- Rich Dad Poor Dad: What the Rich Teach Their Kids About Money THIS the Poor and Middle Class Do Not!,-- The Total Money Makeover: Classic Edition: A Proven Plan for Financial Fitness,-- Shut Up and Listen!: Hard Business Truths THIS Will Help You Succeed, ......................................................................................................................... .........................................................................................................................
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • Be the first to like this

Oracle Forms: Validierungstrigger können navigieren

  1. 1. Validierungstrigger können navigieren Gerd Volberg OPITZ CONSULTING Deutschland GmbH Essen, 21. Oktober 2014 © Oracle Forms Tipps und Tricks OPITZ CONSULTING GmbH Seite 1
  2. 2. Einleitung 1. Validierungstrigger in Oracle Forms erlauben nur die Verwendung von unrestricted Built-Ins. Eine Navigation mit go_item oder go_block ist jedoch immer restricted und somit nicht erlaubt. 2. Der Vortrag zeigt, wie man mit einfachen Mitteln die Navigation aus dem Validierungs-Trigger extrahiert und in einem eigenen Trigger startet. © Oracle Forms Tipps und Tricks OPITZ CONSULTING GmbH Seite 2
  3. 3. Problemstellung Filter und Datenblock sollen synchron arbeiten  Sobald ich in einem Filter einen Wert eingebe, sollen die Daten im Mitarbeiter-Block neu selektiert werden: © Oracle Forms Tipps und Tricks OPITZ CONSULTING GmbH Seite 3
  4. 4. Filter und Datenblock sollen synchron arbeiten Lösung 1 mit KEY-NEXT-ITEM  Problem: Mausnavigation funktioniert nicht © Oracle Forms Tipps und Tricks OPITZ CONSULTING GmbH Seite 4
  5. 5. Filter und Datenblock sollen synchron arbeiten Lösung 2 mit WHEN-NEW-ITEM-INSTANCE  Problem: Unübersichtlich viele Trigger, Wartbarkeit ungenügend © Oracle Forms Tipps und Tricks OPITZ CONSULTING GmbH Seite 5
  6. 6. Filter und Datenblock sollen synchron arbeiten Lösung 3 mit PRE- und POST-TEXTITEM  Problem: Sehr viele Trigger + restricted Built-Ins © Oracle Forms Tipps und Tricks OPITZ CONSULTING GmbH Seite 6
  7. 7. Filter und Datenblock sollen synchron arbeiten Lösung 4 mit WHEN-VALIDATE-ITEM  Problem: Erlaubt nur unrestricted Built-Ins © Oracle Forms Tipps und Tricks OPITZ CONSULTING GmbH Seite 7
  8. 8. WHEN-VALIDATE-ITEM WHEN-VALIDATE-ITEM erlaubt nur unrestricted Built-Ins ?  Streng genommen ist ein Validierungstrigger nicht in der Lage in einen anderen Block zu navigieren und dort eine Query zu starten.  Entkoppelt man jedoch die Ausführung der Navigation vom Validierungsvorgang durch einen Timer, dann sieht das ganz anders aus. © Oracle Forms Tipps und Tricks OPITZ CONSULTING GmbH Seite 8
  9. 9. Was brauchen wir für diese Lösung? 1. Einen WHEN-TIMER-EXPIRED auf FORM-Ebene © Oracle Forms Tipps und Tricks OPITZ CONSULTING GmbH Seite 9 DECLARE V_Item VARCHAR2 (61); BEGIN V_Item := :SYSTEM.CURSOR_ITEM; IF One_Time_Timer.Get_Value = Const.ott_Query_in_EMP THEN Go_Block ('EMP'); Execute_Query; Go_Item (V_Item); ELSIF One_Time_Timer.Get_Value = ... THEN ... END IF; END;
  10. 10. Was brauchen wir für diese Lösung? 2. Ein Konstanten-Package PACKAGE Const IS © Oracle Forms Tipps und Tricks OPITZ CONSULTING GmbH Seite 10 -- Globals gbl_One_Time_Timer CONSTANT VARCHAR2 (61) := 'GLOBAL.ONE_TIME_TIMER'; -- One-Time-Timer ott_Query_in_EMP CONSTANT VARCHAR2 (30) := 'Starte Query im EMP-Block'; ott_Something_Else CONSTANT VARCHAR2 (30) := 'Something else'; END;
  11. 11. Was brauchen wir für diese Lösung? 3. Das Package One_Time_Timer PACKAGE One_Time_Timer IS FUNCTION Get_Value RETURN VARCHAR2; PROCEDURE Initialize (P_Event IN VARCHAR2); © Oracle Forms Tipps und Tricks OPITZ CONSULTING GmbH Seite 11 END; PACKAGE BODY One_Time_Timer IS FUNCTION Get_Value RETURN VARCHAR2 IS BEGIN Default_Value (NULL, Const.gbl_One_Time_Timer); RETURN (NAME_IN (Const.gbl_One_Time_Timer)); END;
  12. 12. Was brauchen wir für diese Lösung? 3. Das Package One_Time_Timer (cont.) PROCEDURE Initialize (P_Event IN VARCHAR2) IS tm_id timer; tm_name VARCHAR2 (30) := 'ONE_TIME_TIMER'; © Oracle Forms Tipps und Tricks OPITZ CONSULTING GmbH Seite 12 BEGIN tm_id := Find_Timer (tm_name); IF ID_Null (tm_id) THEN tm_id := Create_Timer (tm_name, 10, NO_REPEAT); COPY (p_Event, Const.gbl_One_Time_Timer); END IF; END; END One_Time_Timer;
  13. 13. Was brauchen wir für diese Lösung? 4. Einen FILTER-Block und einen MITARBEITER-Block © Oracle Forms Tipps und Tricks OPITZ CONSULTING GmbH Seite 13
  14. 14. Was brauchen wir für diese Lösung? 5. Anpassung der WHERE-Klausel im Block MITARBEITER © Oracle Forms Tipps und Tricks OPITZ CONSULTING GmbH Seite 14
  15. 15. Was brauchen wir für diese Lösung? 6. Einen WHEN-VALIDATE-ITEM auf Block-Ebene © Oracle Forms Tipps und Tricks OPITZ CONSULTING GmbH Seite 15 BEGIN One_Time_Timer.Initialize (Const.ott_Query_in_EMP); END;
  16. 16. (Live) - Demo © Oracle Forms Tipps und Tricks OPITZ CONSULTING GmbH Seite 16 Start
  17. 17. (Live) - Demo Eingabe von „Sch“ im Filterfeld „Name“ © Oracle Forms Tipps und Tricks OPITZ CONSULTING GmbH Seite 17
  18. 18. (Live) - Demo Danach Mausklick ins Feld „Mitarbeiter“ © Oracle Forms Tipps und Tricks OPITZ CONSULTING GmbH Seite 18
  19. 19. Abarbeitungs-Reihenfolge © Oracle Forms Tipps und Tricks OPITZ CONSULTING GmbH Seite 19
  20. 20. © Oracle Forms Tipps und Tricks OPITZ CONSULTING GmbH Seite 20 Fazit Wo kann diese Technik überall eingesetzt werden? 1. Validierung und Navigation 2. Java-Beans und WHEN-NEW-FORM-INSTANCE 3. Alle Trigger, in denen nur unrestricted Built-Ins erlaubt sind, die man asynchron auslagern möchte
  21. 21. © Oracle Forms Tipps und Tricks OPITZ CONSULTING GmbH Seite 21 Download Das Package inkl. Powerpoint liegen unter folgender URL: http://code.google.com/p/forms-framework/
  22. 22. Ihr Ansprechpartner Gerd Volberg Solution Architect OPITZ CONSULTING Deutschland GmbH Kirchstr. 6, 51647 Gummersbach Tel. +49 (2261) 60 01-0 gerd.volberg@opitz-consulting.com talk2gerd.blogspot.com © Oracle Forms Tipps und Tricks OPITZ CONSULTING GmbH Seite 22

×