Performance Issue with Visibility Property
byronic
Member Posts: 22
Hello everyone!
I've got a problem with the loading performance of a Page, which has alot of groups with their visibility property set to a global variable.
I already tried to include the variables to the dataset and to minimize the amount of content whose visibility is set dynamically, but it still takes alot time to load the page or a new record.
Is there any other way to hide/show fields where the loading speed is acceptable?
Or can I improve the speed in the way it is by something else?
Thank you in advance!
I've got a problem with the loading performance of a Page, which has alot of groups with their visibility property set to a global variable.
I already tried to include the variables to the dataset and to minimize the amount of content whose visibility is set dynamically, but it still takes alot time to load the page or a new record.
Is there any other way to hide/show fields where the loading speed is acceptable?
Or can I improve the speed in the way it is by something else?
Thank you in advance!
0
Answers
-
Hi Byronic,
Can i know which version you are using ?
Do you more / lot of things(fields) to display Dynamically..0 -
Hi Raja,
I'm using version 8.0 and I'm trying to display quite many fields dynamically.
I know that this is the issue, but I don't know how I could work around this problem or to improve the speed atleast a bit.
Thank you and best regards0 -
Can you share that code where you are setting visibility TRUE or FALSE, I think you are doing some FINDSET,FINDFIRST or any other DB hit at that point.0
-
Of course,
I set the global variable to show general parts in the OnAfterGetRecord in dependance of the Type of Record, which is either a Person or a Home:
g_IsHaushalt := (Type = Type::"Company/ Home") OR ("No." = "Company No. / Home No.");
Thanks and best regards0 -
You can put this condition on VISIBLE property of that Group, It works faster than writing code for this and then assigning value to VISIBLE property.0
-
Hi rishi rishabh,
Thank you for answering!
Sadly I tried to do what you pointed out in your post and had no success. The loading between a Home-Record and a Person-Record still takes up to 5-10 seconds, so I didn't feel a significant impact by the change.
Thanks and best regards0 -
Anyone?0
-
Byronic,
what type of fields are you hiding/displaying? Are they standard fields from table you are presenting on that page? If yes maybe the problem is in query that opens that page, not in "visible" status of particular field.
Does page loads faster if you hide all of those fields?0 -
Hi Phenno,
I'm hiding/displaying groups with mostly normal fields from a table and some Control-Add-Ins.
When I'm trying to hide all fields by collapsing them it still takes a lot of time to load the next record.
Although when I'm hiding all groups that I'm hiding/displaying dynamically by setting their Visible Property just to FALSE the loading time required to load the next record decreases drastically.
Thanks and best regards0 -
What is the condition for visibility and when do you calculate it?
Also, is that a card page?0 -
I set the global variable to show general parts in the OnAfterGetRecord (also tried to set the condition directly in the visiblity property itself) in dependance of the Type of Record, which is either a Person or a Home:
g_IsHome := (Type = Type::"Company/ Home") OR ("No." = "Company No. / Home No.");
And yes it is a card page.
Thanks and best regards0 -
Someone else got an idea?0
-
Best thing you can do is create a simple example of your page and upload it here. This way people can simulate and test it. Hope it helps.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
- 323 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