Skip to Content
Author's profile photo Craig Cmehil

BSP / HowTo: tableView Iterator – Column Header Graphics

A while back in the Business Server Pages (BSP) forum we talked about adding a Modifiying Column in ITERATOR to include image? to a columnDefinition for a tableView Iterator. We never could get it to work, well I just managed to do it. Now unfortunately I don’t know if something was changed regarding this in SP43 or not as I had SP42 when we talked about it.

So I will now take you through the process step by step and hopefully you’ll find it useful. First for a bit of history and background please read this topic in the BSP forum.

Modifiying Column in ITERATOR to include image?

With that I will begin, as you can see from the thread we just could not get this to work. And we had it on the word of the experts, Steffen Knoeller and Brian McKellar !|src=|border=0!, well to be honest it wasn’t good enough. I knew there had to be a way (now again perhaps that was SP43) but until someone tells me otherwise I’m going to feel good about myself.

And off we go….

First create your Interator class. Not sure how, then please see BSP Programming: HTMLB TableView Iterator. Then in the method

Not such a huge difference but it was something we overlooked. As an added bonus, if you click the image the event handlers fire and the page is reloaded image !!

Now as I mentioned two guys from SAP I don’t want anyone thinking that I’m blaming, accusing or saying something negative. As I said at the time, we could not get this to work, however, now it’s possible and it’s a good possiblitiy that it’s because of the newest SP 43 updates. However, I won’t know until someone with a lower SP than 43 actually tries it and let’s me know, or someone from SAP reads this and tells us.

Updated November 2004

Well I’ve upgraded to SP45 and now I get nothing but errors with this solution !|height=17|alt=image|width=17|src=|border=0!

Assigned Tags

      You must be Logged on to comment or reply to a post.
      Author's profile photo Thomas Jung
      Thomas Jung
      I tried this example in our SP42 system and it works here as well.
      Author's profile photo Former Member
      Former Member
      Hmmm, then I think we have a winner!!!! Thanks Thomas!
      Author's profile photo Brian McKellar
      Brian McKellar
      Hi Craig,

      Sometimes there are loopholes that we cannot talk about (or have forgotten;). Of course, we will not prevent someone skilled in the art of finding a solution! (And in addition earning some nice SDN points for an interesting weblog.)

      One minor comment: it is in the nature of loopholes that they sometimes close with time. This one has been on the radar a long time. However, realistically speaking, (probably) we will just live with it. We just cannot guarantee it. Enjoy!

      bye, brian

      Author's profile photo Former Member
      Former Member
      Hmph! I was wondering if that might be the case on this, just needed you back for awhile to take a look 🙂

      I'll keep this in mind.

      But you know SAP actually adding a field to columnDefinitions for this purpose would not be all bad either 😉

      Author's profile photo Brian McKellar
      Brian McKellar
      We took the hint! But the queue is long and the priority not high enough. Maybe one day.