Reference Field value getting removed
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-17-2017 08:59 AM
I m working on a custom Application and currently in Fuji Release..
I have a main form(appln) which has reference to multiple tables ,,, one of the reference field is macro team.. and we had data in the main table(macro)
As part of data maintenance, we happened to reload all the data in macro team. As a result of this, the main table which had reference to Macro team is wiped off.. Dont know why it happens
Also , i m running a filter in my table with the reference field.. If the sysid returned by my script include is not present, then it takes the condition as empty... and displays entire records...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-17-2017 10:12 AM
Thanks lchicoine
As far as returning result from the script include and then displaying the filter as "empty", what we can do?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-17-2017 10:25 AM
Hi,
Could you please give me a more global picture of what you are trying to do because actually, other then telling you why your fields were set empty, I have difficulty to understand what you want.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-17-2017 10:48 AM
Lets say, I have a employer table which has "First Name", "Last Name" and "Company(Reference)"
And i have company table with "Name" field alone..
Go to Employer table
In the filter choose, Company and give "XYZ".. Lets say the company XYZ is not in ur list of companies.. In this case, the filter will automatically turn to "Company=Empty" and display records accordingly rather than making the filter to appear as "Company=XYZ"
In my scenario, i m using "List" block as part of CMS site and in that the filter criteria company will come from a script include, i m supposed to display list of logged in users' company employee records.. Since the filter is turning to empty condition, it displays incorrect information.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-17-2017 11:56 AM
First, if you plan on using v_user_session, this won't give you the right information as it only shows users logged in the current node the user is in (typically an instance has 2 nodes).
For the filter, inside your CMS you could use a custom block to build the filter as the default "Go to" filter is not working very well in general. However on my side when I try a similar use case, I'm getting Company.Name >= XYZ. So I'm not sure if we are talking about the same filter.