Unable to view record from subform
navshare
Member Posts: 49
Hi
I am using subform with header.I have the menu item called get details.when I click this menuitem, the subform should show data from the header as well as another table.
But when I clicked the menu item button, the subform displays the header details only and not records from another table.
But my source table and subform(which is not attached with header) show all the details.
Could anyone resolve this issue pls..
I am using subform with header.I have the menu item called get details.when I click this menuitem, the subform should show data from the header as well as another table.
But when I clicked the menu item button, the subform displays the header details only and not records from another table.
But my source table and subform(which is not attached with header) show all the details.
Could anyone resolve this issue pls..
0
Answers
-
If you could explain with more detail we can help you. In general terms this is not making much sense to me.0
-
i think more info is needed and show the code your using
ah . denster beat me by a few milliseconds
0 -
Hi...
This is the coding for library management.When a student wants to return his book,it should show all the books which has been issued to that particular student and yet to return.
I am able to get the details.but the duplicate entry for the last record appears.
for ex. if a student has taken 4 books, it shows 5 books instead of 4(The details of the 5th book repeated).
The coding has been written in the onvlaidate trigger of the student No.(in subform).
"intlineno.":=1000;
recLib.RESET;
recLib.SETRANGE(recLib."No.","No.");
recLib.SETRANGE(recLib."Transaction Type",recLib."Transaction Type"::Issue);
recLib.SETRANGE(recLib.Type,recLib.Type::Student);
IF recLib.FIND('-') THEN
REPEAT
INIT;
Name:=recLib.Name;
"Book ID":=recLib."Book ID";
Description:=recLib.Description;
"Return Date":=recLib."Return Date";
"Line No."+="intlineno.";
"intlineno."+=1000;
INSERT;
MODIFY;
UNTIL recLib.NEXT=0;
I hope somebody will resolve this issue.0 -
1. You need the infos only to display it for the librarian :?:
2. Is you "subform table" temporary or not. If not, what is, when the user press 2x, 3x, 4x, the "Detail" button
3. your "modify" after your insert is not needed, because there are no recs to modify ;-) (because you have insert these recs before)"intlineno.":=1000; recLib.RESET; recLib.SETRANGE("No.","No."); //The No of the Header or of a line in subform :?: recLib.SETRANGE("Transaction Type",recLib."Transaction Type"::Issue); recLib.SETRANGE(Type,recLib.Type::Student); IF recLib.FIND('-') THEN begin REPEAT INIT; //here we are in Subform lines Name:=recLib.Name; "Book ID":=recLib."Book ID"; Description:=recLib.Description; "Return Date":=recLib."Return Date"; "Line No."+="intlineno."; "intlineno."+=1000; INSERT; UNTIL recLib.NEXT=0; end;
you write, the subform is not linked (attached) with you header :?: Why :?: So, if in subform is still a record an you press the detail button, the same record will be inserted, because you have not filtered it out in your filter criteria (recLib.setfilter("Book ID",'<>%1',TheBOOKID); ). RecLib is the same table like the table in Subform or not :?:
RegardsDo you make it right, it works too!0 -
why do you not use for your library management, the same logic like Sales Header / Sales Line (Form 42 / 46) :?: And for your info you open a separate info form.Do you make it right, it works too!0
-
Like the others said, you don't need any code.
Create a list form for the recLib table, and put it on the Student Card form as a subform. On the subform control, filter the Transaction type by Issue, the Type by Student, and link the number in recLib with the Student's No. Now you should see only the lines that are linked, without a single line of code.0 -
Hi..
Thank u so much.The problem is solved now. 8)0 -
Please write [Solved] infron of your subject. Thanks ;-)
RegardsDo you make it right, it works too!0 -
tnx0
-
navshare wrote:The issue is solved
Ha Ha!! No, he ment go to the first post. if you click edit you will be allowed to change the orginal post topic from
Unable to view record from subform
to
(Solved)Unable to view record from subform0 -
Ha Ha, like Nelson from the SIMPSONS :sick:Do you make it right, it works too!0
Categories
- All Categories
- 75 General
- 75 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 610 NAV Courses, Exams & Certification
- 1.9K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 251 Dynamics CRM
- 103 Dynamics GP
- 6 Dynamics SL
- 1.5K Other
- 991 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 28 Design Patterns (General & Best Practices)
- Architectural Patterns
- 9 Design Patterns
- 4 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1K General Chat
- 1.6K Website
- 77 Testing
- 1.2K Download section
- 23 How Tos section
- 249 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions
