Questions tagged [readonly]

Read-only is a generic concept that means "not writeable" - Please DO NOT USE THIS TAG. This tag is ambiguous and needs to be broken up.

This tag is ambiguous.

Please consider using (or creating) alternate tags for the specific use-cases of this term.

  • Read-only is a generic concept that means "not writeable"

  • readonly is a language keyword in C# that makes a member immutable.

  • readonly is an HTML attribute that makes input elements non-editable.

1624 questions
0
votes
4 answers

.Net How to make properties readonly when parent object is marked as readonly

So I have a problem in which I have an object that holds other objects that are loosely related to each other. I only want this object to be a sort of repository whereby variables can be read, but not altered if this object is used. This was my…
Lykeuhfox
  • 35
  • 1
  • 1
  • 6
0
votes
3 answers

How to set some field in model as readonly when a condition is met?

I have models like this: class Person has_many :phones ... end class Phone belongs_to :person end I want to forbid changing phones associated to person when some condition is met. Forbidden field is set to disabled in html form. When I added…
klew
  • 14,837
  • 7
  • 47
  • 59
0
votes
0 answers

fields are blank when flattenform is true

I'm using iTextSharp to create a pdf form. When I use flattenform and look at the pdf in Preview, the fields are blank. In Acrobat they're filled in. If I don't flattenform, I can see the values in Preview, but the form is editable. My question: how…
user948060
  • 953
  • 3
  • 12
  • 25
0
votes
1 answer

Amazon Snap shot Query

I had a snapshot in my amazon VPC account, which should not be deleted by any one. So is there any option in amazon for making the snapshot read only or not deleted by any one.
0
votes
2 answers

Copy to read-only folder using xcopy

Is it possible to copy files from a folder to another folder with read-only attribute enabled? I mean the destination folder is read-only. Thanks
mpakbaz
  • 486
  • 1
  • 6
  • 20
0
votes
5 answers

Issues with readonly and private methods

"Create a program named "DemoSquare" that initiates an array of 10 Square objects with sides that have values of 1 -10 and that displays the values for each square. The Square class contains fields for the area and the length of a side, and a…
wattry
  • 936
  • 10
  • 22
0
votes
1 answer

Xcode 5 readonly properties require instance variable

Apologies about the title of this question; it is always hard to sum up these things into a few words. I've noticed in Xcode 5 that if I create a @property as readonly I get compiler errors on my references to the instance variable in my code. For…
Lee Probert
  • 10,308
  • 8
  • 43
  • 70
0
votes
0 answers

c# FileStream read-only lock

I am having an issue where I am writing to a file at the same time other's are manually reading/writing to the file. I would like to lock the file so that all open instances become read-only once FileStream is called. FileStream fsFile = new…
Samantha
  • 81
  • 1
  • 1
  • 8
0
votes
1 answer

SQLAlchemy/Pyramid tutorial: attempt to write to readonly database

I am banging my head over this one. I have successfully completed the SQLAlcemy + URL Dispatch tutorial in the past. Now whatever I do, the attempts to write to the sqlite db file all fail, throwing: OperationalError: (OperationalError) attempt to…
RSAdmin
  • 419
  • 1
  • 6
  • 20
0
votes
3 answers

Global instance with readonly property

I want to implement a class whose instance is global but whose property is to be initialized only once during the run time. Also the initialization is to be done as an assignment from a result of function during execution. Basically I want to do…
nishantv
  • 643
  • 4
  • 9
  • 27
0
votes
2 answers

PDF XFA Form Read-Only with iTextSharp

I have finally, successfully, figured out how to fill a PDF with an XFA Form with my custom data using iTextSharp. The problem is that I've lost the code that I had that let me make the XFA read-only. I have made the horrible mistake of changing my…
Serj Sagan
  • 28,927
  • 17
  • 154
  • 183
0
votes
0 answers

C# Include "static" (undeletable/unalterable) text in text field (ComboBox/Textbox)

I have been trying to make a custom TextBox component that would allow me to include a static bit of text included in the TextBox's input field, and consequently, disallowing the user to alter it. I have figured out that I would have to…
peelz
  • 2,820
  • 2
  • 17
  • 16
0
votes
1 answer

Outputstream - create non editable pdf file

Below code is for writing pdf file; BaseFont bf = BaseFont.createFont(FONT, BaseFont.IDENTITY_H, BaseFont.EMBEDDED); FontSelector fs = new FontSelector(); fs.addFont(new Font(bf)); String fileName = filePath3 +…
chinna_82
  • 6,353
  • 17
  • 79
  • 134
0
votes
1 answer

Can you set certain cells to read only in an editable column for DataTables Editable?

I am working with jQuery plugin DataTables and its Editable plugin. I can set columns to be read-only via the parameter aoColumns: "aoColumns": [ null, {}, { …
Alex
  • 331
  • 2
  • 9
0
votes
2 answers

Open Word document with cursor disabled

Is there any way to create a word document where the cursor is invisible or disabled? After I save the document as read only, I want it to be opened like a pdf where even if a cursor is placed and typed, nothing is written on the document.
Regmi
  • 2,658
  • 4
  • 24
  • 32