Factbox getselectionfilters/setselectionfilters

Capone
Member Posts: 125
Hi experts!
I'm trying to create a factbox that shows the amount of the marked lines in the page. Is this possible?
Problem is that I can choose to have the same filters in the factbox by choosing correct datalink and this will show the same data in the factbox that is on the selected line in the form. But how do I do so it will show for instance the total quantity of the selected lines in the form?
First I thought that I could set a reference to the parent record and use getselection on that but then I realised that get/setselection is used on Currpage/Currform and unfortunately you can't create references to other pages/forms.
I'm trying to create a factbox that shows the amount of the marked lines in the page. Is this possible?
Problem is that I can choose to have the same filters in the factbox by choosing correct datalink and this will show the same data in the factbox that is on the selected line in the form. But how do I do so it will show for instance the total quantity of the selected lines in the form?
First I thought that I could set a reference to the parent record and use getselection on that but then I realised that get/setselection is used on Currpage/Currform and unfortunately you can't create references to other pages/forms.
Hello IT, have you tried to turn it off and on?
Have you checked the cables?
Have you released the filters?
http://www.navfreak.com
Have you checked the cables?
Have you released the filters?
http://www.navfreak.com
0
Comments
-
I think that without singleinstance codeunits and client-addins this won't work.0
-
Hi Mark!
Thanks for you answer but how would you solve it with a single instance codeunit?
I'm guessing you would do something like this:
Encapsulate the form in the single instance codeunit and then open it from the codeunit
And when you want to get the selected records from the form to the factbox you call the codeunit that returns the getselection of the form.Hello IT, have you tried to turn it off and on?
Have you checked the cables?
Have you released the filters?
http://www.navfreak.com0 -
Yeah, something like that.
You could have a global variable of the same record type as a temp table in the singleinstance codeunit and populate these from the main page.
From the factbox you can create an add-in that refreshes the factbox if required and reads from the singleinstance codeunit.
Not realy nice coding but it should work.0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K 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
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions