- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-29-2016 12:49 PM
Hi SNC,
Can anyone help me out construct my reference qualifier for the following case:
* I have a table which has two columns - a string, and a reference field (to the same table, like a parent field).
* on the task form, I have two reference fields (first for Category, and the Second for Subcategory)
* I want to place a record producer on the second field (Subcategory), so that it will only show the records which have the Category (first reference field selection) as a parent
I tried with dependent fields, but it wont' work as I think I am in the many to many case.
So I think what I need is some script include and an advanced reference qualifier on the second reference field.
If anyone has done that please share.
Solved! Go to Solution.
- Labels:
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-30-2016 08:36 AM
Hi Dimitar,
You should try below line in the ref qualifier of Task Table subcategory field. Assuming pcategory is the field name of parent category in your custom table.
javascript:'pcategory=' + current.category;

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-30-2016 10:03 AM
ohh yeah...that's right...Sorry man .. I overlooked earlier comments...

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-25-2017 08:47 PM
Love this post, but just wanted to add that it wont return any results when the parent is not set.
I made the following change to support that:
javascript:(current.category != "" ? "pcategory="+current.category : "");