How to use request states for multiple items at the same time?
Hi Community, maybe somebody has faced a similar task before and can give me some hints. I have an relationship onAfterDelete server Method that is triggered when an relationship item is deleted. To ensure that I can still can use the related_id after the relationship was deleted, I pass the value with RequestState in an additional onBeforeDelete Method. --> string related_id = (string)RequestState["prevRelID"]; This concept works fine, but only as long users just delete one relationship at a time. When they select multiple relationships and want to delete them, the following error message appears: "An entry with the same key already exists." This of course makes sense. The RequestState "prevRelID" can only be generated once. But is there some way, to use this one multiple times? Or maybe it´s possible to store multiple ids in to the same RequestState as some kind of array? Does anybody know an easy solution to solve this one? Thanks for any help! AngelaSolved6KViews0likes3CommentsRest API - Pass parameters
I wanted to make this as broad a title as possible. I'm shocked I can't find anything on this. I don't want to use the ID. Seems everything is bound to ID. I just want to simply know, without use of ID, how a method can consume arguments? How to pass/use arguments? My particular use case is one to squash annoyance. I think many, if not all, Item Types should have Auto-Search set to true. I find it silly UX to go to, "Search 'Some Item Type'" and then need to click search. So, I'm finding I need to navigate to the IT definition and check the box and save the edit. I just want to use PostMan to pass an ItemType by name. I don't know how to do that or extrract that from the call. I want to pass the IT name. So, something like this for the IT "Method": {{base_url}}{{version}}/server/odata/method._Set_Auto_Search_True('method') But, how? Hmmm. Maybe a where clause somehow? .../odata/ItemType?$filter=name eq 'method' Anyway, any help passing other-than-id params to a function would be great!5.3KViews0likes3CommentsGet the Context Action Name in the Method
Hi All, I have Multiple Server Side Item Actions Configured on the Part Item , I want the logic/functionality to be performed by each action to be controlled by the same method . In which case , is there a way to pass the Invoking action name to the Method so that based on the value I can chose the function to be performed. For the above action , I want to get the action name "plm_Test" while invoking the method on the Item. This would greatly help me in avoiding creating Multiple Methods for each Action. Thanks.5.2KViews0likes7CommentsParameters tab sometimes isn´t loaded when opening a Part. Does anyone know why?
Hi community, does anyone of you use the classic "Parameters" tab? It´s a quite old building technique. Technically it was replaced with xProperties. But I have one use case where this classic tab is still used today. Some end users report that the tab sometimes don´t show up when a Part opened. But the missing tab typically appears when the same Part is opened again or if the Part is edited. It doesn´t happen very often, but often enough for people to report the issue. In the rare cases the issue occurs, the complete tab is missing. The used Innovator version 12SP7. I wonder if this behavior is caused by the Innovator version OR any of my custom Methods that are executing when opening the Form. Is anyone familiar with the Parameters tab and has seen this behavior before?0Views0likes3CommentsTGV Parameters Filtering doesn't show record if value is blank
Hello All, I have created TGV on part and I have added parameters to search and filter on custom "state" property . I have given default value as * . It works well and able to search and filter on state column but there is one issue if any record has state "Blank" . That record is skipped from TGV results and which is causing me showing incorrect TGV results . Help me to understand cause. Thanks in advance .0Views0likes1Comment