Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Can i convert a button into a text box??

Hi people,

Can I convert a button into a text box?? If not possible, What is the easiest way to shift all the triggers and properties i have on a button to that of a text box.

Creating another text box and creating the triggers all over again is the solution i know but looking if there is a better option.

Please help.

1 Solution

Accepted Solutions
12 Replies
sunny_talwar

I have done this for something simpler, but I have made direct changes to the XML files in the past.... but my expertise are limited with changing XML, but if you find yourself knowledgeable in playing around with XML files... you might be able to copy paste stuff and make some modifications to make it work

MarcoWedel

Why are you trying to convert it?

Anonymous
Not applicable
Author

Sunny, Can you please explain the process?? where to find the xml files etc??

Anonymous
Not applicable
Author

Previously I created buttons, Marco. I just want to show to bring the feel of a list box now. list of buttons as a list box and if selected highlighted in green etc. So looks like text boxes are looking near to list box than buttons. So just checking if there is simpler way

sunny_talwar

Check here how to create prj folder.... this folder includes all the xml files

QlikView Video Tutorial: Creating prj Folder in QlikView - QlikView Blog, QlikView Videos and Tips a...

Peter_Cammaert
Partner - Champion III
Partner - Champion III

You will probably spend more time tweaking the XML code than it would cost you to recreate the set of buttons as one or more text boxes. Escpecially the first time you try to do this directly in XML.

In QlikView, there is always an elevated cost involved if you invested in building a solution and then you change your mind. Indeed, that's a pity but cannot be avoided in many cases...

sunny_talwar

Agreed and disagreed.... There was this one time, I saved 2-3 hours + avoided any mistakes because I had to add a set analysis to 72 expressions in 6 charts which were conditionally hiding/showing.... Doesn't mean its always easy to do... but there might be a time when doing it in XML might make sense

flipside
Partner - Specialist II
Partner - Specialist II

If you can use macros, then just use this ...

Sub ButtonToText

ActiveDocument.GetSheetObject("BU01").Press
end Sub

.. calling the macro from an action on the text object.

Peter_Cammaert
Partner - Champion III
Partner - Champion III

Why didn't you use Search+Replace in the Expression Overview?

In this case, we're not talking about repeatedly modifying pre-existing expressions. These are series of objects that need to be transmogrified into different objects with different properties. The cost increase will be relative if you have a large number of comparable/identical modifications to perform and the modifications can be automated somehow. If not, it may be better to do this in QV Desktop.

On top of that, if you need anything more than Ctrl-C + Ctrl-V, you may get fewer errors in QV Desktop than in a text editor or xml tool.