Jump to content


Photo
- - - - -

Setting up Screen modes via code?


3 replies to this topic

#1 Neil Hunter

Neil Hunter

    ProIV Guru

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

Posted 31 March 2014 - 06:27 AM

I'm busy with a new request where certain conditions mean users may add, change and delete records within a Paging screen. Under other conditions, they are only allowed to change records. Is the a command like @XCODE available whereby you can set what modes are allowed before entering the cycle? 

 

My other options are allowing all modes and stopping users based on said conditions with MSG's/UMSG's and FLD jumps or creating a mirror second cycle with the different modes. Both will work but aren't the greatest of solutions 



#2 kapoof

kapoof

    Member

  • Members
  • PipPip
  • 21 posts
  • Gender:Male

Posted 31 March 2014 - 12:50 PM

Hi Neil,

 

What you need to be setting is @VMODES (Must be set before the cycle is called)

 

eg:

 

@VMODES = 'ACL'

 

Allows the user Add, Change and Lookup Mode

 

Best Regards,

 

Rob.



#3 DARREN

DARREN

    ProIV Guru

  • Members
  • PipPipPipPipPip
  • 396 posts
  • Gender:Male
  • Location:Florida,USA

Posted 31 March 2014 - 01:37 PM

Please note that the values set for @VMODE remain in play until it is unset i.e. @VMODES = '' 

 

This is usually performed on the exit of the cycle the restriction has been implemented in.


Things should be made as simple as possible, but not simpler

#4 Neil Hunter

Neil Hunter

    ProIV Guru

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

Posted 31 March 2014 - 01:57 PM

Thanks guys, will give that a go





Reply to this topic



  


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users