inn.getItemById("Part", id);
, when it uses the custom Part it seems like the caching gets screwed up or something.
Does your project overwrite the existing buttons? Or are they only added for the custom part?here are the steps to do it :However, that's what we started with. So I asked about our issues with Lock, Unlock, Structure browser, etc. His reply was:
- Create an ItemType "Component"
- Add properties that you want to use (same as origin ItemType) : item_number, name....
- Add an entry on the TOC
- Add this method on the server event "OnGet" :
- ---- this.setAttribute("type", "Part"); this.setProperty(" classification", "Component"); return this.apply(); ---
- That's all !
Yes most of the features to work correctly on an item requires the item to be opened in order to leave this “fake” item context.So I guess what you have accomplished is the best solution to the problem (I haven't tried it yet myself though).
com.aras.innovator.cui_default.mwt_main_toolbar_lock
.
It use the Init Method cui_reinit_mwt_lock
and the Click method cui_default_mwt_onLockCommand
.
The corresponding CommandBarSectionsItem
replace this lock button with my own. The look&feel stays the same, but the Click Method now references hard to Part.
I recommend to delete the browser cache to make the project run properly.
I plan to use the project in production in around 2-3 weeks, then I will fix the last few bugs. Maybe I can provide a sample of the full ItemType. There are many small config settings necessary to make it run flawless.
Of course, if there is another simpler solution, I would be highly interested in it! I think the whole stuff can also be solved on SQL level (Polyitems do something similar), but my SQL-skills are incompatible with the requirements of such a task.
Since Aras use a similar concept in the Inbasket, the solution cannot be that bad.I am happy to see that this forum thread is one of the most viewed in the Aras forum.
@Hey Aras,
Can you give me a short update to this one? Will the feature discussed in this threat actually be a standard feature in 12 SP4? I have seen something comparable at ACE Europe in a presentation about upcoming features. I at least know that Aras knows about this topic and the project and that it was used by some folks out there. Even if the project is mainly a proof-of-concept, it would be fair to know, if Aras decided to provide a standard solution for this task. It´s important that these kind of information is available for community, to avoid that the community wastes further time for ideas that already made it to the Aras roadmap.
Hi, first of all I'd love to thank all the users for your input.
I am also facing problem of creating "fake" items instead of custom searches - in my case for chosen classes of Documents.
To give you the picture I have added new Item types reflecting all properties and permissions of Document item type. I added server event (found here :)) to "redirect" to Documents item type and set it "onGet", "onAdd", "onUpdate" also added 1 client event to enable Add new to create new Document (2 line JS also found here)
For now I am able to lock unlock or save as the "fake" item but first I have to open and close the item, I guess to keep to "original item" in place. When I try without this step, it tries to get the "fake" item type.
With refreshing the topic I'd like ask if some of you tried to make all the buttons and actions "cloned" from original item type?
Thanks, Best regards.
Hi LukSor,
please notice that this one is a 3 year old discussion and project made by strangers from the internet :).
In Innovator 12 Saved Searches improved so I am not sure if this project is still worth the effort.
I am not aware of your 'need to open/close behavior'. Maybe you check out the github project that is linked somewhere which contain the lastest code and not just code snippets.
It´s possible to manually add Actions or Reports to the fake item, but this is a lot of work when you want to do many of them. I once make a couple of tests to automatically assign the Actions and Reports by CUI Methods, even have somewhere around an old code sample if you really want to take this topic seriously.
Angela