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

User login

Frontpage Sponsor


Google search

For ERP LN feature pack upgrade, what method of install are you using?
Installation Wizard into existing VRC
Installation Wizard into new VRC
Manual into existing VRC
Manual into new VRC
Total votes: 38

Baanboard at LinkedIn

Reference Content

Thread Tools Display Modes
Old 3rd July 2002, 16:12
Haggis's Avatar
Haggis Haggis is offline
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


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.

Reply With Quote
Old 3rd July 2002, 16: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:
   if tixxx999.atrcode(attr.element) = readonly.code then
    attr.input = false
Global variable attr.element stores element number (current array index) for repeating fields used on form.
Best regards
Grzegorz .
Reply With Quote
Old 3rd July 2002, 17:19
FransG's Avatar
FransG FransG is offline
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("<>") to have a field inaccessable (read-only).
enable.fields("<>") to have a field accessable.

You're also addressing multiple occurrences. So, it might look like this:
       if attribute.code = <number> then
                |* Read only.
                disable.fields("attribute.response", actual.occ)
                |* Read/write access.
                enable.fields("attribute.response", actual.occ)
Hope this helps.
Reply With Quote
Sponsored Links
Old 3rd July 2002, 17:25
Haggis's Avatar
Haggis Haggis is offline
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.

Reply With Quote

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 18:46
Problems with Display form field pjohns Tools Development 3 16th October 2002 15:37
Mandatory field at form level BaanTech Tools Development 3 20th September 2002 17:14
Taking the cursor to a form field manusatsangi Tools Development 8 28th August 2002 09:00
Herstellkostenberechnung in BaaN 4c Kai's Forum Users Deutsches Forum 4 5th July 1999 01:00

All times are GMT +2. The time now is 16:57.

©2001-2017 - -