on 08-04-2015 4:12 PM
Hi everyone ,
I have a bit confusing performance problem with N-up datawindow , hope someone can help with with ideas
The extact Problem is :
Datawindow is [slow] while doing : a click , item-focus-changing , row-focus-changing:
Example : It takes a second ( bit more or less ) just to move from one field to another
This happen when I run from executable app. file .
But it's [Fast] when I run from Powerbuilder IDE
Here's is how I created this datawindow :
Things I have tried :
I removed all script from the above related events - NO EFFECT
I simplified the expressions of row to do color changing ( replace RGB with a number ...etc )- NO EFFECT
I removed the expressions - NO EFFECT !!!
What else I should try or do ?!
Is it about the native behavior of datawindow itself , or something is wrong with what i did ?!
Regards, Ahmed |
Hi Ahmed;
A known issue with N-Up DW's being slow has been linked to the transparency on columns being set to 100. It has been reported that setting this value to 0 cured the performance problems.
HTH
Regards ... Chris
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Wow! This only happens during runtime?!
That's definitively my "Pick of the week!".
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks everyone for replying & ideas , the problem was just the transparency of fields has to be zero ! , Can't understand why , it seems a PB issue .
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ahmed,
I suspect it is doing lots of redraws.
You could try a quick and dirty:
In the ItemChanged event at the top of the event SetRedraw ( FALSE )
Right at the end of the ItemChanged event POST SetDraw (TRUE)
Similar in ItemFocusChanged, RowFocusChanged and even the Clicked event
HTH
Lars
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If you have this slow performance only while you are running the executable,
make 100 % sure that the exe is really using your simplified datawindow and code.
Is this all happening on your machine? Is there a mismatch in the PowerBuilder Runtime DLLs?
Also use Process Monitor to check if the exe is doing some weird action.
Tip: Set a filter to monitor only your xyz.exe.
hth
Arnd
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.