03-14-2018 10:15 AM
I would like to get the Job Number from a WorkView view. Then using that value I would run a filter query to get all "Drawings" related to that Job Number. I have gotten my Unity Script to run a filter query and get a list of WorkView class objects related to a job number but I have to hardcode in that Job Number. I would like the the Action button to take the Job Number from the view that is opened by the user and filter automatically by that job number to find all of the drawings related to it and then run the rest of my script with that list. The job number is an Integer data type. I am able to find information about the attribute (Name, ID, Class, Attribute Type) I want but not the value itself. Is there a way to do that from the View? Is there a way to store it as a property and then retrieve it from the 'args'?
03-14-2018 11:07 AM
Since I was able to find this out on my own with a lot of trial and error I thought I would share the answer.
Just declare a blank string that you would like to store your attribute value that you will get.
string jobNum = "";
Then
jobNum = args.Object.AttributeValues.Find("JobNumber").ToString();
Even though our job Number is an integer it is easier to store it as a string for this program because that is the format your filter query will want it in.
03-14-2018 11:07 AM
Since I was able to find this out on my own with a lot of trial and error I thought I would share the answer.
Just declare a blank string that you would like to store your attribute value that you will get.
string jobNum = "";
Then
jobNum = args.Object.AttributeValues.Find("JobNumber").ToString();
Even though our job Number is an integer it is easier to store it as a string for this program because that is the format your filter query will want it in.
03-15-2018 08:55 AM
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.