1. Monica Petersen
  2. PowerBuilder
  3. Friday, 16 November 2018 18:41 PM UTC

Hi,

 

I have three 10 column n-up datawindows, one above the other, and I want them all to scroll horizontally at the same time.  In the development environment, this code in the scrollhorizontal event of the main datawindow successfully scrolls the other two datawindows to the correct position:

String ls_rc

MessageBox('', 'Scrolling to ' + String(scrollpos))
ls_rc = dw_header.Modify("Datawindow.HorizontalScrollPosition=" + String(scrollpos) )
MessageBox('header rc' , ls_rc)
ls_rc = dw_summary.Modify("Datawindow.HorizontalScrollPosition=" + String(scrollpos) )
MessageBox('summary rc' , ls_rc)

RETURN

 

I've added the message boxes to understand why it's not working when I deploy it to the web.  When I run the web deployed version, the message boxes tell me:

 

Line 1 Column -1 Incorrect syntax.

 

Is there a work around for programatically setting the horizontal scroll position?

 

Thanks,

 

Monica.

Lars Mosegaard Accepted Answer Pending Moderation
  1. Monday, 19 November 2018 23:15 PM UTC
  2. PowerBuilder
  3. # 1

I would use a scroll bar on the window instead of each datawindow.

Comment
  1. Monica Petersen
  2. Tuesday, 20 November 2018 15:44 PM UTC
Thanks, I've raised a ticket to get this looked at, but that's a good interim solution. Ideally I'd like the column headers to be fixed at the top of the page, but at least this way they'll be synchronized.
  1. Helpful
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.
We use cookies which are necessary for the proper functioning of our websites. We also use cookies to analyze our traffic, improve your experience and provide social media features. If you continue to use this site, you consent to our use of cookies.