Hiding a tablix column conditionnaly from page to page (group member to group member)
Hi
I have the following report
Col1 Col2 Col3
Group1
1 2 3
2 4 3
3 6 6
(page break)
Col1 Col2 Col3
Group2
1 1 0
1 0 0
2 1 0
(page break)
Col1 Col2 Col3
Group2
3 2 1
1 4 2
4 6 3
In Group2 (page2) since Sum(Col3) = 0 I want to hide the column for this group (page) only
The result i need is:
Col1 Col2 Col3
Group1
1 2 3
2 4 3
3 6 6
(page break)
Col1 Col2
Group2
1 1
1 0
----- --- Notice there is no Col3
2 1
(page break)
Col1 Col2 Col3
Group2
3 2 1
1 4 2
4 6 3
Is it possible ?
This can be done by using an expression in the Hidden property of the column.
For your expression you need to know what the textbox that contains the sum is called. Select it and have a look at its Name property in the Properties window to find out.
With that info, right-click the grey column header of the column that you want to hide and select
Column Visibility. In the popup select the "Show of hide based on an expression" radio button and click the fx button to enter an expression.
The expression to be entered goes like this:
=IIF(ReportItems!YourSumTextbox.Value > 0, False, True)
This will completely hide the column when the sum is not more than zero.
SQL Server MVP, MCITP/MCTS SQL Server 2008
Check out my articles at BI: Beer Intelligence
Similar Messages
-
Importing two-column text from Pages
I've produced several successful calendars and books using the iPhoto service in the past couple of years, but one thing has me defeated.
So far, I have used Pages to create text, then style it the way I want, and finally cut and paste it into the book project. It works perfectly. So far, so good.
Now I want to do two-column text pages, instead of a full-width single-column layout, but I can't find a way to do it.
I have tried exporting the two-column set out of Pages as a pdf, then using the Import command in iPhoto, but it is greyed out in the navigation window. No go.
Any ideas?Do a Print to PDF of the Pages layout and select the Send PDF to iPhoto option. That will create a jpg image of the page which can be added to a full page layout in the Book. Here are a couple of crude examples of that from a Word document: Portrait oriented - Landscape oriented.
Of course my example is single column but with a two column layout in Pages and in the landscape mode it would work just as well.
TIP: For insurance against the iPhoto database corruption that many users have experienced I recommend making a backup copy of the Library6.iPhoto (iPhoto.Library for iPhoto 5 and earlier) database file and keep it current. If problems crop up where iPhoto suddenly can't see any photos or thinks there are no photos in the library, replacing the working Library6.iPhoto file with the backup will often get the library back. By keeping it current I mean backup after each import and/or any serious editing or work on books, slideshows, calendars, cards, etc. That insures that if a problem pops up and you do need to replace the database file, you'll retain all those efforts. It doesn't take long to make the backup and it's good insurance.
I've created an Automator workflow application (requires Tiger or later), iPhoto dB File Backup, that will copy the selected Library6.iPhoto file from your iPhoto Library folder to the Pictures folder, replacing any previous version of it. It's compatible with iPhoto 6 and 7 libraries and Tiger and Leopard. iPhoto does not have to be closed to run the application, just idle. You can download it at Toad's Cellar. Be sure to read the Read Me pdf file.
Note: There now an Automator backup application for iPhoto 5 that will work with Tiger or Leopard.
Message was edited by: Old Toad -
Linking to a page in another page group
Can someone tell me whether it is possible to create a link to a page in another page group? If yes, how?
Thanks in advance,
JohnHere is what I have done to get around this. It appears to work with a quick test. Let's say that on a page in page group B I want to navigate to pages in page group A. In page group A I create a navigation page with my links - lists of objects, page links, etc. As noted in the discussion I can only add pages from page group A to this list. Then I publish this page as a portlet. On my page in page group B I add a small (narrow) portlet region and add my page group A navigation portlet with the page links to it.
The limitation to this approach is that I cannot mix links from different page groups in my portlet, but if I needed this effect I can always make a series of little navigation pages from different page groups and intersperse them as portlets on my page group B page. -
hello
i have a portal page group named "my company portal 00",
i want to create 10 identical page groups with names "my company portal 01","my company portal 02",.... and so forth
please help me how to do so
thanksHi aldrin,
Its not possible to copy a page from page group A to page group B until Portal version 10.1.4.1.
Pages can be copied across Page Groups from Portal version 10.1.4.1 onwards.
Regards,
Aruna. -
How to repeat a row when tablix columns print over more than one page
I have a tablix with 20 Columns. When this prints it prints over 3 pages (which is
OK). The first Column is the Name (in this case it is the
Project name). On Page 2 & 3 I want to print the Project name again,
so that a report user does not need to go back to page one to figure out which
project the columns are referring two. In Excel there is an option
"Rows To Repeat". I am trying to do the same in SSRS
2012.
I have tried links
like:
http://msdn.microsoft.com/en-us/library/dd207045.aspx
http://remicaron.wordpress.com/2010/01/05/how-to-get-ssrs-to-repeat-the-row-headers-tablix-2008/
http://www.sqlcircuit.com/2012/03/ssrs-how-to-repeat-column-header-in.html
These do not work
for me .... in fact they return an error msg
Can this be done?
Tx
Andrew
Andrew PayzeHi Andrew,
If I understand correctly, there are 20 columns in the table. When it prints over 3 pages, the report should repeat the first column in all pages.
To freeze row header in the table, we can refer to the following steps:
The table should have a group. If the Name is already a row group, we can directly refer to step 2. Or we need add a row group grouped by Name ahead.
Right-click the table to open the Tablix Properties dialog box, then enable “Repeat header rows on each page” and “Keep header visible while scrolling” options under Row Headers category.
If there are any other questions, please feel free to ask.
Thanks,
Katherine Xiong
If you have any feedback on our support, please click
here.
Katherine Xiong
TechNet Community Support -
Hi,
I know the posts on the same issue exist in year 2002 exist but they doesn't seem to have any solutions, or at least do not have the proper answers that I want. Or maybe I miss it when I search.
I have created a matrix report with groups above.
Report data layout (example):
Let's say the group above is by month and year (combined). Then the columns would be the departments while the rows would be the date of the month. The data would be the income type A, income type B, income type C and income type D.
Jan 2006 | Dept One | Dept Two | Dept Three | Dept Four |
| Inc A | Inc B | Inc C | Inc D | Inc A | Inc B | Inc C | Inc D | Inc A | Inc B | Inc C | Inc D | Inc A | Inc B | Inc C | Inc D |
1 | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... |
2 | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... |
3 | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... |
4 | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... |
5 | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... |
... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... |
31 | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... |
Feb 2006 | Dept One | Dept Two | Dept Three | Dept Four |
| Inc A | Inc B | Inc C | Inc D | Inc A | Inc B | Inc C | Inc D | Inc A | Inc B | Inc C | Inc D | Inc A | Inc B | Inc C | Inc D |
1 | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... |
2 | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... |
3 | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... |
4 | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... |
5 | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... |
... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... |
31 | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... |Problem:
I can see that the report generates successfully. Rows and columns showing the correct data. However, the problem arises where one single month (let's say January 2006) of the report matrix group expand from page 1 to page 2 horizontally. And on page one, big amount of space left (below the first part of Janurary 2006 matrix group) which can actually accomodate either the first part of February 2006 matrix group or the rest of January 2006 matrix group. But it wasn't populated.
{Content of Page One}
Jan 2006 | Dept One | Dept Two |
| Inc A | Inc B | Inc C | Inc D | Inc A | Inc B | Inc C | Inc D |
1 | ... | ... | ... | ... | ... | ... | ... | ... |
2 | ... | ... | ... | ... | ... | ... | ... | ... |
3 | ... | ... | ... | ... | ... | ... | ... | ... |
4 | ... | ... | ... | ... | ... | ... | ... | ... |
5 | ... | ... | ... | ... | ... | ... | ... | ... |
... | ... | ... | ... | ... | ... | ... | ... | ... |
31 | ... | ... | ... | ... | ... | ... | ... | ... |
{Content of Page Two}
Jan 2006 | Dept Three | Dept Four |
| Inc A | Inc B | Inc C | Inc D | Inc A | Inc B | Inc C | Inc D |
1 | ... | ... | ... | ... | ... | ... | ... | ... |
2 | ... | ... | ... | ... | ... | ... | ... | ... |
3 | ... | ... | ... | ... | ... | ... | ... | ... |
4 | ... | ... | ... | ... | ... | ... | ... | ... |
5 | ... | ... | ... | ... | ... | ... | ... | ... |
... | ... | ... | ... | ... | ... | ... | ... | ... |
31 | ... | ... | ... | ... | ... | ... | ... | ... |
Feb 2006 | Dept One | Dept Two |
| Inc A | Inc B | Inc C | Inc D | Inc A | Inc B | Inc C | Inc D |
1 | ... | ... | ... | ... | ... | ... | ... | ... |
2 | ... | ... | ... | ... | ... | ... | ... | ... |
3 | ... | ... | ... | ... | ... | ... | ... | ... |
4 | ... | ... | ... | ... | ... | ... | ... | ... |
5 | ... | ... | ... | ... | ... | ... | ... | ... |
... | ... | ... | ... | ... | ... | ... | ... | ... |
31 | ... | ... | ... | ... | ... | ... | ... | ... |
{Content of Page Three}
Feb 2006 | Dept Three | Dept Four |
| Inc A | Inc B | Inc C | Inc D | Inc A | Inc B | Inc C | Inc D |
1 | ... | ... | ... | ... | ... | ... | ... | ... |
2 | ... | ... | ... | ... | ... | ... | ... | ... |
3 | ... | ... | ... | ... | ... | ... | ... | ... |
4 | ... | ... | ... | ... | ... | ... | ... | ... |
5 | ... | ... | ... | ... | ... | ... | ... | ... |
... | ... | ... | ... | ... | ... | ... | ... | ... |
31 | ... | ... | ... | ... | ... | ... | ... | ... |
Mar 2006 | Dept One | Dept Two |
| Inc A | Inc B | Inc C | Inc D | Inc A | Inc B | Inc C | Inc D |
1 | ... | ... | ... | ... | ... | ... | ... | ... |
2 | ... | ... | ... | ... | ... | ... | ... | ... |
3 | ... | ... | ... | ... | ... | ... | ... | ... |
4 | ... | ... | ... | ... | ... | ... | ... | ... |
5 | ... | ... | ... | ... | ... | ... | ... | ... |
... | ... | ... | ... | ... | ... | ... | ... | ... |
31 | ... | ... | ... | ... | ... | ... | ... | ... |
{...and so on...}Instead, the February 2006 matrix group only started out on page 2 when the January 2006 matrix group ends.
How can it be done, so that either the following be done?
A) Second part of January 2006 fills up the first page as well instead of the empty space. Meaning the First part of January 2006 is above and 2nd part below thus filling up the first page. February 2006 would start off from 2nd page.
B) First part of January and February 2006 fills up the first page and their second part ends at 2nd page.
FYI, horizontal landscape of report is NOT preferable. Even if it is used, the same scenario persist.
Hope someone can help me out here on this. Or at least show me how you do it alternatively.
Thank you.Thanks for the reply.
FYI, not every month have all the columns filled up. Meaning some months may have lesser columns resulting in smaller tables. That's why some of the months, their tables will fit into one page.
Changing width of does not solve my problem because my reports are made for A4 paper size. Printing such a report with its width altered causes some part of the table which overflows out from A4 paper size not to be printed.
The location of the value I changed can be found here:
Paper Layout > Main Section > Property Sheet: Width
Please do help. Thanks. -
What causes carriage returns to become page turns in Epu docs from Pages?
I converted a long document from pages to Epub. Towards the end a section adds a new page at each carriage return. I tried everything. still can't fix it.
I think that both your pages have a missing </div> at the end somewhere.
Opps... that happened when I was stripping down the page to create a working example of my issue. I've fixed the missing div and re-uploaded both pages. The problem is still there.
Change display: inline; to float: left; and add margin: 0 0 4px 4px; (as shown below)
I had already tried using float, but something else in the code was forcing the columns to 2 instead of 3.
Have you used "Apply Source Formatting" ?
I use that religiously. I'm quite anal about visually clean code.
Well, I just fixed the problem while replying... funny... I removed the margins from the actual img element (.imageThumb img) and placed it on the div which surrounds the img (.imageThumb). I also reapplied the float. Thanks all for the help - it helped me rethink. But I could have sworn I had once placed the margins on .imageThumb before and it didn't work.
.imageThumb {
width: 100px;
height: 75px;
display: inline;
float: left;
margin: 0px 10px 10px 0px;
cursor: pointer;
.imageThumb img {
/*margin: 0px 10px 10px 0px;*/ -
How to display the the tablix column lines upto footer in rdlc report
How to display the the column lines upto footer in rdlc report.If data are less it should go upto bottom (footer) based on data.
For Example.I have 2 items.it should display 2 items and lines should continue upto footer.
| S.No| Name | Qty | Active | UNIT | Amount |
| 1 | A | 1 | 4 | 34 | 43 |
| 2 | B | 6 | 3 | 23 | 45 |
| | | | | |
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
Footer
If I have 5 items.it should display 5 items and lines should continue upto footer.
| S.No| Name | Qty | Active | UNIT | Amount |
| 1 | A | 1 | 4 | 34 | 43 |
| 2 | B | 6 | 3 | 23 | 45 |
| 3 | C | | 4 | 47 | 56 |
| 4 | D | 3 | | 56 | 47 |
| 5 | E | 4 | 4 | 45 | 45 |
| | | | | |
|
| | | | | |
|
Footer
like that it should be adjust based on data length.
please help me how to do it in RDLC (asp.net and c#).....
Your help would be highly appreciated!
Thank you very much in advance!Hi M.S.GopalKrish,
According to your description, it seems that you want to make the tablix rows to fill page size? We can configure the text box height size to work around the issue.
Use this method, we need to calculate the average height size of the text box in the tablix. For more details, please see:
We can use
RowNumber() function to calculate the row number of the tablix.
Calculate the page height size of the tablix in Property windows.
Use the page height size divided by row number. We can get the average height size of the text box.
Hope this helps.
Regards,
Katherine Xiong
Katherine Xiong
TechNet Community Support -
Issue in passing data from PAge A to Page B
Hi
I have a scenario where I am trying to pass data from Page A to Page B. This data has to
be passed on the click of a button. On the button's event, I have set the paramaters that
I want to pass. I have passed these params in a hashmap in pageContext.forwardImmediately
method.
Page A has the requisition records. Clicking the radio button against one of these
records and clicking the Lines button should take me to Page B with that Requisition VO's
Row.
In Page B, there are 2 parts..
(1) A header which displays the requisition details like Req Number, Current Version,
Previous Version etc
(2) A table (Advanced Table) regiion which displays the Line details per that Requisition
(Each Requisiton has 'n' lines).
I am also getting the paramater value(s) in Page B's controller's processRequest.
Here, I am calling the init methods on both the requisitionsVO and the linesVO which calls the executeQuery() methods. I thought that this will populate the Page B as the VO's columns are mapped to the
respective fields in the Page. But I am not able to see any data on Page B. Am I missign anything here.reinitlize the VO
By this do you mean the following :
In the Controller:
String reqNum = (String)pageContext.getParameter(PoConstants.PO_REQUISITION_KEY);
if(!PoUtils.isEmpty(reqNum)) {
Serializable[] param = {reqNum};
Class [] paramTypes = {reqNum.getClass()};
am.invokeMethod("initPoReqHeadersQuery",param, paramTypes);
In the AM:
public void initPoReqHeadersQuery(String criteria)
OADBTransaction txn = this.getOADBTransaction();
if ( txn.isLoggingEnabled(oracle.apps.fnd.framework.OAFwkConstants.PROCEDURE))
txn.writeDiagnostics(this, "initPoReqHeadersQuery.begin", oracle.apps.fnd.framework.OAFwkConstants.PROCEDURE);
PoReqPendingForAcceptanceVOImpl vo = getPoReqPendingForAcceptanceVO1();
vo.initReqQueryAction(criteria);
if(!PoUtils.isEmpty(vo)) {
PoReqPendingForAcceptanceVORowImpl row = (PoReqPendingForAcceptanceVORowImpl)vo.first();
if(!PoUtils.isEmpty(row)) {
vo.setCurrentRow(row);
if ( txn.isLoggingEnabled(oracle.apps.fnd.framework.OAFwkConstants.PROCEDURE))
txn.writeDiagnostics(this, "initPoReqHeadersQuery.end", oracle.apps.fnd.framework.OAFwkConstants.PROCEDURE);
In the VO:
public void initReqQueryAction(String criteria)
OADBTransaction txn = (OADBTransaction)getApplicationModule().getTransaction() ;
if ( txn.isLoggingEnabled(oracle.apps.fnd.framework.OAFwkConstants.PROCEDURE))
txn.writeDiagnostics(this, "initReqQueryAction.begin", oracle.apps.fnd.framework.OAFwkConstants.PROCEDURE);
setWhereClauseParams(null);
setWhereClause(null);
setWhereClause("SEGMENT1 = :1");
setWhereClauseParam(0,criteria);
executeQuery();
if ( txn.isLoggingEnabled(oracle.apps.fnd.framework.OAFwkConstants.PROCEDURE))
txn.writeDiagnostics(this, "initReqQueryAction.end", oracle.apps.fnd.framework.OAFwkConstants.PROCEDURE);
} -
Multiple columns on same page?
I'm looking for a way to have a two column page layout, with three columns each that flows from page 1 column 1, to page 1 column 2, then to page 2 column 1 to page 2 column 2, etc. It's for a karaoke list and the columns are Song, Artist, and Song #, and I want to save paper by having two columns per page.
In Excel I have to copy the spreadsheet into a two column word document, and it really slows down. An example of my layout is here... http://karaoke.seanphafer.com/page4/files/KaraokeUpdates27Dec06.pdfI'd almost do a Word "Mail Merge" from Excel. I've done program fliers this way and only takes a few seconds to do the merge (1000s of items.) Not quite a Numbers solution...
Regards, -
How to Deactivate or remove "Remove from Page"option for iview/page tray
Hi,
I would like to deactivate the "remove from page" option in the iview tray for ESS screens(WD iviews). I have made Show tray to NO and it hided the whole tray also tried Show remove to NO but no effect. But instead i would like this option (Remove from page) alone to be deactivated or removed.
regards
Bharat.Remove from page is the correct setting you need to change. If it doesn't seem to be working, this is normally because a content administrator has done something wrong with the delta links. For example, if an iView is included in a page as a copy (not as a delta link) changing the iView won't change the behaviour in the page. Instead you need to change the iView in the page. This is worst practice.
You need to do some delta link tracing -
Move text from pages to numbers
I would like to move text from Pages to Numbers
Hi Derfyef,
Paragraph marks (returns) in Pages will create a new row in a Numbers table.
Tabs (but not commas) in Pages will create a new column in a Numbers table.
Pages:
A B C
D E F
Copy, then click in a table in Numbers, Paste
A
B
C
D
E
F
Regards,
Ian. -
Can you remove column headers from report downloads?
I'd like to remove the column header from the report downloads. For example, the report download file currently looks like:
EMPNO,ENAME
7839, KING
7698, BLAKE
Where as I'd like it to just be:
7839, KING
7698, BLAKE
Does anyone know if this is possible?
Thank you,
Martin
http://www.talkapex.comThere is a work around that I used before:
- Create a new page.
- create a report region and copy your origional report query in it
- in report attributes >> choose no header
- in report attributes >> choose "CVS report" as your new report tempate.
- go back to your origional report, create a button in that page ( call it EXPORT ) that submits as EXPORT
- create a conditional branch that goes to your new report page , make it conditional ( when EXPORT button is clicked)
This way, you will have a new EXPORT button on top ( or whereever you want ) of you report, when you click on it , it shows a download prompt for your export , the export won't have headers..
Sam -
Preserving links when exporting to PDFs from Pages 5.1
Several people have noted that links do not survive after the first page of a PDF document when exporting from a Pages 5.x document to PDF. *IF* the links are dislayed as html code, they will survive: e.g.
html://www.apple.com
will work on all pages of the PDF document (anyway, it works on page 2!)
But if you edit the link and CHANGE THE DISPLAY NAME, the links will no longer work on page 2 and subsequent pages. E.g., this link will NOT work even though it resolves to the same address (i.e., html://www.apple.com).
apple.com
This is insane, of course. Any work arounds?Right, I know it will work if you don;t edit the display name. But one often will want to do that. If you were writing a column, say, you might say "In Dick Francis's novel Refusal, the author soes thus and such." That link is clickable. It would work natively in Pages 5, as in Pages 4.3, in a TextEdit document natively or exported to PDF, and in Apple mail, etc. It also works when you export from Pages 4.3 to PDF. In Pages 5, however, it only works (after the first page: who knows why it works on the first page!) if the display name is the same as the html code. This is a bug, or sloppy programming, or both.
I like Page 4.3 quite a lot. I has its limitations but it is simple without being simplistic. I had high hopes for Pages 5. Now that we have 5.1, though, I see that it is just not going to work for me or for my businesses. There are little things like the inability to set the default zoom (which is acutally quite annoying if your eyes are not so hot), the inabilty to see|print comments and big things like the lack of Applescript support, bookmarks, and mail merge. I thought Apple was going to be bringing back these features, but I see now that they are committed to the lowest common denominator. The people who say Apple is is the business of making "toys" are, alas, correct. I guess the business market is not big enough for them. I've actually removed pages 5.1 from all our our macs, and have removed 2.1 from our ios devices. We still have a few stray documents that were created or edited with Pages 5, but I've discovered that you can use Pages for icloud to download a pages file in Word format. Pages 4.3 can open and edit Word files, so that is a (cumbersome) workaround. We'll continue to use 4.3 (and 1.7.2 on the ipad) for the time being, but obviously will need to find something that has current support going forward. -
Getting column names from cursor
Hi all
I have procedure which produces list of applied for jobs web page(using htp. package)
I got result in cursor, but have to provide dinamic sort, based on colimn pressed
procedure my_application_list
(pi_resume_num in varchar2 default null
,pi_sort_col in varchar2 default null
,pi_page_no in varchar2 default null
,pi_action in varchar2 default null
,pi_msg in varchar2 default null
is
CURSOR cur_job IS
SELECT jtl.JOB_TITLE
,jtl.COMPANY_NAME
,a.APPLY_DATE
,a.lang
,a.job_id
FROM job_tl jtl, applied_for_job a, gateway gt
WHERE a.job_seeker_id=app.job_Seeker
AND a.job_id=jtl.job_id
AND a.lang=jtl.lang
AND a.gateway=gt.gateway
AND jtl.lang=(SELECT substr(MIN(lt.order_list||jtl0.lang),2) lang
FROM job_tl jtl0
,language_tl lt
WHERE jtl0.job_id = a.job_id
AND jtl0.lang=lt.lang
AND lt.gui_lang=app.language)
ORDER BY pi_sort_col
rest of code
The columns displayed in web page are Job_title, Company_name and Applied_date
This page is displyed well, bu without column nmes at the top. I am trying to get column names from cursor in order to have ORDER BY <pi_sort_col>
can someone help how i can get those column names:Job_title, Company_name and Applied_date
User will be able to click on column and sort
Thank in advance .I appreciate any helpHi Francisco
Here is my code
CREATE OR REPLACE PACKAGE BODY cc_web_application_list
IS
TYPE COL_NAME_LIST IS TABLE OF VARCHAR2(100)
INDEX BY BINARY_INTEGER;
TYPE COL_ORDER_LIST IS TABLE OF VARCHAR2(30)
INDEX BY BINARY_INTEGER;
col_name_t col_name_list;
col_order_t col_order_list;
procedure my_application_list
(pi_resume_num in varchar2 default null
,pi_sort_col in varchar2 default null
,pi_page_no in varchar2 default null
,pi_action in varchar2 default null
,pi_msg in varchar2 default null
is
l_my_page_no PLS_INTEGER := TO_NUMBER(nvl(pi_page_no,1));
l_js_name gam_user.username%TYPE;
l_js_first_name gam_user.first_name%TYPE;
l_cnt PLS_INTEGER := 0;
l_scr_lines PLS_INTEGER := 0;
l_curline PLS_INTEGER;
l_jobs_applied PLS_INTEGER;
l_total_rec PLS_INTEGER;
l_total_pages PLS_INTEGER;
l_pos PLS_INTEGER;
l_first PLS_INTEGER :=0;
last PLS_INTEGER :=0;
l_lines PLS_INTEGER := 10;
col_name VARCHAR2(100) := col_name_t(3) ;
col_order VARCHAR2(30) := 'DESC';
str VARCHAR2(2000);
TYPE display_rec IS TABLE OF VARCHAR2(500) INDEX BY BINARY_INTEGER;
display display_rec;
TYPE page_table_type IS TABLE OF PLS_INTEGER INDEX BY BINARY_INTEGER;
page_number page_table_type;
CURSOR cur_job IS
SELECT jtl.JOB_TITLE job_title
,jtl.COMPANY_NAME company_name
,a.APPLY_DATE apply_date
,a.lang
,a.job_id
FROM job_tl jtl, applied_for_job a, gateway gt
WHERE a.job_seeker_id=app.job_Seeker
AND a.job_id=jtl.job_id
AND a.lang=jtl.lang
AND a.gateway=gt.gateway
ORDER BY a.apply_date;
This decode is a problem
decode(col_order,'ASC'
,decode(col_name
,col_name_t(1), jtl.job_title
,col_name_t(2), jtl.company_name
,col_name_t(3), TO_CHAR(a.apply_date, 'YYYYMMDDhh24miss')
,a.apply_date)
) ASC
,decode(col_order,'DESC'
,decode(col_name
,col_name_t(1), jtl.job_title
,col_name_t(2), jtl.company_name
,col_name_t(3), TO_CHAR(a.apply_date, 'YYYYMMDDhh24miss')
,a.apply_date)
) DESC
,a.apply_date
TYPE rec_one IS TABLE OF cur_job%ROWTYPE INDEX BY BINARY_INTEGER;
r rec_one;
BEGIN
BEGIN
SELECT username,first_name
INTO l_js_name,l_js_first_name
FROM gam_user
WHERE user_id = App.job_seeker;
EXCEPTION
WHEN OTHERS THEN NULL;
END;
Cc_Pkg_Elements.p_page_top_job_seeker(
'Personal Job List'
,REPLACE(Txt_Proc_My_Joblist.title_job_list
,'##first_name##',l_js_first_name),'N' ,TRUE ,'Pxx');
----- get numer of records returned by query
SELECT COUNT(1)
INTO l_total_rec
FROM job_tl jtl,applied_for_job a
,gateway gt
WHERE a.job_id = jtl.job_id
AND a.job_seeker_id = App.job_seeker
AND a.gateway = gt.gateway ;
------get number of pages
l_total_pages:=CEIL (l_total_rec/l_lines);
l_jobs_applied := 0;
col_name := pi_sort_col;
col_order := pi_sort_col;
--get first positions
l_first := (nvl(l_my_page_no,1) - 1) * l_lines + 1;
FOR rec IN cur_job LOOP
l_cnt := l_cnt + 1;
EXIT WHEN l_cnt > l_first + l_lines - 1;
IF l_cnt >= l_first THEN
l_scr_lines := l_scr_lines + 1;
r(l_scr_lines) := rec; --assign counter from loop to r index
IF rec.apply_date IS NOT NULL THEN
l_jobs_applied := l_jobs_applied + 1;
END IF;
END IF;
END LOOP;
htp.p('<FORM ACTION="'||App.gateway||'8.my_application_list" METHOD="post">');
htp.p('<table align="center">');
htp.p('<tr><td>');
IF r.COUNT = 0 THEN
Web_Pkg_Elements.doc_msg(Txt_Proc_My_Joblist.no_jobs);
END IF;
htp.p('</td></tr>');
htp.p('</table>');
--table_heading(col_name ,col_order );
htp.p('<table align=center>');
htp.p('<tr align="center"><td>');
FOR i IN 1..l_total_pages LOOP
page_number(i) := i;
IF page_number(i) = l_total_pages THEN
htp.p('');
||'');
Web_Pkg_Elements.doc_val_small(page_number(i)||'</A>');
ELSE
htp.p('');
|'||'');
Web_Pkg_Elements.doc_val_small(page_number(i)||' |'||'</A>');
END IF;
END LOOP;
htp.p('</td></tr>');
htp.p('</table>');
htp.p('<table align=center>');
FOR l_curline IN 1..l_scr_lines LOOP
display(1) := NVL(r(l_curline).job_title, '<br>');
display(2) := NVL(r(l_curline).company_name, '<br>');
display(3) := NVL(Cc_Pkg_Nls.date2char(r(l_curline).apply_date, App.date_format), '<br>');
IF MOD(l_curline, 2) = 0 THEN
Cc_Pkg_Elements.tr_even;
ELSE
Cc_Pkg_Elements.tr_odd;
END IF;
htp.p('<td>');
htp.p('');
Web_Pkg_Elements.doc_val(display(1)||'');
htp.p('</td>');
htp.p('<td>');
Web_Pkg_Elements.doc_val(display(2));
htp.p('</td>');
htp.p(' <td>');
Web_Pkg_Elements.doc_val(display(3));
htp.p(' </td>');
htp.p('</tr>');
END LOOP;
htp.p('</TABLE>');
htp.p('<TABLE width="88%" BORDER="0" CELLPADDING="0" CELLSPACING="0"
align="center">');
htp.p('<tr valign=bottom>');
htp.p('<TD colspan=2 align=right>');
IF l_my_page_no > 1 THEN
htp.p('<P>'||'<IMG SRC="'||App.image||'prev.gif" ALT="'
||Txt_Proc_My_Joblist.prev
||'"' ||' HEIGHT=20 BORDER=0 ALIGN=bottom '
||'hspace=2>');
END IF;
IF l_my_page_no < CEIL (l_total_rec/l_lines) THEN
htp.p(' <a href="'||
web_pkg_elements.link$$(App.gateway||'8.my_application_list?'
||'pi_sort_col='||Web_Pkg_Elements.replace_in_url(pi_sort_col)
||'&pi_msg=&pi_page_no='||TO_CHAR(l_my_page_no + 1)
||">'||'<IMG SRC="'||App.image||'next.gif" ALT="'
||Txt_Proc_My_Joblist.NEXT
||'"' ||' HEIGHT=20 BORDER=0 ALIGN=bottom '
||'hspace=2></a>');
END IF;
htp.p('</TD>');
htp.p('</TR>');
htp.p(' </TABLE>');
htp.formHidden('pi_sort_col', pi_sort_col);
htp.formHidden('pi_page_no', pi_page_no);
htp.p('</FORM>');
END my_application_list;
END ; --cc_pkg_application_list
Maybe you are looking for
-
Network question for PC owners.
Hope you can help ? I'm a newbie when it comes to networking. I have a desktop PC with cable modem and Airport extreme connected wirelessly to my PC laptop. All is working fine. Internet on both machines great. Both are XP pro using WPA2 encription.
-
Sending an attachment in gmail using safari.
-
Rogers is saying that IOS4 won't allow use of the personal hotspot with a plan of less than 1GB data. I say it's a policy of theirs, not an iOS restriction. Anyone know the truth? I call BS but the tech guy was insistent that the iPhone can detect w
-
HP Deskjet 3070A, no scanner driver for Mavericks?
HP Deskjet 3070A - Mac OS X 10.9.2 I just updated to Mavericks. The printerdriver har been uploaded, comes up in "printers and scanners" as "HP Deskjet 3070 B611 series" and it is working fine. But there is no scanner driver. I have done everything t
-
How to use .peerToPeerDisabled = true ?
I have a question on the Flash Player 10.1 forum and I thought I might get more help here. Here's the link to the question: http://forums.adobe.com/thread/563478?tstart=0 It pretty much pertains to how can I use the pure IP Multicast feature. I'd li