Hi everyone,
I am trying to create a new page with a header and a subform.
In the source table of the subform I created a field named "Group No." and I set the TableRelation to "myTable"."No."
In the header page I set the SubPageLink to "Group No."=FIELD("No.").
When I insert a line in the subform, I look at the table and find the field "Group No."(which is supposed to contain the header No.)
empty....
What shall I do to populate this field?
I looked into tables 36 and 37 with pages 42 and 46 but couldn't figure it out...
Can anyone help me on how to proceed???
Thanks in advance
Comments
Infact, I added the field to the key and now the header no. is being inserted in the subform but when I insert many lines in the subform, only the last one is being stored in the table...
Why is that?
see the key for the sales line is Document Type,Document No.,Line No.
Do you have a line no field? how are you having it increment?
http://www.BiloBeauty.com
http://www.autismspeaks.org
It should be integer as in sales line table.
I have a line no. field and I am incrementing it manually in the subform...
I did what you said but the problem is still here: when inserting many lines, only the last one is stored in the table ](*,)
and you removed the line no increment code?
and you completely got out of the form/page and went back in before "inserting again"?
http://www.BiloBeauty.com
http://www.autismspeaks.org
I am manually entering the line no.
I didn't add any line no. incrementing code and I didn't remove any increment code....are you talking about standard code?where can I find it?
Infact, I did what vijay_g said...it works fine with only one line, but if I try to add another one, I get the following error message:
Whath shall I do?
and you have setup the subformlink & subformid properly?
http://www.BiloBeauty.com
http://www.autismspeaks.org
In the header, I set the PagePartID to the name of the subform
I set the SubPageLink to "Group No."=FIELD("No.") (where "No." is the header no. and "Group No." is the corresponding field in the subform).
Infact, when I try to insert more than one line at a same time, it looks like the line no. is not being incremented...but if I create one line at a time, close the page, open it again and add another line, the line no. is incremented (20000) and no error message is generated...
Why is that?
Did you play with other properties and didn't change them back?
Have you added any code somewhere?
Do you have the delayed insert property = yes?
http://www.BiloBeauty.com
http://www.autismspeaks.org