Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi guys,
I have a button and graph with cyclic group field in the X axe.
I want to acheive the next result:
When I press on button the cyclic group will be changed from Day to Month.
How can I do it?
Thanks,
Nimrod
hey,
you can achieve that using a macro. (Not sure if you intend to do so)
sample code:
set group = ActiveDocument.GetGroup("CyclicGroupNamel")
set gp = group.GetProperties
gp.FieldDefs(0).Name="FieldName"
group.SetProperties gp
group.Cycle 2
Let me know if you have any questions.
I think this might help:
http://community.qlik.com/forums/t/17380.aspx
No, I need the opposite. 🙂
When I press on the button it will switch the cyclic group field.
hey,
you can achieve that using a macro. (Not sure if you intend to do so)
sample code:
set group = ActiveDocument.GetGroup("CyclicGroupNamel")
set gp = group.GetProperties
gp.FieldDefs(0).Name="FieldName"
group.SetProperties gp
group.Cycle 2
Let me know if you have any questions.
Thanks for your response. it's working but pay attention that your macro is deleting all the options of the cyclic group field.
I need to apply the same functionality on drill down group. Please suggest me some solution.
Does this solution also work for the ajax client?
I need to apply the same functionality on drill down group. Please suggest me some solution.