Display an icon on a report based on colume 0 or 1
I have an icon that I downloaded in the shared components.I have a database field that is a 0 or a 1. If the value of the database column is 1 then I want the icon to display in the interactive report, I do appear when I do the Charly for this column. If the value is 0, then do nothing.
How do I do that?
Thanks in advance.
Anon
Published by: Anon on March 17, 2009 12:23
Hmmm... When you access the Column property for this column, it occupies as a Standard report column instead of display it as text or something else?
Tags: Database
Similar Questions
-
Displaying an icon for each record, based on a condition
Hi people,
I'm developing an application that uses forms 6i with oracle 10g. I have the "Grant" and "Deny" options in my application. I have also two icons is TICK icon and next is WRONG icon.according to the corresponding status icons ("granted" or "Refused") should be displayed for me.for this i have used multi-record block composed of 10 documents. Here is my sample code.
Using this code, I am able to get the visibility of icons, but it affects the entire column. For example, if the first status of cases is "granted" then TICK icon should appear to runtime.similarly if second status of cases is "denied" then ERROR icon should be displayed for me.but for me that the TICK icon is displayed for all 10 records if the State of the first record is "granted". How do the visibled corresponding icons according to status ("Granted" or "Refused"). Kindly give me a solution.IF :STATUS.C_STATUS = 'GRANTED' THEN Set_Item_instance_Property('status.tick',VISIBLE,PROPERTY_TRUE); Set_Item_instance_Property('status.tick',DISPLAYED,PROPERTY_TRUE); Set_Item_Property('status.wrong',VISIBLE,PROPERTY_FALSE); set_item_property('status.wrong',DISPLAYED,PROPERTY_FALSE); .............
Published by: vidusnat on May 2, 2012 12:26Hello
Well, I don't think you can do it by making visible or invisible button/item. I can share an idea to create two image files a given and one for refuse. Multi record block you create an element of the image (non-database) and read the image on this element in the post (at the block level) based on the State values that you so condition...
TRIGGER = POST-QUERY (BLOCK-LEVEL) IF :STATUS.C_STATUS = 'GRANTED' THEN READ_IMAGE_FILE('image_path\access_given.JPG','JPG','BLOCK_NAME.IMAGE_ITEM_NAME'); ELSE READ_IMAGE_FILE('image_path\access_denied.JPG','JPG','BLOCK_NAME.IMAGE_ITEM_NAME'); END IF;
-Clément
-
Display success or failure in report based on the return value
Hello
I try to incorporate TestStand to TestComplete by using the ActiveX/COM server adapter I have the COM setup so that TestStand can call a test in TestComplete and have TestComplete to return a string value (true | false) to TestStand.
Now I need to get the TestStand report to view 'pass' or 'fail' text for this call sequence, by the return of TestComplete string.
Is there a place in Expressions or Actions Post I can say and how:
Returns 'True' = pass
Returns ' false ' = failure
Thank you.
Hello
(Option 1). Use a string value Test. The Limits.String would be 'True '. It would be the easiest because you already channels return of your ActiveX call. You could do your ActiveX calls a test of a string value.
(Option 2). Use a step of success/failure. You can set the string returned in a local variable and then create another step of success/failure that would pass/fail criteria as Locals.StringReturned is 'True '.
Here are the two options that we hope can help you get started...
Thank you
PH
-
Conditional display of interactive report based on the different SQL query
Hello
I have two drop-down list at the top of my page and below I have an interactive report.
Based on the selection of the user from the drop-down list values, interactive report should change based on different SQL queries.
Is it possible to have different SQL queries based on the drop-down list values and generate interactive report based on that?
Thank youHello
You can't have IR based on function returning the query as you can have classic report
But here is a workaround
http://www.oracleapplicationexpress.com/tutorials/71Kind regards
Jari -
Possible to display an icon from loading until the page load completely?
4.2.1
THM:2
Hello world
I have an application with two expensive queries that takes a while to load (on the page sent). On the page there is a selection list filter. When the user changes, the page is sent and two classic run reports based on this filter. I have a dynamic action (load which) goes off on the amendment of the list and then submits the page. However, the loading icon is visible until the moment where that page is submitted. Once the page is sent, then also the reports takes some time to display all of the records. Is there a way to display some sort of an icon of loading time of the page load completely? OR this is not possible.
Thank you!
Ryan
Hi Ryan,
Please check the old thread with the same question
PROGRESS BAR WHILE LOADING A PAGE
Kind regards
Jitendra
-
How to create a report based on the selection of a node of a tree
Hello
I am new to Oracle Apex and tried to build a tree and also an interactive report based on column empno from emp table.
I created a tree based on the emp table. Now, I want to see the records in the employee selected in the tree.
This is the query of the tree:
Select case when connect_by_isleaf = 1 then 0
When level = 1 then 1
of another-1
end the status,
level,
'ENAME' as the title,
NULL as an icon,
'EMPNO' as value,
NULL as ToolTip,
NULL as link
of ' #OWNER # '. " EMP.
Start by "MGR" is nothing
connect prior "EMPNO" = "MGR".
siblings arrested by 'ENAME '.
Can someone tell me step by step how to go from here?
I tried to follow the thread but could not understand a lot of it.The approach to reload the page and display the report is fairly simple.
- You start by creating a new page element that will be used to store the selected node ID, for example. P100_SELECTED_NODE (you can do atext element and change hidden once everything works as expected)
- Change the query of the tree and the link column in the SQL of tree definition to a link to the same
for example if your page is 100, you'd do the tree node a link to the same page but the value of the P100SELECTED_NODE with id_ of the node selected
This is done here
{message: id = 4410987}
In this case, it would be' f ? p = & APP_ID.: 100 :'|| : APP_SESSION |': P100_SELECTED_NODE :'|| EMPNO as link
Now when you click on a link to tree node, it would be back to the same page, but set the P100_SELECTED_NODE with the empno of the clicked node.
- All that's left to do, change your report so that it refers to the new point inorder to filter records for this employee empno i.e
SELECT ... .. WHERE empno= :P100_SELECTED_NODE
-
Updated interactive report based on shuttle Page
I am trying to create an interactive report based on the selected items in a shuttle service. On the page there is a page entitled P2_ITEMS element which is a shuttle service. It displays a list of items for the user to choose and returns the item_id, the primary key of the main table. I then an interactive report on the same page that displays data for the item_ids selected in the shuttle. I use the sql query below in my interactive report, but nothing shows up in my report. How can I get the interactive report to be updated when items are selected in the shuttle?
Select
a.date_loaded,
b.item_type,
c.Item,
a.info
point a, item_type_lookup b, item_name_lookup c,.
where instr (': ' |: P251_ITEMS |': ',' :'|| a.item_id |': ') > 0
and a.item_type_id = b.item_type_id
and a.item_name_id = c.item_name_id;
Hello
Please, install application example sample Dynamic Actions. There are exactly what you are looking for (side Server-online shuttle refresh).
Kind regards
Pavel
-
interactive report based on an existing table
Many people, it is the next step in the construction of my app. I watched a tutorial of utube produced from a worksheet a table in a database and a set of pages to enter data and to display and edit data in the table. I already have the table and I would like to make the pages I've seen. a spreadsheet as a table which allows the edition of each row and a button create on top. I guess I was also able to delete a line if necessary. I think I need to creata a page, select report and interactive report. Continues in this way, I get a request for a sql statement that will likely tell the page generator that he needs to create the report. I need to make the report based on a table in another table space. At this page, I entered in the query designer and my table space is not listed, only the current APEX of table space is available. I went in a different direction to create a form for a table and to the bottom of the sequence, he also requested information in the table. My table db space is listed as available and I am able to create the registration in a satisfactory manner.
Then, why I can see and interact with my db table space when you create a form for a table but can not find the db table space when you generate an interactive report?
Also, I'm heading down the correct path for the interactive report, that I need?
"HustlingHare" alright, get ready to be the hero. "" "You're almost there. '"
(1) Firstly, nuke has report page IR that you just created. You don't need it.
(2) then go back and run the wizard to create a Page. Choose 'Form', then 'form on a Table with the report '. Because your DBUSER1 has privileges discrete objects on the table in the schema DBUSER2, DBUSER2 must appear in the select list of "Table / view owner" in this wizard.
Follow the steps in the wizard to create the interactive report and form, and you're done!
Joel
-
How to create a report based on the item selected from the list of selection?
Hello
I created a tables_LOV based on:
Select table_name table_name user_tab_cols r, d
where column_name like '% _type % '.
Then I created a ListOfTables page element, display in a selection list and pointing to tables_LOV.
I run the page, and I can choose the table I want in the drop-down list.
How to create a report based on the selected element? (ex: select * from selected_table)
Thanks in advance
Salah
Hi Salah,
Allright, take a look at this page: http://apex.oracle.com/pls/apex/f?p=vincentdeelen:collection_report
I think that simulates what you are trying to accomplish. I've implemented the simplest method I could think of.
The report is based on a collection of apex. If you are not familiar with this, you should study the documentation: APEX_COLLECTION
To recreate my example, you should:
(1) create a report (interactive) on your collection
SELECT * FROM APEX_collections WHERE collection_name = 'MY_COLLECTION'
(2) create a selection list page_item for the tables that you want to display (in my case, this is called "P38_TABLES")
(3) create a dynamic action that triggers on the evolution of your selection list page_item. Dynamic action must be a parade of PL/SQL procedure the following code:
declare l_query varchar2(4000); begin l_query := 'select * from '||:P38_TABLES; if apex_collection.collection_exists ( p_collection_name => 'MY_COLLECTION' ) then apex_collection.delete_collection ( p_collection_name => 'MY_COLLECTION' ); end if; apex_collection.create_collection_from_query ( p_collection_name => 'MY_COLLECTION' , p_query => l_query ); end;
Make sure that you add your page_item 'Page to send items' section.
(4) add a real extra action that makes an update of the report area.
Here are two photos describing the da:
http://www.vincentdeelen.com/images/OTN/OTN_COLLECTION_REPORT_DA1.PNG
http://www.vincentdeelen.com/images/OTN/OTN_COLLECTION_REPORT_DA2.PNG
Good luck and greetings,
Vincent
-
Select a cell of interactive report based on another hidden cell
Greetings,
Someone know how to select a cell in an interactive report, based on the value of another cell in the same row and without this cell being shown?
The integrated highlight feature IR does not seem to allow me to highlight a cell based on the value of another cell (correct me if I'm wrong).
So I tried to go with a JavaScript solution, that I found in a thread somewhere on the forums of the APEX. I created a dynamic Action with this JavsScript code:
and it works perfectly when the column is displayed, but not when it is hidden (which makes perfect sense).$('[headers = "INTENSITE"]').each(function() { if ($(this).text() == 1) { $(this).siblings('[headers = "NOM_COMPLET_USAGER"]').css('background-color','red'); } });
So this is where I am stuck. The report has a lot of info, and I don't want to have a useless column projected and using precious space.
Any help would be appreciated.
Thank you
MathieuYou can try the following:
1. Add a column to your sql that contains the background for example color
SELECT
EmpNo,
Ename,
initialst,
Decode(INTENSITE,1,'red','white') background_color
Of
EMP;2. in the new updated interactive report background_color column is hidden.
3. Select the NOM_COMPLET_USAGER column and set the following parameters
Link text = > #NOM_COMPLET_USAGER #.
Link attributes = > style = "background-color: #BACKGROUND_COLOR; #
Target = > URL
URL = > #.I hope it helps
Shunt
-
Interactive report based on a Collection
Hi guys
Using Apex 3.2
I have a classic report based on a collection, which works very well.
I am now trying to create an interactive report based on the same query (collection), but no data is returned.
I there something special I need to do an interactive report.
See you soon
GusHello Gus,
First time when you create a report based on the collection ir, it does not include the columns in the display (don't know why)
pls select the correct answer to help others
Thank you
-
Display edit icons provided for that particular record.
Hello
I have the following problem;
I have a report that contains a link to a URL column. This column displays an icon of change for the link. The report displays a list of dependent records on the privileges of the users. A user can have the privilege to SELECT or MODIFY for all or part of the records. In addition, I want to display an icon on the column for records where the user has the privilege to CHANGE. I want to put a conditional statement on the change icon that looks something like this;
Conditional display > Exists (SQL query returns at least rank) > SELECT id FROM tbl_name WHERE id = #ID #.
I note that the recording may be designated by the #ID substitution string # when the column a column of link to download a document downloaded. But the method above (using the #ID substitution string #) returns an error.
So the report would look like the following, an icon would show only on a registration if the user has the privilege of EDITING.
If the record for the ID = 2 the user would be able to CHOOSE, but they would have no right to EDIT on this subject and therefore would not be able to make a link to the edit form.ID EDIT ----------- 1 ICON 2 3 ICON 4 ICON
Thank you
Ben
Published by: Benton on October 5, 2009 11:31See this and other examples showing how to do:
http://Apex.Oracle.com/pls/OTN/f?p=31517:23
Denes Kubicek
------------------------------------------------------------------------------
http://deneskubicek.blogspot.com/
http://www.Opal-consulting.de/training
http://Apex.Oracle.com/pls/OTN/f?p=31517:1
------------------------------------------------------------------------------ -
Hi all
I wanted to create a form with report based on two tables:
1. I created a display (called COMBO) based on two tables
2. I then created a form with the opinion-based report
Until then, everything seemed fine until I tried to edit existing records - I get the error:
Note: REPATRIATION_ID is the primary key of the table of repatriation. The other table is a plaintiff.ORA-20505: Error in DML: p_rowid=2002082600001172, p_alt_rowid=REPATRIATION_ID, p_rowid2=, p_alt_rowid2=. ORA-01776: cannot modify more than one base table through a join view Unable to process row of table COMBO.
& when I tried to create a new record - I got the error:
Someone enlighten me please!ORA-01776: cannot modify more than one base table through a join view Unable to process row of table COMBO.
Kind regards
Kamo
Published by: Kamo 03/12/2009 02:33Hi Kamo,
You create a trigger of "instead of" (insert/update/delete) on your sight to treat inserts etc in the tables 'real '.
Greetings,
Roel
http://roelhartman.blogspot.com/
You can reward this response in marking it as useful or Correct ;-) -
The column report based on the build option
Hello
is it possible to display a column of report based on the selected build options?
I can exclude the elements or even a full page by adding a compilation option, but I couldn't find any way to exclude a column of a report according to a compilation option (for example not displayed this column if the build option is xyz).
Any ideas?
Thank you
JochenJochen:
I have not tested, but creating a condition for the column based on the APEX_APPLICATION_BUILD_OPTIONS could provide a solution.
CITY
-
My firefox does not display the icon fonts!
I use fontello.com for my web design project. But recently it does not display the icon.
and the strange thing is that its OK my Firefox friends and just my PC have the problem.
for example, this page shows icon on my friends firefox but I can't see the icons
https://DL.dropboxusercontent.com/u/28793409/fontello-d3b0f38a/demo.htmlThat's what I see
https://DL.dropboxusercontent.com/u/28793409/shot.jpgIf Safe Mode is good, the more likely culprits are one of your extensions or incompatibility of the graphics driver. To work around the second question, you can disable use of the hardware acceleration Firefox to see if that helps.
"3-bar" menu button (or tools) > Options > advanced
In the mini ' General' tab, uncheck the box for "use hardware acceleration when available.
It takes effect the next time you exit and restart Firefox.
Maybe you are looking for
-
BASIC WINDOWS 10 DISPLAY ADAPTER; NVIDIA WENT :(
NVIDIA WINDOWS 10 JULY 2016 Windows 10 has an update for the video card or the driver game. Have tried to update to basic display adapter already. Looking for a software from Microsoft or another place that will cause the game and other performance o
-
Need a card system for Satellite Pro M40
Hi, does anyone have a system M40/motherboard for sale in working condition known? I am a repair engineer and have already bought 2 boards on eBay, but they arrived does not. My client has a need urgent sound M40 back up and running. Thank you, Phil
-
Pictures not download in iCloud.
I hope someone can help me. I activated iCloud photo library a few weeks ago and zero pictures have uploaded to iCloud. He is active on my MacBook Air and iPhone 6. I tried of you connecting to iCloud and power the two devices off the coast several t
-
Get reminders for KB2446708 already completed eventhough the update security update
Original title: KB2446708 security update I keep getting reminders on the above update even if I have already completed the update.
-
How to put a dm1-4108au memory to 4Gig?
Manual said to remove "door service". I don't see one. JB HiFi said just do it yourself. What happens to the warranty if I process and take the computer laptop apart?