Qlik Community

QlikView Scripting

Discussion Board for collaboration on QlikView Scripting.

Announcements

Breathe easy -- you now have more time to plan your next steps with Qlik!
QlikView 11.2 Extended Support is now valid through December 31, 2020. Click here for more information.

datanibbler
Not applicable

Simple MsgBox - any way to individualize buttons?

Hi,

I am using a MsgBox in my newest app to query some feedback from the user - the reason i don't use an INPUT field for this is that the question is a closed question - the user can choose a or  b. If I were to use an INPUT field, the user could type whatever he likes and I'd have to write it all in the title_text what the user should write.

<=> A MsgBox has only two buttons by default, so there is not much the user can do wrong - but those buttons have standard texts on

       them.

=> Is there any way I can individualize the texts on the buttons of a MsgBox?

Thanks a lot!

Best regards,

DataNibbler

6 Replies
marcus_sommer
Not applicable

Re: Simple MsgBox - any way to individualize buttons?

Hi DataNibbler,

could you give some background to your task - where should it be used (script/gui) and for what usage?

- Marcus

hrlinder
Not applicable

Re: Simple MsgBox - any way to individualize buttons?

not sure about buttons

but in your case, why don't you use constraints in an Input box

you may define the values, the user only may select

datanibbler
Not applicable

Re: Simple MsgBox - any way to individualize buttons?

Hi,

this is in a report that the users have to be able to reload locally - they have to be able to get certain informations out of the involved tables which is only possible when the script is run - the tables are not loaded completely, but only the relevant parts, I tried to keep the data_volume to a minimum, which would not have been possible with a server_reload.

So in the script the users have to input the information they have, which is subsequently used to define the "route of execution" of the script. Thus the boxes - I have both INPUT boxes and MSG boxes.

@ Rudoplf

Dropdown_lists in an Input Box looks like a good idea. Can you explain how to do that?

Thanks a lot!

Best regards,

DataNibbler

datanibbler
Not applicable

Re: Simple MsgBox - any way to individualize buttons?

Hi Rudolf,

I think there is a slight misunderstanding, or at least we are not necessarily talking about the same thing: An InputBox is an object on the GUI, no? I have some INPUTfields (in the script) and Msgboxes (in the script) which are displayed at the time the script is executed.

I will, however, do some experimenting with an Inputbox on the GUI - that would just mean slightly turning the order of execution around - right now, one of several buttons on the GUI just fills a variable that in turn defines the order of execution in the script and then it starts the script.

marcus_sommer
Not applicable

Re: Simple MsgBox - any way to individualize buttons?

If you goes to the tab restrictions you could restrict the values to a predefined list:

- Marcus

datanibbler
Not applicable

Re: Simple MsgBox - any way to individualize buttons?

Hi Marcus,

yep. Thank you! I'll try this. That would mean changing some details in the workings of my report, but that might really make it easier to use. Let's see.

The question is only, how can I effectively manage the screenspace I have - I need the full width of the screen for the table_diagram,

that makes it difficult to find space for any additional buttons - the few there are are already displayed on top of the chart, not ideal.

I guess I will have to introduce one small button instead to click when the processing of one item is finished and the chart is no longer needed. Then the chart would disappear and in its stead the buttons would all reappear for the next turn.