Problem in code of transfering multiple lines
vyanku
Member Posts: 791
I create lines in requsition worksheet.
Now I want to transfer them in requsition table without deleting.
So I write code on onpush trigger of one new button for it as below,
But By using this code I have to select one line and only that line will be transfer.means I can transfer only one line at a time.
What I have to do so that I can transfer all line at a time.
Now I want to transfer them in requsition table without deleting.
So I write code on onpush trigger of one new button for it as below,
But By using this code I have to select one line and only that line will be transfer.means I can transfer only one line at a time.
What I have to do so that I can transfer all line at a time.
req record requsition table req.INIT; req."Indent No.":="Indent No." ; req."Line No.":="Line No."; req."Item No.":="No."; req.Date:="Order Date"; req."Requested by":="Requester ID"; req.location:="Location Code"; req.Description:=Description; req.Quantity:=Quantity; req."User iD":="User ID"; req."Global Dimension Code 1" := "Shortcut Dimension 1 Code"; req.INSERT; END;
0
Comments
-
Do you want to change all records in the table or only these ones shown on the form??0
-
I just want all these records in req table without delete them from requsition worksheet.0
-
Have you considered somthing like this(not real code)
ReqWksh.setfilter(FilterFromRecordset); if ReqWksh.findset then repeat OtherRecord.init; Blah Blah OtherRec.insert; until ReqWksh.next = 0;0 -
Yes just like that
But this type of code is not working because when u write
find('-') then
repeat
until
it will again come on first line which was already transfered. I will not come on next line.0 -
Only if the find('-') is inside the loop. Take a close look at the structure in Mbad's pseudocode. It does the FIND first, and only if it finds records does it go into the loop.0
-
What is the use of Findset function in this code??
I tried the same also. but nothing is happend....... ](*,)0 -
Check the C/AL reference guide (Help -> C/AL Reference Guide) for information about FINDSET.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
- 250 Dynamics CRM
- 102 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
