1,645 questions
3 votes
1 answer
123 views
Set rows to read-only
I have an application with the following requirements: Before a predefined event (in my application) occurs, I need to update and insert rows in different tables. After the event, certain rows in ...
1 vote
0 answers
58 views
How to make a specific column readonly in tabulator?
I am using tabulator grid (https://tabulator.info/) version no 6.3. I have integrated that it into my project and now i want to make student id column as readonly so that user cant edit it. How to ...
0 votes
0 answers
82 views
In the nim-lang, I want to pass a ref to a read-only tree structure to the spawn'ed nim-taskpool
Sorry for the long message, but I was wondering if you could give me some advice. What I want to achieve is to handle tree-structured data in the nim language using tasks with the nim-taskpool package....
0 votes
1 answer
100 views
Why is read-only cache good for scattered reads?
The book "Professional CUDA C Programming" says: Constant cache performs better on uniform reads (where every thread in a warp accesses the same address). Read-only cache is better for ...
-3 votes
1 answer
130 views
Make a deep copy of an object in C# with private readonly variables and objects
This is a follow up question to my previous one, Make a deep copy of an object inside a ConcurrentDictionary in C#. I want to clone my Patient object so that the object PatientCovariates is the same ...
-3 votes
2 answers
155 views
It is impossible to implement an immutable struct type [closed]
class string is immutable. It is impossible implementing an immutable struct type as you can't disable or override assignment operation (=). Even you define a readonly struct, you can always change ...
0 votes
1 answer
177 views
How to make two related fields have different readonly behavior depending on state in odoo 18?
I have these related fields qty_request = fields.Float('Qty Request') product_qty = fields.Float('Product Quantity', digits = 'Product Unit of Measure', ...
1 vote
0 answers
169 views
How to make a read-only Jupyter Notebook file writable in PyCharm?
I am struggling to edit a jupyter notebook file in pycharm. When the 'clear read-only status' dialouge box appears, I try to make it writable by using the file system option, but in vain. I am also ...
3 votes
3 answers
1k views
What does a readonly method on a struct do?
Visual Studio is suggesting for me to make methods on a struct readonly, what does that mean? I thought only fields could be readonly, not methods. public struct MyStruct { ... // I have ...
0 votes
1 answer
42 views
Django + Crispy form - Readonly field for specific usergroup/user without Javascript : possible?
I know how to set a field readonly using the helper, but I'd like to disable values changes for specific users. The only way I found consists in adding a condition in the the form taking in account ...
1 vote
1 answer
2k views
How can I set all form fields readonly in Odoo 17 depending on a field?
In odoo 17, I want the formview to only view and not edit based on the value of the field order_payment_state = done. Instead of adding the readonly attribute to each field, I want to write a python ...
0 votes
1 answer
320 views
How to toggle Tagify Inputs Between Editable and Non-Editable Modes
I know there are examples, but I don't seem to be smart enough to figure out what to do. I'm working on a JavaScript application where users can create notes with tags. I'm using the Tagify library to ...
1 vote
0 answers
88 views
Error Popping up when saving read only file as save as
I need to have a read only Word macro File that makes the user save it first as what ever they choose the name to be as long as it doesn't override the read only file. It also doesn't matter if the ...
0 votes
1 answer
414 views
Run Nextjs from a read only folder, store cache data elsewhere?
I'm trying to run a nextjs website to an Azure Linux app service in Read-only mode. It's working properly but nextjs tries to write to (web root)/.next folder (/home/site/wwwroot) to refresh the ...
0 votes
1 answer
53 views
Problem sending data with select and hidden input
I'm having a problem with my code where there's a select that's 'disabled' and it doesn't send the data to the next page. I've tried using hidden input but it didn't work. This is the part where the ...