thierry.be Posted April 1, 2003 Posted April 1, 2003 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
Pupiweb Posted April 1, 2003 Posted April 1, 2003 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("")
Kurt Knippel Posted April 1, 2003 Posted April 1, 2003 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.
Recommended Posts
This topic is 7908 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now