Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

ListBox Problem

Hi all

set lb = ActiveDocument.GetSheetObject("LB21")
lb.SetInputFieldCell 0,"1"
set lbPropFields = lb.GetProperties

This solution was given in QLIK View API.but i m unable to implement it?Solutions needed.As in API ,the description of

SetInputField is of adding a record......help needed

Regards

Sikandar

4 Replies
stephencredmond
Luminary Alumni
Luminary Alumni

Hi Sikandar,

The SetInputFieldCell API will change the value of that cell - but only if the field that is in that ListBox is an Input Field (defined in the script). Is your field an Input field?

I just tested this and it worked as expected.

Note, it does not "add" a record, it modifies the input value (which can then be reset to original by the user).

What, exactly, are you trying to achieve.

Regards,

Stephen

Not applicable
Author

Hi Stephen.

Thanks for given me the knowledge.Basically what i want is .i have taken an input box .I want to enter a text value or numeric value in to

the input box,After entering the value in the input box ,a button must be click on which the macors must runs

and move that value to list box and saves it..Please provide also the macro coding .....Any solution will be

very helpful to meee......Thank you soo muchh

Regards

Sikandar

stephencredmond
Luminary Alumni
Luminary Alumni

Hi Sikander,

If you want to add a new value to a ListBox then you are going to have to investigate the new functionality to add new data into the dataset using Macros.

Regards,

Stephen

Not applicable
Author

HI Stephen

Thank you soo much for the information.I will look foward to it,,

Sikandar