April 1, 200322 yr Hi all , Question: I have a list view Each record in that list view has a portal in it. Each portal has 7 rows Each row in the portal has 5 fields all these field are radiobuttons (yes-no) and each record in the portal row has also 5 date fields On this radiobuttons I put a button (script ) containing the following (I have 5 of them): if field (portal::radiobutton) = "yes" set field (portal::radiobutton) = no set (field) (portal::date) = current date else set field (portal::radiobutton)no set field (portal::date) = "" No the script works just fine exept it always 'refreshes' the window. So it takes like 2 seconds. Is there a way to avoid this . So it becomes faster. hope you understand teh problem and someone can help me Thx, Thierry
April 1, 200322 yr Try addind a freeze Window step at the begininning of the script ... it shouldn't take that much so I'm wondering if you also have other fields in the layout that get recalculated because of the changes made by the script btw, I'd refine the script as follows if field (portal::radiobutton) = "yes" set field (portal::radiobutton) = no set (field) (portal::date) = current date else set field (portal::radiobutton)no <- this is pointless set field (portal::date) = "" <- make this DateToText("")
April 1, 200322 yr Actually the problem is that you will eventually HAVE to refresh the window, to show the new state of the radio button. I would simply avoid having a portal in every row of the list view. Show the results as a calculation of related fields or something else. If editing needs to be done, then goto a form view, so that only the edited record needs to be refreshed.
Create an account or sign in to comment