1. Monica Petersen
  2. PowerBuilder
  3. Friday, 16 November 2018

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
0
Votes
Undo

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

Comment
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. Monica Petersen
  2. Tuesday, 20 November 2018
There are no comments made yet.
  1. Monday, 19 November 2018
  2. PowerBuilder
  3. # 1
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.