How To Filter Batch According To User.

nrapendra
nrapendra Member Posts: 208
HI,

I WANT TO FILTER BATCH IN ITEM GEN. ENTARY ACCORDING TO USER.
THER ARE 5 BATCHES AND I WANT TO SET A SECURITY THAT ONE BATCH SHOULD BE VISIBLE TO ONLY ONE USER WHICH IS GIVEN PERMISSION TO HIM.
Nrapendra Singh
(Sr. Tech. Consultant)
Dataman Computer Systems (P) Ltd.
web :www.datamannet.com
mail :nrapendra@datamannet.com

Comments

  • remco_rausch
    remco_rausch Member Posts: 68
    imo the best way would be to add a field to the user setup card and specifiy a batch code for each user, then add a filter to the form you want filtered. i.e

    usersetup.get(userid);
    usersetup.testfield("batch code");
    setrange("batch","usersetup."batch code");
  • Ate
    Ate Member Posts: 2
    If besides you want that the user could not remove this filter do the following thing:

    usersetup.get(userid);
    usersetup.testfield("batch code");
    FILTERGROUP(2);
    setrange("batch","usersetup."batch code");
    FILTERGROUP(0);