On pgAdmin under table view/edit data why can't I type data directly into row? - pgadmin-4

I created a user table and made UserID column the primary key but when I go to the table then click view/edit data all rows it has no way to type info directly into row.
I expected to be able to go and type the information into row then be able to save it to refresh table. I was following a tutorial from Codemy on Youtube where he does it this way.

I figured out what I was doing wrong. I needed to click 2-3 times on item I wanted to edit and a box pops up to type in the information I want to add. Then I just go to Save Data Changes (F6) and it saves it into it.

Related

Update multiple hyperlinks at once in Microsoft Access

I have thousands of rows in my Microsoft Access DB and I would like to update all values in the column "Documento_Digitalizado". Values in this column are raw text that must be updated to be an hyperlink.
(The hyperlink direction has to be the text value of the cell)
This is my Access DB
This is the way to update them one by one.
First save a copy of your table just in case!
Create a query to up-date your original table Documento_Digitalizado column to show FULL file path if it does not already show it.
Then open your original table in design mode.
Change field type of Documento_Digitalizado from text to hyperlink
save, close.
To bulk edit hyperlink fields change date type from hyperlink to text, create and run query to amend file location, change field data type back to hyperlink
I had to change drive letter in hyperlink. Changed table column to long text from hyperlink and saved. Exported to Excel. Dropped existing rows from table. Bulk changed the drive letter in Excel. Loaded to now empty table. Changed table column to hyperlink.
300 rows of reference document links, 3 minutes to fix.

How to store values from a field on excel

this is the first time posting here for me.
I have a quick question about excel. Currently I have an input page where I can input a project name and then fill out details on the project. Is there a way that I can store this information on another sheet? For example, if I type in "Project A" in the project input, then that will be saved in another sheet in a table or something, and the proceeding information (like date, price, etc) will be saved along with it. Then, if I type a new project name in, like "Project B", a new entry will be created with subsequent data.
Thank you!
The ancient Excel data form seems to still exist, even in Excel 2013.
Create a data table with headings and at least one row of data. Select the range and hit Ctrl-T or Insert > Table. This will turn the range into an Excel table.
Now either create a custom group on a ribbon and add the following command to this or your Quick Access Toolbar: All Commands > Form...
Select a cell in the table and hit the Form button that you just inserted into the QAT or the ribbon and you will see a dialog where you can create new rows in the table, and you see a few other buttons to manage data in the table, including deleting rows and searching data in existing rows.
That is the easiest no-code approach.

How to populate a text item from Oracle table using Oracle forms (Middleware) 11gR2

I am using Oracle with Oracle Forms builder (Middleware) both 11gR2. I am creating a system for purchasing records. I have the following 2 tables.
(a) product (master) : prodid(PK), prodname ...... etc.
(b) purchase (detail) : prodid(FK), quantity, ...... etc.
My plan: All the product details will be in the product table. purchase table will be used only to input purchase information. This table can't input any new product. If any new name, that info will have to be input into product table first. This way I can reduce duplicate names.
Now I am having difficulties relating to prodname (name of the product) column in the form.
I created forms using the purchase table only. This table does not have the prodname (because I put this field in product table) column. But during data entry, they need to see the product name !
So I created text item (tabular, database - no). Then I created LOV, attached to text item, input the prodid in prodid field in the form. LOV part is fine.
I run the form. click the text item, LOV appears, select a name, click OK. product name, product id, etc. appears in their fields as it should be. LOV is working fine. Now I can only input data but having difficulties updating. I mean if I input a name (LOV) in the text item, press execute query, shows records from the database but names in the text item disappear. Since the name is not here, it's not comfortable to update.
I think LOV is not the good idea here. May be I need to use PL/SQL in a trigger somewhere.
But I could not figure it out. I searched google but no luck. Is there anyone who can give me any idea or some example code/trigger please.
Since the product name is an non-database item, when execute query runs, the field is cleared and since no column is assigned to that field, it doesn't repopulate.
The usual way to populate this field is to have a function which returns the product name based on the id that is pressed and call the funtion in POST-QUERY trigger.
Basically it's a pretty simple task but I was having difficulties due to the lack of my experience. However, what I have done is -
create the text item (name : product_name) in the canvas
set properties for the product_name (database : No, .... etc as needed).
Create a block level POST-QUERY trigger and write the PL/SQL block to populate the field. For example, I wrote the following.
BEGIN
SELECT prodname INTO :purchase.product_name
FROM product WHERE product.prodid = :purchase.prodid ;
END ;
That's it and when perform execute_query in the form, it will bring the product name from another table. - Query problem is solved.
Now create an LOV using product table to bring the product name and product id.
Associate this LOV to the product_name text item. So whenever you need to input information about a purchase, just use the LOV to populate the product name field. And then input the subsequent fields as well.
This way both of my issues (query and data entry) are resolved.
I did this according to the suggestions given by Sathya and a video (6 minutes) from the youtube at https://www.youtube.com/watch?v=0nqldnGt8KA.
Thanks to Sathya and youtube.

Adding an order for a customer selected from a list view in Access

I followed this great guide to help me add a search feature to my Access database:
http://www.techrepublic.com/blog/howdoi/how-do-i-populate-an-access-list-control-with-the-results-of-a-dynamic-search/108
At the end it says:
"If you’re building a quote or order, use the list control’s Click or Double Click event to copy record(s) to a temporary table. It’s easy to implement using a fixed query for each search task."
I have managed to display all search results in a list box and I would like to be able to click on a customer to highlight them, and then press a button to add an order to the selected customer. I've been thinking how I could do it and I really can't get my head around it.
Any help would be appreciated.
It depends on how you build your database. My guess is that one easy way would be:
Create a table with customers;
Create an "Order" table with orders where you link the customers through a foreign key
You load the customers in a listbox. While making the name visible, it is actually the ID that you retrieve when clicking the listbox. You can configure this via the wizard in the design view of a table. You can make other forms appear by events on the listbox (eg. on click).
If you managed to retrieve the ID of the customer, and you have the data related to the order (data that can easily be extracted from form objects and loaded into variables ) what you need is an insert statement and insert the values in the "Order" tabel (including the customer ID, which is linked through the foreign key).
This way all order records are linked to the customer and can be queried later.
Due to my limited knowledge on your other requests, I cannot help you any further on the rest of your database design.
I hope that my reply could help you and that I understood your question correctly.
You can access info from a listbox via:
List.Value
Or if it is not the first column then:
List.Column(0,0)
0 being the column and row references.
You may also consider using a listview over a listbox and then you can access the relevant parts of a listview control with the following code:
ListView.SelectedItem
Or if it is not the first column then:
ListView.SelectedItem.SubItems(3)
3 being the column reference

MS access 2007, Single form to multiple tables

i want to work on a form, here i will enter the data into text fields and this will be updated into a table as a new entry. Now out of the fields available iwant few of them to be stored into another table. so its like saving form data into multiple tables. I searched in many places but cudnt find any solution.
The best solution is to use a form and a subform. Table1 is bound to form and Table2 is bound to subform.
Thanks for the solution...i dont want to go for another form though...but i figured out a way..for the 2nd table i introduced a button and on click of the event wrote a vb code such that it will look for ID field of type autonumber(introduced for the sake of searching row) and used dlookup with a criteria expression to find out the row in 2nd table n used a insert statement...this worked...thanks for the response, appreciate it...

Resources