1157
Points
Questions
2
Answers
12
-
Hi karthiga,
If you are taking directly Part A- number and Part B- number and create Event PX, It is doable but that will be very bad practice. Instead of taking number define some attributes or use subclass of Part A and Part B like
Part A subclass- Electronic PCB
Part B subclass- Transistor
Part C subclass- Tyre (which you don’t want to be added)Then create simple groovy script (pre)event PX on update BOM table of item. Get newly added item rows get subclass of those items. If these subclass user adding are not valid (Like Part C- Tyre) throw exception. Note: When you creating event subscriber don’t forget to add ‘Error handling’ as ‘Error’.
Please let me know if any confusion or doubt.- 1274 views
- 2 answers
- 0 votes
-
- 2003 views
- 3 answers
- 0 votes
-
- 1966 views
- 4 answers
- 0 votes
-
Hi Darshan,
You can redirect to particular Agile Object URL.
Please Refer below piece of code :
//Note : this test case i have done using servlet, you can use it in jsp and others also.
String url = “http://<AgileServer>:<Port>/Agile/PLMServlet?action=OpenEmailObject&classid=#&objid=@”;// fetching the object into agile class
IAgileClass testPartClass = testPart.getAgileClass();// Retrieving class id and object id
String clasID =testPartClass.getSuperClass().getId().toString();
String objID =testPart.getObjectId().toString();// Replacing char ‘#’ and ‘@’ with ‘ClasId’ and ‘ObjId’
url = url.replace(“#”, clasID);
url = url.replace(“@”, objID);
response.sendRedirect(url);Please let me know if you have any queries.
- 2121 views
- 1 answers
- 0 votes
-
Hey Himani,
I also came across same error, but this issue is resolved when I set List Attribute to ‘Required=No’ . Then input this code Object.setValue(“list15”,null);
This should work. Let me know if this works.This answer accepted by Himani Agnihotri. on May 17, 2024 Earned 15 points.
- 2141 views
- 4 answers
- -1 votes
-
Hi Cyn
If you go to Java Client under Admin>Settings>System Settings>Agile Content Service>Filters you can create your own filter or you can edit ‘Default Item Filter‘ . I think editing will be easy, Search for ‘Default Item Filter‘ and open it , Go to Filters tab as shown image and change BOM option to Tab and Items‘
then you can select up to which level you wan to get BOM items.
Also you should have discover and read privilege of items which you are exporting.- 3399 views
- 3 answers
- 0 votes
-
- 1721 views
- 1 answers
- 0 votes
-
- 2218 views
- 3 answers
- 0 votes
-
- 2440 views
- 3 answers
- 0 votes
-
- 2440 views
- 3 answers
- 0 votes