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

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

Recommended Posts

Posted

Hello Alll;

i was looking @ Comment's script for horizontal portals and just dont seem to understand what this is doing, Can someone please explain if you can?

thanks,

*this is setting variable in script

Name: $$group

Value =

Let ( [

groupSize = 5 ; //repeating number

group = $$group[Parent::ParentID] + Get (ScriptParameter) ; //set group = RepeatingParentID + (What parameter is)

limit = Div ( Count ( Child::ParentID ) - 1 ; groupSize ) //eg ( div ( 5 ) -1 ; 5 ) = -1

] ;

Max ( 0 ; Min ( group ; limit ) ) // Max ( 0; Min ?? What is going on here?

)

Repetition = Parent::ParentID

-i

Posted

List of child records ID values needs to be displayed or "paged" into groups of size groupSize. (5 in the example).

The global variable $$group[ Parent::ParentID] holds the group number ( 0; 1; 2; etc)

You can see what the script parameters are by:

>> actually examining the file <<

and looking at the parameters used on the arrow buttons that call the script.

Max ( 0; anyOtherValue ) returns 0 if anyOtherValue is negative.

Posted

i thought i did examine the file BruceR.

THanks, will continue trying harder but appreciate your time in explaining.

This topic is 4682 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.