Display rows according to conditions
Hi
I have a requirement where i need to display the rows and corresponding values depending on the condition.
I need the Count of As and Bs whose aggregate spend sum for transactions in the specified calendar year falls within spend ranges. The ranges will continue to increment by 500 until all As and Bs are accounted for.
for example there are 20 transactions falling within the zone of 100-500, 10 transactions falling with in the range of 501-1000 this will continue untill all the records are checked. the catch here is the MAX value range that we can get is unknown. it may be 1000, 5000 or 10000. So, the row has to be displayed dynamically along with their corresponding counts.
each range is displayed in each different rows.
Any help is much appreciated.
Thanks,
Raj
Could you edit your post (edit button in top right of your post) and put {noformat}{noformat} tags around your data and query.
So you've shown use what output you are getting, how about showing us, or highlighting which of the rows you want returned so it's clear to us.
Similar Messages
-
Display rows in bold conditionally in SSRS 2008
Hi All,
I have a report with three columns..
Name
Designation
Salary
John
IT Manager
10000
Mike
Account Manger
9000
Rob
Sales Manager
8000
James
Director
15000
Jim
Marketing Manager
7500
I want to display whole row in bold format when Salary < 10000. So, In the above case Mike, Rob and Jim rows should display in bold. I need SSRS expression to achieve it.
Thanks in Advance,
RH
sqlselect the row in the container and click properties icon to open the properties window. then set an expression for the FontWeight property as below
=IIF(Val(Fields!Salary.Value) < 10000,"Bold","Default")
Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs -
Table Control - Input Enabling/Diabling of Rows based on Condition.
Hi,
In the TC, I want to Input Enable/Disable the rows based on Conditions. The First row is input enabled always. But the other rows, (2nd onwards) need to be Input Enabled/Disabled based on some conditions. It is possible to make this working. Can you please provide me a suitable solution for this?
Appreciate Your Help.
Thanks,
KannanHi Kannan...
If we are talking about "Rows"...
then identify based on some conditions the row numbers and in PBO...loop at screen with screen name..set thier input properties and modify screen (make them input only)
If we are taking into consideration "columns"
There is an internal structure COLS where we can identify column number of screen name ...or we can take except for one particular column..
if some condition satisfied....
loop at screen where screen-name <> "Column which is input'.
Loop at screen...and make other columns display only.
modify screen
endif.
Regards
Byju -
Table Rows with Multiple Conditions Not Showing Up in RH
Hi everyone,
I'm currently evaluating TCS2 (Framemaker 9 and RoboHelp 8 on Windows XP) and have come across the following issue:
One of our FrameMaker source files contains a table in which one of the rows has multiple conditions applied. When one of the conditions is shown in Framemaker, and the others are hidden, the row is displayed in Framemaker as expected. However, when the file is then imported or linked into Robohelp, the same table row vanishes, even though the Apply FrameMaker Conditional Text Build Expression check box is selected in the Framemaker Conversion Settings > Other Settings screen. This only appears to affect table rows - when paragraph text is tagged with the same conditions, it is imported correctly into RoboHelp.
For example, when Condition B is shown and Condition A is hidden in the Framemaker file, the content appears like this in Frame:
Unconditional
Unconditional
Condition A and Condition B applied
Condition A and Condition B applied
Condition B applied
Condition B applied
Paragraph text with Condition A and Condition B applied.
Paragraph text with Condition B applied.
When the same file is imported into RoboHelp, the row with both conditions applied is absent from the table:
Unconditional
Unconditional
Condition B applied
Condition B applied
Paragraph text with Condition A and Condition B applied.
Paragraph text with Condition B applied.
Installing patches 8.0.1 and 8.0.2 did not resolve the issue (and actually caused other, unrelated issues) and I see the same behavior regardless of whether I import or link the FrameMaker document.
Has anyone else seen this issue? Any help would be much appreciated.
Thanks
DaveBIt just seems that the items I select as align to top in the
property inspector should force the items to the top of their
cells, unless I'm missing something. -
Displaying Row numbers starting from 1
Hi every one,
I want to display row number as see in the report while printing, as I am using the fallowing formula I am getting row numbers including suppress records which I donu2019t want, right now my row number is starting from 10. Instead of 1u2026
WhilePrintingRecords;
Numbervar x;
x:=x+1;
I want row numbers for only display recordsu2026
Please help me u2026
Thanks,
Krish.Krish,
I am assuming that you are using a conditional formula to suppress the details section. If that is the case then add the conditional suppression logic to your running total formula. For example;
WhilePrintingRecords;
Numbervar x;
If Not (condition for suppression) then x:=x+1 else x; -
Display row with date search ADF 11g 11.1.1.2.0
Hi
I'm using jdeveloper 11.1.1.2.0 with ADF 11g.
I'm want to display the table rows according to the date between search.
My screen
From ______ To ______ Seachbutton
EMPNO EMPNAME JOINDATE
001 JACK 04/05/2010
002 JILL 02/05/2010
003 PALIN 06/05/2010
when i select date with adf input date in both text box and fire search . i want display the searched records/rows
sorry ......
thanks in advance
Edited by: user9010551 on May 6, 2010 3:43 AMHi
I'm using jdeveloper 11.1.1.2.0 with ADF 11g.
I'm want to display the table rows according to the date between search.
My screen
From ______ To ______ Seachbutton
EMPNO EMPNAME JOINDATE
001 JACK 04/05/2010
002 JILL 02/05/2010
003 PALIN 06/05/2010
when i select date with adf input date in both text box and fire search . i want display the searched records/rows
sorry ......
thanks in advance
Edited by: user9010551 on May 6, 2010 3:43 AM -
Number of currently displayed rows in report with pagination?
Maybe I'm thinking to complicated, but ...
In my report I use the HTMLDB_ITEM.CHECKBOX function in order to display a checkbox for each row:
HTMLDB_ITEM.CHECKBOX(1,"ID",NULL,:P311_ASSIGNED,':') " "
Some of the checkboxes are selected depending on whether there is an entry for them in a database table.
As the report returns hundreds of rows, I use pagination (e.g. 15 rows per page).
After checking/unchecking the checkboxes and submitting the page by clicking the save button, I want to do the following: For each row CURRENTLY DISPLAYED on the screen (1) check, whether its checkbox is currently checked or not (2a) If it is checked and there is not yet an entry -> add row to the db table (2b) If it is unchecked and there is an entry in the db table -> remove row from db table.
How can I, on the server side, find out which rows (row ids) are currently displayed (using pagination), so that I check each of the currently displayed row ids for their existence in the database table? Is there any item stored on the server side, which tells me the row number of the first row currently displayed? Is there an item I can refer to, which tells me the amount of rows, which are displayed on one page?
Your help would be very much appreciated!
KonradHi Konrad,
I will jump in. :-) Just have a few minutes before a meeting.
I think you don't have to make it that complicated, where you have to know the current pagination.
1) Your HTMLDB_ITEM.CHECKBOX has to contain as checked value #ROWNUM# as the row selector would do it.
2) You have to create a hidden item where you store your customer id
3) create another hidden item where you store if the customer has already the assignment
4) In your process you are now able to loop through your arrays.
DECLARE
vRowNumber BINARY_INTEGER;
vFound BOOLEAN;
BEGIN
-- insert new event assignments
FOR ii IN 1 .. WWV_Flow.g_f01.COUNT -- your checkbox
LOOP
vRowNumber := WWV_Flow.g_f01(ii);
-- no assignment yet?
IF WWV_Flow.g_f03(vRowNumber) IS NULL -- your hidden field where you store if you have an assmnt
THEN
INSERT INTO xxx VALUES (WWV_Flow.g_f02(vRowNumber)); -- your customer id
END IF;
END LOOP;
-- delete old event assignments
FOR ii IN 1 .. WWV_Flow.g_f03.COUNT -- your hidden field where you store if you have an assmnt
LOOP
-- only if the event was already assigned
IF WWV_Flow.g_f03(ii) IS NOT NULL
THEN
vFound := FALSE;
FOR jj IN 1 .. WWV_Flow.g_f01.COUNT -- your checkbox
LOOP
-- is the event still checked?
IF WWV_Flow.g_f01(jj) = ii
THEN
vFound := TRUE;
EXIT;
END IF;
END LOOP;
IF NOT vFound
THEN
DELETE xxx WHERE CUSTOMER_ID = WWV_Flow.g_f02(ii);
END IF;
END IF;
END LOOP;
END LOOP;Haven't tested the code, but I think it should show the idea.
Hope that helps
Patrick
Check out my APEX-blog: http://inside-apex.blogspot.com -
Problem with "PL/SQL Dynamic Content" and displaying rows
hi,
im new to APEX, and pl/sql [but not web dev or sql].
ive found the bit in APEX that lets you add data from your DB using the 'CREATE' > 'PL/SQL Dynamic Content'.
maybe there's a better option for people who dont know pl/sql? i dont know?
however, i think i can getting working with a little bit of help but im stumbling around in the dark a bit here.
ok so this is the pl/sql ive come up with to show three example values on page 23 of my aplplication:
BEGIN
SELECT ID, NAME, OWNER
FROM COM_MAILSHOTS
INTO :P23_ID, :P23_NAME, :P23_OWNER;
END;
im getting the error:
1 error has occurred
ORA-06550: line 5, column 21: PL/SQL: ORA-00933: SQL command not properly ended ORA-06550: line 4, column 1: PL/SQL: SQL Statement ignored
thanks for reading!Metabaron wrote:
hi,
im new to APEX, and pl/sql [but not web dev or sql].
ive found the bit in APEX that lets you add data from your DB using the 'CREATE' > 'PL/SQL Dynamic Content'.
maybe there's a better option for people who dont know pl/sql? i dont know?
The easiest (and best) way to "display rows" is using a report. Dynamic PL/SQL regions are more complex and are required much less frequently.
The Oracle® Database 2 Day + Application Express Developer's Guide tutorial explains how to create reports and other basic APEX techniques. -
Display records according month
hi all.
i want to display records according months.
i created view something like this.
create or replace view month_timer (item1, amount,item_date) as
select item1,sum(amount),item_date
from table
where trunc(item_date) between to_date('01-jan-2010') and trunc(sysdate)
AND item_TYPE!=4
group by item1,item_date
ORDER BY item_dateany suggestions?
sarahcreate or replace view month_timer (item1, amount,item_date) as here in this statement you are using item1 and only tree columns.
select pcd_plt_id,pcd_cbr_id ,sum(amount),item_date And here in this statement there are four columns. So which column is for item1
group by item1,item_dateHere you can use only selected columns in group by. But you are using item1 which you used above for view.
And in select there are three columns without aggregate function. And you are using only two here.
If you could post the table data and desired output. Then it will be easier to find better way.
-Ammad -
Need help in displaying Rows to Columns
Hi,
I am facing problem in displaying Rows to Columns
I am using pivot function:
select *
from
(select vendor_name
from tablea)
pivot
(count(vendor_name)
for vendor_name in ('a,b,'c'));
its working fine showing vendor_name and count
but when i want to display the output as:(How to include the Salalry column in the query?)
Name:{a b c}
Sal Total:(400,600,800}
Any help will be needful for meNot sure what you mean:
select *
from (select deptno,sal from emp)
pivot(sum(sal) for deptno in (10,20,30))
10 20 30
8750 10875 9400
SQL> SY. -
How to change the number displaying rows in a table
Hi all,
i have a table for resources in Debrief Work order (Standard Screen), we need to change the default displaying rows. inistially it displayed 3 empty rows.
i tried to change the Records Displayed for the table but it did not affect.
also it is possible to change the "Add 3 rows" button in the table to add for example 5 rows instead?
any idea?
Regards,
Mahdi ChararaHi,
Through personalization we can do.On standared page top right u will find personalization link.click on the clink next expand all there find apporiate table .Here u will fine reorder button set as u want display and save. then u can see the change.For add row functionality u need to extend the co. -
Adobe Form - Hide a table row if a condition met
Hi Helper
I am learning how to use Adobe Form - and I am trying to hide a table row if a condition is met by using Formcalc/Jave script - but I donot know how - I was told that I can use "....presence = 'hide' " property in on of the event(?) but donot know how to write the qualified name for the varable row and what event to use. Could someone please show me how
Points will be rewarded.
ThanksHi Liem,
Here is some more information:
1)
Accessing data in Table Cell
xfa.resolveNode("xfa.data.my_data.tableData[" + this.parent.index + "].column1").value
2) Accessing data nodes in Context
xfa.datasets.data.my_data.second_node.an_attribute.value == "3"
I think you will find the WebLog below very useful for your requirements.
/people/juergen.hauser2/blog/2007/09/03/accessing-data-nodes-in-sap-interactive-forms
-regards,
harman -
Change display language according to the user programmatically
How to change the site displaying language according to the user ? Let say I've drop-down to select language in a web page according to that whole site display language change and also user's language in user profile need to change. How to do that in using
server object model programmatically.Hi,
According to your post, my understanding is that you wanted to display language according to the user.
First, we can find out the current culture of the logged in user based on
LCID.
System.Threading.Thread.CurrentThread.CurrentUICulture.LCID
Then you can set the language based on the LCID.
http://social.msdn.microsoft.com/Forums/sharepoint/en-US/0e5d36e1-ec06-404a-ab2c-0e0ff475abec/how-to-change-the-language-based-on-log-in-user-programmatically-in-sharepoint-2013-how-to-change?forum=sharepointdevelopment
http://sharepoint.stackexchange.com/questions/104140/change-site-display-language-according-to-the-user
Thanks & Regards,
Jason
Jason Guo
TechNet Community Support -
Can anybody help....SQL to display row as column and column as rows
Can anybody help in writing a SQL to display row as column and column as rows?
Thankscheck this link:
Re: Creating Views - from rows to a new column? -
How to display Rows as Columns in JSF?
I am using dataTable component to get data for my Menu, i have one column in it which returns me the data, because its automatically adding <tr> and <td> tags to it, its showing data in tabular form.
I want to show output Horizontally instead of Vertically the way its showing.
Is their any way i can display Rows as Columns?
Code:
==============================================
<div class="bodyarea">
<div id="location">
<h:dataTable value="#{menuItem.breadCrumb}" var="bread" >
<f:verbatim><ol></f:verbatim>
<h:column>
<f:verbatim><li></f:verbatim>
<h:outputLink id="crumbID" value="#{bread.menuLink}">
<h:outputText id="crumpName" value="#{bread.menuLabel}"/>
</h:outputLink>
<f:verbatim></li></f:verbatim>
</h:column>
<f:verbatim></ol></f:verbatim>
</h:dataTable>
</div>
</div>
Thank youTable is not the html element for you, in this situation.
I would use a dataList component (distributed with myfaces implementation).
dataList is able to return a list of item, and using css you will be able display in a horizontal grid. (otherwise you can use layout="grid" in dataList).
Anyway...my impression is that who made JSF was not really understanding how a html programmer like to write his code.
Why do JSF gives us only the possibility to write list of items throught tables?
Why do JSF prints error messages throught tables?
Why div is not a standard component?
This is an incredible lack...
I see also other incredible lasks...but they don't concern html ;) .
Maybe you are looking for
-
I have a Sony HDR-CX280 and the last version of iMovie, 10.0.1. When i Import video's I enter the SD card in the MAc and choose "import". I create a new event and import part of the video to that event. No problem here. Then I import a second part of
-
Hi, All, I just installed BPEL Process Manager 10.1.2 and BPEL Designer 0.9.13. The eclispe I have is 3.1.2 for windows. I started BPEL Process Manager first, then I tried to start BPEL Designer, I got an error "Required Java Version 1.4.1 available
-
Facebook and twitter friends in my contacts?
Hi For some reason I can see my facebook and twitter friends in my contacts list. I don't want to see them there and i cannot find an option for this not to happen. Help? Thanks.
-
Error from JNI_CreateJavaVM
Does anyone know what the following message means? I am linking libjvm.so into my C application and invoking the JVM from the C code. I am using JDK 1.3.1 for Solaris. Thanks, John There was an error trying to initialize the HPI library. Please check
-
I open a page in Firefox. I click on a link. That is OK. Then I click on another link. Firefox keeps loading but nothing happens. I try to lick Back or to another link, but this does not help. The only thing I can do is close Firefox.