- 3,714,812 Users
- 2,242,631 Discussions
- 7,845,073 Comments
Forum Stats
Discussions
Categories
- 12 Data
- 362.2K Big Data Appliance
- 6 Data Science
- 1.5K Databases
- 446 General Database Discussions
- 3.7K Java and JavaScript in the Database
- 22 Multilingual Engine
- 487 MySQL Community Space
- 3 NoSQL Database
- 7.6K Oracle Database Express Edition (XE)
- 2.7K ORDS, SODA & JSON in the Database
- 415 SQLcl
- 42 SQL Developer Data Modeler
- 184.8K SQL & PL/SQL
- 21K SQL Developer
- 1.8K Development
- 3 Developer Projects
- 32 Programming Languages
- 135K Development Tools
- 7 DevOps
- 3K QA/Testing
- 236 Java
- 4 Java Learning Subscription
- 10 Database Connectivity
- 65 Java Community Process
- Java 25
- 8 Java APIs
- 141.1K Java Development Tools
- 5 Java EE (Java Enterprise Edition)
- 153K Java Essentials
- 134 Java 8 Questions
- 86.2K Java Programming
- 270 Java Lambda MOOC
- 65.1K New To Java
- 1.7K Training / Learning / Certification
- 13.8K Java HotSpot Virtual Machine
- 10 Java SE
- 13.8K Java Security
- 3 Java User Groups
- 22 JavaScript - Nashorn
- 18 Programs
- 118 LiveLabs
- 28 Workshops
- 9 Software
- 3 Berkeley DB Family
- 3.5K JHeadstart
- 5.7K Other Languages
- 2.3K Chinese
- 3 Deutsche Oracle Community
- 10 Español
- 1.9K Japanese
- 2 Portuguese
Apex AB: Extract value of Number-Field and use the value as condition for another query

Hello,
I am new to the Apex AB and currently trying to solve the following problem:
Scenario: table employee with columns: staff_no ; name; salary; department_name
I want to create an input field where I write down an employee number, e.g. 124561 and as an output, I receive a hardcoded text with three variables, like the following: Employee [name] has a salary of [salary] € and works in the department [department_name]. (Procedure is visualized in the following picture)
The problems I am facing now are:
- How can I extract the value out of a number_field element?
- How can I insert this value as a parameter for an SQL-condition, like:
- SELECT name, salary, department_name
- FROM employee
- WHERE staff_no = input_field_value
- The last step is how can I extract these three columns (name, salary, department_name) out of this SQL-Statement and insert them as parameters into a hardcoded text?
I would be happy if you could give me concrete tips on how to do it or guide me to the right resources that I have to understand to solve this problem!
Thank you and best regards
Answers
-
The value of the employee field will be available when you submit the page.
To create your string you could:
- generate the string in you SQL statement e.g. select 'Hello '||name from employee
- use apex_string.format('Hello %s', :P123_NAME)
The way in which you have drawn your diagram makes me wonder whether you are actually using APEX to generate your page?