Refresh window

Questions and answers on designing your Servoy solutions, database modelling and other 'how do I do this' that don't fit in any of the other categories

Refresh window

Postby Morley » Thu Nov 04, 2004 12:13 am

My solution has a "redline" feature -- the option to suspend a service. Suspended services are noted by having a red line drawn through the service's name. I generate that red line as a calculation returning a graphic. (If value = 1, show graphic, otherwise not).

When I type a 1 into the key field the redline instantly appears. But when I type a 0, it stays put. However, if I log out of Servoy and come right back in, the red line is gone. If this were FMP I'd run a "refresh window" command about now. According to Bob Cusick's list of FMP equivalents in Servoy there's no equivalent.

Am I indeed facing a screen refresh problem, or may there be something else at work here?

In case it matters the redline is on a tabpanel in listview.
Morley Chalmers
7Office Inc.
User avatar
Morley
 
Posts: 891
Joined: Fri Apr 25, 2003 4:54 pm
Location: Toronto, Canada

Postby pbakker » Thu Nov 04, 2004 10:09 am

Ain't there an application.updateUI(); command in the application node?

Paul
pbakker
 
Posts: 2822
Joined: Wed Oct 01, 2003 8:12 pm
Location: Amsterdam, the Netherlands

Postby IT2Be » Thu Nov 04, 2004 11:35 am

Paul's remark is correct but Morley, what does your calculation look like? Because it should work if entering a '1' works...
Marcel J.G. Trapman (IT2BE)
SAN partner - Freelance Java and Servoy
Servoy Components - IT2BE Plug-ins and Beans for Servoy
ServoyForge - Open Source Components for Servoy
User avatar
IT2Be
Servoy Expert
 
Posts: 4766
Joined: Tue Oct 14, 2003 7:09 pm
Location: Germany

Postby Morley » Thu Nov 04, 2004 4:28 pm

Solved it.
Code: Select all
if ( inactive_user == 1 )
{
   return univ$sec_to_graph.redline;
}
else
{
   return '';
}

My original code included only the positive part of the if statement, didn't provide for the contrary covered now by "return '';"

Thanks Marcel for prodding me in the right direction.
Morley Chalmers
7Office Inc.
User avatar
Morley
 
Posts: 891
Joined: Fri Apr 25, 2003 4:54 pm
Location: Toronto, Canada


Return to Programming with Servoy

Who is online

Users browsing this forum: No registered users and 37 guests

cron