Put field FCJOB on the Form level (Fields on block section). It is not neccesary that field US is checked.
Create master field on block. Sample field CJOB on block B10 Type=Input select LOV and LOV/Link= lov$lov_job
Create target field on block. Sample field CEMP on block B10 Type=Input select LOV and LOV/Link= lov$LOV_EMP
Connect LOV's in javascript (section CSS,JS source -> FORM-JS)
$(document).ready(function() {
//Inicialization
$('select[name^="B10CJOB"]').each(function() {
addDynamicLOV('lov$LOV_EMP', 'FCJOB', this , '#each_val#', 'B10CEMP' );
});
//Trigges on change
$('select[name^="B10CJOB"]').change(function() {
addDynamicLOV('lov$LOV_EMP', 'FCJOB', this , this.value, 'B10CEMP' );
});
} );
Last edit: Domen Dolar 2018-07-12
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
Anonymous
-
2018-09-14
If you use more than one parameter in LOV. Then you put all filter fileds on Form level. So the SQL would be: select id, label from xxx where name = FCOND1 and title = FCOND2
To add dynamic LOV you should:
1: Create master LOV in Links-LOV section. Name lov$lov_job
Sample:
2: Create detail LOV in Links-LOV section. Name lov$LOV_EMP
Sample:
Last edit: Domen Dolar 2018-07-12
If you use more than one parameter in LOV. Then you put all filter fileds on Form level. So the SQL would be:
select id, label from xxx where name = FCOND1 and title = FCOND2
IN JS this will look like:
Last edit: Domen Dolar 2018-09-14