How do I create a static combo box inside a browse ?
example output that i would like to display:
column 1 combo-box1 column 2 column3 combo-box2
side note:
would also like to know how to add a dynamic combo box.
You can define the cell as a combo-box in the DEFINE BROWSE statement.
DEFINE BROWSE brComboBox
QUERY qTT DISPLAY
fieldA
fieldB
fieldC VIEW-AS COMBO-BOX LIST-ITEMS "a,b,c,d"
fieldD
ENABLE fieldC
WITH NO-ROW-MARKERS SEPARATORS SIZE 70 BY 4.5 FONT 10 FIT-LAST-COLUMN.
If you're working with the AppBuilder GUI you simply edit the DISPLAY portion of the browse so it contains all fields:
fieldA
fieldB
fieldC VIEW-AS COMBO-BOX LIST-ITEMS "a,b,c,d"
fieldD
ENABLE fieldC
Related
I have created a graphical table in spotfire
I have columns 'Group', 'Score', 'Pass/Fail'
I want to setup Alert Icon(Pass/Fail column) red or green circle base on Score. But pass-fail criteria is different for different groups. let say for group1 is 35% and group2 is 40%
How can I write a customer expression for this?
I cannot see the Group or Score as column to select in the "Customer Expression" window. I see only Axis.Icon in the 'Column' section
I was thinking of using something like this below in the icon setting custom expression
case
WHEN [Group] = 'Group1' and [Score] < 35 THEN Axis.Icon = 'Square' and Axis.Icon.Color = 'Red'
WHEN [Group] = 'Group2' and [Score] < 40 THEN Axis.Icon = 'Square' and Axis.Icon.Color = 'Red'
END
thanks
So that is not possible with Spotfire Icon settings to use multiple column. The workaround is that
I create a calculated column 'PW' in the data table having alphabetic value representation of conditional pass/fail based on group and score. i.e. p for pass and f for fail
I went to graphical table - icon setting for 'Pass/Fail' column, selected newly created column i.e First(PW) and then added new rule for pass and fail using 'start with' condition on to display a green or fail colored icons
I create a page and add an interactive report to show data of view
CREATE OR REPLACE VIEW FAC_FILE_MANAGEMENT_VIEW AS
SELECT FAC_FILE.NAME as FILE_NAME, FAC_NHAN_VIEN.USERNAME as USERNAME,
FAC_FILE_MANAGEMENT.FAC_MONTH as FAC_MONTH, FAC_FILE_MANAGEMENT.FAC_YEAR as FAC_YEAR, FAC_FILE_UPLOAD.LAST_UPDATED as LAST_UPDATED,
CASE IS_COMPLETED
WHEN 0 THEN 'Not Upload'
WHEN 1 THEN 'Completed'
END as IS_COMPLETED
FROM FAC_FILE_MANAGEMENT left join FAC_FILE on FAC_FILE_MANAGEMENT.FILE_ID = FAC_FILE.ID
left join FAC_FILE_UPLOAD on FAC_FILE_MANAGEMENT.FILE_UPLOAD_ID = FAC_FILE_UPLOAD.ID
left join FAC_NHAN_VIEN on FAC_FILE_MANAGEMENT.UPLOADED_BY = FAC_NHAN_VIEN.ID;
Now, I want to create new custom column nam 'View Detail'. This column is a link based on value of IS_COMPLETED
Completed: Show link to view detail
Not Upload: Blank
How can I add a custom column into interactive report?
Its much easier if you just add NULL to the query like this
SELECT NULL as View_Detail, <insert other columns>
FROM TABLE
add column to your report query like:
,DECODE(IS_COMPLETED,'Y','View Detail','N','') AS 'Detail'
This will add new column to your report.
Now go to your Report Attributes tab and edit Detail Column.
and change Display As to Standard Report Column.
Also, you need to select column in interactive report to display from your output.
I'm trying to create a combo box that has the only the field names from
a table in it and not the items in that field. So for example I have a
table with 40 fields in it like Account#, Name, address, phone # etc...
I want to click on the combo box and have the option to choose a field
and not the data within the specific field. So when I click the drop
down it will show all the fields in the table (Account#, Name, address,
phone..) I've tried a few different idea's from people but cant get
it to work. I'm using Access 2002 if that helps.
An Access combobox has a option for Row Source Type of 'field list'.
Just set the Row Source Type to 'Field List' and select the table from the Row Source dropdown.
you can use the sp_columns stored procedure for sql server to get a list of column names for a given table
I have a datagrid, which contains two columns.. second column will contain a dropdown .. The dropdown contains all the DB column names and when i select any DB column field from the dropdown then the field will be mapped to first column and the selected field from the dropdown will no longer exists in the dropdown.
when i clear the field from the first column, then the field will again bind to the dropdown, but the field is displaying at the last in the dropdown, so the field should not be displayed at last, it should display in it's previous place(i.e from the place where the field mapped from dropdown).
So can any one please let me know how to handle this is xaml.cs file.. That will be more helpfull for me...Thanks !!!
Initially i have declared an ObservableCollection OcCols = null;
//Used TableColumnsQuery in swith case case and adding all the column names from the table and then added the columns to OcCols.
TableColumnsQuery is declared as "SELECT COLUMN_NAME FROM information_schema.columns WHERE COLUMNPROPERTY(object_id(TABLE_NAME), COLUMN_NAME, 'IsIdentity')!= 1 and table_name ="
case "TableColumnsQuery", in the case adding all the columns from the table to OcCols and then adding the OcCols to the grid.
((GridViewComboBoxColumn)this.gridMappings.Columns[2]).ItemsSource = OcCols
Gridmappings is the grid name and second column has the combo box\dropdown which i have xplained earlier.
so now how to sort the columnfileds in the combobox/dropdown.
Thanks!!!
I'm using Oracle APEX and I'm generating an interactive report .. Now I have a drop down selection box which has a list of values (LOVs) .. What I want to do is to use the currently selected value in the drop down box in the SQL query being used to generate the interactive report .. Like for example this is the SQL query for generating the interactive report to only show employees with rank Salesman:
select "EMP"."EMPNO" as "EMPNO",
"EMP"."ENAME" as "ENAME",
"EMP"."RANK" as "RANK",
from "EMP" "EMP"
where "EMP"."RANK" = 'SALESMAN'
The above query completely works for me ... Now I have a drop down box on the same page in APEX which is named RANKS, and has this LOV: SALESMAN, CLERK, ACCOUNTANT, DEPTHEAD
How do I change the SQL Query so that it now looks up the currently selected rank in the ranks drop down list and then only displays employees with that rank ...
If your ranks LOV is called P1_RANKS for example, then you can change the query SQL to:
select empno, ename, rank
from emp
where rank = :P1_RANKS
However, that only works once a rank has been selected. If you want to show all employees when no rank has been selected do this:
select empno, ename, rank
from emp
where (:P1_RANKS is null or rank = :P1_RANKS)
You can either make the select list submit the page to refresh the report or, preferably, create a dynamic action to refresh the report when the select list item is changed.