Forum Discussion

ShrutiS's avatar
ShrutiS
Creator I
5 years ago

Open Custom Form in A New Tab

Hello 

Is there a way to open a custom Form in a New tab rather than as a Dialog in ARAS.

I believe Aras requires an item to open any window. But Mine is simply an independent Custom Form that I want to display in a new tab.

Please let me know if anyone has a workaround for the above issue.

Thanks,

Shruti

8 Replies

  • Update : I wasnt able to Open a custom form , instead I am going for a custom HTML file 

    [embed:dc8ab71f-3b98-42d9-b0f6-e21e02a0f8e2:5f27e732-17a7-4c9f-a676-cb123a627acb:type=javascript&text=var%20newItem%20%3D%20aras.IomInnovator.newItem%28%22%22%2C%20%22%22%29%3B%0D%0Avar%20newItemId%20%3D%20aras.generateNewGUID%28%29%3B%0D%0AnewItem.setID%28newItemId%29%3B%0D%0A%0D%0Aaras.uiOpenEmptyWindowEx%28newItem.node%29%3B%0D%0Avar%20newWindowName%20%3D%20aras.mainWindowName%20%2B%20%22_%22%20%2B%20newItemId%3B%0D%0A%0D%0Avar%20newWindow%20%3D%20aras.windowsByName%5BnewWindowName%5D%3B%0D%0AnewWindow.frameElement.src%20%3D%20%22.%2Ftest.html%22%3B]

    Source : https://community.aras.com/b/english/posts/displaying-html-in-aras-innovator?CommentId=5307edd2-cf88-4a92-af19-d2bdf5182521

    However the tab that opens up has no tile set it (Refer Screen shot)

    Anyone aware on how I can set the Title of the tab while using aras.uiOpenEmptyWindowEx(node)?

    Thanks,

    Shruti Suresh

    • angela's avatar
      angela
      Catalyst II

      Hi Shruti,

      good use case! Never have tried it by myself.

      This one reminds me to the helper window we get for Reports! 

      Have you seen Method 'OnShowItemDefault'. It´s for example used in Method 'OnShowReportEditor". Not sure if this was the code used for the helper window, but it uses 'uiOpenEmptyWindowEx'

      • angela's avatar
        angela
        Catalyst II

        Some additional remark. Out of own interest I made a quick check of the code. My Methods above are more used for the Izenda Reporter.

        But take a look at codetree file ...\Client\javascript\aras_object.js

        There you can find Aras.prototype.targetReport. This one triggers yet another useful function:

        --> var openReportInTab = function (mode, report_location, url)

        Sounds promising!!!

  • Hi

    Is it possible to open a custom Aras Form in a new tab instead of html page?

    Thanks,

    Yamini