NetTalk Central

Author Topic: Record Not Found: (-2) Error 30: Entry not found  (Read 4610 times)

PaulMacFarlane

  • Newbie
  • *
  • Posts: 34
    • View Profile
    • Email
Record Not Found: (-2) Error 30: Entry not found
« on: March 25, 2015, 03:41:49 PM »
I looked at other messages about this error - I'm not using 2 tabs...

C8, NT8.18.....

Application was working.  Edited the form and browse - now its not.... ???

Browse and Form Keys match.  Dozens of Browse/Form combinations

I think the app was originally in NT7 - so editing the procedures MAY be changing some default or something that I'm not noticing?

Any suggestions?


Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Record Not Found: (-2) Error 30: Entry not found
« Reply #1 on: March 25, 2015, 10:37:53 PM »
Not really enough information to go on Paul - any chance of an example?

cheers
Bruce

PaulMacFarlane

  • Newbie
  • *
  • Posts: 34
    • View Profile
    • Email
Re: Record Not Found: (-2) Error 30: Entry not found
« Reply #2 on: March 25, 2015, 10:50:43 PM »
The browse/form combinations that aren't working were generated with the wizard.

I believe the app was NT7 when originally created.

Not sure I can create one that doesn't work. 

I think what I'm asking is what might have changed in the browse/form relationship NT7 to NT8?
Can you suggest where to plug in some debug code to see where the failure is happening?
The form is clearly not getting the correct record selection when it fetches the record.
The resulting form - when a record is selected and change clicked - has an empty record.



PaulMacFarlane

  • Newbie
  • *
  • Posts: 34
    • View Profile
    • Email
Re: Record Not Found: (-2) Error 30: Entry not found
« Reply #3 on: March 26, 2015, 10:17:20 AM »
So I've been digging into this further.

The session variable is blank when the form receives it.

So, I started to look at where the browse sets the session variable.
In the routine "Call Clicked" it sets the session variable to the value of p_web.GetValue('cus:custrefnum')
I sent the value of p_web.GetValue('cus:custrefnum') to debugview and its blank...

Hmm..

So how is the value initially set?  I added 'cus:custrefnum' as a column in the browse and it's had no effect....


PaulMacFarlane

  • Newbie
  • *
  • Posts: 34
    • View Profile
    • Email
Re: Record Not Found: (-2) Error 30: Entry not found
« Reply #4 on: March 26, 2015, 12:16:30 PM »
So even though I added the uid field to the browse the change didn't seem to take.

After several "pokings arounds" it apparently decide to compile my changes and started populating the value in the view.....

So since one was working I attempted to fix another.  This time I just added the uid field to the view.
Added some embed code to try and force a recompile.
Same problem - field blank - debug code working so it did recompile.

I deleted all my source and obj files and recompiled.  Added the uid to the browse.  The code in the CallClicked routine still returns a blank value.  Have no idea now how the first one 'started working again'.....


PaulMacFarlane

  • Newbie
  • *
  • Posts: 34
    • View Profile
    • Email
Re: Record Not Found: (-2) Error 30: Entry not found
« Reply #5 on: March 26, 2015, 01:04:16 PM »
Okay - found something....

In the browse on the form tab I had the "selection method" set to Radio.
Changed it to Hightlight and it works.....

Changed back to "Radio" and it doesn't work.....

So, Radio doesn't work.......

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Record Not Found: (-2) Error 30: Entry not found
« Reply #6 on: March 26, 2015, 09:55:51 PM »
Well done Paul...

>> So, Radio doesn't work.......

that I can believe - It's been a _long_ time since I used the Radio option in a browse. I really should just remove it - it's a relic from the past....

cheers
Bruce