imoree Posted January 28, 2012 Posted January 28, 2012 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
bruceR Posted January 28, 2012 Posted January 28, 2012 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.
imoree Posted January 29, 2012 Author Posted January 29, 2012 i thought i did examine the file BruceR. THanks, will continue trying harder but appreciate your time in explaining.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now