I have a quite strange problem. During last NetTalk User Group meeting I discuss with Bruce about ajax and he stressed that my problem is related with popup form not with ajax. I agreed with him, so I make my table and popup form in a way that Bruce showed.
My problem is that my popup form is not populated with data I need every time I click on a record but it works randomly. It is very strange cause I defined in browse Unique Key same as I am using in a form to retrieve data from database.
Sometimes data is retrieve record I asked previously, sometimes it works as I expect but never works for first data in a table. So I made my plan to trap an error and setup DebugView points to track key fields which I am using to retrieve data in a form. I attached short DebugView log that described my problem.
First debug point is when I click button in a browse CallClicked and second is in a form I use as popup on GenerateForm. Sometimes key fields are same in a browse as in a popup form and somtimes are not but for the first record even when fields are the same I could not display data in a form.
In a both case I use p_web.gsv() function to retrieve value from NetTalk. In a browse value is always good but in a popup even I use tha same method to retrieve data it is not same value.
Browse procedure is named as Receipts and popup form is named as ShowTheBill.
Key fields are Serial and RNum.
What am I doing wrong?
Best regards,
Djordje Radovanovic
[attachment deleted by admin]