Advanced Reference Qualifier Based-On Current Variable

codechaser
Giga Expert

Need help setting-up an advanced reference qualifier that uses the 'u_term_code' field from the *Term drop-down as a dependency and returns a list of courses that share the value.

javascript: u_term_code = current.variables.u_term_code;

Above, is the code I currently have.

Grade_Change_Form.png

47 REPLIES 47

Can you provide me the variable name of Term and Course in your catalog item?



Please mark this response as correct or helpful if it assisted you with your question.

vars_list.png


Ok. This is what you need



Reference Qualified on Course



javascript: 'u_term_code = '+current.variables.term_req;



And variable attribute In the default tab of course



ref_qual_elements= term_req



You can remove the variable attribute from Term, if you have any.



Please mark this response as correct or helpful if it assisted you with your question.

Hi Sanjiv,



Sorry for the delayed response!   I tried what you said, above and still nothing.   What I am envisioning is if term_code from 'Table A' = term_code from 'Table B', then return this set of courses.   I don't know what else to try.   So, if you have anything else up your sleeve, feel free to comment below.


I think it should work fine.



Another option you can try is u_term_code is javascript: 'u_term_code = '+current.variables.term_req;



find_real_file.png



Please mark this response as correct or helpful if it assisted you with your question.