I hope I am doing something wrong,
It seems that you can no longer get the value of a field if it is a filtered picklist type, this has caused several scripts that were working to now give us multiple different errors. They all seem to be pointing to the fact that now after the update that when you try to read the value of an Item details field that is a filtered picklist type is always returns null instead of the selected value. which is what it did before the update.
A simple test on an existing workspace dmsID showed us this, for example running the following agains an existing record.
println(item.CONTACT), Used to return the picklist value, now returns null
if I change the field to single selection (Item Descriptor) the prinln function then returns a value (the selected records Item Descriptor)
Is this now the behavior for picklist fields? That would be a problem, in the above example we are sort of duplicating the use of derived fields but we are using this functionality of being able to read the filtered picklist values to the point us to a workspace and iterate through all the records and collect (sum, Match etc.) information to update records being added in the same or other workspaces. If we cannot read these values we lose the ability to match to the unique records those selections may point to.
Please advise?
Bob Donovan
Solved! Go to Solution.
Thank you David,
I have been developing and in the process to utilzing filtered picklist functionality to control and verify through workspace record polling the processing and push of information stored in multiple records into downstream processes.
If I can't read the filtered picklist values then the whole premis of using them to iterate through workspace records looking for matches is broken.
I look forward to a good resolution to this for you and me.
Thanks again.
Bob Donovan
Hi Bob,
I have escalated this issue to a support case and will continue to update you on progress.
Regards,
Thanks Bob. Very interesting.
So you've created a way to search through a set of records (e.g. a workspace) to find a matching record? I guess you need to create the customerList.RECORDSLIST list yourself manually? I'm curious - do you not get script timeout issues when you run this? How many records are in the list?
David.
Just want to say this is the beauty of a community forum - customers working together to brainstorm and share ideas.
Love it!
(and Bastien will continue working the issue, it's just nice to see the forum being used as intended as a way for PLM admins to connect and share)
Michelle
David, Michele & PLM Support
Umm, don't know if it is a related issue or not but just discovered this UI issue
You can no longer use a picklist with search feature on a grid
When you add or edit the grid the picklist with search filter field is not editable. you can't even select it.
I have attached screenshots but don't know if it communicates the issue well.
BD
Hi Bob,
This is a really nice idea. But in order for us to be able to use it we would need to be able to update the customerList.RECORDSLIST list automatically. Did you try any ways of doing this?
I was thinking that you could create a script and use it on the item create behaviour to add the new item's dmsID to the list? Or perhaps the list could contain links rather than dmsIDs. That way you could read the related attributes directly rather than having to use 'loadItem'. However, the latter point would restrict the items in the list to those from one workspace.
David.
Here are the script examples of adding and maintaining the Recordlist fields
Hi Bob,
Tanks for the images. That's really clever. I might have to steal it
One question. Could this be modified to add a linked item to a multi-select field instead? Did you try this?
David.
David,
Here is that simplified script to retrieve info and store it in a multiselect pick list field
// Script to get supplier list to pass to multiselect picklist field
// Define supplier list array
var ItemVendors =[];
// Get target workspace record to check and store the vendors
var Target = item.ITEM_NUMBER; // This field is set up as a single select picklist based on a workspace when read
// it returnd the linked items dmsID or target.
// Check if target has sourcing info
if (Target.sourcing.length > 0)
{
// Loop through sourcing info and store vendor target in array
for (var vIndex in Target.sourcing)
{
if (ItemVendors === '')
{
ItemVendors[vIndex] =Target.sourcing[vIndex].supplier.descriptor.dmsID;
}
}
// Now store that array in the current workspace multiselect picklist field
item.QVENDORS = ItemVendors; // The QVENDORS field is a multiselect pick list on the supplier workspace
The key is to know what info (dmsid, pick list id or value) the field you are storing the info in is so you can match it.
I had word that they updated the system today, but no go, my scripts still bomb out. Hopefully like you said by Thursday
BD
I am happy to report the base issue with filtered pick lists has been corrected. The functionality of reading the selections made in FPL fields has been restored.
Thank you Autodesk support for your quick response and efforts.
Regards, Bob Donovan
PS. Keep the ideas flowing, share share share....