- //1. User Clicks Log Button.
- //2. Does ID Exist in Log?
- if (count(tblEventLog[intEventID == input.intEventID]) > 0)
- {
- /*2 - Yes
- 3. Open Log View.*/
- openUrl("#View:vwEventLog?intEventID =" + input.intEventID + "", "popup window", "height=100,width=100");
- }
- else
- {
- /*2 - No
- 4. Add Initial Record.*/
- insert into tblEventLog
- [
- Added_User = zoho.loginuser
- intEventID = input.intEventID
- strEventStatus = input.cboStatus
- ]
- //3. Open Log View.
- openUrl("#View:vwEventLog?intEventID =" + input.intEventID + "", "popup window", "height=100,width=100");
- }
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.