How can i link to an ItemType from a form with a hyperlink?

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

Parents
  • 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

Reply
  • 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

Children