Reputation: 11
I'm trying to fill out various text fields on an apex application when I select a Reference Number in a select list.
When the page loads I'd like the text fields to be filled with the information from the database related to the reference number from the select list, however, I don't know how to do so. Any suggestions or help would be most appreciated!
Upvotes: 1
Views: 1246
Reputation: 143163
As far as I understood the question:
If that's so, you'd use a dynamic action - create it on the Select List item, pick set value type.
[EDIT: How to do that?]
Scott's schema, DEPT
table. Suppose that the select list item is P15_DEPTNO
, while two other items are P15_LOC
and P15_DNAME
.
P15_DEPTNO
P15_DEPTNO
create its True action:
type: SQL statement
select loc, dname
from dept
where deptno = :P15_DEPTNO
items to submit: P15_DEPTNO
P15_LOC
, P15_DNAME
That's all.
Upvotes: 1