How to retrieve details of current page from widget?

How to retrieve details of current page from widget?

Hi,

Does anyone know if there's a way to retrieve the details of the user's current page from a background widget (or any other for that matter)?

When user navigates to a page, I want to check what type of page it is (e.g. ticket detail) and then decide whether or not to take action.

I want to identify the current page when the app loads, since the user may have navigated to the app from a link.

Best I can do at the moment is set up an event handler for the `ticket_shift` and `pageChange` events, but this only works if the user navigates to the page/ticket from within the app,  not when the page first loads.

Is there something better I can do?  It feels like I'm missing something, but can't find it in the documentation.

Many thanks

Tim
  1. //Change from one ticket to another
  2. App.instance.on('ticket_Shift', function (data: any) {...});
  3. //Change Page
  4. App.instance.on('pageChange', function (data: any) {...});


    Access your files securely from anywhere

        All-in-one knowledge management and training platform for your employees and customers.






                              Zoho Developer Community




                                                    • Desk Community Learning Series


                                                    • Digest


                                                    • Functions


                                                    • Meetups


                                                    • Kbase


                                                    • Resources


                                                    • Glossary


                                                    • Desk Marketplace


                                                    • MVP Corner


                                                    • Word of the Day


                                                    • Ask the Experts





                                                              Manage your brands on social media



                                                                    Zoho TeamInbox Resources



                                                                        Zoho CRM Plus Resources

                                                                          Zoho Books Resources


                                                                            Zoho Subscriptions Resources

                                                                              Zoho Projects Resources


                                                                                Zoho Sprints Resources


                                                                                  Qntrl Resources


                                                                                    Zoho Creator Resources



                                                                                        Zoho CRM Resources

                                                                                        • CRM Community Learning Series

                                                                                          CRM Community Learning Series


                                                                                        • Kaizen

                                                                                          Kaizen

                                                                                        • Functions

                                                                                          Functions

                                                                                        • Meetups

                                                                                          Meetups

                                                                                        • Kbase

                                                                                          Kbase

                                                                                        • Resources

                                                                                          Resources

                                                                                        • Digest

                                                                                          Digest

                                                                                        • CRM Marketplace

                                                                                          CRM Marketplace

                                                                                        • MVP Corner

                                                                                          MVP Corner









                                                                                            Design. Discuss. Deliver.

                                                                                            Create visually engaging stories with Zoho Show.

                                                                                            Get Started Now


                                                                                              Zoho Show Resources

                                                                                                Zoho Writer

                                                                                                Get Started. Write Away!

                                                                                                Writer is a powerful online word processor, designed for collaborative work.

                                                                                                  Zoho CRM コンテンツ




                                                                                                    Nederlandse Hulpbronnen


                                                                                                        ご検討中の方