The code looks correct...

The code looks correct...

Can anyone tell me why this code isn't working as expected?

  1. //1. User Clicks Log Button.
  2. //2. Does ID Exist in Log?
  3. if (count(tblEventLog[intEventID == input.intEventID])  >  0)
  4. {
  5.     /*2 - Yes
  6. 3. Open Log View.*/
  7.     openUrl("#View:vwEventLog?intEventID =" + input.intEventID + "", "popup window", "height=100,width=100");
  8. }
  9. else
  10. {
  11.     /*2 - No
  12. 4. Add Initial Record.*/
  13.     insert into tblEventLog
  14.     [
  15.         Added_User = zoho.loginuser
  16.         intEventID = input.intEventID
  17.         strEventStatus = input.cboStatus
  18.     ]
  19.     //3. Open Log View.
  20.     openUrl("#View:vwEventLog?intEventID =" + input.intEventID + "", "popup window", "height=100,width=100");
  21. }
The problem is happening in the openUrl lines.  The idea is that when the user clicks the cmdEventLog button, the code will open a pop-up window of the appropriate view (vwEventLog) and restrict the entries to the Event ID number shown in the parent form.  But as the screenshot below shows, it shows all entries rather than the restrictive view.  This code works fine in a different application, but it doesn't seem to be working properly in this one.



Any ideas?




Leo Saumure

    Access your files securely from anywhere







                            Zoho Developer Community




                                                  • Desk Community Learning Series


                                                  • Digest


                                                  • Functions


                                                  • Meetups


                                                  • Kbase


                                                  • Resources


                                                  • Glossary


                                                  • Desk Marketplace


                                                  • MVP Corner


                                                  • Word of the Day


                                                  • Ask the Experts



                                                            • Sticky Posts

                                                            • Celebrating our Zoho Community SuperBuds!

                                                              The SuperBud program recognizes the efforts Zoho users  put in to help the rest of the community thrive and grow in their individual Zoho journeys. Be it the ZUG meetups  or these forums, several Zoho users including our MVPs andZUG leaders, have stepped


                                                            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


                                                                                                      ご検討中の方