Qlik Community

QlikView App Development

Discussion Board for collaboration related to QlikView App Development.

laddu_927
Valued Contributor

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

Re: Can i convert a button into a text box??

12 Replies

Re: Can i convert a button into a text box??

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

Re: Can i convert a button into a text box??

Why are you trying to convert it?

laddu_927
Valued Contributor

Re: Can i convert a button into a text box??

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

laddu_927
Valued Contributor

Re: Can i convert a button into a text box??

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

Re: Can i convert a button into a text box??

Re: Can i convert a button into a text box??

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...

Re: Can i convert a button into a text box??

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
Valued Contributor II

Re: Can i convert a button into a text box??

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.

Re: Can i convert a button into a text box??

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.