January 28, 201213 yr 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
January 28, 201213 yr 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.
January 29, 201213 yr Author i thought i did examine the file BruceR. THanks, will continue trying harder but appreciate your time in explaining.
Create an account or sign in to comment