Hi!
I have a form as a startpage of ARAS and from this from i want to link to different item types. In this case i have a polyitem i want to link to. Is this possible or do i have to write a method for this?
/Fred
Hi!
I have a form as a startpage of ARAS and from this from i want to link to different item types. In this case i have a polyitem i want to link to. Is this possible or do i have to write a method for this?
/Fred
Hi Fred,
Could you clarify your use case slightly? When you click a link, do you want to open up a specific item (Part1), or do you want to open a search for an itemType (search for parts)? What are you expecting to happen when you click on the link for the polyItem?
AJ
Hi Fred,
Could you clarify your use case slightly? When you click a link, do you want to open up a specific item (Part1), or do you want to open a search for an itemType (search for parts)? What are you expecting to happen when you click on the link for the polyItem?
AJ
Hi!
Thanks for your reply.
I want to open the search fot the itemtype/types. But it would also be interesting to know i i can link to a certain item, like Part1.
/Fred
Hi Fred,
There's a javascript method which you can attach as an onclick event, and it will load the search page for a specific ItemType.
top.arasTabs.openSearch({ItemId}); is an existing aras method which will open a search for the itemtype provided. Adding this as an onclick method for a button or text will automatically open a new tab with a search for the given ItemType.
To open a specific item instance, you can use the startpage URL format.
http://{serverName}/{webAlias}/?StartItem={itemTypeName}:{ItemId}
Setting this link as a hyperlink will open the specified item in a new tab.
Side Note: Keep an eye out for a new community project I'll be releasing in the near future. I believe it has a lot of overlap with your use case.
AJ
Thanks AJ!
The URL worked fine! But when using the method gave me an error:
Any idea what i did wrong?
Sorry, just a amateur misstake, i forgot to put ' around the itemid in the mthod, now it works fine!
Thank you very much AJ, looking forward to see the community project you mentioned!
/Fredric
Hello, any idea why
http://{serverName}/{webAlias}/?StartItem=Part:43CD3...
opens this part but also opens search for another item type...(looks like first from alphabet)?
Q2: Is there a way to get link to adding item form?