How to set default values in ListBox

Avatar

19-07-2008

Hello Experts,



I have a requirement where I have a listbox with 10-15 values prepopulated and I have to show 3-4 option selected by default.



Please note that these 3-4 options to be shown as selected, will be fetched from database.



How do I achieve this?



Please guide.



Thank you

Ashutosh

Replies

Avatar

20-07-2008

Hi,



I found something like



ListBox1.setItemState(1, true);



I am searching way to use it in my context.



Ashutosh

Avatar

01-04-2009

Hi,



I would like to ask for help. I have a text box on the form that is getting populated dynamically. But if I have more than 13 records text is over floating the text box and goes into another part of the form. How can I stop this from happening and make an extra records to be printed on next page.



Thank you.



Ilya.

Avatar

Avatar

pguerett

Avatar

pguerett

pguerett

01-04-2009

Make sure the root subform is flowed and have the allow page breaks set on.

Avatar

03-04-2009

Paul,



Thank you for advise. I made changes you suggested, but still wasn't able to achieve the desire result. I have a text box on the fist page of the form where I should limit the number of records to 13. If the number of records is > 13, I should show them on the similar text box on the page 2.

How can I achieve that?



Thank you,



Ilya.

Avatar

03-04-2009

Paul,



Thanks a lot. I found what was the problem by not be able to see the overflow text going to the next page. It does now.

Thanks again.



Ilya.