How can I create prompt restricted to report data in OBIEE? - obiee

In OBIEE, how can I create a dashboard prompt using data which is populated in the report.
For Example: Possible data values are ID1, ID2, ID3. But in my report I have only ID1, ID2. How can I create a prompt where it should display only ID1 and ID2 as options, not all values.

When you create a dashboard column prompt, you can change the "Choice List Values" drop down from "All Column Values" to SQL Results. Then just take the logical SQL your report runs (get this SQL from the Advanced tab), and plug it in here, eliminating anything extra in the SQL.
If these ID1, ID2 values are not dynamic and do not change, you can hand pick choices using the "Specific Column Values" option. This hard codes the choices though, and may not be right for you.

Related

How to check a checkbox in Apex 18 when its value is present in other table

I have a checkbox with list of values from table a. I need them to be checked if are present in a column of table b. Do you have any ready solution please colleagues ?
Thx
Adam
See this similar question for some background info.
When you're working with a multi-value checkbox item, you want your Source Query to select a colon-delimited list of the values that you want to be checked in your checkbox. (This is true for multi-value Application Express page items in general.) E.g.
select listagg(my_column, ':') within group (order by my_column)
from TableB
where my_column is the name of the column in TableB that your values are stored in.
If you have a lot of values in TableB (enough that the listagg() above returns more than 4000 characters), you'll need a fancier query, but for most cases it'll work fine.

Selecting oracle column header

I've been browsing and to no avail, I can't find any information on how to select/show only the column header. My objective is to select only column header . I've uploaded a picture for better illustration on my objective. In the picture shown, I'm trying to only select and display the one ive highlighted in the red box.
Oracle table:
The only information I found from the net is selecting an individual column, and with that. It will display the data as well which is not my objective. my main objective is to only select column headings.
In Oracle APEX SQL Workshop you can describe a table with this command:
desc table_name
If you're using a query, you can click on the "Describe" tab below the query and above the result grid.
I had a similar requirement, so in page designer I plugged in a "Where Clause = Sysdate-1"
you can use select and null to pick columns and use alias to name them
select null AS column_name,null AS column_name
from TABLE_NAME

Select row value from column in interactive report

Version: Oracle 18.2
I have an interactive report in my application. When I click the 'delete' icon, I want to delete information about the user I selected. Is there a way to get the value from the 'Facility Manager' column so I can use that value in a select statement to perform the delete statement.
I've tried to do it by using the ROW_ID variable (:selected_rowid) but this didn't work.
+ Interactive Report Image
+ Set Value statement
The column value is referenced by hashes, e.g. #STUDENT_ID#.
Have a look at what Jackie McIlroy wrote, "Delete a Row of a Report with a Dynamic Action" (https://jackiemcilroy.blogspot.com/2018/03/delete-row-of-report-with-dynamic-action.html) . She describes the process in details, with a lot of screenshots.
If I were you, I'd do one of the following:
use an interactive report with a form (and navigate to the form in order to delete a row)
if it has to be a tabular layout, I'd try
the old tabular form
the new interactive grid
I don't think I'd remove rows from the interactive report (but OK, that's just me, and my ideas usually aren't too smart).

Not able to filter column in Sql Developer

I am trying to filter the result using sql developer. I got the process to filter the record as right click on column header and select "Columns" option. but In my sql developer there is no option like columns.
The best way to do this, is to use the filter input line, not the column filter.
And then just type: column_name like '%value_to_search%'
Example: NAME like '%john%'
In SQL Developer Version 3.2.20.10, after running a query you can bring up filter on column dialogue box by one of two methods:
Click on the column heading (EMPLOYEE_ID in the screen shot below)
Right click on column heading (Again EMPLOYEE_ID) and select "Filter Column"

Automatically inserting column names for table in TOAD for Oracle

I am looking for a way to automatically insert column names in TOAD for Oracle to make it easier for writing queries.
Ideally, I would like to type something like the following:
select * from myTable;
Then, when I right-click on *, I would have the option to insert all known column names for that table.
Is it possible in Toad?
Press F4 on that the selected table name, and in the schema browser, select the Columns tab, then select all columns. Then drag the selection, do not copy&paste, back into the editor, and you have your comma separated column names.
select column_name || ','
from all_tab_columns
where table_name = 'SOME_TABLE'
and owner = 'SOME_OWNER'
order by column_id;
The right click on output of field names in data grid and select Export Data (to clipboard as tab delimited, don't include quoting or column headers).
Now copy/paste where u need it. Nice thing is that you can:
Use this SQL in any IDE, not just Toad
Modify output if needed, as I do in triggers to add ':old' or ':new' prefixes to each field for example, or change order.
It is also possible to generate the statement from the schema browser-> columns tab
Select the columns you want, then right click and select the 'generate statement' menu item,then select the command you want to generate (Select/Insert/Delete).
The script then gets copied to clipboard, for you to paste at your leisure.

Resources