Questions tagged [edit]

to modify (a computer file) by, for example, deleting, inserting, moving, or copying text.

Edit can be done as part of coding or changing configuration files.

The tool which is used for editing is called an Editor. Common editors include vi, emacs etc.

3207 questions
3
votes
2 answers

DetailsView Won't Go Into Edit Mode

I can't seem to get my details view to enter edit mode. I am programatically binding the data source. When the item command is "edit" I change the mode to "edit" and rebind the datasource. I checked after the control databound and it's still in edit…
Will
  • 989
  • 4
  • 19
  • 33
3
votes
2 answers

How can I save ISPF Edit labels?

When working in a large, or semi-large program under ISPF Edit I will define Edit labels to help me navigate around the source. These are great and do help but when I exit Edit the labels cease to exist and I have to recreate them the next time I…
Lionel B Dyck
  • 552
  • 2
  • 9
3
votes
6 answers

Moving between lines in VIM

Let's say I have a file with N lines. I'm at line X and I'd like to move to line Y, where both X and Y are visible on screen. I can do that by typing :Y, but if Y>99 that's a lot of typing. I can also do abs(Y-X)[kj] (move up or down by…
pbp
  • 1,461
  • 17
  • 28
3
votes
2 answers

What's the way to access the assets-folder in an Android project?

I access to an XML file placed in a project folder (for instance 'assets') for open and read data from file. DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance(); DocumentBuilder docBuilder =…
Richad Lozano
  • 33
  • 2
  • 5
3
votes
2 answers

How to update an Object in play framework?

How do I edit an existing object in the database? For example, if I have a model like this: class Topic{title,content,author}, when I edit and save the object I do not want to add the "author" object again. How do I update my existing object…
WoooHaaaa
  • 19,732
  • 32
  • 90
  • 138
3
votes
3 answers

Get Text from an Edit Control (Pure Win32 API)

I've been trying to get this to work for like ages but with no avail (sad face). int iChars = GetWindowTextLength (GetDlgItem(handle,ID))+1; // Room for '\0' char* pstrText; pstrText = (char*) malloc (sizeof(char)*iChars); if (pstrText != NULL) { …
Christian
  • 1,492
  • 3
  • 16
  • 19
3
votes
1 answer

property "onCellEditCommit" doesn't work

I'm using the DataGrid component of Material-UI for displaying a list of items. I want to make each cell in every row editable and then change the corresponding item of that row. for that purpose, I'm using the onCellEditCommit property provided on…
Idan Krupnik
  • 443
  • 1
  • 6
  • 8
3
votes
1 answer

League\Flysystem\Filesystem::delete(): Argument #1 ($location) must be of type string, null given, called in

i can't edit photo php version 8.1.4 laravel 9.14.1 update function : public function update(Request $request, Category $category) { $request->validate([ 'name' => 'required', 'description' => 'required' ]); $image =…
user18366304
3
votes
1 answer

PDF - Edit raw text without special paid tool

Is there a way to edit the raw text from a PDF without any special paid software? So there are PDFs with highlightable text. I assume that the text is stored somewhere in the file. I tried to just drag & drop a PDF into vscode but it just showed me…
Ljonja
  • 197
  • 9
3
votes
1 answer

How to build "edit" button in JSF and switch between h:outputText and h:inputText

How can I create an "edit" button so that when the button is clicked it will change the h:outputText to h:inputText?
akub
  • 99
  • 2
  • 10
3
votes
5 answers

how to show a django ModelForm field as uneditable

taking my initial lessons with django ModelForm ,I wanted to give the user ,ability to edit an entry in a blog.The BlogEntry has a date,postedTime, title and content.I want to show the user an editform which shows all these fields,but with only…
markjason72
  • 1,653
  • 8
  • 27
  • 47
3
votes
2 answers

MVC 3 Remote Validation, problem with duplicate check in Edit view

I am using remote validation to make sure that the email and username fields in a user class stop a user from entering a username and/or email that already exists within the database. This works fine on the create view, however the obvious problem I…
DevDave
  • 6,700
  • 12
  • 65
  • 99
3
votes
1 answer

Discord.JS Add a button to a message without replacing the previous one

I want to add another button to an existing message (send by the bot) I tried: // const... log in... .... let msg = await interaction.channel.fetchMessage(interaction.options.get('message-id')) if(!msg || msg?.author?.id !== client.user.id) return…
Kodeur_Kubik
  • 140
  • 1
  • 11
3
votes
1 answer

How to edit and use a python package containing an .so file

I have installed a Python package as usual using pip install package_name. It contains the main/most relevant file in the form of .so extension. I want to MODIFY it and use it for my work. Is it even possible to do it. Is there a…
Peedaruos
  • 61
  • 7
3
votes
0 answers

How to open PDF on android using Intent to edit file?

I'm trying to use Intent on my Android app to open PDF file in another third party app (e.g. adobe reader, etc..) using the code below. I'm able to successfully open the pdf file and edit its contents but when I exit the pdf app it generates…
Ali Nato
  • 61
  • 3