- Faisal Hayat
- PowerBuilder
- Thursday, 14 January 2021 12:52 PM UTC
Hi PB Experts,
Hope Everyone is doing well in this pandemic times.
I have bumped into an issue and can't find any suitable solution so I decided to ask for your help. Let me explain the situation here.
I have a dw_1, inherited from uo_dw, and it has 30 columns, dw_1 object type is free form and accepts values. on dw_1 there is a column col_1 which has a dddw.
On uo_dw under getfocus event I am changing columns width, dddw no if lines, percent width by using modify. and it helps me to adjust at run time rather changing values in design time for 1000+ objects (DWs).
On w_1 I am using dw_1 and have created an instance type child DW of col_1 of dw_1. This child DW has got some data and need to be used later. BUT when on uo_dw this.modify is applied to col_1 for changing noOfLines for dddw rows in instance Child DW of w_1 gets deleted. This happens only when you are applying modify to col_1 and changing its tooltip properties or no of lines (tested so far) but it does no create any impact when col_1 percentwidth is changed.
As a Workaround or temp solution I can refresh the child DW again or can set its properties so that it passes in getfocus event of uo_dw but it is not a fix for all the objects (DWs which are being inherited from it) and it's a huge application in which I am working.
I am also reluctant to apply these changes on design time considering the no of objects and time to do it.
Solution Wanted like
Should I change the event of uo_dw? If yes which one is suitable for such functionality?
Is there a way to apply modify so that it does impact any child DW created from its column anywhere in the application?
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.