I need to obtain the value of the selected item from a combo box.
Expand|Select|Wrap|Line Numbers
- BEGIN
- IF :LOGIN_BLOCK.USER_TYPE = 'Student' THEN
- :GLOBAL.student_id := :LOGIN_BLOCK.ID;
- CALL_FORM(:GLOBAL.project_path || 'ENROLLMENT_FORM.fmx');
- ELSE
- :GLOBAL.staff_id := :LOGIN_BLOCK.ID;
- END IF;
- END;
The LOGIN_BLOCK is the data block, and the USER_TYPE is the combo box that contains "Student" and "Staff".
I need the If statement to see which one is selected so that a global variable can be assigned a value and a specific form can be called.
Thanks