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
  #71  
Old   
bheavilin via DBMonster.com
 
Posts: n/a

Default Re: Cannot post record out of range - 04-29-2008 , 08:38 AM






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:
Quote:
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



Reply With Quote
  #72  
Old   
Dennis Santoro
 
Posts: n/a

Default Re: Cannot post record out of range - 04-29-2008 , 12:02 PM






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:
Quote:
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


Reply With Quote
  #73  
Old   
Dennis Santoro
 
Posts: n/a

Default Re: Cannot post record out of range - 04-29-2008 , 12:02 PM



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:
Quote:
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


Reply With Quote
  #74  
Old   
Dennis Santoro
 
Posts: n/a

Default Re: Cannot post record out of range - 04-29-2008 , 12:02 PM



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:
Quote:
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


Reply With Quote
  #75  
Old   
Dennis Santoro
 
Posts: n/a

Default Re: Cannot post record out of range - 04-29-2008 , 12:02 PM



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:
Quote:
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


Reply With Quote
  #76  
Old   
Dennis Santoro
 
Posts: n/a

Default Re: Cannot post record out of range - 04-29-2008 , 12:02 PM



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:
Quote:
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


Reply With Quote
  #77  
Old   
Dennis Santoro
 
Posts: n/a

Default Re: Cannot post record out of range - 04-29-2008 , 12:02 PM



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:
Quote:
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


Reply With Quote
  #78  
Old   
Dennis Santoro
 
Posts: n/a

Default Re: Cannot post record out of range - 04-29-2008 , 12:02 PM



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:
Quote:
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


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.