Baanboard.com

Go Back   Baanboard.com > Forum > Baan Quick Support: Functional & Technical > Tools Development

User login

Frontpage Sponsor

Main

Poll
For ERP LN feature pack upgrade, what method of install are you using?
Installation Wizard into existing VRC
35%
Installation Wizard into new VRC
42%
Manual into existing VRC
3%
Manual into new VRC
19%
Total votes: 31

Baanboard at LinkedIn


Reference Content

Reply
 
Thread Tools Display Modes
  #1  
Old 3rd July 2002, 15:12
Haggis's Avatar
Haggis Haggis is offline
Member
 
Join Date: Oct 2001
Location: London UK
Posts: 70
Haggis is on a distinguished road
Baan: Baan 5b - DB: AS 400 - OS: Windows NT
Unhappy full access to a field on a Read only form

Afternoon

I have a session that uses a form to display data from a table. The table contains 3 main field. The first being an Item number. The second being an attribute code and the third being the attribute response. The form then displays the item number followed by 30 instances of the attribute code and its description. So it is in effect repeating the field for attribute code and response 30 times. We have a user that deals with certain attributes and needs to be able to modify them. However they should not be allowed to alter anything else. Is it possible to thus make the attribute response field Read only in instances where the Attribute code is a certain number and Read Write access where the attribute code is something else?

If each Attribute code had its own field I would be able to do it but as it repeats the field for each attribute I am a bit stuck.

Hope I made sense there with that explanation.

Thanks
Haggis
Reply With Quote
Sponsored Links
  #2  
Old 3rd July 2002, 15:25
grzegorz grzegorz is offline
Senior Member
 
Join Date: Sep 2001
Location: Zabrze, Poland
Posts: 155
grzegorz is on a distinguished road
Baan: BaaN IV c4, Baan5c, ERP LN (at last) - DB: Tbase, Oracle - OS: SCO, SUSE, AIX. W2K3
I dont know if I understand you, so correct me if im wrong.

Are attribute code and attrribute description defined as repeating fields in your table? If yes, you can write something like this:
Code:
field.tixxx999.attrresponse:
  before.input:
   if tixxx999.atrcode(attr.element) = readonly.code then
    attr.input = false
  endif
Global variable attr.element stores element number (current array index) for repeating fields used on form.
__________________
Best regards
Grzegorz .
Reply With Quote
  #3  
Old 3rd July 2002, 16:19
FransG's Avatar
FransG FransG is offline
Member
 
Join Date: May 2002
Posts: 67
FransG is on a distinguished road
Baan: BaanERP - DB: Oracle - OS: Unix
If you are using BaanERP then you should use the following commands:

disable.fields("<field.name>") to have a field inaccessable (read-only).
enable.fields("<field.name>") to have a field accessable.

You're also addressing multiple occurrences. So, it might look like this:
Code:
before.display.object:
       if attribute.code = <number> then
                |* Read only.
                disable.fields("attribute.response", actual.occ)
       else
                |* Read/write access.
                enable.fields("attribute.response", actual.occ)
       endif
Hope this helps.
__________________
Regards,
Frans
Reply With Quote
  #4  
Old 3rd July 2002, 16:25
Haggis's Avatar
Haggis Haggis is offline
Member
 
Join Date: Oct 2001
Location: London UK
Posts: 70
Haggis is on a distinguished road
Baan: Baan 5b - DB: AS 400 - OS: Windows NT
Thanks for the reply Fransg and Grzegorz

I think your solution Fransg should do the trick.

Cheers
Haggis
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Setting Form Field mostrightfuture Tools Development 5 11th June 2004 17:46
Problems with Display form field pjohns Tools Development 3 16th October 2002 14:37
Mandatory field at form level BaanTech Tools Development 3 20th September 2002 16:14
Taking the cursor to a form field manusatsangi Tools Development 8 28th August 2002 08:00
Herstellkostenberechnung in BaaN 4c Kai's Forum Users Deutsches Forum 4 5th July 1999 00:00


All times are GMT +2. The time now is 15:56.


©2001-2017 - Baanboard.com - Baanforums.com