Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 7908 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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

Posted

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

Posted

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.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.