Advanced Reference Qualifier Based-On Current Variable
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-22-2018 08:45 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-31-2018 01:19 PM
The field 'u_term_code' on the courses table is now referencing the 'u_term_code' field on the terms table, which is a string. I re-populated the courses table to match this, but is now displaying the sys_id in the term_code field.
I am including some screenshots, below:
Consequently, adding the Advanced reference qualifier 'javascript: 'u_term_code = '+current.variables.term_req; ' under courses does not return an answer.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-31-2018 01:33 PM
Is that Columns screenshot of the courses table? If so please view the Term table and validate what dictionary entry has display = true and make sure its only set on 1 record and the value you want to show up in the reference fields.
Also look at your course variable and make sure there is nothing in the ref_qual_elements field.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-31-2018 02:05 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-31-2018 02:21 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-31-2018 02:29 PM
Here is a screenshot of the two fields on the form, itself.
As you can see, the term description does display, correctly - but no values are returned under courses. The only thing I can think of is the term field is a string on the Term table, which courses is referencing. At the moment, we have to hard code these variables for testing purposes.