Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Read only

Status
Not open for further replies.

vbajock

Programmer
Jun 8, 2001
1,921
US
Is there any way to change a Macola screen field to read only ? Specifically, I want to display the barcode in IM, but I don't want any and all users to be able to change it.
 
I would use a piece of flex.

myfield.enabled = false

Put this code into the folders of the people that should not be able to modify the field.

Be careful not to disable fields that are required by Macola. This will work fine for a user defined field that you add to the form.

Andy

Andy Baldwin
 
Actually the screen designer is the place for this. Get in screen design mode and right click the UPC field and select properties. Then click the "user can disable" checkbox. Right click the field again and disable it. This has the effect of graying out the field so you can see the value, but not modify it.

Then copy this modified screen to everyone who you do not want to have the ability to maintain the data in this field. If there is someone there that is trusted with this function, you can leave the default screen for him/her.

We do this all the time on Order entry screens where you do not want the order entry person to modify the terms codes, tax codes, etc.

Software Sales, Training, Implementation and Support for Exact Macola, eSynergy, and Crystal Reports
dgilsdorf@trianglepartners.com
 
dgillz has a better answer just remember that if you write any flex to populate this field that you will have to .enable it before you can get to it.

Andy

Andy Baldwin
 
Thanks dgillz. I was trying to figure out how to do it in the designer and did not realize it was a two step process.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top