У нас вы можете посмотреть бесплатно How to Retrieve Oracle APEX Text Field Values Effectively: Avoiding NULL Results или скачать в максимальном доступном качестве, видео которое было загружено на ютуб. Для загрузки выберите вариант из формы ниже:
Если кнопки скачивания не
загрузились
НАЖМИТЕ ЗДЕСЬ или обновите страницу
Если возникают проблемы со скачиванием видео, пожалуйста напишите в поддержку по адресу внизу
страницы.
Спасибо за использование сервиса ClipSaver.ru
Discover the simple solution to ensure you correctly fetch values from Oracle APEX text fields without encountering NULL issues. --- This video is based on the question https://stackoverflow.com/q/70344617/ asked by the user 'Mika Takaki' ( https://stackoverflow.com/u/17622685/ ) and on the answer https://stackoverflow.com/a/70344858/ provided by the user 'Littlefoot' ( https://stackoverflow.com/u/9097906/ ) at 'Stack Overflow' website. Thanks to these great users and Stackexchange community for their contributions. Visit these links for original content and any more details, such as alternate solutions, latest updates/developments on topic, comments, revision history etc. For example, the original title of the Question was: How to get Oracle APEX Text Field value (now I get everything is NULL) (Oracle APEX Application Express 21.1) Also, Content (except music) licensed under CC BY-SA https://meta.stackexchange.com/help/l... The original Question post is licensed under the 'CC BY-SA 4.0' ( https://creativecommons.org/licenses/... ) license, and the original Answer post is licensed under the 'CC BY-SA 4.0' ( https://creativecommons.org/licenses/... ) license. If anything seems off to you, please feel free to write me at vlogize [AT] gmail [DOT] com. --- How to Retrieve Oracle APEX Text Field Values Effectively: Avoiding NULL Results Oracle APEX (Application Express) is a powerful tool for developing web applications quickly and efficiently. However, users can sometimes encounter challenges when dealing with form elements, such as text fields. One common problem is retrieving values correctly from these fields and ensuring they are not returned as NULL. In this post, we will explore a specific scenario involving the Oracle APEX environment—how to handle events and capture text field values effectively without getting NULL results. The Problem Imagine you have two text fields in your Oracle APEX application: P1_MYTEXT_A P1_MYTEXT_B You want to display the value of P1_MYTEXT_A in P1_MYTEXT_B when a change event occurs on P1_MYTEXT_A. However, instead of showing the expected concatenated result, you're left with NULL or empty results. For instance, you expect: [[See Video to Reveal this Text or Code Snippet]] yet you see: [[See Video to Reveal this Text or Code Snippet]] This discrepancy can be confusing, especially when you're trying to build dynamic UIs based on user input. The Solution To resolve this issue, follow these steps to properly capture the value from the text field and ensure it displays correctly in another field. Step 1: Change Your Set Type Instead of using Static Assignment, you should switch to Set Value with a PL/SQL Expression. Here’s how to configure it: Action: Set Value Set Type: PL/SQL Expression Step 2: Use a Suitable PL/SQL Expression Next, you will need to write an appropriate PL/SQL expression to formulate the desired output. Here’s the syntax you should use: [[See Video to Reveal this Text or Code Snippet]] Step 3: Items to Submit Make sure to tell APEX which items need to be submitted during the change event, so include the following: Items to submit: P1_MYTEXT_A Final Setup Now, put everything together in the Change Event configuration for P1_MYTEXT_A. Your final settings should look like this: Event: Change Selection Type: Item(s) Item(s): P1_MYTEXT_A Action: Set Value Set Type: PL/SQL Expression PL/SQL Expression: '++' || :APP_ALIAS || '++' || :P1_MYTEXT_A || '++' || :APP_ID || '++' Items to submit: P1_MYTEXT_A Conclusion By adopting this approach, you will eliminate the NULL issue you're currently encountering in your Oracle APEX application. Using PL/SQL expressions gives you greater flexibility in crafting dynamic values based on user input. This method ensures that P1_MYTEXT_B accurately reflects the desired output as users interact with P1_MYTEXT_A. In summary, always consider using PL/SQL expressions instead of static assignments for dynamic content requirements in Oracle APEX. With these tips, you should be well on your way to creating a more responsive and user-friendly application.