Jump to content


Click the link below to see the new game I'm developing!


Photo
- - - - -

Select All/Deselect All on a Paging section


4 replies to this topic

#1 Neil Hunter

Neil Hunter

    ProIV Guru

  • Members
  • PipPipPipPipPip
  • 420 posts
  • Gender:Male
  • Location:Johannesburg, South Africa

Posted 20 May 2011 - 09:36 AM

I've been messing around with an idea, but i'm not getting a result that I like. Anyone got any other ideas?

LS1
$Desc
$Dummy
LS2
@Seq
Category
Update 1
Build Temp file
Update 2
Mark as All selected
Update 3
Mark as None selected
Header section LS1 with a partial description, calling Update 1 to build a MKY file based on partial description and call LS2 using a WHILE loop. Paging Cycle LS2 is where users can select categories they want to view by checking or unchecking a checkbox. Iconsare used to call the other update cycles and LS2 gets executed

This methodology works but is cumbersome coding wise (if only REFRESH-PAGE worked anywhere ). This is on 6.2.40.0

Edited by Neil Hunter, 20 May 2011 - 09:37 AM.


#2 Lewis Mccabe

Lewis Mccabe

    ProIV Guru

  • Members
  • PipPipPipPipPip
  • 455 posts
  • Gender:Male
  • Location:Sarasota, Florida

Posted 20 May 2011 - 06:24 PM

Neil,

We do this all the time - unfortunately within the confines of no page refresh. We put a field before and after the paging screen to handle this but then we break the rules for active paging (such is life). Upon button click we run the appropriate update, set a flag and do LSEXIT from paging. The flag tells the field after paging cycle to return back into paging cycle. Not too much of a maint issue. Pretty clean and quite maintainable.

Lew



#3 Lewis Mccabe

Lewis Mccabe

    ProIV Guru

  • Members
  • PipPipPipPipPip
  • 455 posts
  • Gender:Male
  • Location:Sarasota, Florida

Posted 21 May 2011 - 08:07 AM

Wouldn't it be nice if RefreshPage worked everywhere.

#4 Steve Houghton

Steve Houghton

    Advanced

  • Validating
  • PipPipPip
  • 52 posts
  • Gender:Male
  • Location:United Kingdom

Posted 21 May 2011 - 10:00 AM

Hi Neil

I have many functions like this too but I would put the display cycle inside a tabbed screen so you get a clean screen refresh from an lsexit command.

I have options to select all and select none too and call update cycles and then an lsexit will cause the tabbed screen to redisplay. It's nice and simple code. Works ok on 5.5 and 6.2.

Regards

Steve

#5 Neil Hunter

Neil Hunter

    ProIV Guru

  • Members
  • PipPipPipPipPip
  • 420 posts
  • Gender:Male
  • Location:Johannesburg, South Africa

Posted 23 May 2011 - 06:45 AM

Neil,

We do this all the time - unfortunately within the confines of no page refresh. We put a field before and after the paging screen to handle this but then we break the rules for active paging (such is life). Upon button click we run the appropriate update, set a flag and do LSEXIT from paging. The flag tells the field after paging cycle to return back into paging cycle. Not too much of a maint issue. Pretty clean and quite maintainable.

Lew



Thanks for this Lew! Much cleaner than what I had. It is a pity that RefreshPage doesn't work for cases like this



Reply to this topic



  


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

Click the link below to see the new game I'm developing!