 |
|
 |
|
Next: ParadoxField?
|
| Author |
Message |
External

Since: Apr 25, 2008 Posts: 1
|
(Msg. 1) Posted: Fri Apr 25, 2008 5:28 pm
Post subject: Cannot post record out of range Archived from groups: comp>databases>paradox (more info?)
|
|
|
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 >> Stay informed about: Cannot post record out of range |
|
| Back to top |
|
 |  |
External

Since: Aug 28, 2006 Posts: 88
|
(Msg. 2) Posted: Fri Apr 25, 2008 5:28 pm
Post subject: Re: Cannot post record out of range [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
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 >> Stay informed about: Cannot post record out of range |
|
| Back to top |
|
 |  |
External

Since: Feb 25, 2004 Posts: 519
|
(Msg. 3) Posted: Fri Apr 25, 2008 5:28 pm
Post subject: Re: Cannot post record out of range [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
> 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 >> Stay informed about: Cannot post record out of range |
|
| Back to top |
|
 |  |
External

Since: Jan 21, 2005 Posts: 71
|
(Msg. 4) Posted: Fri Apr 25, 2008 5:28 pm
Post subject: Re: Cannot post record out of range [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
It could also happen if they are using a AI field as a key and have
exceeded the max value allowed, or a small integer as key and have
exceeded the 32k limit or if they are violating a lookup value in some
instances.
Gonna take some testing and checking but you have several things to
start with.
Denn Santoro
President
Resource Development Associates
http://www.RDAWorldWide.Com
Offices in the United States and Germany
Providing solutions to health care, business, governments and
non-profits since 1982
Tony McGuire wrote:
>> 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?
> >> Stay informed about: Cannot post record out of range |
|
| Back to top |
|
 |  |
|
bheavilin via DBMonster.c
|
External

Since: Apr 28, 2008 Posts: 4
|
(Msg. 5) Posted: Mon Apr 28, 2008 7:28 pm
Post subject: Re: Cannot post record out of range [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
Jim,
Thank You. Your response got me off dead center, but I'm still grumbling. I
added a postrecord() to one of the fields in the header file, which at first
got the same error message. Then I tried a few other combinations (going
into and out of edit mode, adding a button to post the header record that
didn't work, etc.), and suddenly, I had a form that worked. Unfortunately,
in my irritation, I lost track of the exact changes, and I don't know why the
form works. I cannot reproduce the success if I start with a new copy of the
form that produces the error message. The only change in the form that I can
see is a postrecord command on change in value of one of the header fields.
I've been programming on a variety of systems for longer than I care to admit,
and this is as strange a problem as I've come across in a long time,
especially when I remember that the system has been in use for several years,
and there never has been a postrecord in the form until now. At this point,
I don't trust that the working copy of the form will continue to work.
With all that said, each form when it is opened starts out displaying a
different record. I do not see where in the form definition that record Id
is stored or how to change it. Could you explain where I can see or change
that information?
Jim Moseley wrote:
>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
--
Message posted via http://www.dbmonster.com >> Stay informed about: Cannot post record out of range |
|
| Back to top |
|
 |  |
|
bheavilin via DBMonster.c
|
External

Since: Apr 28, 2008 Posts: 4
|
(Msg. 6) Posted: Mon Apr 28, 2008 7:29 pm
Post subject: Re: Cannot post record out of range [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
Tony,
I have not found any set range value, and in the table mode, I can add
records with any key value, so this is probably not the cause.
Thanks,
Bob
Tony McGuire wrote:
>> 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?
>
--
Message posted via http://www.dbmonster.com >> Stay informed about: Cannot post record out of range |
|
| Back to top |
|
 |  |
|
bheavilin via DBMonster.c
|
External

Since: Apr 28, 2008 Posts: 4
|
(Msg. 7) Posted: Mon Apr 28, 2008 7:32 pm
Post subject: Re: Cannot post record out of range [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
Good suggestions, but none appear to be the case. The key is a character
field, and I can add any value in table mode. I have been careful to check
the lookup values, and do not believe they are causing the problem.
Dennis Santoro wrote:
>It could also happen if they are using a AI field as a key and have
>exceeded the max value allowed, or a small integer as key and have
>exceeded the 32k limit or if they are violating a lookup value in some
>instances.
>
>Gonna take some testing and checking but you have several things to
>start with.
>
>Denn Santoro
>President
>Resource Development Associates
>http://www.RDAWorldWide.Com
>Offices in the United States and Germany
>Providing solutions to health care, business, governments and
>non-profits since 1982
>
>>> Your problem is that the record at the top half of the screen hasn't
>>> been
>[quoted text clipped - 9 lines]
>>
>> Or am I misunderstanding?
--
Message posted via http://www.dbmonster.com >> Stay informed about: Cannot post record out of range |
|
| Back to top |
|
 |  |
External

Since: Feb 25, 2004 Posts: 519
|
(Msg. 8) Posted: Mon Apr 28, 2008 7:32 pm
Post subject: Re: Cannot post record out of range [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
> Good suggestions, but none appear to be the case. The key is a
> character
With the form in DESIGN,
Format | Filter
Check to see if a secondary index is defined, but more importantly if
there is any criteria set for any of the fields; be sure to scroll to
the last field.
That would be how you create a 'sticky' filter. In run mode, you
should also be able to interactively set a filter.
--
------------------------------
Tony McGuire >> Stay informed about: Cannot post record out of range |
|
| Back to top |
|
 |  |
External

Since: Aug 28, 2006 Posts: 88
|
(Msg. 9) Posted: Tue Apr 29, 2008 12:12 am
Post subject: Re: Cannot post record out of range [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
bheavilin,
>I cannot reproduce the success if I start with a new copy of the
>form that produces the error message. The only change in the form that
I can
>see is a postrecord command on change in value of one of the header fields.
Are you manually comparing the code, or programatically? I run the CSDiff
utility on my code (broken out by individual method) to see exactly what
changed.
My bet is that you're forgetting the 'doDefault' in the ChangeValue() method.
You want to PostRecord() after changing the value (hence after doDefault).
Note that there might be other (or better) ways of doing this. You could
use the Arrive() method of the child tableframe to trigger the PostRecord(),
for example. Also, make sure you check the result of the PostRecord() &
don't just assume it happens correctly.
>With all that said, each form when it is opened starts out displaying a
>different record. I do not see where in the form definition that record
Id
>is stored or how to change it. Could you explain where I can see or change
>that information?
You might have saved each form with a different filter. Click on the funnel
icon & see if any unexpected values are set. Also, make sure all forms use
the same index on the 'master' table. Otherwise, the default record that
a form should open with is the first row of the master table's current index.
Note that I've spent lots of time trying to disable this default behavior,
since I want the form to open on the row the user has requested (through
some other function).
HTH,
Jim Moseley >> Stay informed about: Cannot post record out of range |
|
| Back to top |
|
 |  |
External

Since: Aug 28, 2006 Posts: 88
|
(Msg. 10) Posted: Tue Apr 29, 2008 12:14 am
Post subject: Re: Cannot post record out of range [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
bheavilin,
>You might have saved each form with a different filter. Click on the funnel
>icon & see if any unexpected values are set. Also, make sure all forms
use
>the same index on the 'master' table. Otherwise, the default record that
>a form should open with is the first row of the master table's current index.
> Note that I've spent lots of time trying to disable this default behavior,
>since I want the form to open on the row the user has requested (through
>some other function).
I forgot to mention that you could have saved the forms with different Ranges
set. They can be checked on the Filter screen also.
HTH,
Jim Moseley >> Stay informed about: Cannot post record out of range |
|
| Back to top |
|
 |  |
External

Since: Jan 21, 2005 Posts: 71
|
(Msg. 11) Posted: Tue Apr 29, 2008 1:02 pm
Post subject: Re: Cannot post record out of range [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
We might be able to tell you what is gong on if you actually post the
code...
Denn Santoro
President
Resource Development Associates
http://www.RDAWorldWide.Com
Offices in the United States and Germany
Providing solutions to health care, business, governments and
non-profits since 1982
bheavilin via DBMonster.com wrote:
> Jim,
>
> Thank You. Your response got me off dead center, but I'm still grumbling. I
> added a postrecord() to one of the fields in the header file, which at first
> got the same error message. Then I tried a few other combinations (going
> into and out of edit mode, adding a button to post the header record that
> didn't work, etc.), and suddenly, I had a form that worked. Unfortunately,
> in my irritation, I lost track of the exact changes, and I don't know why the
> form works. I cannot reproduce the success if I start with a new copy of the
> form that produces the error message. The only change in the form that I can
> see is a postrecord command on change in value of one of the header fields.
>
> I've been programming on a variety of systems for longer than I care to admit,
> and this is as strange a problem as I've come across in a long time,
> especially when I remember that the system has been in use for several years,
> and there never has been a postrecord in the form until now. At this point,
> I don't trust that the working copy of the form will continue to work.
>
> With all that said, each form when it is opened starts out displaying a
> different record. I do not see where in the form definition that record Id
> is stored or how to change it. Could you explain where I can see or change
> that information?
>
> Jim Moseley wrote:
>> 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
> >> Stay informed about: Cannot post record out of range |
|
| Back to top |
|
 |  |
|
bheavilin via DBMonster.c
|
External

Since: Apr 28, 2008 Posts: 4
|
(Msg. 12) Posted: Tue Apr 29, 2008 1:38 pm
Post subject: Re: Cannot post record out of range [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
Jim,
It turned out to be a filter that was accidentally saved with the form.
After I cleared that, the form started to work correctly. Thanks for your
assistance.
Bob
Jim Moseley wrote:
>bheavilin,
>
>>I cannot reproduce the success if I start with a new copy of the
>>form that produces the error message. The only change in the form that I can
>>see is a postrecord command on change in value of one of the header fields.
>
>Are you manually comparing the code, or programatically? I run the CSDiff
>utility on my code (broken out by individual method) to see exactly what
>changed.
>
>My bet is that you're forgetting the 'doDefault' in the ChangeValue() method.
> You want to PostRecord() after changing the value (hence after doDefault).
>
>
>Note that there might be other (or better) ways of doing this. You could
>use the Arrive() method of the child tableframe to trigger the PostRecord(),
>for example. Also, make sure you check the result of the PostRecord() &
>don't just assume it happens correctly.
>
>>With all that said, each form when it is opened starts out displaying a
>>different record. I do not see where in the form definition that record Id
>>is stored or how to change it. Could you explain where I can see or change
>>that information?
>
>You might have saved each form with a different filter. Click on the funnel
>icon & see if any unexpected values are set. Also, make sure all forms use
>the same index on the 'master' table. Otherwise, the default record that
>a form should open with is the first row of the master table's current index.
> Note that I've spent lots of time trying to disable this default behavior,
>since I want the form to open on the row the user has requested (through
>some other function).
>
>HTH,
>Jim Moseley
--
Message posted via http://www.dbmonster.com >> Stay informed about: Cannot post record out of range |
|
| Back to top |
|
 |  |
| Related Topics: | Record moves out of sight in MRO...? - Howdy, I run P9... I have a 2x2 MRO that displays addresses on a particular form. On occasion, (for an individual with more than one address) if we modify something on the second address (that is in the lower left) the screen refreshes, that address..
Test for last record in Scan...? - Howdy, I want to set up a tCursor scan in this way: Scan Do something based on data in record If at last record, do something else EndScan But I don't know how to test for the last record. Might you help? Thanks, -- Kenneth If you email.....
code for record numbering -
Date record viewed...? - Howdy, I added a date field (called ViewDate) to a particular table because I want a form that displays that table to behave in the following way: I wanted ViewDate to display today() whenever a record was viewed (whether or not it was modified.) The....
Record sorting problem in report - When creating a report to print out some data, one can control the order in which the records are sorted. My problem is that I don't want them sorted at all, I want them to appear in exactly the same order as in the underlying table, and they won't! .... |
|
You can post new topics in this forum You can reply to topics in this forum You can edit your posts in this forum You can delete your posts in this forum You can vote in polls in this forum
|
|
|
|
 |
|
|