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