I can't save data in table in PgAdmin - postgresql

I am trying to add data manually to my table customers in PgAdmin and then I would like to click the save button and save them in the table.
The problem is that the save button is unclickable.
Here are the screenshots:
I only manage to save these two rows by exiting this window and when the prompt says if I would like to save the data I click yes and it saves it but I would like to save them by clicking on the save button in this window.
How can I do that?
Thank you for your help.

Perhaps you didn't want to save them to a new file Save File (accesskey + S), but you wanted to save the changes you made on that file. What you want is to click Save Data Changes (F6) instead.

Related

Using CloudKit console to add image data to a record

I am trying to set up a small CloudKit database using the console app to use during development of my app. The database has just a few records with only two fields each: a string as a name and an asset which is supposed to refer to an image. When adding a new record I click in the image field the console lets me pick a file, say "DSC_0175.jpeg" and "DSC_0175.jpeg (2823.05KB) ready to upload" appears in the field. (I get the same if I drag and drop the image file into the field.) However when I click Save, I get an error message at the bottom of the record panel saying "Load failed" and while the record gets saved with its name field, the image field is empty in the resulting record. Any suggestions for what I'm doing wrong.

sap.m.UploadCollection shows the temporary upload item just for the first upload

I used sap.m.UploadCollection to upload some files. Everything works well except one temporary item that is shown for the first item that I try to upload.
As soon as I upload one file it will not shown anymore for the second file until I refresh the page. When I refresh the page and try to upload the next file it will shown again just one time.
It seems I could have to clean some history of the control but I don't know what I have to do after successful upload to make it visible for the next time that I try to upload a file.
Here is a picture on the upload indicator that I speak about.
If you set the uploadUrl in your sap.m.UploadCollection.onChange event, you have to set it to null in your sap.m.UploadCollection.onUploadComplete event.
onUploadComplete: function(oEvent) {
var oUploadCollection = oEvent.getSource();
oUploadCollection.setUploadUrl(null);
}

how to save data after closing view

In a view I have a tree viewer. I set data in tree viewer. Now, I close application. Again I run application, Now again I have to set the data from beginning. I want that My data will saved, it will not vanished.
You can use preferences.Copy your data in preferences, and while loading the tree view again get your data from preferences again.
refer this http://www.vogella.com/tutorials/EclipsePreferences/article.html

Updating a view from a command handler

I have a file dialogue opening from the menu where a user can select a file. The FileDialog is called from the menu command's handler class in execute().
Based on the file the user selected, I would like to update a view, for which (I believe) I'd need the same Composite element that's passed to the view in createPartControl().
Is it possible to get access to it from the command handler, or would it be better to trigger the view updating via something like ISourceProviderListener or PropertyChangeListener?
Thank you.
Yes, it's possible:
IViewPart part = HandlerUtil.getActiveWorkbenchWindow(executionEvent).getActivePage()
.findView(viewId);
It would be better to first update the data that your view is displaying (the model in MVC) and the change in data should trigger view refresh. It's hard to say which listener is better without knowing all the details.

Why won't Perl/Tk wipe my spreadsheet?

[cross posted again to Mahalo answers]
My Perl/Tk script has an initial spreadsheet like grid displayed using the Tk::TableMatrix::Spreadsheet modules. My spreadsheet is programatically called $ss. This initial grid is wiped before the display of the first spreadsheet, with
$ss->pack('forget');
The script as it is now also adds $mw-> pack('forget');, but that's not necessary.
My question is how to open a second file from the File -> Open dialog box and it wipe out the first file displayed, just like the first file wipes out the initial grid? Right now the second file shows up as a complete new frame underneath the still displayed first spreadsheet.
Thanks for the help in advance.
"pack('forget')" merely removes a widget from view. It doesn't delete it, nor does it do anything with the data displayed within it. If you fail to destroy the widget you will have, in effect, a big memory leak as you create more and more spreadsheet widgets.
The quickest solution to your problem is to destroy the old widget (using the destroy method) and recreate it with the new data. Another solution is to keep the widget but use deleteRows() to remove all the existing data before inserting the data for the new file.