How to close current LEX Console subtab?

Pat Vachon
Pat Vachon πŸ’ŽπŸ’ŽπŸ’Ž

As per subject.

Client wants to open wizard in subtab and close the tab once done using wizard.

Answers

  • Germany3
    Germany3 πŸ› οΈ ο»Ώ

    Hey @Pat Vachon !


    One possibility is:

    create Lightning events that you can fire off from within the Skuid page.


    But I will follow up and get back to you ASAP.


    Thanks! πŸ˜€

  • Pat Vachon
    Pat Vachon πŸ’ŽπŸ’ŽπŸ’Ž

    Cool beans! Can't wait. Any hints?

  • Pat Vachon
    Pat Vachon πŸ’ŽπŸ’ŽπŸ’Ž
    edited March 2, 2021


  • Pat Vachon
    Pat Vachon πŸ’ŽπŸ’ŽπŸ’Ž

    Yo! Chompin at the bit for this. Can you point in the direction of the solution for me to get started?

  • Germany3
    Germany3 πŸ› οΈ ο»Ώ

    Hey @Pat Vachon !

    One solution you can do is using the JS API:

    You would need to useΒ closeTab({tabId})Β from the Workspace API


    Let me know if this helps, i will keep digging to help get an solution


    Thanks,

  • Pat Vachon
    Pat Vachon πŸ’ŽπŸ’ŽπŸ’Ž

    I did notice these APIs and methods, but wasn't able to get the Id for the tab.

  • Pat Vachon
    Pat Vachon πŸ’ŽπŸ’ŽπŸ’Ž

    Germany! Where you at? I took another crack at it without any luck. You?

  • Germany3
    Germany3 πŸ› οΈ ο»Ώ
    edited March 8, 2021

    Yo @Pat Vachon and GM! let's try to hop on a call and try to figure it out. do you have a min? if so, let's take this to DM

  • Germany3
    Germany3 πŸ› οΈ ο»Ώ

    @Pat Vachon, I saw you figured out the problem via email. Can you share your solution here so others can know?


    closing post now,

    Thanks,

This discussion has been closed.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!