DataGrip Unable to add new rows from the tool - datagrip

I am trying to add new rows through the UI. However, the add new row button is disabled for me. How do you enable the add new row button? Tried to use the shortcut command + N, but doesn't work for me.
Note: I tried to synch the schema, still doesn't work for me. Also, I am able to insert into the database by running scripts so there is no permission issue unless I need to explicitly let datagrip configure for inserts.
I also tried all the steps, still not able to insert:
Click Command + D to clone on the toolbar.
Right-click the table and select Add New Row from the context menu.
PressāŒ˜N.

Most of UI database need unique keys to enable insert / update / delete.
Look at also the source if it's a query non updatable.

Related

How do I create a report with edit for every row in oracle APEX?

everyone. I am working on a Oracle APEX application. I want to create a report with edit for every row. I followed that video https://www.youtube.com/watch?v=OqqcO1JKDdM but when I created the report strangely the "Edit-pencil" button opens a create form instead an edit. Does anyone have a clue what should I do to get the edit functionality? Thanks.
I looked many videos on youtube, but when I create a report like this: Create Page -> Report -> Report with Form -> and so on, I encounter the same problem - create form instead edit form.
... strangely the "Edit-pencil" button opens a create form instead an edit.
That's the same form (you use to create a new row and edit existing one). The only difference is the link you use; for editing, you have to go to IR's attributes and set which value you'll pass to the form (that would be the primary key, most probably).

Child Table Selections are Reset After "DialogOk" Event (Maximo - Jython Automation Script)

The Issue: We are running Maximo 7.6.1 or greater; I have a custom application (no java class customizations) that includes a custom dialog, and this dialog is used to update data in the app.
My application includes 4 main tables, where the selected row in table 1 filters table 2, the selected row in table 2 filters table 3, and so on... this allows the user to manage data that is structured in a basic hierarchy.
Based on the users settings in the dialog, rows are manipulated/added in the application, and the data is refreshed and saved when the user clicks ok.
The Problem: Although the data is updating correctly when the user clicks Ok and the dialog closes, all the table selections are reset... so whatever record the user was working on - although updated correctly - is no longer displayed. This seems to happen due to the "DialogOK" event being triggerd... however, without running this event, the data does not update in the UI.
How can I ensure Maximo does not reset the selections after the dialog closes and data is updated?
Alternatively, I actually found I was able to access the databeans for each of the tables within my Jython script, and was able to get the index of each currently selected row... How can I set the current row of each databean/table to it's previous value after the "DialogOk" event completes? This could be a solution to manually reset the selection.
Thanks!
Try something like this:
from psdi.common.context import UIContext
from psdi.webclient.system.controller \
import SessionContext, Utility, WebClientEvent
context = UIContext.getCurrentContext()
wcs = context.getWebClientSession()
control = wcs.findControl('name of table')
row = control.getCurrentRow()
#do stuff that breaks the row
control.setCurrentRow(row)
control.rowChanged()

Oracle Application Express empty edit page

I'm new to APEX. When I create pages in my app the edit pages that generate automatically work for some pages but not for others - they are blank except for the Create, Delete, Cancel buttons and the PK item (but that one's "Hidden"). There are no other items. I tried to add them manually but they don't connect to the respective rows - when I try to edit a row in the app it displays empty lines
Consequentially, I also can't delete any rows. I tried to compare everything in the settings of pages that have working edit pages but nothing worked
From my point of view, the simplest option is to create either
a form on a table with report whose wizard will create
an interactive report you'd use to view data; enable you to modify existing records using the "edit" icon at the beginning of each row; create new records using the Create button
a form used to modify and create new records
a tabular form (or an interactive grid) that enables you do do everything (insert, update delete) on the same page
If you create a form by yourself, you should create required processes which do different actions. I'm lazy to do it manually, so I always let the Wizard do the dirty job.
From your description, it seems that you created a form, included several items, possibly set them to be database items, but Apex doesn't know how to retrieve existing records (something like execute query in Oracle Forms). Therefore, try to use one of options I suggested and see how they behave.

How to disable a multi-row push button for all rows except the current one in Oracle Forms?

I have a form that returns multiple rows with a single push button that is displayed at the end of each row. The form allows a user to insert a new row at the end. Whilst a new row is being inserted, I do not want the users to be able to use the push button on any other row other than the current one they are inserting.
I have tried using SET_ITEM_PROPERTY and SET_ITEM_INSTANCE_PROPERTY to disable the other buttons however this just disables the button for all rows including the one I am inserting.
I'm still quite new to Oracle Forms so has anyone any ideas as to how I can solve this problem?
If it matters i'm using Forms 10G.
Thanks.

RDLC - Adding a Data Source in VS2010

Greetings.
I have an RDLC file and am wanting to add a data source to it, although without any luck so far. The data source is a custom class written by myself (just to add, we do this all the time). We recently converted over to the VS2010 RDLC format which caused some problems, but we've made some changes to our implementation that workaround the more major issues.
So, back to the issue at hand, when I attempt to add my data source to the DummyDataSource list in the RDLC view in VS2010 it just does nothing, however it does add the data source to the list of data sources, but you can't select it from the drop-down list in the RDLC view which means I can't add the data source at all.
Has anyone come across this problem? Is there anything I need to check? I've searched with fervour and had no luck.
There seems to be a bit of black magic going on here. Or at least I haven't figured out all of the incantation to make this happen reliably.
I think I was having a similar problem. Not sure if this will help you, but here's how I got around it.
In the VS2010 report designer, use view->Report Data to show the Report Data pane.
Click the New button and choose Dataset... to get the Dataset Properties dialog.
Name your Dataset, if you've done this before, you probably know that the dataset name here needs to match the name provided in code when you bind your ReportDataSource.
The new part that I just tried, is to click the New... button next to the Data source drop down list. The resulting wizard walks you through selecting your assembly and CLR class (use the checkbox to select your class).
When the wizard finished, my new dataset appeared.
One thing to note: The first time I tried to reproduce this, the wizard completed without adding my dataset. I went back to my class definition and decorated it with [DataContract] and [DataMember] attributes and then re-ran the wizard and it seemed to work great.
Perhaps someone with deeper knowledge can comment on why those attributes make this work, or why the wizard fails silently without them.
Your data source object must include a native data type as a property on the class, otherwise it doesn't let you add it. Funny, eh!
I could not add the datasource, after following the wizard (new button) the data source did not appear in the drop downlist.
What I did was add a property with a primitive type VS class and then proceeded to show the correct data source.
Strange to have to do this, but I found another way.
If you are using a stored procedure, replace everything inside the procedure with one row select using no source tables/functions. I couldn't get it working with a stored procedure that returned data from temp table or normal table either.
I have seen this happen when your final select in a Stored Procedure pulls from a temp/memory table. You have to fake the designer out by adding a dummy select 0 AS mycol1int, '' AS mycol2string, etc. Once you have created the Dataset, you can then remove that dummy select. Another marvelous, fabulous feature in VS! They own the DB, they own the IDE, but...
If added data source object is not shown on ReportData then:
1. Right click on rdlc and click open with
2. Select xml editor
3. add your needed dataset by hand.
After this refresh ReportData and you will see the datasource object on the list.

Resources