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()

Empty list after setitemlist()

Discuss OrbForms Designer and PocketC Architect

Empty list after setitemlist()

Postby szternakb on Wed Nov 28, 2007 12:41 pm

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
szternakb
 
Posts: 6
Joined: Fri Sep 23, 2005 6:17 am
Location: Hungary

Re: Empty list after setitemlist()

Postby Percival on Wed Nov 28, 2007 1:16 pm

Try list.redraw() after setting the items.
Percival
 
Posts: 45
Joined: Sat Jul 19, 2003 10:31 am
Location: Netherlands

Re: Empty list after setitemlist()

Postby szternakb on Wed Nov 28, 2007 1:29 pm

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.
szternakb
 
Posts: 6
Joined: Fri Sep 23, 2005 6:17 am
Location: Hungary

Re: Empty list after setitemlist()

Postby Percival on Wed Nov 28, 2007 1:38 pm

Ohw.. sorry about that.

That is weird.. are you sure you redrawed the correct list?
Can you post the source code?
Percival
 
Posts: 45
Joined: Sat Jul 19, 2003 10:31 am
Location: Netherlands

Re: Empty list after setitemlist()

Postby szternakb on Wed Nov 28, 2007 2:06 pm

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.
szternakb
 
Posts: 6
Joined: Fri Sep 23, 2005 6:17 am
Location: Hungary

Re: Empty list after setitemlist()

Postby Percival on Wed Nov 28, 2007 6:29 pm

redraw() is a method.

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

PS Don't forget the brackets () !
Last edited by Percival on Thu Nov 29, 2007 1:44 pm, edited 1 time in total.
Percival
 
Posts: 45
Joined: Sat Jul 19, 2003 10:31 am
Location: Netherlands

Re: Empty list after setitemlist()

Postby szternakb on Thu Nov 29, 2007 7:53 am

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...
szternakb
 
Posts: 6
Joined: Fri Sep 23, 2005 6:17 am
Location: Hungary

Re: Empty list after setitemlist()

Postby Percival on Thu Nov 29, 2007 11:34 am

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
Percival
 
Posts: 45
Joined: Sat Jul 19, 2003 10:31 am
Location: Netherlands

Re: Empty list after setitemlist()

Postby szternakb on Thu Nov 29, 2007 11:51 am

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


I just sent the email.
szternakb
 
Posts: 6
Joined: Fri Sep 23, 2005 6:17 am
Location: Hungary

Re: Empty list after setitemlist()

Postby szternakb on Thu Nov 29, 2007 2:59 pm

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...
szternakb
 
Posts: 6
Joined: Fri Sep 23, 2005 6:17 am
Location: Hungary


Return to OrbForms Designer and PocketC Architect

Who is online

Users browsing this forum: No registered users and 3 guests

cron