Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

listing records in columns

Featured Replies

I would like to be able to format my results pages so that the first 30 found records will appear in one column and the second 30 (if any appear in the second column. I will max my results to 60 so that only 2 columns are requried...

Any help is appreciated

Thanks

You can set your "Layout setup" to print in multiple columns, and hove the option of printing "across then down", or "down the columns"

Hal asked his question in the XSLT forum, so probably he is looking for a CWP solution ... and Mark's answer will not help here.

I see three possible "Ansätze":

1) You have the XML result tree, but if there are more than 30 records, are willing to neglect it and to reload it in two chunks. Depends on the size of your XML tree if you can do that. That's the cheapest in terms of programming and can be done in one page, but is not very efficient.

2) = variant of 1) You neglect in the first instance to determine the full XML result tree, but just get the number of records that would be returned. Then you get the results in one (<=30) or two chunks (>30). Can be done in one or two pages.

3) You have the XML result tree, but are not willing to neglect it. Difficult, because there are no numbered loops in XSLT and you have to resort to recursive template calls to achieve something like numbered loops (also in two junks). Most complicated, can be done in one page.

You will see later different implementations - GTG now.

Solution 1)


.

.











  .

  

  .

  

  

    

      

        

          

          

            

              

                

                  

                    

                  

                

              

              

        

        

        

          

            

              

              

               

             

          

          

             

               

               

               

             

          

          

          

          

          

          

          

            

              

                

                

                  

                

              

           

          

          

          

            

              

                

                  

                    

                   

                 

               

             

           

         

      

   

   .

   

   .



Caveat: There might be some typos. I did not test the solution. But you see the general outline.

Solution 2)

equal to solution 1 that you call with -max=0

Create an account or sign in to comment

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.