Conditional Display of Report Columns

I'm trying to hide a vertical list column, but it is either permanently off or permanently on. Any ideas!
For example:-
Display Department name if not null

now i get why you're not liking the report templates approach to this issue. to be honest, my other suggestion on that "Referencing Report Columns" thread might probably be okay here. assuming you're looking up your one detail row with a primary key value, doing the extra query can't be too expensive. if you don't want to go that route (though i'm likin' it, the more i think about it) or the templates one, you might consider either of these two angles:
1) code the detail page's region as a plsql anonymous block that selectively shows what it needs to show.
2) code the appropriate nvl's or case statements into your detail page's report region and have that select statement select out most of your html formatting for you.
i don't particularly like either of the two above suggestions, but now you at least have them. i think i'd run with the solution where you select the detail row twice, but please don't quote me on that.
regards,
raj

Similar Messages

  • Conditional display of a column link in sql updateable report

    Hi There,
    I've attempted to look thru the Apex forum about using an Authorization Scheme in an SQL Query (Updateble Report) where I can conditionaly enable (display) a column link based upon a value in the report but alas I cannot find a solution.
    What I have is a SQL Query (updateable report). What I want to achieve is dependant on the value of one of the columns in the report query conditionaly display a column link for the row being displayed. For example if the report dispayed the data from emp, dept only display a column link for rows where the deptno = 100 otherwise don't display the column link. Is this possible to achieve?
    I've tried to define in the authorizatuon scheme in the where clause of an SQL Statement to reference the report column as #deptno# but this doesn't work.
    TIA

    Boketi,
    I was unsuccessful yesterday in demoing what I believe you want to achieve. It appears that an authorization scheme will not process row by row within a standard report so as to allow a conditional display of a link or any other column attribute. You can conditionally display a column by the use of a page item but this method appears to be all or nothing.
    I was successful when I coded the return of the empno via a Case statement but the Link still appeared even though there was no value (empno) to link with. So essence the link to you to a blank for with no PK to read the database by.
    SELECT CASE WHEN deptno = 10 THEN empno ELSE NULL END empno,
           ename,
           job,
           hiredate,
           sal,
           comm,
           deptno,
           phone_nbr
    FROM   empJeff

  • Master-Detail Form, Conditional Display of a Column Link

    Hey Guys,
    I've got a little question for you:
    I use a Master Report with a Column Link that i would like to hide when my Column in the Report named "NUMBER" is 0.
    I can't get it to work though. Using the "Conditional Display" stuff doesn't seem to work.
    I have looked at some CASE statements but i cant seem to make them fit!
    Any suggestions?
    Thanks alot,
    max

    sorry for the trouble, i am quite new to this.
    Yes, i took my Master Report and added a [column link]. I understand now how the sql has to look like but where do i put this?
    I cant find any space for a sql code, or does it belong in the conditional display section?
    I changed the Column Attributes to standard column, however, this seemed to have no effect.
    Do i have to chance my sql select query for the Report?
    It looks like this at the moment...
    SELECT
    "CONTENT_LOCALES"."CONTENT_LOCALE_ID" "CONTENT_LOCALE_ID",
    "CONTENT_LOCALES"."CONTENT_ID" "CONTENT_ID",
    "CONTENT_LOCALES"."LOCALE_ID" "LOCALE_ID",
    "CONTENT_LOCALES"."NAME" "NAME",
    "ORIGIN_TEXTS"."ORIGIN_NAME" "ORIGIN_NAME",
    "DESIGNS"."DESIGN_ID" "DESIGN_ID",
    "DESIGNS"."DESIGN_NAME" "DESIGN_NAME",
    "CONTENT_LOCALES"."SEQUENCE" "SEQUENCE"
    FROM
    "CONTENT",
    "DESIGNS",
    "CONTENT_LOCALES",
    "ORIGIN_TEXTS"
    WHERE (("ORIGIN_TEXTS"."GID" =:GID and "CONTENT"."CONTENT_ID" =CONTENT_LOCALES.CONTENT_ID and "CONTENT"."DESIGN_ID" =DESIGNS.DESIGN_ID and >"CONTENT_LOCALES"."CONTENT_LOCALE_ID" =ORIGIN_TEXTS.CONTENT_LOCALE_ID))

  • Conditional Display on Report error

    hey,
    can anyone suggest a way/workaround to catch a report error. when error occures, i'd like to display another report, just below, without errorneus columns ( Oracle Text score(1) this time )
    report error:
    ORA-20000: Oracle Text error:
    DRG-50901: text query parser syntax error on line 1, column 1
    how could i make this error conditional?
    br,
    Simon

    Hi Simon - I have the same issue. Did you find a solution?
    thanks,
    Matt

  • Complex conditional display in report table

    Hi,
    I built a report in a region, and want to make one of the columns conditionally display based on attributes from two other columns in the table. The drop-down for the conditional display only lets me refer to the current item. Is there a way I can reference the other cells in that table row in a PL/SQL expression (e.g.: something akin to #COLB# is not null and #COLC#>1000 ?)
    Related question: I'm assuming the reason I can't directly change the source for the report region and can only modify it from the Query Definition tab is because I used a wizard to create it. Is there a way to "undo" this and make the source for the report fully editable? That would also solve the problem, since I could just add a function-derived column to the query.
    Thanks in advance,
    Keith

    One final update and rephrasing of the problem, because maybe there's another way to solve this.
    I have a column in a report that links to another page, but the link is only shown if a certain condition is met (which is based on other cells in this table row). I can test for those conditions in my original SQL query, so that a null value in my link column results in no user-clickable link being created. (I have to make sure that a null value appears as null on the report page, too.)
    This works fine if the link text is just that: text. Because not meeting the condition returns null, so no text == no link.
    Now the only problem I have comes if I want to use an icon (e.g.: the edit icon) instead of link text.
    What I really want is for the icon to only appear if a certain condition is met. However, the icon replaces the column value so I can no longer use a null value to prevent the link from appearing.
    The original question asked whether I can use other report cells (#foo#) in the conditional display for a cell. If that's not possible, any suggestions on how to achieve the desired effect without resorting to JavaScript?
    Thanks.
    Edited by: kswartz on Jun 20, 2009 1:56 AM

  • Conditional display of report

    hi
    i have a batch table (batch_id,batch_name,batch_type..)
    i have to pass batch_name and batch_type as a parameter so i have 2 item on a page
    batch_name :-select list
    batch_type :-select list with submit and it values select from the values of batch_name
    create button :- when i hit the create buttons it will show me 2 report in the same page based on the latest batch_id
    so i have to apply conditional display on the reports
    what would be the condition for the conditional display so that i will get to reports in the same page
    dependency between report is batch_id
    Regards
    Amu

    Hi Tobias,
    i have interactive report.
    the content of report is displayed based on the input values(from select lists),
    1)select list -p_cust
    2)select list-p_switch(the values of the list select from the values of p_cust i.e select d r from switch_t where cust_name=:p_cust)
    requirement like this
    1)First i have to select a customer
    2)when i select a values (switch) from the switch select list -the result of the report for a paticular switch .
    e;g-p_cust='ABC' and p_switch='XYX'
    the output of the report would be the all records for 'ABC' customer for a Paticular Switch that is-'XYZ'
    3) again when i select a value "All_switches" from the switch select list it should returns all the records for all switches
    Regards
    Amu

  • Interactive report conditional display of link column - apex 4

    I create an interactive report
    select object_id,
           object_name,
           case
            when mod(rownum, 2) = 0
            then 'block'
            else 'none'
           end  display_link
    from user_objects
    where rownum <= 10in the Link Column for the report I selected one of the edit icons and put the following in the link attributes
    style="display:#DISPLAY_LINK#"I also edited the object_id and set the Column Link and selected an edit icon and put the same style in the link attributes.
    The link under the column displays correctly but the link for the report does not seem to substitute the #DISPLAY_LINK# from the report. Any Ideas?

    Here's how I've done this:
    SELECT ORG_ID,
           CLEARER_NAME,
           LEGAL_NAME,
           MARGINING_ACCOUNT,
           RULE_GROUP_DESCR,
           VIOLATION_COLOR,
           VIOLATION_LEVEL,
           CASE MARGIN_IND
            WHEN 'Y' THEN '&nbsp'
            ELSE '<a href="#" title="Ignore This Alert"><img src="/i/ice/images/hide.png" alt="Ignore"></a>'
           END AS IGNORE_LINK,
           ....This takes care of either showing (or not showing) the link.
    IN order to process when it is present, not that the address is "#" This will cause your cursor to change to a hand (or whatever your pointer is) when the mouse floats over the link. The actual transfer to the next page, I handle with jQuery/JavaScript.
    Create a Dynamic Action.
    Event: Click
    Selector Type: jQuery Selector
    jQuery Selector: 'aalt'
    Event Scope: Live
    (note that the jQuery Selector is finding the alt attribute that I set on my link in the SELECT above . Tweak as needed.
    This "Action" for this DA will be to "execute JavaScript code"
    Normally, I would set some values into Page Items and then create a branch to pass this values to the next page. I am doing the same thing in the following code. I am getting the values off of the row wherein the user clicked on the link. I am setting these values from the row into the page item values. Then, I am submitting the page. All the "htmldb_Get" business is just stuff that I have to do to get the page item values into the session (so that I can pass them to the next page).
    var clickedRow = this.triggeringElement.parentNode.parentNode.parentNode;
    var ruleGroupDescr = $(clickedRow).children('td[headers="RULE_GROUP_DESCR"]').html();
    var ajaxRequest = new htmldb_Get(null, $x('pFlowId').value, null, 0); 
    gReturn = ajaxRequest.get();
    $s('P31_RULE_GROUP_DESCR', ruleGroupDescr );
    ajaxRequest = null; 
    var clearerName = $(clickedRow).children('td[headers="CLEARER_NAME"]').html();
    var ajaxRequest = new htmldb_Get(null, $x('pFlowId').value, null, 0); 
    gReturn = ajaxRequest.get();
    $s('P31_CLEARER_NAME', clearerName );
    ajaxRequest = null; 
    apex.submit("IGNORE");Finally, just create a branch to the next page and set the items on the next page to the ones on this page that are being set in the above script. Note that in my example, I have set the request to "Ignore" when I submitted; so, I set the condition of my branch to be Request = IGNORE.
    Hope this helps,
    -Joe

  • Display conditional Image in Report Column

    Hi,
    I'm quite new to HTMLDB and searched the forum for the mentioned matter:
    I have a report with about 3 columns. In the second column(Col2) I have a values like male or female. Is it possible and if yes how to insert an image before the value in Col2 based upon evaluating the column value?
    For example my report looks like that:
    [Col1] [Col2] [Col3]
    blabla oMale blabla
    If the value for Col2 is female I want to display another image.
    Can anybody help me??
    Thanks

    In my case it has to be something like that? :
    select col1,col2,
    case
    when col3 = 'Value' then '&lt;img src="#IMAGE_PREFIX#picture.gif"&gt;' || col3
    end,
    col4
    from ...

  • Conditionally display row report template.

    Hi
    I have a report template based on a Named Column(row template). Everything is working perfectly except I am trying to hide a section on the report if the value is null.
    In Row Template 1 I have the following
    <table width="100%">
    <tr>
    <td>#BLOB_CONTENT#<div class="imagecommentsheader">#COMMENTS#</div></td>
    </tr>
    </table> I have placed a condition on this based on PL/SQL expression and have the following:
    #COMMENTS# is not nullIn row template 2 which should display everything but the comments I have the following:
    <table width="100%">
    <tr>
    <td>#BLOB_CONTENT#</td>
    </tr>
    </table>I have also set a condition on this based on PL/SQL expresion and have the following in the expression:
    #COMMENTS# is nullbut when I load the page I get the following error:
    ORA-06550: line 1, column 35: PLS-00103: Encountered the symbol "IS" when expecting one of the following: ( ) - + case mod new not null others table avg count current exists max min prior sql stddev sum variance execute multiset the both leading trailing forall merge year month DAY_ hour minute second timezone_hour timezone_minute timezone_region timezone_abbr time timestamp interval date
    Error ERR-1025 Error processing PLSQL expression. is not null
    Where can I be going wrong?
    Thanks you

    Hi,
    If I remember correctly, it was the nulls that caused me problems initially as well.
    I ended up thinking of the condition as being what would need to go in:
    CASE WHEN ...condition... THENbut also that it could only be fairly simple (you couldn't call functions, for example) as all it could deal with was column values.
    Andy

  • Conditional display in Reports

    Hi,
    Does anyone know of a way to make a icon used to implement a link to another page appear for some rows of a report but not others? The condition for display could be based on the value of one of the columns in the report.
    Niall

    Right now, you have to put your logic into your SQL for the report. You can use CASE or DECODE to determine what should (or should not) be displayed for a given column.

  • Conditional display of report row

    Hi All,
    I've a report form and have a LOV for a column. Based on the data selected in the LOV I need to populate some more rows to that report.
    It is basically like a survey page where depending on the answer provided by the user, sub suvery question needs to be populated. For example if I select "Married" for maritial status another question should be populated asking for Spouse Name. All the queries are stored in a same table with Parent question ID to link Child question to Parent Question.
    Any clue on how to do this.
    Thanks in advance
    Prasanth

    a. It is a report on table and one column is editable with a LOVThat is Tabular Form or Updatable report. Implies there is a ApplyMRU/ApplyMRD process to perform the update.
    >
    b. APEX 4.1
    >
    The solution will depend on your database design. You may need to review in the light of the page design you will do.
    I don't think I will get into the code for this as it will be fairly nifty and will require a study of your database design.
    At a high level:
    a. Create a table(s) for keeping your questions, say Questions.
    b. Next you need to decide how you want to store your "rules" for selecting questions based on prior responses. Rules may be built into the database design or external processing based on column(s) in the question rows.
    c. Create a table for Responses. Populate it with the mandatory questions.
    d. Base your Tabular form on the Responses table
    e. Each time a use makes a selection in a row's LoV submit the page to loop back on to itself.
    f. In OnSubmit processing, after the Responses table has been updated, add the relevant rows from your Questions table to the Responses table using your rules in a Page Process.
    h. When the Form is displayed again the new questions will be displayed as the corresponding rows have been inserted into the Responses table in the process referred to above.
    Of course, you will need to write some more code for situations where a user goes back and changes the Lov of a prior question that affects related questions....
    Cheers,

  • Conditional display of h:column

    I am trying to get a command link in a column of a data table to display conditionally on a row by row basis. I am using the JSF RI Beta.
    item is the data table var.
    <h:output_text value="#{item.parent}" /> will display true or false.
    <c:if test="#{item.parent}"> does not appear to work. It behaves always false. Should I use a different syntax to reference this value in JSTL?
    <h:column rendered="false"> has no effect.
    <h:column rendered="#{item.parent}"> results in a null pointer error.
    Ideas?
    Thank you,
    Ed

    Try:
      <h:data_table value="#{SOME_LIST}"
                    binding="#{helperBean.uidata}"
                    var="item">
        <h:column>
          <h:SOME_COMPONENT rendered="#{helperBean.theCondition}"/>
        </h:column>
      </h:data_table>
      public class HelperBean {  // typically the bean which contains the data list
        public boolean theCondition() {
            int i = uidata.getRowIndex();
            if (i == -1) return true; // return value does not matter for index -1
            Item item = get_ith_item_of_your_sequence(i);
            return item.theCondition();
        private UIData uidata;
        public UIData getUidata() { return uidata; }
        public void setUidata(UIData uidata) { this.uidata = uidata; }
      }Wolfgang Oellinger

  • Conditional Display in Report Template

    Hello!
    This is a BI Publisher / Apex question but I'm not sure which forum my question should fall under...thought I'd try this one first. Let me know if I guessed wrong. :)
    I have created a report template (Word) and a report query in Apex. Everything works great (meaning the data is displayed as it should), but I can't figure out how to display a header/footer based on a user's response. On my search form, the user selects Yes or No if they want/don't want a header/footer printed on the report. The header/footer is predefined in the main database table, but it's not a field in my report query. How do I incorporate this into my template? It's been a while since I created a template in Apex but I don't think I've come across this issue before.
    Any ideas?
    Thank you,
    Tammy

    After a week off, I'm back to tackling this issue. I successfully created a sub-template and it works, except when I try to call the report via APEX. I've searched the forums and came across the "disable external references" set to False, but I'm using the standalone version of BI Publisher so I don't have that option. Is there a similar approach via the standalone version?
    Thank you!
    Edited by: 73pixieGirl on Feb 15, 2010 9:15 AM

  • Conditional Display in reports doesnot seems to work

    hi ,
    I tried to set conditinal display in a report to a pl/sql expression and it didnt work.
    in order to check if conditinal display works I tried to set it to never, and it is still displayed . I'm using Apex 2.0
    Please help
    sagsag

    New Info.
    The report is based on my own report template and using links
    a basic report does work with conditinal displau
    sagsag

  • How display costom report column heading

    Hi,
    I am having report region with different columns, in that one column heading needs to be start with lower case like "iST Status" but always it is showing "IST Status".
    Can any one help me how can i achieve this.
    Thanks and regards,
    Ibrahim Sayyed.

    >
    Update your forum profile with a real handle instead of "995226".
    I am having report region with different columns, in that one column heading needs to be start with lower case like "iST Status" but always it is showing "IST Status".This has been reported before. See +{thread:id=1022033}+
    Add this style sheet to the page HTML Header (or use your preferred CSS override method):
    <style>
    th.t13ReportHeader {
      text-transform: none;
    </style>If you're not using theme 13, modify the selector accordingly.
    Can any one help me how can i achieve this.Help us to help you. When you have a problem you should provide as much relevant information as possible upfront. This should include:
    <li>Full APEX version
    <li>Full DB/version/edition/host OS
    <li>Web server architecture (EPG, OHS or APEX listener/host OS)
    <li>Browser(s) and version(s) used
    <li>Theme
    <li>Template(s)
    <li>Region/item type(s) (making particular distinction as to whether a "report" is a standard report, an interactive report, or in fact an "updateable report" (i.e. a tabular form)
    With APEX we're also fortunate to have a great resource in apex.oracle.com where we can reproduce and share problems. Reproducing things there is the best way to troubleshoot most issues, especially those relating to layout and visual formatting. If you expect a detailed answer then it's appropriate for you to take on a significant part of the effort by getting as far as possible with an example of the problem on apex.oracle.com before asking for assistance with specific issues, which we can then see at first hand.

Maybe you are looking for

  • How do I move just a single clip in the project file and then convert that into an Mp4 format?

    Dear Assistance, I have a project file open. At the bottom  of the screen there is a horizontal film strip of images.  I have cut the images into certain segments. I want to select one single segment (about 1 min long) and convert only that selected

  • How to structure a multiple business WM solution in SAP

    Hi there, I am in a preparation phase to show our business the merits of SAP WM, replacing a third party system. As I'm new to WM I'm struggling a bit with the possible structures to use for our DC. I understand the SAP and standard WM structures how

  • My ctrl button doesn't work with many other keys

    Hello: I am unable to use the ctrl+t (open new tab), ctrl+c or ctrl+v (copy/paste) among other ctrl commands while using firefox. I know that the ctrl key itself is not broken as I am able to use the ctrl+backspace and ctrl+forward (return to last pa

  • Backing up via HD directly and wireless network

    If you backup on the same hard drive connected via USB and then connect afterwards via wifi through the router, does the software recognise its the same hard drive to backup from? E.g. will I have to start from scratch again when backing up via wifi?

  • Orders consolidation and Frieght charges in delivery

    Hi SAP gurus, Scenario: customer 'x' places orders every day. once the material is available we want to ship it. so lets say that for orders placed on monday and tuesday ...material is available on wednesday. so i consolidate the two orders and make