dbTalk Databases Forums  

Cannot post record out of range

comp.databases.paradox comp.databases.paradox


Discuss Cannot post record out of range in the comp.databases.paradox forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
bheavilin
 
Posts: n/a

Default Cannot post record out of range - 04-25-2008 , 12:28 PM






We are using Paradox 11 on a purchase order system. We use a form to create
the POs. The top of the form updates a PO master file, and the bottom
updates PO details, with the items to be purchased.

Recently, we have been receiving the message "Cannot post record out of
range" whenever we move from the top of the form (PO master file) to the
bottom (PO details). This happens when we try to add a new PO. I have
searched the tables and the form and cannot find a range definition anywhere.

When I check the PO master table, the PO record is not posted. I can force
the post to happen by trying to insert a new record. After that, we can call
the PO up and fill in the detail records.

This message even happens when I delete POs that were created before the
problem started and add them again (testing to see what range limits there
may be). It also happened after I deleted all records in a test copy of the
files, so it does not appear to be a problem with files too full. I have
also rebuilt both files to ensure that the indexes were OK.

Any help would be appreciated.

BHeavilin


Reply With Quote
  #2  
Old   
Jim Moseley
 
Posts: n/a

Default Re: Cannot post record out of range - 04-25-2008 , 01:14 PM







bheavilin,

Your problem is that the record at the top half of the screen hasn't been
posted when you jump to the record at the bottom half. The 'range' is built
into your form's data model - the bottom record is dependant on the top record.

You've got 2 options:
1. When you create the top record, also create a bottom record by default
with matching master keys.
2. When you arrive on the bottom record, first issue a postRecord() on the
top record. This should pre-format the bottom record's keys.

HTH,
Jim Moseley

Reply With Quote
  #3  
Old   
Jim Moseley
 
Posts: n/a

Default Re: Cannot post record out of range - 04-25-2008 , 01:14 PM




bheavilin,

Your problem is that the record at the top half of the screen hasn't been
posted when you jump to the record at the bottom half. The 'range' is built
into your form's data model - the bottom record is dependant on the top record.

You've got 2 options:
1. When you create the top record, also create a bottom record by default
with matching master keys.
2. When you arrive on the bottom record, first issue a postRecord() on the
top record. This should pre-format the bottom record's keys.

HTH,
Jim Moseley

Reply With Quote
  #4  
Old   
Jim Moseley
 
Posts: n/a

Default Re: Cannot post record out of range - 04-25-2008 , 01:14 PM




bheavilin,

Your problem is that the record at the top half of the screen hasn't been
posted when you jump to the record at the bottom half. The 'range' is built
into your form's data model - the bottom record is dependant on the top record.

You've got 2 options:
1. When you create the top record, also create a bottom record by default
with matching master keys.
2. When you arrive on the bottom record, first issue a postRecord() on the
top record. This should pre-format the bottom record's keys.

HTH,
Jim Moseley

Reply With Quote
  #5  
Old   
Jim Moseley
 
Posts: n/a

Default Re: Cannot post record out of range - 04-25-2008 , 01:14 PM




bheavilin,

Your problem is that the record at the top half of the screen hasn't been
posted when you jump to the record at the bottom half. The 'range' is built
into your form's data model - the bottom record is dependant on the top record.

You've got 2 options:
1. When you create the top record, also create a bottom record by default
with matching master keys.
2. When you arrive on the bottom record, first issue a postRecord() on the
top record. This should pre-format the bottom record's keys.

HTH,
Jim Moseley

Reply With Quote
  #6  
Old   
Jim Moseley
 
Posts: n/a

Default Re: Cannot post record out of range - 04-25-2008 , 01:14 PM




bheavilin,

Your problem is that the record at the top half of the screen hasn't been
posted when you jump to the record at the bottom half. The 'range' is built
into your form's data model - the bottom record is dependant on the top record.

You've got 2 options:
1. When you create the top record, also create a bottom record by default
with matching master keys.
2. When you arrive on the bottom record, first issue a postRecord() on the
top record. This should pre-format the bottom record's keys.

HTH,
Jim Moseley

Reply With Quote
  #7  
Old   
Jim Moseley
 
Posts: n/a

Default Re: Cannot post record out of range - 04-25-2008 , 01:14 PM




bheavilin,

Your problem is that the record at the top half of the screen hasn't been
posted when you jump to the record at the bottom half. The 'range' is built
into your form's data model - the bottom record is dependant on the top record.

You've got 2 options:
1. When you create the top record, also create a bottom record by default
with matching master keys.
2. When you arrive on the bottom record, first issue a postRecord() on the
top record. This should pre-format the bottom record's keys.

HTH,
Jim Moseley

Reply With Quote
  #8  
Old   
Jim Moseley
 
Posts: n/a

Default Re: Cannot post record out of range - 04-25-2008 , 01:14 PM




bheavilin,

Your problem is that the record at the top half of the screen hasn't been
posted when you jump to the record at the bottom half. The 'range' is built
into your form's data model - the bottom record is dependant on the top record.

You've got 2 options:
1. When you create the top record, also create a bottom record by default
with matching master keys.
2. When you arrive on the bottom record, first issue a postRecord() on the
top record. This should pre-format the bottom record's keys.

HTH,
Jim Moseley

Reply With Quote
  #9  
Old   
Tony McGuire
 
Posts: n/a

Default Re: Cannot post record out of range - 04-25-2008 , 01:29 PM




Quote:
Your problem is that the record at the top half of the screen hasn't
been
posted when you jump to the record at the bottom half. The 'range'
is built
into your form's data model - the bottom record is dependant on the
top record.
This could also happen if there is a programmatic setrange() for a new
value for the index being used, I think, where a value has been
entered for the key of the index and that value is 'out of range' of
the setrange() (setgenfilter() as well?).


Or am I misunderstanding?

--
------------------------------
Tony McGuire




Reply With Quote
  #10  
Old   
Tony McGuire
 
Posts: n/a

Default Re: Cannot post record out of range - 04-25-2008 , 01:29 PM




Quote:
Your problem is that the record at the top half of the screen hasn't
been
posted when you jump to the record at the bottom half. The 'range'
is built
into your form's data model - the bottom record is dependant on the
top record.
This could also happen if there is a programmatic setrange() for a new
value for the index being used, I think, where a value has been
entered for the key of the index and that value is 'out of range' of
the setrange() (setgenfilter() as well?).


Or am I misunderstanding?

--
------------------------------
Tony McGuire




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.