DVT:pivotFilterBar - how to get the selected values of the filter
Hi allI have a question: how to get the selected values from the pivot table filter bar programmatically?
I tried to use
pivotTable.getDataModel().getDataAccess().getValueQDR(startRow, startCol, DataAccess.QDR_WITH_PAGE);
but to the edge of the side DATA INCORRECTESdeclarations page, it seems that it will return the cached values.Environment: JDev 11.1.1.3.0 without tasks.
Thank you
Miroslaw
Hello
You can retrieve the value selected in the PivotFilterBar through the PivotFilterBar model, instead of dataaccess:
Download the template of the bar pivot filter instance
QueryDescriptior queryDescriptor = (QueryDescriptor) pivotFilterBar.getValue ();
retrieve a list of criterion, each of them is used to fill each lov in the pivot filter bar
_selected is the currently selected value System.out.println (_selected); Hope that helps,
ConjunctionCriterion conjunctionCriterion = queryDescriptor.getConjunctionCriterion ();
List
for (int i = 0; i)<_criterionList.size(); i++)="">
AttributeCriterion = (AttributeCriterion) criterionList.get (i) criterion.
Selected object = criterion.getValues () .get (0);
}
Chadwick
Tags: Java
Similar Questions
-
12 c: queryListener custom af:table component - how to get the filter values?
Hello
in a queryListener custom on an element of af: table, I am trying to print the values of the filter fields (for example to do a validation)
public void onQuery(QueryEvent pQueryEvent) { RichTable vRt = (RichTable)pQueryEvent.getComponent(); CollectionModel vModel = (CollectionModel)vRt.getValue(); JUCtrlHierBinding vData = (JUCtrlHierBinding)vModel.getWrappedData(); ConjunctionCriterion vCc = pQueryEvent.getDescriptor().getConjunctionCriterion(); for (Criterion vCriterion: vCc.getCriterionList()) { if (vCriterion instanceof AttributeCriterion) { AttributeCriterion vAttCriterion = (AttributeCriterion)vCriterion; AttributeDescriptor vAttDescriptor = vAttCriterion.getAttribute(); System.out.println("Type: " + vAttDescriptor.getType()); System.out.println("Name: " + vAttDescriptor.getName()); System.out.println("Value: " + vAttCriterion.getValue()); } } JSFUtil.invokeMethodExpression("#{bindings." + vData.getIteratorBinding().getName().replace("Iterator", "Query") + ".processQuery}", Object.class, QueryEvent.class, pQueryEvent); }
However... the value of the filterfield (System.out.println ("Value:" + vAttCriterion.getValue ());) is always null after the seizure of a filter value and pressing on enter the af: table.
The table is the filter properly.
How can I get the values of the filter fields in the queryListener?
Kind regards
Koen Verhulst
Keon, in my blog JDev 12 c: how to reset a filter on an af:table channel 12 c | JDev & amp; ADF Goodies that I use
/**
* method to reset filter attributes on an af:table
* @param actionEvent event which triggers the method
*/
public
void
resetTableFilter(ActionEvent actionEvent) {
FilterableQueryDescriptor queryDescriptor = (FilterableQueryDescriptor) getEmpTable().getFilterModel();
if
(queryDescriptor !=
null
&& queryDescriptor.getFilterConjunctionCriterion() !=
null
) {
ConjunctionCriterion cc = queryDescriptor.getFilterConjunctionCriterion();
List
lc = cc.getCriterionList(); for
(Criterion c : lc) {
if
(c
instanceof
AttributeCriterion) {
AttributeCriterion ac = (AttributeCriterion) c;
ac.setValue(
null
);
}
}
getEmpTable().queueEvent(
new
QueryEvent(getEmpTable(), queryDescriptor));
}
}
to reset the values. You should be able to get the values of the same way.and print the values to set them to null instead.
Timo
-
How to get the value of a selected character unicode?
Hi all
How to get the value of a selected character unicode?
The content property of a 'Character' InDesign object is a simple Unicode string. For access to the various characters is a basic javascript operation, and a google gives this as a good first result: http://www.w3schools.com/jsref/jsref_charCodeAt.asp
Therefore, the value of a selected character unicode is
App.Selection [0]. Characters [0].contents.charCodeAt (0)
-
How to get the selected values from the shuttle
Hello
Please tell me how to get the values of the option chosen by the shuttle leading the list.
Thank youCheck out this link and that this might help you.
Thank you
-Anil
http://oracleanil.blogspot.com/ -
How to get the value of a column in sql query?
Hi, anyone knows how to get the value of a column in sql query?
Here is my code, the value must be 1350079224397 in my PB, but I get 0
QString query ("SELECT version FROM db_version");
QVariant result = sda.execute (query);
QVariantMap versionMap = result.toList () such () .toMap ();
If (! versionMap.IsEmpty ())
{
qDebug()<"Version: "="">"Version:><>
}OK, I have the solution
QString query ("SELECT version as version FROM db_version");
-
How to get the value of varStatus in managed Bean
Hi all
I use jDeveloper 11.1.2.4 version.
I had a table with table with departments view object. I added an extra column to the table to display the serial numbers of the lines like this.
< af:table...
varStatus = 'vs' rowSelection = "multiple" id = "t1" binding = "#{ReferenceBeans.departmentTable}"> "
< af:column id = "c5" headerText = "varStatus" >
< af:outputText value = "#{vs.index + 1}" id = "ot1" binding = "#{ReferenceBeans.varStatus}" / > "
at the bean, I get all the values of the selected line, but I don't get the varStatus value of the column.
If I use
Object varStatus is getVarStatus () .getValue ();.
System.out.println("varstatus::"+varStatus);
That's the impression first value only, but not the values of the selected line.
How to get the varStatus value in the bean selected lines.
Best regards
Claude Reynier.
You can get the index of the line of the ViewObject.getRangeIndexOf (row) method. Something like this:
empIter.getViewObject () .getRangeIndexOf (currentRow)
example:
RowKeySet selectedEmps = getTable().getSelectedRowKeys(); Iterator selectedEmpIter = selectedEmps.iterator(); DCBindingContainer bindings = (DCBindingContainer) BindingContext.getCurrent().getCurrentBindingsEntry(); DCIteratorBinding empIter = bindings.findIteratorBinding("EmployeesView1Iterator"); RowSetIterator empRSIter = empIter.getRowSetIterator(); while (selectedEmpIter.hasNext()) { Key key = (Key) ((List) selectedEmpIter.next()).get(0); Row currentRow = empRSIter.getRow(key); System.out.println("FirstName" + currentRow.getAttribute("FirstName") + " - Row Index= " + (empIter.getViewObject().getRangeIndexOf(currentRow) + 1)); }
-
How to get the balance of an element value
Hello
I have a requirement to obtain related information with balance. I am able to read the information on the element except balance.how to get the value of the particular item balance.
for the application-> transfer and process-> queries with trust-> value the month selected and chosen balances button and queries with the obtained item name break it down the value of the balance.
These values I want in my query.i tried backend with calling package by passing parameters like the number of transfer, balance the id and date but iam getting value "0".
IAM new to hrms, Please help me on how to get this balance of values
Thank you
Hello
It is not very clear what you want to display in the form of balance for a given range of dates.
It depends on how you have configured your balances and periods and balance which you are referring.
The API allows for a given only date that matches the date earned.
Say, for example, that you have a "basic salary" defined with a "Treatment period assignment to Date" dimension and feed of the element that corresponds to the base salary.
"If you need get the 'wage base Total' (balance?) for the period February 1, 2015 ' to March 31, 2015", then you need get dates earned for payroll passes made during that period and call the package above with the appropriate settings.
Another way is by querying the tables/views directly: you can use, for example - it's perhaps easier to your situation:
Select sum (nvl (pbv.value, 0))
of pay_balance_values_v the VB.
where pbv.balance_name = 'base salary.
and pbv.database_item_suffix = '_ASG_PTD. '
and pbv.assignment_id =
and pbv.effective_date between to_date (' 01/02/2015 ',' dd/mm/yyyy')
and to_date (' 31/03/2015 ',' dd/mm/yyyy');
Kind regards
Rajen -
How to get the values of the table of the ADF to bean class?
Hi all
My 11.1.1.6 Jdev
Here I do not use BC ADF in my project. I'll put values in the ADF table with bean.
In the table, I put a checkbox. When I selected (Checkbox) a few rows in table and submit. In the submit method, I want to get all the values of line checkbox selected in my bean class.
How can I get the values. ???
Here my table UI code
< af:table var = "row" rowBandingInterval = "0" id = "t1" value = "#{pageFlowScope.BinderSolutionsBean.uiBinderProperties} '"
styleClass = "AFStretchWidth" emptyText = "no record found".
Binding = "#{pageFlowScope.BinderSolutionsBean.binderTree}" >
< af:column sortable = "false" headerText = "Script ID" id = 'c4' >
< af:panelGroupLayout id = "pgl4" >
< af:selectBooleanCheckbox id = 'sbc1' > < / af:selectBooleanCheckbox >
< af:spacer width = "5" / >
< af:outputText value = "#{row.scenarioId}" id = "ot5" / > "
< / af:panelGroupLayout >
< / af:column >
< af:column sortable = "false" headerText = "Quote ID" id = "c1" >
< af:outputText value = "#{row.quoteId}" id = "ot4" / > "
< / af:column >
< af:column sortable = "false" headerText = "NASP ID" id = "c2" >
< af:outputText value = "#{row.naspId}" id = "ot2" / > "
< / af:column >
< af:column sortable = "false" headerText = "GCH ID" id = 'c3' >
< af:outputText value = "#{row.gchId}" id = "ot3" / > "
< / af:column >
< af:column id = "c6" headerText = "Term" >
< af:outputText value = "#{row.term}" id = "ot9" / > "
< / af:column >
< af:column sortable = "false" headerText = "Status" id = "c5" >
< af:outputText value = "#{row.status}" id = "ot6" / > "
< / af:column >
< / af:table >
follow some above recommendation such as the creation of additional attribute. You will also need the key in your collection, while making the data for your chart.
You must write a custom selectionListener. On valueChangeEvent of box, get the key of a line and add the line at the bean.
Maybe it's little help for you
-
How to get the fnd_profile.value in the host program
Hi all
How to get the FND_PROFILE. VALUE('ORG_ID') in the host program.
I loved not below, but it failed.
v_return =' $ORACLE_HOME/bin/sqlplus - s $FCP_LOGIN < < END
set pagesize 0
trigger the echo
fnd_profile. Value ('ORG_ID');
EXIT;
END '
echo $v_return
but it error with the message: Retrun value SP-0734: unknown command beginning "fnd_profile...". »
Kind regards
UVA
> but it error with the message: Retrun value SP-0734: unknown command beginning "fnd_profile...". »
.. .who is the same thing that will happen if you run SQL * more and type "fnd_profile.value...". »
Assuming that fnd_profile.value is a function, you must select from the something (say double) or assign to a variable.
-
How to get 3table of values in the row of acronym in 11g
Hi all
I have 3 tables,
In all ck_no tables is common.Tab1 Ck_no amt 1 2000 Tab2 Ck_no Line amt 1 1 1000 1 2 1000 Tab3 Ck_no Line sub amt 1 1 1 500 1 1 2 500 1 2 1 100 1 2 2 200 1 2 3 700
Since the 3 tables above, I need the output in the following format,
Can someone help me in this?Amt1 amt2 amt3 amt4 amt5 amt6 amt7 amt8 amt 9 2000 1000 1000 500 500 500 100 200 700
Thank you
Kind regards
Gurujothi
Published by: Gurujothi on July 9, 2012 20:46
Published by: Gurujothi on July 9, 2012 20:47Gurujothi wrote:
I know how to get the values in a row for a single column,
...
but I get the error,Too Many values
How do I change this?
Please post your data in the example, the expected results of these data and explain the logic so that we can understand how the data relate to each other.
In your original post, it is not clear how amt4, amt5 abd amt6 therefore show them all 500 when there are only two 500 values in the source data.
SQL> ed Wrote file afiedt.buf 1 with Tab1 as (select 1 as ck_no, 2000 as amt from dual) 2 ,Tab2 as (select 1 as ck_no, 1 as line, 1000 as amt from dual union all 3 select 1, 2, 1000 from dual) 4 ,Tab3 as (select 1 as ck_no, 1 as line, 1 as sub, 500 as amt from dual union all 5 select 1, 1, 2, 500 from dual union all 6 select 1, 2, 1, 100 from dual union all 7 select 1, 2, 2, 200 from dual union all 8 select 1, 2, 3, 700 from dual) 9 -- 10 -- END OF TEST DATA 11 -- 12 select ck_no 13 ,max(decode(rn,1,amt)) as amt1 14 ,max(decode(rn,2,amt)) as amt2 15 ,max(decode(rn,3,amt)) as amt3 16 ,max(decode(rn,4,amt)) as amt4 17 ,max(decode(rn,5,amt)) as amt5 18 ,max(decode(rn,6,amt)) as amt6 19 ,max(decode(rn,7,amt)) as amt7 20 ,max(decode(rn,8,amt)) as amt8 21 ,max(decode(rn,9,amt)) as amt9 22 from ( 23 select ck_no, amt, row_number() over (partition by ck_no order by ord, line, sub) as rn 24 from ( 25 select 0 as ord, ck_no, 0 as line, 0 as sub, amt from tab1 union all 26 select 1 as ord, ck_no, line, 0 as sub, amt from tab2 union all 27 select 2 as ord, ck_no, line, sub, amt from tab3 28 ) 29 ) 30* group by ck_no SQL> / CK_NO AMT1 AMT2 AMT3 AMT4 AMT5 AMT6 AMT7 AMT8 AMT9 ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- 1 2000 1000 1000 500 500 100 200 700
-
How to get the value of viewrow by chain
With the help of Jdev11.1.1.5.0 - adfbc - ireport3.0.0
Here I will describe: what I've done.
use jsff (dynamic region) while hitting the af:tree nodes it opens. Fine OK
I had somevo manually wroten Query. and the query is fine no problem with it
I do drag and drop the pacctid correspondent run params vo as selectoncechoicehere i give sample not a original query select * from sometable where acctid = :pacctid
public static vo
Value of data - to pay account, advance
Announcement name - ap, given
in this jsff*page representation* account type : account payable (ap) - select one choice type advance (ad) - select one choice type like this some select once choice and some inputs. Run report - command button
. Java.jsff code <af:selectOneChoice value="#{bindings.ACCT_TYPE.inputValue}" label="Account Type" shortDesc="#{bindings.ACCT_TYPE.hints.tooltip}" id="soc3" required="true" autoSubmit="true" binding="#{backingBeanScope.SUP1040V.soc3}" valuePassThru="true" valueChangeListener="#{backingBeanScope.SUP1040V.ValueChangeListener1}"> <f:selectItems value="#{bindings.ACCT_TYPE.items}" id="si3"/> </af:selectOneChoice> <af:commandToolbarButton text="Export in pdf" id="ctb2"> <af:fileDownloadActionListener method="#{backingBeanScope.SUP1040V.Report}" /> </af:commandToolbarButton>
If I get ap means my report runs. or otherwise it will show an empty page.//while hitting the button following logs are appeared i show it as commented format. public void Report(FacesContext context, OutputStream out) throws IOException,Exception { FacesContext ctx = FacesContext.getCurrentInstance(); HttpServletRequest request = (HttpServletRequest)ctx.getExternalContext().getRequest(); HttpServletResponse response = (HttpServletResponse)ctx.getExternalContext().getResponse(); ..... BindingContainer bindings1 = BindingContext.getCurrent().getCurrentBindingsEntry(); System.out.println("print binding" +bindings1 ); //while using sop i get this in my log : : print binding ReportsPageFragments_SUP1040VPageDef_WEB_INF_TaskFlows_SUP1040_V_TF_xml_SUP1040_V_TF JUCtrlListBinding listBinding1 = (JUCtrlListBinding)bindings1.get("ACCT_TYPE"); System.out.println("print list bindings" +listBinding1 ); //while using sop i get this in my log : : print list bindings0 Object selectedValue1 = listBinding1.getSelectedValue(); System.out.println("print selected value" + selectedValue1); //while using sop i get this in my log : : print selected valueViewRow [oracle.jbo.Key[AP ]] request.setAttribute("ACCT_TYPE", //here i want the value "AP" in String ); if i use like this means request.setAttribute("ACCT_TYPE", soc1.getValue() ); i get the index value. i need the dataname "ap" so i go above method which say wrotes ... ... request.getRequestDispatcher(response.encodeURL("/sup1040servlet")).forward(request,response); System.out.println("hihihihih"); response.flushBuffer(); ctx.responseComplete(); } public void ValueChangeListener1(ValueChangeEvent valueChangeEvent) { // Add event code here... String AcctType = valueChangeEvent.getNewValue().toString(); System.out.println("AcctType" + AcctType); FacesContext contxt = FacesContext.getCurrentInstance(); valueChangeEvent.getComponent().processUpdates(contxt); BindingContainer bindings1 = BindingContext.getCurrent().getCurrentBindingsEntry(); // Get the sepecific list binding JUCtrlListBinding listBinding1 = (JUCtrlListBinding)bindings1.get("ACCT_TYPE"); // Get the value which is currently selected Object selectedValue1 = listBinding1.getSelectedValue(); System.out.println(selectedValue1); }
How to get the value of class viewrowimpl as string.
Published by: ADF7 on March 24, 2012 07:27ADF7,
I'm not sure that understand what you're up to.
For as far as I understand you want to get the value of display rather than the index
I use this codepublic void StatusChangedListener(ValueChangeEvent valueChangeEvent) { BindingContext lBindingContext = BindingContext.getCurrent(); BindingContainer lBindingContainer = lBindingContext.getCurrentBindingsEntry(); JUCtrlListBinding list = (JUCtrlListBinding) lBindingContainer.get("Status"); int newindex = (Integer) valueChangeEvent.getNewValue(); Object row = list.getDisplayData(); // Wichtig um die liste zu laden!!!! Row lFromList = (Row) list.getValueFromList(newindex); Object lAttribute = lFromList.getAttribute("Value"); String newVal = (String) lAttribute; }
to get the value of a component of selectOneChoice...
Timo
-
How to get the value of a particular column column name?
Hi all
How to get the column name for a particular column value.
example:
create table test (ID number, col2, col3 varchar varchar);
Insert into test values (1, 'true', 'false');
Insert into test values (2, 'false', 'true');
commit;
I want to choose the name of the data column 'true' with id = 1;
That is to say) while waiting for answer is "col2". pls help someone.This might help:
DECLARE c1 SYS_REFCURSOR; BEGIN OPEN c1 FOR SELECT col2, col3 FROM test WHERE id = 1; -- FOR c IN (SELECT rownum rn, t2.column_value.getrootelement() name, EXTRACTVALUE(t2.column_value, 'node()') value FROM TABLE(XMLSEQUENCE(c1)) t, TABLE(XMLSEQUENCE(EXTRACT(column_value, '/ROW/node()'))) t2) LOOP IF c.value = 'true' THEN DBMS_OUTPUT.PUT_LINE(c.name); END IF; END LOOP; END;
-
How to get the value of the list item
Hi all
How to get the value of the list item?
I have a problem with the list item object
in Oracle Forms.
How can I retrieve the selected item from
a list?
I have not found any function as ' list. GET_
SELECTED_ITEM()'...
Thank you
BalaHello
You get the value as any other element of forms:
:value := :block.list_tem ;
François
-
How to get the values based on the most recent date
Oracle Version 8i
How to get the new_value based on the most recent date
SELECT max (MODIFIED_ON), the Group LOG_ITEM_CHARACTERISTICS by MODIFIED_ON new_value - does not
Please, someone help me
CREATE TABLE LOG_ITEM_CHARACTERISTICS ( CHAR_LOG_ID NUMBER(10) NOT NULL, PIRM_ID VARCHAR2(8) NOT NULL, CONSTANT_FLAG VARCHAR2(1), CHARACTERISTIC_NAME VARCHAR2(25) NOT NULL, TYPE_NAME VARCHAR2(10) NOT NULL, NEW_VALUE VARCHAR2(3000), UOM VARCHAR2(10), MODIFIED_BY VARCHAR2(30), MODIFIED_ON DATE ) SET DEFINE OFF; Insert into LOG_ITEM_CHARACTERISTICS (CHAR_LOG_ID, PIRM_ID, CONSTANT_FLAG, CHARACTERISTIC_NAME, TYPE_NAME, NEW_VALUE, UOM, MODIFIED_BY, MODIFIED_ON) Values (187376, '0307490N', 'N', 'OUTPUT CURRENT', 'PS2030/WVL', '1', 'AMPS', 'EMPXD88', TO_DATE('10/25/1999 00:00:00', 'MM/DD/YYYY HH24:MI:SS')); Insert into LOG_ITEM_CHARACTERISTICS (CHAR_LOG_ID, PIRM_ID, CONSTANT_FLAG, CHARACTERISTIC_NAME, TYPE_NAME, NEW_VALUE, UOM, MODIFIED_BY, MODIFIED_ON) Values (187377, '0307490N', 'N', 'OUTPUT VOLTAGE', 'PS2030/WVL', '54.9', 'VOLTS', 'EMPXD88', TO_DATE('09/22/1998 00:00:00', 'MM/DD/YYYY HH24:MI:SS')); Insert into LOG_ITEM_CHARACTERISTICS (CHAR_LOG_ID, PIRM_ID, CONSTANT_FLAG, CHARACTERISTIC_NAME, TYPE_NAME, NEW_VALUE, UOM, MODIFIED_BY, MODIFIED_ON) Values (187378, '0307490N', 'N', 'OUTPUT CURRENT', 'PS2030/WVL', '0', 'AMPS', 'EMDXB88', TO_DATE('09/22/1998 00:00:00', 'MM/DD/YYYY HH24:MI:SS')); Insert into LOG_ITEM_CHARACTERISTICS (CHAR_LOG_ID, PIRM_ID, CONSTANT_FLAG, CHARACTERISTIC_NAME, TYPE_NAME, NEW_VALUE, UOM, MODIFIED_BY, MODIFIED_ON) Values (187384, '0307490N', 'N', 'OUTPUT CURRENT', 'PS2030/WVL', '2', 'AMPS', 'EMAXC29', TO_DATE('11/10/2000 00:00:00', 'MM/DD/YYYY HH24:MI:SS')); Insert into LOG_ITEM_CHARACTERISTICS (CHAR_LOG_ID, PIRM_ID, CONSTANT_FLAG, CHARACTERISTIC_NAME, TYPE_NAME, NEW_VALUE, UOM, MODIFIED_BY, MODIFIED_ON) Values (187385, '0307490N', 'N', 'OUTPUT VOLTAGE', 'PS2030/WVL', '55.1', 'VOLTS', 'EMAXC29', TO_DATE('10/19/2001 00:00:00', 'MM/DD/YYYY HH24:MI:SS')); Insert into LOG_ITEM_CHARACTERISTICS (CHAR_LOG_ID, PIRM_ID, CONSTANT_FLAG, CHARACTERISTIC_NAME, TYPE_NAME, NEW_VALUE, UOM, MODIFIED_ON) Values (2400742, '0307490N', 'N', 'MEASURED LOAD ON PER', 'PS2030/WVL', '2', 'AMPS', TO_DATE('10/19/2001 00:00:00', 'MM/DD/YYYY HH24:MI:SS')); Insert into LOG_ITEM_CHARACTERISTICS (CHAR_LOG_ID, PIRM_ID, CONSTANT_FLAG, CHARACTERISTIC_NAME, TYPE_NAME, NEW_VALUE, UOM, MODIFIED_BY, MODIFIED_ON) Values (574093, '0307490N', 'N', 'MEASURED LOAD ON PER', 'PS2030/WVL', '2', 'AMPS', 'EMCTH88', TO_DATE('12/13/2002 11:55:16', 'MM/DD/YYYY HH24:MI:SS')); Insert into LOG_ITEM_CHARACTERISTICS (CHAR_LOG_ID, PIRM_ID, CONSTANT_FLAG, CHARACTERISTIC_NAME, TYPE_NAME, NEW_VALUE, UOM, MODIFIED_BY, MODIFIED_ON) Values (574094, '0307490N', 'N', 'OUTPUT VOLTAGE', 'PS2030/WVL', '54.9', 'VOLTS', 'EMCTH88', TO_DATE('12/13/2002 11:55:16', 'MM/DD/YYYY HH24:MI:SS')); Insert into LOG_ITEM_CHARACTERISTICS (CHAR_LOG_ID, PIRM_ID, CONSTANT_FLAG, CHARACTERISTIC_NAME, TYPE_NAME, NEW_VALUE, UOM, MODIFIED_BY, MODIFIED_ON) Values (3131486, '0307490N', 'N', 'MEASURED LOAD ON PER', 'PS2030/WVL', '6', 'AMPS', 'EMCTH88', TO_DATE('12/16/2004 14:31:14', 'MM/DD/YYYY HH24:MI:SS')); Insert into LOG_ITEM_CHARACTERISTICS (CHAR_LOG_ID, PIRM_ID, CONSTANT_FLAG, CHARACTERISTIC_NAME, TYPE_NAME, NEW_VALUE, UOM, MODIFIED_BY, MODIFIED_ON) Values (3131487, '0307490N', 'N', 'LAST MEASURED DATE', 'PS2030/WVL', '16-12-04', 'DD/MM/YY', 'EMCTH88', TO_DATE('12/16/2004 14:31:14', 'MM/DD/YYYY HH24:MI:SS')); Insert into LOG_ITEM_CHARACTERISTICS (CHAR_LOG_ID, PIRM_ID, CONSTANT_FLAG, CHARACTERISTIC_NAME, TYPE_NAME, NEW_VALUE, MODIFIED_BY, MODIFIED_ON) Values (3131488, '0307490N', 'Y', 'POWER SUPPLY', 'PS2030/WVL', 'ESSENTIAL', 'EMCTH88', TO_DATE('12/16/2004 14:31:14', 'MM/DD/YYYY HH24:MI:SS')); Insert into LOG_ITEM_CHARACTERISTICS (CHAR_LOG_ID, PIRM_ID, CONSTANT_FLAG, CHARACTERISTIC_NAME, TYPE_NAME, NEW_VALUE, UOM, MODIFIED_BY, MODIFIED_ON) Values (3131489, '0307490N', 'N', 'OUTPUT VOLTAGE', 'PS2030/WVL', '54.9', 'VOLTS', 'EMCTH88', TO_DATE('12/16/2004 14:31:14', 'MM/DD/YYYY HH24:MI:SS')); Insert into LOG_ITEM_CHARACTERISTICS (CHAR_LOG_ID, PIRM_ID, CONSTANT_FLAG, CHARACTERISTIC_NAME, TYPE_NAME, NEW_VALUE, UOM, MODIFIED_BY, MODIFIED_ON) Values (4759086, '0307490N', 'N', 'MEASURED LOAD ON PER', 'PS2030/WVL', '6', 'AMPS', 'EMRCT88', TO_DATE('11/15/2007 14:33:03', 'MM/DD/YYYY HH24:MI:SS')); Insert into LOG_ITEM_CHARACTERISTICS (CHAR_LOG_ID, PIRM_ID, CONSTANT_FLAG, CHARACTERISTIC_NAME, TYPE_NAME, NEW_VALUE, UOM, MODIFIED_BY, MODIFIED_ON) Values (4759087, '0307490N', 'N', 'OUTPUT VOLTAGE', 'PS2030/WVL', '54.9', 'VOLTS', 'EMRCT88', TO_DATE('11/15/2007 14:33:03', 'MM/DD/YYYY HH24:MI:SS')); Insert into LOG_ITEM_CHARACTERISTICS (CHAR_LOG_ID, PIRM_ID, CONSTANT_FLAG, CHARACTERISTIC_NAME, TYPE_NAME, NEW_VALUE, UOM, MODIFIED_BY, MODIFIED_ON) Values (4759088, '0307490N', 'N', 'LAST MEASURED DATE', 'PS2030/WVL', '14/11/07', 'DD/MM/YY', 'EMRCT88', TO_DATE('11/15/2007 14:33:03', 'MM/DD/YYYY HH24:MI:SS')); Insert into LOG_ITEM_CHARACTERISTICS (CHAR_LOG_ID, PIRM_ID, CONSTANT_FLAG, CHARACTERISTIC_NAME, TYPE_NAME, NEW_VALUE, UOM, MODIFIED_BY, MODIFIED_ON) Values (6646012, '0307490N', 'N', 'MEASURED LOAD ON PER', 'PS2030/WVL', '5', 'AMPS', 'PAUL DEVERILL', TO_DATE('01/06/2011 12:56:17', 'MM/DD/YYYY HH24:MI:SS')); Insert into LOG_ITEM_CHARACTERISTICS (CHAR_LOG_ID, PIRM_ID, CONSTANT_FLAG, CHARACTERISTIC_NAME, TYPE_NAME, NEW_VALUE, MODIFIED_BY, MODIFIED_ON) Values (6646013, '0307490N', 'Y', 'BATT TEST SET AT 3M', 'PS2030/WVL', 'null', 'PAUL DEVERILL', TO_DATE('01/06/2011 12:56:17', 'MM/DD/YYYY HH24:MI:SS')); Insert into LOG_ITEM_CHARACTERISTICS (CHAR_LOG_ID, PIRM_ID, CONSTANT_FLAG, CHARACTERISTIC_NAME, TYPE_NAME, NEW_VALUE, MODIFIED_BY, MODIFIED_ON) Values (6646014, '0307490N', 'Y', 'CAP ALARM INHIBITED', 'PS2030/WVL', 'null', 'PAUL DEVERILL', TO_DATE('01/06/2011 12:56:17', 'MM/DD/YYYY HH24:MI:SS')); Insert into LOG_ITEM_CHARACTERISTICS (CHAR_LOG_ID, PIRM_ID, CONSTANT_FLAG, CHARACTERISTIC_NAME, TYPE_NAME, NEW_VALUE, UOM, MODIFIED_BY, MODIFIED_ON) Values (6646015, '0307490N', 'N', 'OUTPUT VOLTAGE', 'PS2030/WVL', '55', 'VOLTS', 'PAUL DEVERILL', TO_DATE('01/06/2011 12:56:17', 'MM/DD/YYYY HH24:MI:SS')); Insert into LOG_ITEM_CHARACTERISTICS (CHAR_LOG_ID, PIRM_ID, CONSTANT_FLAG, CHARACTERISTIC_NAME, TYPE_NAME, NEW_VALUE, MODIFIED_BY, MODIFIED_ON) Values (6646016, '0307490N', 'Y', 'YR ROUTINES REQUIRED', 'PS2030/WVL', 'null', 'PAUL DEVERILL', TO_DATE('01/06/2011 12:56:17', 'MM/DD/YYYY HH24:MI:SS')); Insert into LOG_ITEM_CHARACTERISTICS (CHAR_LOG_ID, PIRM_ID, CONSTANT_FLAG, CHARACTERISTIC_NAME, TYPE_NAME, NEW_VALUE, MODIFIED_BY, MODIFIED_ON) Values (6646057, '0307490N', 'Y', 'BATT TEST SET AT 3M', 'PS2030/WVL', 'null', 'PAUL DEVERILL', TO_DATE('01/06/2011 13:03:18', 'MM/DD/YYYY HH24:MI:SS')); Insert into LOG_ITEM_CHARACTERISTICS (CHAR_LOG_ID, PIRM_ID, CONSTANT_FLAG, CHARACTERISTIC_NAME, TYPE_NAME, NEW_VALUE, MODIFIED_BY, MODIFIED_ON) Values (6646058, '0307490N', 'Y', 'CAP ALARM INHIBITED', 'PS2030/WVL', 'null', 'PAUL DEVERILL', TO_DATE('01/06/2011 13:03:18', 'MM/DD/YYYY HH24:MI:SS')); Insert into LOG_ITEM_CHARACTERISTICS (CHAR_LOG_ID, PIRM_ID, CONSTANT_FLAG, CHARACTERISTIC_NAME, TYPE_NAME, NEW_VALUE, MODIFIED_BY, MODIFIED_ON) Values (6646059, '0307490N', 'Y', 'YR ROUTINES REQUIRED', 'PS2030/WVL', 'null', 'PAUL DEVERILL', TO_DATE('01/06/2011 13:03:18', 'MM/DD/YYYY HH24:MI:SS')); Insert into LOG_ITEM_CHARACTERISTICS (CHAR_LOG_ID, PIRM_ID, CONSTANT_FLAG, CHARACTERISTIC_NAME, TYPE_NAME, NEW_VALUE, UOM, MODIFIED_BY, MODIFIED_ON) Values (6648577, '0307490N', 'N', 'MEASURED LOAD ON PER', 'PS2030/WVL', '6', 'AMPS', 'EMPXD88', TO_DATE('01/07/2011 13:35:45', 'MM/DD/YYYY HH24:MI:SS')); Insert into LOG_ITEM_CHARACTERISTICS (CHAR_LOG_ID, PIRM_ID, CONSTANT_FLAG, CHARACTERISTIC_NAME, TYPE_NAME, NEW_VALUE, UOM, MODIFIED_BY, MODIFIED_ON) Values (6648578, '0307490N', 'N', 'OUTPUT VOLTAGE', 'PS2030/WVL', '55', 'VOLTS', 'EMPXD88', TO_DATE('01/07/2011 13:35:45', 'MM/DD/YYYY HH24:MI:SS')); Insert into LOG_ITEM_CHARACTERISTICS (CHAR_LOG_ID, PIRM_ID, CONSTANT_FLAG, CHARACTERISTIC_NAME, TYPE_NAME, NEW_VALUE, MODIFIED_BY, MODIFIED_ON) Values (6648579, '0307490N', 'Y', 'YR ROUTINES REQUIRED', 'PS2030/WVL', 'NULL', 'EMPXD88', TO_DATE('01/07/2011 13:35:45', 'MM/DD/YYYY HH24:MI:SS')); Insert into LOG_ITEM_CHARACTERISTICS (CHAR_LOG_ID, PIRM_ID, CONSTANT_FLAG, CHARACTERISTIC_NAME, TYPE_NAME, NEW_VALUE, MODIFIED_BY, MODIFIED_ON) Values (6648580, '0307490N', 'Y', 'BATT TEST SET AT 3M', 'PS2030/WVL', 'NULL', 'EMPXD88', TO_DATE('01/07/2011 13:36:00', 'MM/DD/YYYY HH24:MI:SS')); Insert into LOG_ITEM_CHARACTERISTICS (CHAR_LOG_ID, PIRM_ID, CONSTANT_FLAG, CHARACTERISTIC_NAME, TYPE_NAME, NEW_VALUE, MODIFIED_BY, MODIFIED_ON) Values (6648581, '0307490N', 'Y', 'CAP ALARM INHIBITED', 'PS2030/WVL', 'NULL', 'EMPXD88', TO_DATE('01/07/2011 13:36:10', 'MM/DD/YYYY HH24:MI:SS')); Insert into LOG_ITEM_CHARACTERISTICS (CHAR_LOG_ID, PIRM_ID, CONSTANT_FLAG, CHARACTERISTIC_NAME, TYPE_NAME, NEW_VALUE, UOM, MODIFIED_BY, MODIFIED_ON) Values (6648634, '0307490N', 'N', 'MEASURED LOAD ON PER', 'PS2030/WVL', '5', 'AMPS', 'EMPXD88', TO_DATE('01/07/2011 13:51:06', 'MM/DD/YYYY HH24:MI:SS')); Insert into LOG_ITEM_CHARACTERISTICS (CHAR_LOG_ID, PIRM_ID, CONSTANT_FLAG, CHARACTERISTIC_NAME, TYPE_NAME, NEW_VALUE, UOM, MODIFIED_BY, MODIFIED_ON) Values (6648635, '0307490N', 'N', 'OUTPUT VOLTAGE', 'PS2030/WVL', '55', 'VOLTS', 'EMPXD88', TO_DATE('01/07/2011 13:51:06', 'MM/DD/YYYY HH24:MI:SS')); COMMIT;
user4587979 wrote:
Hi FrankYes, but I had more than 2 tables with item_characteristics, type_characteristics
If there are other tables involved, then CREATE TABLE and INSERT statements for them (for the relevant columns only). You must not post a lot of examples of data; usually just a couple of lines per table is enough to show the problem.
Also post the results desired from these data.What I try to do is, I'm comparing new_value in log_item_characteristics (whichever is most recent) with CHR_VALUE in the item_characteristics and the needs of different output values
I am trying to query is not giving desired out put
Point out some places where the output is wrong and explain how you get good results in these places, using specific examples from the data sample.
select lic.PIRM_ID, ic.CHR_ID, lic.CHARACTERISTIC_NAME, lic.TYPE_NAME, ic.CHR_VALUE, lic.NEW_VALUE, lic.MODIFIED_BY, lic.MODIFIED_ON, ic.CREATED_BY, ic.CREATED_ON,ic.MODIFIED_BY, ic.MODIFIED_ON from log_item_characteristics lic, item_characteristics ic,type_characteristics tc where lic.TYPE_NAME=tc.TYPE_NAME and lic.CHARACTERISTIC_NAME=tc.CHR_NAME and lic.PIRM_ID=ic.PIRM_ID and tc.CHR_ID=ic.CHR_ID and ic.CHR_VALUE <> lic.NEW_VALUE and lic.pirm_id in ('0307490N','0307521C') order by lic.pirm_id
Thank you; It is useful to see the existing query. Really, you have to format your code.
Please can you help me
What you've posted so far is like saying "I'm going 200 meters to the North, and then 500 meters East, but I'm not getting where I want to go." I would have a better chance to help you if you said, 'I'm out of my house, at 100, Elm Street and try to get to the supermarket at Broadway 279. I'm going 200 meters to the North... ', or, even better. "I want to buy a newspaper and some orange juice, so I thought I'd go to a convenience store. I start at my house, at 100, Elm Street... »
Always post some examples of data (CREATE TABLE and INSERT statements, as you did in your first post) and the desired results from these data. Explain how you get these results from these data. -
How to get the RGB value of a pixel in a psd document using scripting Photoshop
Hi, guys! Does anyone know how to get the RGB value of a pixel in a psd document using scripts in Photoshop? I myself have missed for a long time and could not resolve. I am very happy to hear your voice as soon as possible!
Here is an example...
var originalUnits = app.preferences.rulerUnits; app.preferences.rulerUnits = Units.PIXELS; var doc = activeDocument; var Colour1 = GetHexColour(eyeDropperRGB(1,doc.height-1)); var Colour2 = GetHexColour(eyeDropperRGB(20,doc.height-5)); var Colour3 = GetHexColour(eyeDropperRGB(40,doc.height-14)); alert("Colour 1 = " +Colour1 + "\rColour 2 = " +Colour2 + "\rColour 3 = " +Colour3); var decColour = eyeDropperRGB(40,doc.height-14); alert("Red = " +decColour[0] + "\rGreen = " +decColour[1] + "\rBlue = " +decColour[2]); app.preferences.rulerUnits = originalUnits; function GetHexColour(reqHex){ var out=''; for(No in colours = reqHex){ out = out.concat(zeroPad(d2h(reqHex[No]),2)); } return out; }; function eyeDropperRGB(x,y) { var x2 = x + 1; var y2 = y + 1; var out = new Array(3); activeDocument.selection.select([[x,y], [x2,y], [x2,y2], [x, y2]], SelectionType.REPLACE, 0, false); for(ch in list = ["Red", "Green", "Blue"]) { histogram = activeDocument.channels[list[ch]].histogram; for (i = 0; i <= 255; i++) { if (histogram[i]) { out[ch] = i; break; } } } return out; }; function d2h(d) {return d.toString(16);} function zeroPad(n, s) { n = n.toString(); while (n.length < s) n = '0' + n; return n; };
Maybe you are looking for
-
IOS10 email for signature markup does not work now. Help, please!
I used much markup of the email for signing off e-docs. However, I found that it does not work now after the upgrade to iOS10. After set up my signature recorded and distributed, the beneficiaries, said the e-docs they received was not my signature
-
How will I know which encryption scheme is used for a partially encrypted connection?
When you access a site that contains unencrypted items, technical details by just looking at says "Connection partially encrypted". Although it is useful to identify it, is what I would really like to know which encryption scheme is actually used for
-
1st session is being loaded from the application of Suduko on the washingtonpost.com website, http://games.washingtonpost.com/games/sudoku/ it is a 15 to 30 second window for ads. During this window, trying to open a 2nd session with a right click on
-
Equium A300 - webcam watch screen black but not image
Equium A300, webcam shows black screen but no picture.Someone at - it isea how to re-take the picture?
-
Axis changes after a set interval
I have change my X axis range programmatically in various circumstances in my program. After the range changes, the method, and then calls another method to plot data. However, when I get the new method, the new range now has what I set the minimum o