Populating a report column(Popup lov) based on the other column.
I have a report where a column that is a Popup Lov(Query based LOV) needs to be populate based on another column in the same report.
For example, if the column1 has query based lov select statment "select a,b,c from tab where d= *<<col2>>* ".
I would like to have a sql query based on the values of second report column. Any ideas are appreciated.
Regards,
madhu
You can do that only if you use apex_item. See this example as a reference:
http://apex.oracle.com/pls/otn/f?p=31517:176
In this example the second select list query depends on the first select list column value.
Denes Kubicek
http://deneskubicek.blogspot.com/
http://www.opal-consulting.de/training
http://apex.oracle.com/pls/otn/f?p=31517:1
-------------------------------------------------------------------
Similar Messages
-
Need to change color of one column's value depending on the other column
Hi,
i have a search form which displays two column values
First column value's colour should be based on second column's value
For example, if second column has values 'Active', 'Inactive' and 'Pending'
If 'Active' , the first column value's color sholud be 'red'
If 'inacitve, another color ....
Thanks in advance,Hi!
What we did was we added a column on the VO that returns kind of a css part (for example if a column value is 'Active' the value of this column should be "background-color:rgb(255,0,0);")
Than you use something like this on your column:
inlineStyle="#{row.StatusStyle}"where StatusStyle is the name of the column with "background-color:rgb(255,0,0);" value.
The problem here can be that the background color doesn't cover the whole column but only the text in it (so if it is null, the color is default).
If you want the whole column to be of this color you use something like this:
<af:column ...>
<afh:tableLayout ...>
<afh:rowLayout ...>
<afh:cellFormat inlineStyle="#{row.StatusStyle}" ...>
<af:outputText ...>
</af:outputText>
</afh:cellFormat>
</afh:rowLayout>
</afh:tableLayout>
</af:column>Basically you put another table layout inside a column instead just a outputText (or whatever control you use)
Hope this is understandable and it helps :)
It works for us.
BB -
How to get keep one column as a key and the other columns as a array list
Hello,
I am really new to Java...I am trying to read a text file containing different columns separated by comma and then create a hash map for the first column (key) and then rest as a array list for the key.I am not able to create the hash map and the corresponding key.Could someone help me in this regard.
The text document is :
AcctNo,AcctMngr,AcctType,ProdList,Volume,AcctPrice,Returns
12345,Vikram,2,MSFS:IBM:XYZ:MAN,28000,4500,1.25
53278,Anand,1,PLYS:AIX:YET:WON,85000,8500,2.32
94005,Vincent,3,UTIL:FLY:YEL:WIN,67000,5600,3.21
45000,Abhishek,2,WENS:KYL:MEN:ABS,34000,9800,4.21
76000,Chris,3,MENS:IBM:ROC:QUE,25000,2500,2.15
67000,Kiran,4,FORS:ITI:MOC:REM,32000,3500,1.54
87000,Rohit,2,MSNF:IIT:HOT:ROC,54000,5400,4,23
45600,Sathyan,3,HELP:FOR:PRO:GRA,65000,3400,2,1.98
84600,Vinay,4,PLZE:TES:ROC:WEN,76000,7300,3,4.32
65000,Venkat,2,HETT:WEL:SEE:RED,89000,9800,1,3.23
and the code which i have so far is
import java.io.*;
import java.util.*;
class SearchHash {
public static void main (String args[]) {
int i=0;
int j=0;
Object newKey = new Object();
Object newValue = new Object();
Map map1 = new HashMap();
ArrayList a1 = new ArrayList();
String val;
try {
BufferedReader br1 = new BufferedReader ( new FileReader ( new File ("progress.txt")));
String s="";
s = br1.readLine();
while (s!=null) {
StringTokenizer st = new StringTokenizer (s ,",");
int k=0;
while (st.hasMoreTokens()) {
while (k<=6) {
val= st.nextToken();
if (k==0) {
newKey = val;
else{
newValue = val;
a1.add(newValue);
k = k+ 1;
map1.put(newKey,a1);
map1.put(newKey,a1);
a1.clear();
s = br1.readLine();
// System.out.println(map1);
}catch (Exception e) {
System.out.println("Exception Raised : " + e);
Thanks.,...Array? Don't live in object denial. Define a class (Account?) and parse each line as an Account object. Then you put them into a Map<Integer, Account> by their account number.
-
Tableview - column color disaply based on comparing other column on the tab
Hi,
Can any one give me some idea about how to compare two columns of table on IF_HTMLB_TABLEVIEW_ITERATORRENDER_CELL_START ?. I have to compare the column 3 with column 4 and display the color on column 3. I am trying to do that on IF_HTMLB_TABLEVIEW_ITERATORRENDER_CELL_START but this is not working out. Any suggestion ?.Hi,
in IF_HTMLB_TABLEVIEW_ITERATOR~RENDER_CELL_START you only have the actual row in P_ROW_DATA_REF.
Either you make the the availabe as iterator's attribute when instantiating or you collect the row P_ROW_DATA_REF when in RENDER_CELL_START to a class attribute.
Regards,
Sebastian -
Tab Form LOV uses one of the other columns in that report.
Hi All.
i created a Tabular Form using the Wizard.
i want to change one of the columns in the report to be an LOV.
the LOV has a WHERE that uses one of the other columns in that report.
i tried to do something like that:
SELECT <display_value>, <return_value>
FROM <some_table>
WHERE <my_column> = #ANOTHER_COLUMN_FROM_REPORT#
it doesnt work...
anyone know how to do it?
thanks in advance
AlbertoSee
http://htmldb.oracle.com/pls/otn/f?p=18326:54:::::P54_ID:1282
Also see the discussion at
http://forums.oracle.com/forums/thread.jspa?messageID=1222153 -
How can I sum the values in a given column on sheet 1 i.e. A1:A50 based on the adjacent columns specific value i.e. B1:B50 = “Dinning Room” on sheet 2
For Example:
SHEET 1
A
B
$50
Dinning Room
$800
Dinning Room
$300
Kitchen
$1,000
Master Bedroom
$100
Dinning Room
SHEET 2
Display the total SUM amount of each Project based on Sheet 1
Project Name
Total Cost
Dinning Room
$950
Kitchen
$300Would be a good idea to open iWork Formulas and Functions User Guide and search for the description of the function named SUMIF
The Guide is available for every user thru the Help menu.
Yvan KOENIG (VALLAURIS, France) jeudi 19 mai 2011 17:32:42
Please :
Search for questions similar to your own before submitting them to the community
To be the AW6 successor, iWork MUST integrate a TRUE DB, not a list organizer ! -
Pages: How can I sort one column of words and not have it affect the other columns?
How can I sort one column of words and not have it affect the other columns? I have opened the inspector to the edit columns and rows under Table. It will sort the column, but then it changes the other colums as well. I know that if I use Numbers, it will work, but I want to know how to do the same thing in Pages.
Hi Peter,
Numbers sorts full rows on values in selected column(s). The technique for sorting a single column is essentially the same as Jerry is describing for Pages tables—separate the (data in the) column to be sorted, sort it, return it to the table.
In Numbers the actual column may be separated from the original table, sorted, then returned. In Pages, the data must be extracted, sorted, then pasted back in, overwriting the unsorted data (if it was left in the original table).
iWork tables follow a database model in which each row is a Record, and each column holds a Field within the records.
As evidenced by the current question (and several similar questions arising in the Numbers community) that model doesn't apply to the way some users, especially some who come in from the MS Excel world, use tables.
With Excels model—islands of data on a single large table, the ability to sort one or a selected few columns of data makes sense. One 'island' may comprise only cells AA21:AH50. Sorting that small 'table' should be possible without disturbing the rest of rows 21-30, which are probably part of one or more other 'data islands' in the sea that is a MS Excel spreadsheet.
In Numbers, each of those 'islands' would be a separate Table, and that Table would be sortable without disturbing other Tables in the document.
Regards,
Barry -
Making JTable columns 2- n scrollable, not the first column, how?
Id like for my JTable's first column to always be visible, and columns 2->n to be scrollable. The table also follows the sortable table model found from the swing examples...so if the user sorts any of the columns, all the other columns should sort accordingly.
is there anyway i can separate the first column with the others, so that i can put them in their own scrollpanes (first column just scrolls up/down, and 2->n can scroll either way)?I only glanced at the example at the posted link... if memory servers, the trick was to create one JTable but with two different TableModels. To link the two models, you can simply make the getValueAt method in the fixed model call the getValueAt method of the non-fixed model. It's a bit tricky for beginner, but doable.
;o)
V.V. -
How can I delete a column of numbers that are referenced in another column without deleting the other column?
select the column to delect by click in the column header
select the contextual menu for that column by clicking (and holding) the down arrow:
select "Delete Column" to remove the column: -
I just want to see the contents of the folder not all the other columns!
Finder->View-Hide Sidebar (⌘⌥ S). Once set, ⌘J and select Use as Defaults. That'll ensure all newly opened windows have that setting.
-
Dynamically changing the select list in an LOV based on the login user
We have a field in a form which is a combobox.The form is to be linked to different profiles of users.Based on the logged in user we would like to restrict the select list in the LOV.ie user1 should see a LOV which is different from that seen by user2.Is this possible.If so how can this be done?Kindly reply.
Thanks & Regds,
JayanthiThanks for ur reply.But my problem is that i have a table having details of some products which includes spareparts also(Name,id,price etc).In my form i have the combobox field which should have a list of these products which the user can select.Now depending on the user's profile he should see only his related products(One profile of users should view only the products but not the spares while the other should view only spares.)The details of both the products and spares are in the same table.we have a criteria to differentiate between the products and the spares.The LOV should display at run time, either products or spares depending on his profile as he logs in. Hope u understood my problem.
Regds,
Jayanthi
Hello Jayanthi,
I had a similar situation in my last project.
While you can solve this by modifying your query, this will always come around as may be later some other criteria to restrict based on User/His Role/Something else. Hence I fixed it at design level itself. Though I can't give my situation I can tell you the solution applying my logic.
Altering your Product Table and adding one more database Column say Product_Category and updating the table with Product Category =1 for Products and 2 for Spares. You can extend this further for other types.
Create a new Table say User_Groups that will have
Group_id
Group_Name
User_Id columns and will contain all the User ids inserted groupwise.
Create one last Table Group_Product_Map
That will have
Group_id
Category_id
This will store each Group_Id followed by Category_id of Products to which these group members will have access to.
Now write a database function getCategory( p_User) which will query User_Groups table to get Group_Id
and further query Group_Product_Map Table based on group_id to get Category_Id.
This function will return category_id.
Huh!
So your LOV will have a query as select *(or whatever) from Product where category_id = getCategory(portal30.wwctx_api.get_user)
Hope this helps
Madhav -
Report to show data based on the Selection
I have a prompt which is having three filters i.e. Region Country and City.
I have to create a report which shuold show the revenue share based on the selection of the Prompt.
Say When the Region is selected as Eurpoe then report should be:
Europe : 12%
Say When the Counrty is selected as UK then report should be:
UK: 6%
Say When the City iis selected as London then report should be:
London : 1.2%
How can we get this implemented?You want a level based measure in the BMM which will allow you to derive the region share regardless of filtering.
Then simply use Region is prompted in the report to filter for only the region you want.
For level based measure, duplicate your measure and drag it to the total level of your Region hierarchy. Define you % measure in the BMM as a logical calc.
Hope this helps,
Regards
Alastair -
Output of the report is not displaying based on the layout
Hi,
We are not able to get the report based on the layout. We have found that F4 help is not working for the layout selection, as there are so many layoust mantained for the report.The FM REUSE_ALV_VARIANT_F4 is used to select the variant.But we have checked the table LTDX, there are no lay out is there for this report.hence the out out of the report is always displaying based on one standrd layout.
Kindly guide me to resolve this issue.
Regards,
ArundhatiHi, follow these steps:
1 - Variant on Screen
SELECTION-SCREEN BEGIN OF BLOCK bloco2 WITH FRAME.
PARAMETERS: p_layout LIKE disvariant-variant.
SELECTION-SCREEN END OF BLOCK bloco2.
2 - F4 on field
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_layout.
PERFORM busca_variantes.
AT SELECTION-SCREEN ON p_layout.
IF NOT p_layout IS INITIAL.
PERFORM verifica_variante.
ENDIF.
3 - Functions for F4
3.1 Form busca_variantes
FORM busca_variantes.
DATA: variant_exit(01) TYPE c,
variante LIKE disvariant.
variante-report = sy-repid.
CALL FUNCTION 'REUSE_ALV_VARIANT_F4'
EXPORTING
is_variant = variante
i_save = 'A'
IMPORTING
e_exit = variant_exit
es_variant = v_variante
EXCEPTIONS
not_found = 1
program_error = 2
OTHERS = 3.
IF sy-subrc = 0.
IF variant_exit = space.
p_layout = v_variante-variant.
ENDIF.
ENDIF.
ENDFORM. " busca_variantes
3.2 - FORM verifica_variante
FORM verifica_variante.
v_variante-report = sy-repid.
v_variante-variant = p_layout.
CALL FUNCTION 'REUSE_ALV_VARIANT_EXISTENCE'
EXPORTING
i_save = 'A'
CHANGING
cs_variant = v_variante
EXCEPTIONS
wrong_input = 1
not_found = 2
program_error = 3
OTHERS = 4.
IF sy-subrc 0.
MESSAGE w368(00) WITH p_layout ' não é uma variante válida'.
CLEAR p_layout.
ENDIF.
ENDFORM. " verifica_variante
4 - Calling the variant on reuse function
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
is_variant = v_variante
5 - Global DATA
DATA: v_variante LIKE disvariant. -
How to bind value to lov based on the output from other lov
HI all, i have 2 message choice Lov, i am selected a value from the 1st lov based on this value i am a executing a query, i want to display one of the attribute value from the query result in the second LOV. i am getting the attribute value correctly but i dont know how to bind that(display) in the 2nd LOV(at runtime).
Read the dev guide LOV section, it should give you details about this implementation.
-
"Filter the LOV based on the selected conditions" RADIO BUTTON doesn' work
Hi All, I'm trying to create a cascading parameters mechanism, but I found certain difficulties.
I need to have 2 LOV connect: the master LOV retrieve a list of User's groups, and the detail LOV has to retrieve only the customer's categories that come from the user's groups selected.
So, in order to retrieve the values I defined on the Administrator:
1) one custom folder for the master LOV (list of the User's groups) and another custom folder for the details LOV (list of the customer's categories).
2) The 2 LOV as item classes
On Discoverer Plus, following the manual ("About filtering lists of parameter values based on selected conditions ("cascading parameters"), I tried to create thw first parameter based on the master LOV, but I DON'T have the radio button "Filter the list of values based on the selected conditions" enabled !!!...I CAN'T USE IT !
If this radio button is not enabled, I can't link the master parameter with the detail parameter.....
Anybody can help to discoverer what I missed during the creation of cascading parameters ?
Thanks in advance for your help
AlexHi Manav, thanks for your reply !
I resolved the problem, linked the two custom folders with a join !
The radio button didn't work just only the parameter where condition has to be deselected and then re-selected !!
Alex
Maybe you are looking for
-
How do I get company's central contacts to show in OWA?
During summer 2013 we shifted from SBS 2008 (Exchange 2007 which worked great but just constantly bottle-necked) to Windows 2012 with Exchange 2013. The migration seemed have gone well but when users went to access the company's public folders, mainl
-
FileOpen Client Installer ISI Plug-in
Hello, I am attempting to install the FileOpen Plug-in for Adobe Acrobat. I currently have Adobe Acrobat 5.0 and 9.0 readers installed. I went to http://plugin.fileopen.com/all.html and downloaded the windows version. After install it says "installat
-
In Indesign die Seitenreihenfolge umkehren
Hallo zusammen, ich möchte gerne ein Buch erstellen, das aus 2 Hälften besteht und in der ersten Hälfte ganz normal strukturiert ist. Da es aber zweisprachig ist, soll man es einfach in den Händen drehen und von der anderen Seite in der anderen Sprac
-
Can't open Mail preferences 10.6.8
Never used the mail software and wanted to try it. I can open it but i can't open Preferences. It doesn't do anything if i click the menu or if i use the sortcut... I also have to force it quit everytime i close it.
-
Can someone help me ue my ftp server
Hey guys. I was wondering if anyone out there has any experience using the built in ftp server. Heres what I would like to be able to accomplish and everytime I've tried in the past using it I fail. K, All I want woudl be to say, set up a file /