How to put image in table selection column in advanced table
i need to put some image(not a picture, its just a traingalur shape image with different colour which indicates some messages to the user if suppose user adds a data which is duplicate with other row or he may copy existing row and dont change it.) can any one give me an idea of how to achieve this
Are you looking for image in selection column or as a separate column?
--Shiv
Similar Messages
-
How to set color for a particular column in advance table?
How can we set the color of a particular column in advance table based on some parameter feteched from vo query in process request?
i have tried the same way as mentioned in the post but ,its giving error
java.lang.ArrayIndexOutOfBoundsException: 0
processRequest code
OAAdvancedTableBean table =
(OAAdvancedTableBean)webBean.findIndexedChildRecursive("TimEntAdvtbl");
if (table != null)
System.out.println("table");
OAColumnGroupBean daily =
(OAColumnGroupBean)table.findIndexedChildRecursive("DailyColGrp");
if (daily != null)
System.out.println("daily col");
OAColumnGroupBean ColGrp6 =
(OAColumnGroupBean)table.findIndexedChildRecursive("ColGrp6");
if (ColGrp6 != null)
System.out.println("ColGrp6");
OAColumnBean SatCol =
(OAColumnBean)webBean.findIndexedChildRecursive("SatCol");
if (SatCol != null)
System.out.println("col");
OAMessageTextInputBean sat1 =
(OAMessageTextInputBean)SatCol.findIndexedChildRecursive("sat");
if (sat1 != null)
System.out.println("sat1");
OADataBoundValueViewObject csssat= new OADataBoundValueViewObject(sat1,"Color");
sat1.setAttributeValue(oracle.cabo.ui.UIConstants.STYLE_CLASS_ATTR, csssat);
Error Page
## Detail 0 ##
java.lang.ArrayIndexOutOfBoundsException: 0
at oracle.sql.NUMBER._fromLnxFmt(NUMBER.java:3199)
at oracle.sql.NUMBER.toString(NUMBER.java:761)
at oracle.sql.NUMBER.stringValue(NUMBER.java:2090)
at oracle.jbo.domain.Number.toString(Number.java:390)
at oracle.apps.fnd.framework.webui.OADataBoundValue.formatObject(Unknown Source)
at oracle.apps.fnd.framework.webui.OADataBoundValue.convertValue(Unknown Source)
at oracle.apps.fnd.framework.webui.OADataBoundValue.convertValue(Unknown Source)
at oracle.apps.fnd.framework.webui.OADataBoundValueViewObject.convertValue(Unknown Source)
at oracle.apps.fnd.framework.webui.OADataBoundValue.getValue(Unknown Source)
at oracle.apps.fnd.framework.webui.OADataBoundValueViewObject.getValue(Unknown Source)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.getAttributeValueImpl(Unknown Source)
at oracle.apps.fnd.framework.webui.beans.message.OAMessageTextInputBean.getAttributeValueImpl(Unknown Source)
at oracle.cabo.ui.BaseUINode.getAttributeValue(Unknown Source)
Please help -
How to perform delete operation on Delete Column In Advance Table?
Hi All,
I have to add a delete column in seeded page(Advance table).
For that I have followed jdev tutorial.Now after clicking delete image the column is not deleting also it is not throwing any error except mine.
Please Help.
Regards,
SHDHi AJ,
In the seeded table there is a seeded column correct.Where it is using above parameter.But while I am using same parameter it is doing nothing.
For deleting is it necessary to extend VO or EO?
Here is my code in pfr
String recordNumber = pageContext.getParameter("record");
OAException mainMessage =
new OAException("Are you sure you want to delete this employee"+recordNumber);
OADialogPage dialogPage =
new OADialogPage(OAException.WARNING, mainMessage, null, "",
String yes = pageContext.getMessage("AK", "FWK_TBX_T_YES", null);
String no = pageContext.getMessage("AK", "FWK_TBX_T_NO", null);
dialogPage.setOkButtonItemName("DeleteYesButton");
dialogPage.setOkButtonToPost(true);
dialogPage.setNoButtonToPost(true);
dialogPage.setPostToCallingPage(true);
dialogPage.setOkButtonLabel(yes);
dialogPage.setNoButtonLabel(no);
java.util.Hashtable formParams = new java.util.Hashtable(1);
formParams.put("compElementId", recordNumber);
dialogPage.setFormParameters(formParams);
pageContext.redirectToDialogPage(dialogPage);
} else if (pageContext.getParameter("DeleteYesButton") != null) {
String recordNumber = pageContext.getParameter("record");
Serializable[] parameters = { recordNumber };
OAApplicationModule am = pageContext.getRootApplicationModule();
OAApplicationModule compElementAM = (OAApplicationModule)am.findApplicationModule("xxCompElementsAM");
if(compElementAM==null) {
compElementAM=(OAApplicationModule)am.createApplicationModule("xxCompElementsAM","xxmycompany.oracle.apps.per.selfservice.competency.profile.server.xxCompElementsAM");
compElementAM.invokeMethod("deleteRecord", parameters);
MessageToken[] tokens =
{ new MessageToken("compElementId", recordNumber) };
OAException message =
new OAException("Are you sure you want to delete this employee"+recordNumber);
pageContext.putDialogMessage(message); regards,SHD
Edited by: SHD on May 6, 2011 3:31 AM -
How to select columns in a table by their column id and not the column name
Hello,
How do you select columns from a table based on their column_id.
I have create a view
but other than Select * , i cant now select one just one column from it
the view as follow:
create view count_student as
select a.acode "acode",aname "Activity Name",count(ae.acode) "Number of student joined"
from aenrol ae, activity a
where a.acode= ae.acode
group by a.acode,aname;The issue is that you have decided to use quoted column names. A pretty horrible idea (mostly for the reasons that you are now finding).
Re-create the view and get rid of the silly double quotes. -
How can I select columns from a table EMP, using Select statement?.
Hi Friends,
How can I select columns from a table EMP?.
I want to select columns of EMP table, using select statement.
Please reply me urgently.
ShahzadSomething like this:
scott@DBA> select empno,ename,job from emp;
EMPNO ENAME JOB
7369 SMITH CLERK
7499 ALLEN SALESMAN
7521 WARD SALESMAN
7566 JONES MANAGER
7654 MARTIN SALESMAN
7698 BLAKE MANAGER
7782 CLARK MANAGER
7788 SCOTT ANALYST
7839 KING PRESIDENT
7844 TURNER SALESMAN
7876 ADAMS CLERK
7900 JAMES CLERK
7902 FORD ANALYST
7934 MILLER CLERK
14 rows selected.Check the documentation:
http://download-east.oracle.com/docs/cd/B19306_01/server.102/b14200/statements_10002.htm#sthref9697
Message was edited by:
Delfino Nunez -
How to put OR clause in SELECT statement
Hi
How to put OR clause in SELECT statement to return number_first/number_last to match records from another table's column.
<pre>
SELECT
a.id ,
flat_number ||' '|| a.number_first||' '||a.street_name||' '||a.suburb address1,
apt_no ||' '|| street_no||' '||b.street_name||' '||b.suburb address2
from
a ,
b
where b.street_name = a.street_name
AND b.SUBURB = a.SUBURB
AND b.STATE = a.STATE
</pre>
Thsi will return this as exact match.
ADDRESS 1
12 TAMAN TENANG A ORCHARD 3142
10 RAMA YISHUN 2095
ADDRESS2
12 TAMAN TENANG A ORCHARD 3142
10 RAMA YISHUN 2095
However this only matches number_first.
How can I get the query work that it will match both number_first and number_last (table b)in address 1 to match street_no in address2 ( table b).My oracle version is 10GR/2.Hi, I have a hard time understanding your request, and below is what I thought you want:
SELECT
a.id ,
flat_number ||' '|| (decode(b.street_no, a.number_first, a.number_first, a.number_last, a.number_last)||' '||a.street_name||' '||a.suburb address1,
apt_no ||' '|| street_no||' '||b.street_name||' '||b.suburb address2
from
a ,
b
where b.street_name = a.street_name
AND b.SUBURB = a.SUBURB
AND b.STATE = a.STATE
AND (B.street_no=a.number_first OR b.street_no=a.number_last);Not tested.
Also, since your B.street_no will be either a.number_first OR a.number_last, you could replace
(decode(b.street_no, a.number_first, a.number_first, a.number_last, a.number_last) with just b.street_no.
Edited by: PhoenixBai on Aug 26, 2010 11:33 AM -
How to set the flexfield column in advanced table
Dear All
Dear Gaurav
Good morning
iis it posible to create a flexfield column in advanced table.I am trying it is showing some error......
Thanks& Regards
SreekanthHi,
My doubt is compulsory we give the view instance for flex field,
and also give the view instance for advanced table.
when i created the flex field in advanced table,it didn't ask the view instance.
the advanced table and flex field view instance are different
at that how can i create the flex field in advanced table. -
How to change color of column in advanced table
Hi Guys
I need to change the color of column in advanced table.
Please help me .
Thanks
SubramanianHi
Can you please give the sample code for this
I created advancedtable
under this advancedtable , I created columngroup
under this columngroup
I created column1 and column2
Here I need change the color for entire column1.
Thanks
Subra -
Background color change of a column in Advance table
Hi,
We have requirement to change the background color of column in advance table based on some condition. We tried putting code to change background color in Custom.xss using background-color property and setting newly created css dynamically based on condition but it seems it only changes the background color of text not the complete cell. We want to change the color of complete cell in an advance table.
Please let me know if there is any other way I can achieve this requirement. Any help would be highly appreciated.
Thanks<FONT FACE="Arial" size=2 color="2D0000">
Pls look into "Alter Table"section.
LOB_storage_clause
This might help
-SK
</FONT> -
[Urgent] Issue with Selected rows in Advanced table
[I have searched archive and found lots of mails on same issue but none were conclusive so i am asking this again]
Hi All,
I have created an advanced table and i want to have functionality of deleting selected rows.
For implementation of this functionality, i have created a selectflag transient attribute [varchar2] and linked it to multiple select item of Advanced table but the table always returns null for selectflag attribute irrespective of row being selected or not.
One thing i have noticed is that i can't supply 'checked value' and 'unchecked value' property in advanced table multiple select item. Is that the issue?
Can anybody please guide, its quite urgent.
Regards
LokeshHi Reetesh,
Thanks for the reply.
Yes, you are right i am using same AM at 2 different places.
Let me just elaborate a little about my implementation:
I have a Page layout region and within this page layout, i have a query bean which performs results based search.
Within this query bean, i have added an Advanced table within that query bean to display the results.
Now coming to multiple AM issue:
1. Page Layout region must have one AM or its an error.
2. If i donot add an AM to advanced table, it doesn't return rows.
So do i need to have 2 diferent AM's for this implementation?
Regards
Lokesh -
Adding a column in advanced table using personalizations
Is it possible to add a column in advanced table using personalizations.
If Yes , then i am not able get "Create Item" Icon on Advanced table Level personalizations . Can some one give reason? or there is any other way to create Item in Adavnce table.
Thanks, AvaneeshThe support for adding an item in advancedTable is supported from 11.5.10 CU3 onwards. But you can manually add an item in the personalization document and upload it and that should work. I had earlier provided the xml tags for doing that in one of threads and you should be able to find that in the forum. If you are not getting it I will search it for you. We supported the same way of addition using personalization in CU3 so manual addition in to the pers document should be fine for this requirement only.
-
Master advance table with two detail advanced tables
Hi All,
I have this in mind..please let me know if that is possible.
I want to have two detail advanced tables within a master advance table.
The two detail advance tables will be wrapped in a subtab layout.
My questions are:
Can a master table have two details tables?
Can a advance table have two inner advance tables?
Your help or ideas would be valuable to me.
Thank you,
ArunHi OAF Gurus
I just want to know whether this is possible or not.
I have created two view links and three view objects
Table in Table in Table
Table1--> Table2 --> Table3
One problem i am facing when i click on Show link of Table1,it displays details of Table2 and when i click Show link of Table2,it displays details of Table3.
but when i click on Hide of Table1, it says
oracle.jbo.NoDefException: JBO-25002: Definition <Table3 View Object> of type Attribute not found
Could you please anybody throw some pointers on this?
Thanks
Hitesh -
How to insert a pdf or jpeg image into a blob column of a table
How to insert a pdf or jpeg image into a blob column of a table
Hi,
Try This
Loading an image into a BLOB column and displaying it via OAS
The steps are as follows:
Step 1.
Create a table to store the blobs:
create table blobs
( id varchar2(255),
blob_col blob
Step 2.
Create a logical directory in the database to the physical file system:
create or replace directory MY_FILES as 'c:\images';
Step 3.
Create a procedure to load the blobs from the file system using the logical
directory. The gif "aria.gif" must exist in c:\images.
create or replace procedure insert_img as
f_lob bfile;
b_lob blob;
begin
insert into blobs values ( 'MyGif', empty_blob() )
return blob_col into b_lob;
f_lob := bfilename( 'MY_FILES', 'aria.gif' );
dbms_lob.fileopen(f_lob, dbms_lob.file_readonly);
dbms_lob.loadfromfile( b_lob, f_lob, dbms_lob.getlength(f_lob) );
dbms_lob.fileclose(f_lob);
commit;
end;
Step 4.
Create a procedure that is called via Oracle Application Server to display the
image.
create or replace procedure get_img as
vblob blob;
buffer raw(32000);
buffer_size integer := 32000;
offset integer := 1;
length number;
begin
owa_util.mime_header('image/gif');
select blob_col into vblob from blobs where id = 'MyGif';
length := dbms_lob.getlength(vblob);
while offset < length loop
dbms_lob.read(vblob, buffer_size, offset, buffer);
htp.prn(utl_raw.cast_to_varchar2(buffer));
offset := offset + buffer_size;
end loop;
exception
when others then
htp.p(sqlerrm);
end;
Step 5.
Use the PL/SQL cartridge to call the get_img procedure
OR
Create that procedure as a function and invoke it within your PL/SQL code to
place the images appropriately on your HTML page via the PL/SQL toolkit.
from a html form
1. Create an HTML form where the image field will be <input type="file">. You also
need the file MIME type .
2. Create a procedure receiving the form parameters. The file field will be a Varchar2
parameter, because you receive the image path not the image itself.
3. Insert the image file into table using "Create directory NAME as IMAGE_PATH" and
then use "Insert into TABLE (consecutive, BLOB_OBJECT, MIME_OBJECT) values (sequence.nextval,
EMPTY_BLOB(), 'GIF' or 'JPEG') returning BLOB_OBJECT, consecutive into variable_blob,
variable_consecutive.
4. Load the file into table using:
dbms_lob.loadfromfile(variable_blob, variable_file_name, dbms_lob.getlength(variable_file_name));
dbms_lob.fileclose(variable_file_name);
commit.
Regards,
Simma........ -
How to add the values of all selected columns in a table and display it ?
Hi all,
I am using jdeveloper 11.1.1.6.0
Page:
my page jsff page contains one ADF table and one textbox
DB:
i have two database tables A & B ,
i need 2 columns from each table . say (A.product_no ,A.product_name,B.prodeuct_price ,B.confirm)
here product_no is primary key and present in both tables.
i need to create a VO combining these two tables and put it as ADF table in a jspx page
Functionality :
my 'confirm' field is a checkbox field in table . whenever the checkbox is selected,
the corresponding price will be getting added and display it in a textbox.
Eg:
if my first 4 price values are 3000 , 2000 ,4000,2000
and if i select first 3 values , then the text box should contain 9000 value.
i need help ...
Problem:
i need help in creating VO and functionality partHi,
it is easy: create an entity object for every table and one view object where you select your both entity objects and join them in your select statement.
Your desired 'confirm' functionality could be achieved with helpp of view object transient attributes - for more information see: http://docs.oracle.com/cd/E21764_01/web.1111/b31974/bcquerying.htm#CHDHJHBI
Regards
Pavol -
How can I insert a image into a BLOB column in a table?
I am using forms6i against a 10gR2 database and I have one table with a BLOB column and I try to insert a image into this column. I get ORA-01461 error.
The curious case is that in another table with a BLOB column it works very fine.
What happens with the first table? How can I avoid the error?
Thanks in advance.Hi hyue,
Thanks for visiting Apple Support Communities.
If you would like to add an image to a project in iMovie for iOS, see this article for helpful steps:
iMovie for iOS (iPad): Add photos to a project
http://support.apple.com/kb/PH3171
All the best,
Jeremy
Maybe you are looking for
-
hi folks, I am facing problem in printing report thru Browser, Here is the case we have generated a text file at server using d2k report which we are displaying to user thru our application we have used all formating characters in it , we are require
-
Problems share with VGA second display screen
Dear Guys , This is the second or the third time that when i share my screen with VGA adapter , it will create this problem Anonymous UUID: 2EFCEE5A-DB10-F8FA-A568-84347E24423C Sat Apr 18 15:05:11 2015 *** Panic Report *** panic(cpu 2 caller 0x
-
Using OR with WHEN in .ctl file
Hello, Can I use OR with WHEN clause in .ctl file? I am trying to load txt file into oracle table. I used positions. INTO TABLE ABC WHEN ((814:834)!=BLANKS) OR ((934:938)!=BLANKS) DE_CASE POSITION(1:7) NULLIF DE_CASE=BLANKS, DE_WHERECODE POSITION(814
-
DSL, LAN, DHCP & DNS settings.
I am having trouble with setting up my Solaris 10 on the internet. I use SBC DSL for my Windows and Linux programs without any problems. But, the Solaris can't access eth0, or my modem for a direct connection, and I can't establish a proxy connection
-
Smart objects and filters in elements 10-how to?
please help...thanks