NetTalk Central

Author Topic: Record not found (-2) Error 30  (Read 3473 times)

Alberto

  • Hero Member
  • *****
  • Posts: 1849
    • MSN Messenger - alberto-michelis@hotmail.com
    • View Profile
    • ARMi software solutions
    • Email
Record not found (-2) Error 30
« on: May 09, 2015, 02:31:47 PM »
Hi,
I call a form directly from the menu (to manage the user account)
When I click the menu item the first time I get the Record not found (-2) Error 30 Entry not found from Key PST:XID
And if I try again then all is ok.

In the browse

Procedure: uAccount
Parameters: 'change_btn=change&_bidv_=' & p_web.AddBrowseValue('MenuWin','PRESET',PST:XID,p_web.gsv('login_id'))

In the form:

Table: Preset
Unique Key: PST:XID
Defaut Form Action: Change
Key Field 1 value: PST:ID

I've added code to InitForm and RestoreMem and the PST:id is ok, even I've added a GET to fetch the record myself but theres still the error.

Anything else I'm missing? Anythig else I can check?

Thanks

PD: cosmetic thing: In desktop mode the error appears in the red bar, in mobile mode it apperas as a back bold text.
« Last Edit: May 09, 2015, 03:03:44 PM by michelis »
-----------
Regards
Alberto

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11194
    • View Profile
Re: Record not found (-2) Error 30
« Reply #1 on: May 11, 2015, 01:53:46 AM »
KeyField 1 Value: should be p_web.GSV('pst:id')

but since you are passing the BIDV, there's no need to set these parameters on the advanced tab. (Other than the Action, you're not passing the Action so you would need yto pass that).

BUT I notice you are using the GSV of PST:XID when you create the menu item - this is when the menu item is _created_ not the "current value". So possible the Advanced tab options are better than the URL. You decide which is better for your circumstances.

cheers
Bruce