How to display the image in the table based on certain conditions
Hi allI have a table of search results which has a column as error.
The data that appears in this column after research is 1 or 0.
I want to display an image of success for "1" and a picture of error to the '0' value in the table.
How to get there?
TIA,
Bob
You must use the af:switcher component - http://jdevadf.oracle.com/adf-richclient-demo/docs/tagdoc/af_switcher.html
For example
Tags: Java
Similar Questions
-
Insert data into the same table based on certain conditions
Hello. I'm new to this forum.
I have to write a stored procedure to insert data in a table MYTABLE say, having a structure like:
Col1 Col2 Col3... TotalInstallments CurrentInstallment PaidAmount MonthYear
I have to insert all the data that it is in the same table (MYTABLE) except change some fields based on certain conditions:
1. if PaidAmount > 0 & & CurrentInstallment < TotalInstallment then
CurrentInstallment = CurrentInstallment + 1
2. in the field MonthYear I have data ex. 01/2012, 11/2012 formate(month/year)...
So, I have to insert data by incrementing the month and year. for example:
If currentdata is 11/2012 next data will be 12/2012
But following will be 01, 2013
I have to select all records that belongs to the previous month (across the field MonthYear) and put the audit on each record selected and insert data and then turns them into table (MYTABLE) even.
How to achieve that?
Thank you.978184 wrote:
Hello. I'm new to this forum.
I have to write a stored procedure to insert data in a table MYTABLE say, having a structure like:Col1 Col2 Col3... TotalInstallments CurrentInstallment PaidAmount MonthYear
I have to insert all the data that it is in the same table (MYTABLE) except change some fields based on certain conditions:1. if PaidAmount > 0 & CurrentInstallment
CurrentInstallment = CurrentInstallment + 1
2. in the field MonthYear I have data ex. 01/2012, 11/2012 formate(month/year)...
So, I have to insert data by incrementing the month and year. for example:
If currentdata is 11/2012 next data will be 12/2012
But following will be 01, 2013
I have to select all records that belongs to the previous month (across the field MonthYear) and put the audit & on each of the selected data record and insert then turns them into table (MYTABLE).You can do this way:
This is not tested, but if you can provide the example of table structure and data (IN create table and insert scripts), it can be put to the test.
insert into your_table (col1, col2, col3...current_installment, month_field) select col1, col2, col3.., current_installment + case when paidamount > 0 and current_installment < total_installment then row_number() over ( partition by column1, column2,.. columnn -->You may choose partition if you want the --Increment of Current_installment to reset after particular combination ends order by primary_key -->Order the Increment, you may choose to add more columns to order by ) else 0 --> if condition is not met, then Add 0 end curr_installment, add_months(to_date(month_field, 'MM/YYYY'), 1) nxt_month from your_table;
-
How to display the table HP V1900 - 8G switch MAC address
Hello!
Someone probably knows...
Is it possible to display the MAC addresses of computers connected to the switch HP V1900 - 8G (ditch the WEB or CLI). All managed switches, I worked with had something like "MAC address Table" or more to display the MAC address of the switch table.
I found it by myself. There is a function under Tools/system that allows to download MAC table as a txt file.
Manual switch, you can see only screenshot that there are these functions, but no description on it at all. You must pass your manual!
-
Update on the table by extracting the data from the table even under certain conditions
Hi Experts,
I have the table EMP which currently has 6 entries.
EMP_SYS BATCH_NO JOIN_DATE LOGIN_ID STATUS FLAG
1 FEBRUARY 10 PROD 84 Y IND123 ABC
DEV 1-23 APRIL 98 Y IND123 ABC
2 12 APRIL PROD 98 Y IND123 ABC
2 2 APRIL DEV 98 Y IND123 ABC
3 13 APRIL PROD 98 Y IND123 ABC
3 3 APRIL DEV 98 Y IND123 ABC
CONDITION: I need to take lines which has the minimum BATCH_NO for each of the EMP_SYS
for example,.
1 FEBRUARY 10 PROD 84 Y IND123 ABC
DEV 1-23 APRIL 98 Y IND123 ABC
For the above two lines, I need to update the status of DEF. How to select this criterion and update in the same query?
Currently, I used the query to select the minimum BATCH_NO for each of the EMP_SYS below.
SELECT EMP_SYS, BATCH_NO, JOIN_DATE, FLAG, LOGIN_ID, STATUS
Of
(
EMP_SYS, BATCH_NO, JOIN_DATE, FLAG, LOGIN_ID, STATUS, SELECT ROW_NUMBER)
COURSE NR (PARTITION BY ORDER OF EMP_SYS OF EMP_SYS)
FROM EMP
WHEN STATUS = 'ABC' AND FLAG = "Y".
)
WHERE
NR = 1;
If I try to use the update on the above query statement... It updates every 6 rows instead of 2 rows.
Please suggest me a way to update only the two lines that has the minimum BATCH_NO for each of the EMP_SYS.
But is possible to write the query without using the Group of?
Update e EMP
set STATUS = "DEF".
where BATCH_NO = (select min (BATCH_NO) from EMP I where STATUS = 'ABC' AND FLAG = 'Y' and i.emp_sys = e.emp_sys)
-
How to upgrade the table based on data in multiple tables?
TABLE1:
=======
TXN_ID | NAME
--------------------
TX001 | null
TX002 | null
TX003 | null
TX004 | null
TX005 | null
TX006 | null
TX007 | null
TX008 | null
TX009 | null
TABLE2
========
TXN_ID
-------
TX002
TX004
TX005
TX006
TABLE 3
========
TXN_ID
-------
TX001
TX008
TX009
If TABLE1. TXN_ID present in TABLE2, I should update the form ABC TABLE1.NAME.
If TABLE1. TXN_ID present in table 3, I should update TABLE1.NAME as XYZ.
I can update this by running 2 scripts.
UPDATE TABLE1 SET B.SID = 'ABC' WHERE
IT EXISTS (SELECT 1 FROM TABLE2 B WHERE B.TXN_ID = A.TXN_ID);
UPDATE TABLE1 SET B.SID = "XYZ" WHERE
IT EXISTS (SELECT 1 FROM TABLE 3 C WHERE C.TXN_ID = A.TXN_ID);
How can we do this in a single script? I have more than 10 tables as TABLE2 and TABLE3.
Output should be:
TABLE1:
=======
TXN_ID | NAME
--------------------
TX001 | XYZ
TX002 | ABC
TX003 | null
TX004 | ABC
TX005 | ABC
TX006 | ABC
TX007 | null
TX008 | XYZ
TX009 | XYZ
Assuming a table2 and table3 will not have same tnx_id you can do.
merge into table1 t1
a_l'_aide_de)
Select txn_id
name
de)
Select txn_id, "TABLE2" name
from table2
Union of all the
Select txn_id, name "TABLE3."
table 3
)
) t2
on)
T1.txn_id = t2.txn_id
)
When matched then
set t1.name, t2.name = update
-
How to get the columns of the table based on different conditions in one column?
Hello
I have two sql queries-
Select sum (col1) sum1 Tab1
where join_date > (sysdate - 1).Select sum (col1) sum2 of Tab1
where join_date > (sysdate-4)I need to use a single query to get sum1 and sum2 data in a single line.
Can someone help please how?Like this? select sum(case when join_date > (sysdate - 1) then col1 else null end) sum1 , sum(col1) sum2 from tab1 where join_date > (sysdate - 4)
-
How to upgrade the lines based on multiple Conditions
Hello
I create a table Ename, Empno and sex as the columns. In my table of 100 records are there. Some records having sex "Male" and others are "female". How can I update all records if sex is "Male", then it will be updated as 'Female' vice versa. How to achieve this requirement? /
--
Thank you and best regards,
Badr Hari
One way:
UPDATE my_table
SET sex = DECODE (kind, ' Male ',' female ', 'female ', ' male', gender);
-
How to display the image in the answes table based data.
I need to display the image based on the values retrieved from the base.
For example, if the value of a column is 1, then I need to be to display an image within a table. Help, please. Thank you.
Published by: 853213 on April 18, 2011 21:50Hello
Use the conditional formatting...
The column properties->->, click Add a Condition for conditional formatting-> filter on the column value is equal to 1-> change Format (click on the image and choose the image)
If you want to add custom images
Reference: http://obiee101.blogspot.com/2009/07/obiee-adding-custom-image-in.htmlSee you soon,.
Aravind -
How to display the image in the center of the imageview window?
How to display the image in the center of the imageview window, if the image is smaller than the window...
Page { Container { layout: DockLayout{} verticalAlignment: VerticalAlignment.Fill horizontalAlignment: HorizontalAlignment.Fill ImageView { imageSource: "asset:///images/image.png" verticalAlignment: VerticalAlignment.Center horizontalAlignment: HorizontalAlignment.Center } } }
-
SQL: how to display the second string of the function in the Jobs table only if the function has more than one string.
Hello
You can use REGEXP_SUBSTR Oracle/PLSQL: REGEXP_SUBSTR function
Select the function double REGEXP_SUBSTR('PUBLIC RELATION REPRESENTATIVE ','[^]+',1,2);
Do you have any value of the column as no 2nd string?
-
How to display multiple images at the same time in CS6?
How to display multiple images at the same time in CS6?
Hello
If you go to window > reorganize you can choose from several display options. Below, I have chosen two horizontal spaces since I have two images, but you can select other options if you have more than one image.
-
BI Layout Editor - how to display the current date?
Hello
Recently used BI Layout Editor (previously using MS Word to create the presentation of the State).
He seems really nice and easy to use.
However quick Q - How to display the current date in the layout editor (to show the report run date).
Any quick suggestions is appreciated.
Thank you
Vivek
Tab displays your selection available.
It's like how when you insert the table in the Word document and when you select the table, you would see 2 additional tabs such as the design and the tool.
Can you please insert "Text Element" and select the text element and see if you go to the tab 'text '?
-
How to display the value of the variable for bottom of pl/sql
How to display the value of the variable for bottom of pl/sql
declare
V_1 number: = 10;
V_2 number: = 20;
V_3 number: = 30;
v_4 number: = 40;
v_5 number: = 50;
test varchar2 (100);
Start
I'm in 1.5
loop
test: = "v_" | I have;
dbms_output.put_line(i||) e > ' | test);
end loop;
end;
/
How to get below output:
1 > v_1
2 > v_2
3 > v_3
4 > v_4
5 > v_5
But I want to output of
1 > 10
2 > 20
3 > 30
4 > 40
5 > 50
Hello
You cannot reference variables as you did and get the value of the variable. Use pretty collection.
set serveroutput on size 2000 declare type number_table is table of number; numbers number_table := number_table(10, 20, 30, 40, 50); begin for i in numbers.first .. numbers.last loop dbms_output.put_line(i || '->' || numbers(i)); end loop; end; / anonymous block completed 1->10 2->20 3->30 4->40 5->50
See the Collections of PL/SQL and Records http://docs.oracle.com/cd/E11882_01/appdev.112/e25519/composites.htm#LNPLS005
-
How to display the pdf file in the apex region
How to view pdf file in an apex html region. pdf files are stored in the column of type blob of a table. Please note this is not a static file. I am able to create a link to download and view the pdf in a new window. But it's not my priority. I need to see the full pdf file in the html area.
I looked around the forums but couldn't find a good answer. All suggestions will be useful. Thank you
Hi Alexandre-Oracle,
Alexander-Oracle wrote:
How to display the pdf file in an html apex region. PDF files are stored in the column of type blob of a table. Please note this is not a static file. I am able to create a link to download and view the pdf in a new window. But it's not my priority. I need to see the full pdf file in the html area.
I looked around the forums but couldn't find a good answer. All suggestions will be useful. Thank you
See the following thread I explained how to display PDF in the region HTML using the embed tag:
I hope this helps!
Kind regards
Kiran
-
How to display the parameter string registered by DBMS_XMLINDEX?
This is probably a stupid question, but I can't seem to find any function to display the setting of a parameter string that was recorded by DBMX_XMLINDEX. REGISTERPARAMETER.
For example,.
If I have:
How to display the value of 'indexParam' after creation?BEGIN DBMX_XMLINDEX.REGISTERPARAMETER('indexParam', 'xxxxxxxx'); END; /
SQL> set long 1000 SQL> SQL> select paramstr 2 from xdb.xdb$xidx_param_t 3 where param_name = 'MYINDEXPARAM' 4 ; PARAMSTR -------------------------------------------------------------------------------- PATH TABLE po_ptab PATH ID INDEX po_pidx ORDER KEY INDEX po_oidx VALUE INDEX po_vidx PATHS(NAMESPACE MAPPING(xmlns:p="http://www.example.com/IPO")) GROUP MASTERGROUP XMLTABLE PO_TAB ('/p:PurchaseOrder' COLUMNS REFERENCE VARCHAR2(30) PATH 'p:Reference', REQUESTOR VARCHAR2(30) PATH 'p:Requestor' ) GROUP ITEMGROUP XMLTABLE ITEMGROUP_TAB ('/p:PurchaseOrder/p:LineItems/p:LineItem' COLUMNS LINENUMBER NUMBER(38) PATH '@p:ItemNumber', QUANTITY NUMBER(38) PATH '@p:Quantity', DESCRIPTION VARCHAR2(256) PATH 'p:Description')
After you add it to an index, you can also view the content in USER_XML_INDEXES. PARAMETERS (XML format).
Maybe you are looking for
-
I tried several ideas username and none of them worked. Yesterday I made my account for personas.
-
I need drivers TouchSmart HP ENVY 15-j021tx Notebook PC
I need the drivers for my TouchSmart from HP ENVY 15 - j021tx Notebook PC i7 windows 8.1
-
Can you please not allowed all computers associated with my iTunes account for *. I am currently 5 out of 5. Thank you
-
Had a worm e260 2 for several years with no problems. I want to take another but cannot find players of version 1. Advantages and disadvantages please. Thank you Joe
-
Oops! I have a problem looking at a set of Yahoo products online! Help?
I'd always get pages of Yahoo displays normally before that, but during this period, the pages, like Yahoo Answers, Yahoo Notepad, even Yahoo.com, not may display correctly. No image, no frame full and a handful of plain text there... I suspect that