Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
diogopereira89
Contributor II
Contributor II

Change position of sheet objects

Hi all,

I'm trying to move specific objects via a macro.

For i = lBound(Objects) To uBound(Objects)

if vObject.GetObjectId = "Document\CH06" then

  set vObject = Objects(i)

  pos = vObject.GetRect

  pos.left = 238

  pos.top = 79

  vObject.SetRect(pos) ' vObject.SetRect pos

end if

next

On the Qlikview desktop works fine, but on the server the object dont go to the new position(it moves, but not to the right position). I cann't understand why.

After running the macro the new position of my object is: left=76 & top=25

Has anyone tried something like this?

2 Replies
Anonymous
Not applicable

Diogo

Are you using the Ajax client ?

If so then macros do not in the Ajax Client.

Best Regards,     Bill

Peter_Cammaert
Partner - Champion III
Partner - Champion III

Various things will not work in the AccessPoint. There is a nice list of things you shouldn't expect to work as intended/at all in the portal, amongst them the manipulation of screen elements in the Ajax client ("Layout operations").

Read all about this in the QlikView Reference Manual, Chapter 80 Using Macros in QV Documents on the QV-Server.

Best,

Peter