Oracle Apex 5.1: Interactive Grid Target Specific Cell - apex

I'm working on interactive grid in Oracle Apex 5.1. My problem is: How can I target a specific cell of their grid (not the column), using JQuery, in order to change some properties like readonly or other?

I found some (maybe weired) kind of workaround:
In PageDesigner add every Column a unique class.
Use javascript to get the record(the row) you want to change. form the record get the unique RecordID.
Then combine both in a jquery selector to get the cell
$("[data-id='AAE6TDAAFAAPTP1AAd'] .GRUND_INFRA").addClass("is-readonly")
with "AAE6TDAAFAAPTP1AAd" as the RecordID and "GRUND_INFRA" as the ClassId of the Column

Related

How to relate a column to the row rather than the other way in anylogic

I have created a database in anylogic. Previously, I have related the information in the row to the columnn, i.e. there is a component in the row, and its properties are in the columns, and have put this in a function. Now I want to make the component the column and the properties, but don't know how to make it all relate. Below is the code I've written for the former:
site = selectFrom(parameters) .where(parameters.box_number.eq(boxNumber)) .where(parameters.site.eq(site)) .firstResult(parameters.site);
So box_number is the component and site is one of the properties. With this method, site is a column, but I want it to be a row.
You should use the SELECT WHERE SQL syntax, see https://help.anylogic.com/index.jsp?topic=%2Fcom.anylogic.help%2Fhtml%2Fconnectivity%2Fquerying.html&resultof=%22%73%65%6c%65%63%74%22%20%22%77%68%65%72%65%22%20
You can filter and load data in any format. Also, best use the database query wizard to help:

APEX 4.0 - How to load items when using select

I have a question about APEX, I have the problem that when I try to select a value from a selectbox, no value shows in the other items. What I have tried to do is loading data from the database to the items when I select a code from the selectbox with PL/SQL. How do I do this? Selecting a code from a selectbox and filling all the other items?
Vid
Ok if i understand you right you need a List of Values.
If you create this shared Object. Use a dynamic list.
There you have a dialog you can put a PL/SQL or SQL Code snippet into.
You must return a 2 column list. The first Column is the field name in you later select box and the second is you reference.

knockout - update UI (filter data) based on select/dropdown choice?

How can I update this UI based on the selection made in the select/dropdowns?
For example, if I select a member name from the select/dropdown, I want the table to update/filter to only show those member rows (member names are in far right column) AND their corresponding date header (the gray background).
If I select a provider name from the select/dropdown), I want the table to update/filter to only show those provider rows (provider names in left column) AND their corresponding date header (the gray background).
I'm using the KO mapping plugin. The dummy data is hard coded and would eventually be returned via ajax.
Here's a fiddle of all the code (it's all just inlined in the HTML pane). You could copy/paste this and run it locally if you wanted, as well.
http://jsfiddle.net/qBGTh/
Any help/direction is greatly appreciated!
My suggestion is to use a computed value at eob level returning the filtered array. To add this computed value during the mapping process, you must customize the eob object creation using a create callback in the mapping options parameter (see mapping doc)
Here is the updated fiddle to see it in action.
Also don't forget to add 2 more observables to capture current values for the 2 select elements. The computed value will depend on those 2 observables.
Note: the provided fiddle will not run on IE as github where is located the
mapping javascript does not return the content-type header required by IE.

How to Force a Sorting in a SWT Table w/ Table Viewer

I want to sort, only for the first time, a SWT Table column.
I have a Table with their TableViewer and I want to Sort programmaticaly after or before setInput Method.
The columns are dynamically generated, and the last ones is an average column.
Is there any way of Sorting by program?
I'm using only this line of code:
columnPromEcr = new TableColumn(table, SWT.RIGHT);
columnPromEcr.setText("Prom. ECR");
columnPromEcr.pack();
columnPromEcr.setResizable(true);
this.table.setSortColumn(columnPromEcr);
After setInput method I call:
// refresh table
tableViewer.refresh();
table.setRedraw(true);
Do I need a class ViewerSorter?
I don't need user intervention, my data came unordered, and after creating a dynamic column I want the program to order the table with that info, numeric data.
You don't need ViewerSorter if you only want to sort items before they are displayed. Use Comparator and Collections.sort().
Yes, use a ViewerSorter, it will keep the TableViewer in order all the time.
If u want the default behavior for sorting(integer,string simple comparison) you can just set the sorter:
viewer.setSorter(new ViewerSorter());
and the viewer will be sorted all the time (e.g. after deletions,additions of data)

struts2 select tag, second select based on value of first select

I have 2 select, I want the second select list loads based on selected value of first select. In another word first select is a list of objects, those objects each has a list of another objects. so I want load second list based on selected object of first select. I know that can be done using JQuery, but can I do this without JavaScript/JQuery?
Thanks in advance.
There is a tag that does this for you http://struts.apache.org/2.x/docs/doubleselect.html
Out of the box it probably uses Dojo API or uses a server side request to generate the second list. I have not used any of the JQuery UI in Struts.
No, you can't do this without Javascript. With static HTML you can't achieve this effect; drop-down fields on HTML forms come pre-loaded with their options, and are independent of other fields on the form.