Qlik Community

QlikView App Development

Discussion Board for collaboration related to QlikView App Development.

Announcements
QlikView Fans! We’d love to hear from you.
Share your QlikView feedback with the product team… Click here to participate in our 5-minute survey.
Rules, plus terms and conditions, can be found here.
bnichol
Valued Contributor

Re: Scrolling start position in chart?

The 'Reversed' check box in the Chart Scrolling section accomplishes right scroll-bar allignment.

Reversed.jpg

jpapador
Valued Contributor

Re: Scrolling start position in chart?

The reversed, check box in your original screenshot should do what you are asking for.

Highlighted
MVP
MVP

Re: Scrolling start position in chart?

There is a way to set the initial position to right.

You need to create a Macro, and run it once. After that you can delete the Macro, the chart property will be kept changed.

The Macro code looks like

SUB StartScrollRight 

         SET chartObject = ActiveDocument.GetSheetObject("CH01") 

         SET chartProperties = chartObject.GetProperties 

        chartProperties.ChartProperties.XScrollInitRight = true

        chartObject.SetProperties chartProperties  

END SUB 

You'll need to adapt the Chart ID. Run the Macro e.g. from a button.

ateafilar
New Contributor III

Re: Scrolling start position in chart?

Tried to run this macro on my chart object (CH***) but unfortunately it didn't happen anything...

MVP
MVP

Re: Scrolling start position in chart?

It's working for me with attached sample app.

If you open the app,you should see the upper chart scrolled to the right, the lower chart starts left by default.

You can change the setting of the upper chart by using the two buttons, but I think you need to save and reopen to see the change (it's an XScrollInitRight property).

I noticed another thread that reports issues with scroll bar settings in latest SRs, so just to check, on which QV version are you?

ateafilar
New Contributor III

Re: Scrolling start position in chart?

Thank you a lot, it works!

Just had to save and reopen the document. Works great om QV 11.20 SR6.

Have a nice weekend!

Best regards,
Filip

slondono
Contributor II

Re: Scrolling start position in chart?

It works for me

Not applicable

Re: Scrolling start position in chart?

Thanks Stefan,

Recently, I also found out how to solve the problem "scrolling from the right". It works, great!

I copy the the macro  you proposed into my qvw, and  setup Document Properties/ Triggers/ Document Event Triggers/ OnOpen/ Edit Action/ Actions- Run Macro / Edit Module/Macro Name: "StartScrollRight"; it works!

thanks!

William

Community Browser