TableBox Problem
Kc_Nirvana
Member Posts: 146
Hello.
I have one form that has a source table that has 3 fields:
Type, No., Date
Type - Option String - Customer, Vendor
In a new form i want to create a table box that shows the customer ledger entries or the vendor ledger entries by clicking in a button.
I've created a table box with text boxes which point to a TempLedger record that is temporary.
When I fill the templedger only the last record of the templedger is showned in table box.
How can i solve this?
Thanks in advanced
I have one form that has a source table that has 3 fields:
Type, No., Date
Type - Option String - Customer, Vendor
In a new form i want to create a table box that shows the customer ledger entries or the vendor ledger entries by clicking in a button.
I've created a table box with text boxes which point to a TempLedger record that is temporary.
When I fill the templedger only the last record of the templedger is showned in table box.
How can i solve this?
Thanks in advanced
Junior Consultant & Developer in Dynamics NAV
"I'm worse at what I do best
And for this gift I feel blessed
Our little group has always been
And always will until the end"
Nirvana - Nevermind - Smells Like Teen Spirit
"I'm worse at what I do best
And for this gift I feel blessed
Our little group has always been
And always will until the end"
Nirvana - Nevermind - Smells Like Teen Spirit
0
Answers
-
Can you give us the code used to fill TempLedger?0
-
If you can solve me my problem....... :P
CLEAR(CustLedgEntry); TempCustLedgEntry.DELETEALL; CustLedgEntry.SETRANGE("Customer No.","No."); IF CustLedgEntry.FIND('-') THEN BEGIN REPEAT TempCustLedgEntry.COPY(T); TempCustLedgEntry.INSERT; UNTIL CustLedgEntry.NEXT=0; END;Junior Consultant & Developer in Dynamics NAV
"I'm worse at what I do best
And for this gift I feel blessed
Our little group has always been
And always will until the end"
Nirvana - Nevermind - Smells Like Teen Spirit0 -
I think you should write the code like:
TempCustLedgEntry.DELETEALL; CustLedgEntry.RESET; CustLedgEntry.SETCURRENTKEY("Customer No."); CustLedgEntry.SETRANGE("Customer No.","No."); IF CustLedgEntry.FIND('-') THEN REPEAT TempCustLedgEntry.INIT; TempCustLedgEntry.TRANSFERFIELDS(CustLedgEntry); TempCustLedgEntry.INSERT; UNTIL CustLedgEntry.NEXT=0;Ufuk Asci
Pargesoft0 -
do not forget the variable that you are using in table box contains only last value.0
-
That is the problem......vijay_g wrote:do not forget the variable that you are using in table box contains only last value.
How can i show all records that are in variable?Junior Consultant & Developer in Dynamics NAV
"I'm worse at what I do best
And for this gift I feel blessed
Our little group has always been
And always will until the end"
Nirvana - Nevermind - Smells Like Teen Spirit0 -
Kc_Nirvana wrote:I've created a table box with text boxes which point to a TempLedger record that is temporary.
how can you point a table box or text box to a temporery record.
Either you can use a form based on CLE and keep SOURCETABLETEMPRORY to yes and insert record in Rec at run time.
this is as i understand may be i missing something that you want.0 -
maybe I'm over simplifing it - but there are already forms to show CLE's & VLE's why not just call the form depending on which type you choose.
https://docs.google.com/fileview?id=0Bw ... YmI0&hl=en0 -
You can display only source table's fields as tablebox, if you use a variable then you got the last value. So you need at least two forms.Ufuk Asci
Pargesoft0
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