Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 112

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 112

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 112

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 112

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 112

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 112

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 112

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 112
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3368: Cannot modify header information - headers already sent by (output started at /includes/bbcode.php:472)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3370: Cannot modify header information - headers already sent by (output started at /includes/bbcode.php:472)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3371: Cannot modify header information - headers already sent by (output started at /includes/bbcode.php:472)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3372: Cannot modify header information - headers already sent by (output started at /includes/bbcode.php:472)
OrbWorks Community Forum • View topic - Empty list after setitemlist()
Page 1 of 1

Empty list after setitemlist()

PostPosted: Wed Nov 28, 2007 12:41 pm
by szternakb
Hello,

I'm a bit newbie in this forum but i did not found any older topic related to my problem.

In the middle of my small application (in a list.onselect() function if it matters) i want to set the items in a list with the setitemlist() function. The source is a public stringlist variable. The application is collecting items to this stringlist then everything was ok, populates it to the list. However the list after the insertation seems to be empty but if i select one item with the stylus the selected item will be visible. Also if I'm using the arrows to scroll down/up the list will be visible.
I'm also using an other list but it is filled in the form.OnOpen() function and it is working wihout any problem.

Is there any good medicine to solve this problem?

Thanks,
Barna

Re: Empty list after setitemlist()

PostPosted: Wed Nov 28, 2007 1:16 pm
by Percival
Try list.redraw() after setting the items.

Re: Empty list after setitemlist()

PostPosted: Wed Nov 28, 2007 1:29 pm
by szternakb
Percival wrote:Try list.redraw() after setting the items.


Sorry, i did not mention it, but i tried the redraw function and it did not help.

Re: Empty list after setitemlist()

PostPosted: Wed Nov 28, 2007 1:38 pm
by Percival
Ohw.. sorry about that.

That is weird.. are you sure you redrawed the correct list?
Can you post the source code?

Re: Empty list after setitemlist()

PostPosted: Wed Nov 28, 2007 2:06 pm
by szternakb
Percival wrote:Ohw.. sorry about that.

That is weird.. are you sure you redrawed the correct list?
Can you post the source code?


Sure,

Here i'm collecting the items into "stationsb" which is a global stringlist variable.
sbtemp contains a large, comma separated text, buff, buff2 and temp are string buffers

if (strlen(sbtemp)>0) {
temp=substr(sbtemp,0,strlen(sbtemp)-1);
buff=substr(temp,0,strstr(temp,";",0));
buff2=strright(temp,2);
stationsb.add(buff);
extratimeb.add(buff2);
}

Here i'm updating the list:
list1009 is the list what not refreshing automatically, push1004 is a push button to select between stationsa and stationsb. Stationsa is another string list with different elements.

if (push1004.checked) {
list1009.setitemslist(stationsb);
list1009.redraw;
}
else
{
list1009.setitemslist(stationsa);
list1009.redraw;
}

I also checked the stringlists' content with a simple alert() and the strings are seems to be ok. The problem is just with the redrawing / refreshing.

Re: Empty list after setitemlist()

PostPosted: Wed Nov 28, 2007 6:29 pm
by Percival
redraw() is a method.

Calling
Code: Select all
list1009.redraw();
should work.

PS Don't forget the brackets () !

Re: Empty list after setitemlist()

PostPosted: Thu Nov 29, 2007 7:53 am
by szternakb
Percival wrote:redraw() is a method.

Calling
Code: Select all
list1009.redraw();
should work.


Please believe, redraw() is not working in my case. I can send you the application...

Re: Empty list after setitemlist()

PostPosted: Thu Nov 29, 2007 11:34 am
by Percival
szternakb wrote:
Percival wrote:redraw() is a method.

Calling
Code: Select all
list1009.redraw();
should work.


Please believe, redraw() is not working in my case. I can send you the application...

Sure, I can try. Send it to percival [at] chello [dot] nl

Re: Empty list after setitemlist()

PostPosted: Thu Nov 29, 2007 11:51 am
by szternakb
Percival wrote:Sure, I can try. Send it to percival [at] chello [dot] nl


I just sent the email.

Re: Empty list after setitemlist()

PostPosted: Thu Nov 29, 2007 2:59 pm
by szternakb
Thanks for the help, Percival. Brackets were missing after redraw. After i use redraw() it worked well. It is interresting that both redraw and redraw() is working and doing something else...