add column to a view in Oracle Designer - oracle

I have a view in Oracle designer which I'd like to add a column to. I've tried Create columnand input within the Fre Format tab the following statement:
ALTER VIEW View_name_vw
ADD (new_column VARCHAR(100));
but it's not updating. Is there something I need to include after this step?
Any help appreciated.

A View is basically only a SELECT-statement. If you want to add another column to your view, just change the statement on which it is based. If you need a whole new column with new data, change the underlying table structure from which you are selecting the columns that are shown in your view.
For more information check the official Oracle documentation:
http://docs.oracle.com/cd/B19306_01/server.102/b14200/statements_8004.htm
Or see this question on SO:
What is a View in Oracle?

A View can't be altered.Option is to change in the defination of the view or change in table is the only option.

Related

Is there any way to hide table in oracle

Is there any way to hide a table in toad editor. It will work for me too if I only could hide from the schema browser.
Sure; create a filter which will remove it from a list of available tables.

Oracle apex dynamic action on button click

I have created Oracle apex dynamic action to create text fields dyanmically, but the event fires only once. That is only once the text fields get created.
Not sure i get what you are asking, but I can see to possible meanings:
You are using javascript to create new page items on each click, in which case I strongly advise against - the best practice would be to insert new rows into an interactive grid, which you can latter parse as a collection to do whatever you need
You still intend to create new items, look into the documentation of apex_items:
https://docs.oracle.com/cd/E14373_01/apirefs.32/e13369/apex_item.htm

Auto Populate ADF Form from ADF Table

I have an ADF table which has to populate a form after redirecting to a new page.
Basically I have to implement the Edit functionality for a record selected in the table.
I have made the following iterator bindings to the fields but am not sure of how the values will be fetched from the database. I am unable to debug the bindings as the page does not render when redirected to.
Here is a snippet of the pageDef created
<attributeValues id="sedol" IterBinding="findD1ByCaIdIter">
<AttrNames>
<Item Value="sedol"/>
</AttrNames>
</attributeValues>
Any help/tutorial/guide would be much appreciated
Hopefully you are using a data control. If so, then use the data control to populate the table. Make sure to turn on single row selection.
Then on the Edit page, add the same data control as a form. ADF's built-in row concurrency will set the selected table row to be the "current row" in the iterator and bound VO Rowset. Then, when the Edit page is displayed, it will retrieve the "current row" from the iterator and it should be the selected row from the table.
Since you seem to be new to ADF, I suggest you learn a bit more, here, here and you can try to google "oracle adf table and form edit" -> some ideas here, here, here.
Basic info like what is your data source (ADF BC or JPA) and are you familiar with ADF Data Controls and what version of ADF are you using are very helpful with questions like these.
Add a column in table in the end. drop on button (ADFfaces) and in its actionlistener add the following code:
public void editData() {
DCBindingContainer contxt = (DCBindingContainer)BindingContext.getCurrent().getCurrentBindingsEntry();
DCIteratorBinding iter = contxt.findIteratorBinding("TestView1Iterator");
ViewObject testVo = iter.getViewObject();
Row selectedRow = testVo.getCurrentRow();
}

Cocoa: how can I add custom row in table? or other way?

Is it possible to add different rows created in IB? What I mean is:
**All rows should be created not programatically, but with pre-created with objects.
Or maybe is other way to do this?? maybe without table??
No, you can't create a table with pre-existing rows from within IB.
You can however create text and image based table rows in IB, and lay them out, but you then have to write the table delegate code to load these from the xib and add them to the table as an when required.

How to create a table-view control

how to develop a scrolling table with rows which will have more than one dynamic data in one row ? It should take data from web browser.
You can create the table like view as described by Matt Lacey. For dynamic data you can create data-template for your table and bind them to your data source. When you click items in a list you can modify ur data source so that it will be reflected in your table.Note: Make sure to implement INotifyPropertyChanged so the changes in your data are reflected correctly on the UI.
To create a table, simply use a list where each item is a row in the grid and then template the item to display data inside a single row grid.
IMPORTANT: Be sure to set a fixed width on each cell so that all rows look the same and aren't resized independently.

Resources