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

Similar Messages

  • 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))

  • Setting fields defined in SQL updateable report with a process

    I have SQL statement defined in a SQL updateable report with hidden fields. I want to be able to update these hidden fields with values from other displayed fields on the page. How do I reference these hidden items - I have referencign them as :my_field but get and error telling me thats its underfined.

    But, the reason I am doing this is because I want to format the page with 6 columns in one <TD> cell with some extra text and formatting etc - I don't want 1 column per <TD>. Thats why I am using the APEX_ITEM.TEXT so I can format the 1 <TD> the way I want it (with 6 columns it there).
    In the short term can you tell me how to reference hidden fields please.
    I will create the case in apex.oracle.com in the next few days to make it clearer.
    P.S. see my previous post: SQL QUERY updateable report with APEX_ITEM fields to update hidden columns

  • Wwv_flow_item.popupkey_from_query in combination  SQL updateable report

    Hi,
    I found out that wwv_flow_item.popupkey_from_query in combination 'SQL updateable report' does not work. It does not display the popup. It creates a extra column with the message below.
    In combination with 'SQL query' it works. Is it possible to make it work in combination with updatable reports? If so can you tell me how?
    Thanks in advance,
    Patrick
    Message:
    <NOSCRIPT>JavaScript not supported</NOSCRIPT><SCRIPT LANGUAGE="JavaScript1.1"> <!-- Comment out script for old browsersfunction genList0_f05_0() {           w = open("wwv_flow_utilities.gen_popup_list" +                       "?p_filter="  +                       "&p_name=" + escape('f05') +                       "&p_element_index=" +  escape ('0') +                       "&p_hidden_elem_name=" + escape('f04') +                       "&p_form_index=" + escape('0') +                       "&p_max_elements=" + escape('') +                       "&p_escape_html=" + escape('') +                       "&p_ok_to_query=" + escape('YES') +                       "&p_flow_id=" + escape('2648') +                       "&p_page_id=" + escape('8') +                       "&p_session_id=" + escape('276014029277327813') +                       "&p_eval_value=" + escape('') +                       "&p_return_key=YES" +                       "&p_translation=" + escape('NO') +                       "&p_lov=select+short_name,+id+from+rio_reps",                       "winLov",                       "Scrollbars=1,resizable=1,width=400,height=450");           if (w.opener == null)             w.opener = self;           w.focus();         }//--> </SCRIPT><div nowrap><INPUT TYPE="hidden" NAME="f04" VALUE="" id="0" ><INPUT TYPE="hidden" NAME="p_arg_names" VALUE="0"><INPUT TYPE="text" NAME="f05" id="0" disabled onfocus="this.blur()" ><IMG SRC="/i/list.gif" alt="LIST" border="0" align=bottom></div>

    you're seeing that error because those project marvel updatable report regions expect a regular query that they then turn into an updatable report for you at runtime. you're kind of confusing things when you try to provide it with your own calls to wwv_flow_item in there. the way to really take control of the way your updatable report will render is to code it as a regular report region in which you make your own wwv_flow_item calls. an easy way to generate that region code would be to step through our updatable report wizard and let marvel do it for you. the first screen of that updatable report wizard presents you with the option of having the flow builder "Use flows built in updatable query page process" or "Generate PL/SQL logic directly into page process". if you use this second option, your resulting query will have those calls to the wwv_flow_item package in it. so let's say you step through the wizard to generate an updatable report for the SCOTT.EMP table. you'd probably get something like this...
    select
    wwv_flow_item.hidden(1,EMPNO)||
    wwv_flow_item.text(2,EMPNO) EMPNO,
    wwv_flow_item.text(3,ENAME) ENAME,
    wwv_flow_item.text(4,JOB) JOB,
    wwv_flow_item.text(5,MGR) MGR,
    wwv_flow_item.text(6,HIREDATE) HIREDATE,
    wwv_flow_item.text(7,SAL) SAL,
    wwv_flow_item.text(8,COMM) COMM,
    wwv_flow_item.text(9,DEPTNO) DEPTNO
    from #OWNER#.EMP
    ...as your query in that report region. you could then tweak your wwv_flow_item calls to generate other item types like so...
    select
    wwv_flow_item.hidden(1,EMPNO)||
    wwv_flow_item.text(2,EMPNO) EMPNO,
    wwv_flow_item.text(3,ENAME) ENAME,
    wwv_flow_item.textarea(4,job) JOB,
    wwv_flow_item.text(5,MGR) MGR,
    wwv_flow_item.date_popup(4, null,HIREDATE) HIREDATE,
    wwv_flow_item.text(7,SAL) SAL,
    wwv_flow_item.text(8,COMM) COMM,
    wwv_flow_item.popupkey_from_query (1,deptno,'select dname, deptno from dept') DEPTNO
    from #OWNER#.EMP
    ...so now you'd have the an updatable report that used a date picker, a text area, and a popup key LOV as opposed to the one with straight text areas that was generated by default. take a look at the docs for the wwv_flow_item api at http://marvel.oracle.com/pls/otn/f?p=4200:58 to see just how much control you'd have.
    hope this helps,
    raj

  • Disabling the dropdown LOV for existing records in SQL updateable report

    Hi All -
    I have a SQL updateable report which has 3 columns. One of the column is a named-LOV. This report also provides the functionality of inserting new rows.
    Is there a way to only show the named-LOV dropdown list for only the new records to be inserted i.e. when we click on "Add Row". For existing records, I donot want to show the dropdown.
    Please provide your thoughts.
    Thanks,
    -Seenu

    Thanks Robert -
    I guess I didn't put my question right in my earlier posting.
    Basically this report provides updates and inserts both (Its a SQL Updateable report)
    One of the column is a Named-LOV (select list dropdown). For the existing records shown in this report, this select list should be disabled. But for the new records while inserting a new row into this report, the select list dropdown should be shown to the user with an option to choose values from selectlist.
    Thanks,
    -Seenu

  • Display As Text (Saves State) as a Link in an updateable report

    I'm running into an odd problem when attempting to use display as text(saves state) in a report as a link.
    I have an updateable SQL report with the following columns in this order
    1) A checkbox column
    2) A column as a link using the Link Text attributes
    3) A hidden column storing a key for use in the form
    As I expected the checkbox is given a form name of f01 and the hidden column is f02
    However, when I decide to switch the second column to be Display As Text (saves state) which also has the Link Text attributes set, so I can submit the value of that column in my form, something odd happens.
    The checkbox is still submitted as f01. The hidden column becomes f03, however the Display As Text (saves state) value appears nowhere in the form. Neither does the text name="f02". It just stays as a link like it was before.
    I'd really like to be able to submit the value without duplicating the column in the query(and making it a hidden value). Does anybody have any ideas about how I could do this?
    Am I doing something horribly wrong? Has anybody else experienced this behavior?
    Thanks,
    Joe
    Message was edited by:
    joe.bauser

    Just to flush out my examples, and as a test for myself, I copied the "broken" example to a fourth page.
    After copying the example page, I left the "display as" in "tabular form element" as 'Display As Text (saves state)' and deleted everything that was in the "Column Link" section (removing the link)
    Once the link was removed, the Display As Text (saves state) behaved exactly as I would expect it to.
    Example here<br>
    Link stuff removed

  • How do you select a clob column in an SQL query report?

    I must be missing something fundamental as there is practically no help on this on the forum.
    All I want to do is ...
    select numcol,aclob_col from table
    in an SQL Query report.
    Sounds easy??? I get no data appearing in the clob column. Doesn't work in SQL Workshop either. What's the catch??
    regards
    Paul P

    Paul,
    It works when I try it. What version of Application Express, what is the table DDL, the exact query, and how much data is in the clob columns?
    Scott

  • Display Periods in Column headers for CO-PA report

    SDNers
    I'm trying to create a CO-PA Report with Column headers that are required to be showing Current Period, last period etc until 6 months back.
    I've tried to put in &0FP .. but that only display the Current period/year...
    How do i get the previous periods displayed in the column headers??
    thanks

    hi Sruthi....
    In standard SAP, the only reports which are available are line item reports - KE24 (Actuals) and KE25 (Plan). However, using Report writer / painter we can create reports as per Business requirements.
    Once we create reports as required, we can execute the same using transaction code KE30 (Execute report).
    You can create / change / display COPA reports using transaction codes KE31 / KE32 / KE33 respectively.
    Once again create the new Report and then execute it.....
    http://help.sap.com/saphelp_erp2005/helpdata/en/7a/4c48c64a0111d1894c0000e829fbbd/frameset.htm
    Regards
    Ranjit

  • 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

  • Download column link to SQL report

    Hi ,
    I am using apex 4.1.
    I have a SQL report  with blob image column also . And along with the image i need to add download link as a column can some one please suggest me how to do it.
    Thanks
    Raghav

    raghav1212 wrote:
    I am using apex 4.1.
    I have a SQL report  with blob image column also . And along with the image i need to add download link as a column can some one please suggest me how to do it.
    This is very simple. Reference the image column twice in the report query projection, and apply a download format mask to one column and an image mask to the other.

  • Dynamic Link in SQL Query Report

    Andy,
    I refromatted the message since it was all garbled, I didn't realize it came out like that the first time.
    1) I am not sure what you meant by the "#" in your message until I did the substitution of #'s for < > I didn't have that in my URL.
    2) Since the whole statement is enclosed in single quotes to be inside of a decode statement I think this is an issue with the javascript and it's double quotes or is it?
    3) I took care of the passing values for items, even if I can just get the link to work some what I would be happy I can worry abou those values later..
    Hello I have a a link that is generated in a report
    sql based on an SQL query and I would like to turn it
    into a popup instead of a direct link. But I seem to
    be having some problems going from a link to a popup
    link...
    <b> I replaced the brackets < > with "#" </b>
    This statement works;
    SELECT decode(create_date, NULL, NULL, '#a
    href="f?p=&APP_ID.:71:&SESSION.::NO:100:P71_EQUIPMENT_
    ID,P71_CONTAINER_TYPE_ID:' || equipment_id || ',' ||
    container_type_id || '"/#' || create_date ||'#/#>' )
    AS "HIST_NOTE",
    </br>
    </br>
    but I would like to turn make it a popup instead of a
    direct link, I think the problem has something to do
    with the parenthesis (double and single mixed) any
    ideas?
    </br>
    </br>
    I tried doubling them up (using three single ticks
    for double parens inside of single ticks and
    everything
    </br>
    </br>
    <b> I replaced the brackets < > with "#" </b>
    decode(create_date,
    NULL,
    NULL,
    '#a href="javascript:popupPage('f?p=&APP_ID.:71:&SESSION.::NO:100:P71_EQUIPMENT_ID,P71_CONTAINER_TYPE_ID:' || equipment_id || ',' || container_type_id || '"/#' || create_date ||'#/a#')" ' AS "HIST_NOTE",
    </br>
    </br>
    Any ideas?
    The error I usually get mostly complains about "ORA-00907: missing right parenthesis"....
    I put an example up on apex.oracle.com if you want to debug it there (it of course does not work right now)
    http://apex.oracle.com/pls/otn/f?p=18490:5
    guest/apex123
    Thanks
    Justin
    Message was edited by:
    Justin P

    Denes,
    I was able to get it working based on one of your examples, it gets ugly when you embed the popup javascript into the link as you know. You have some really great examples, I hadn't been to your page in awhile.
    Here is my end result (this is embedded in a decode statement so single ticks would go around the entire example below)
    &lt;a href="javascript:popUp2('''
    || 'f?p=&APP_ID.:71:&SESSION.::NO:100:'
    || 'P71_EQUIPMENT_ID,P71_CONTAINER_TYPE_ID:'
    || equipment_id || ',' || '&F110_CONTAINER_TYPE_IP.'
    || ''', 900, 600);">'
    || create_date
    || '&lt;/a>
    Thanks to all that helped me out here,
    Justin

  • Navigation column link on Custom Homepage Report

    I have a working navigation column to another report when viewing the report from the shared folder. If I add the report to the homepage as a custom homepage report the navigation link on the column values no longer works.
    The value from the homepage report goes to https://secure-ausomxgea.crmondemand.com/OnDemand/user/ReportIFrameView?SAWDetailViewURL=saw.dll%3fGo
    Any thoughts on why it works on the report itself but not when the report is added as a custom homepage report? Any work around or other type of link to try to get to another report?
    Thanks
    Edited by: Cor on Jul 7, 2009 11:34 AM

    I was able to create an html link on a new column. Now I'm trying to make the text be dynamic.
    Is it possible to have an html column with the text for an html link to be based off of a field?

  • How to apply Filter condition for a specific column but not to the report?

    Hi,
    I am having a issue in applying a filter condition to one of the column.
    I have a schema with one fact table and around 10 dimension tables. My requirement is to bring a count on the fact table with related to some other columns from the dimension tables.
    Lets consider a scenario with tables like Sales (Fact), Region (Dimension), Year(Dimension), Sale Type (Dimension).
    Now my requirement is to bring out the fields
    City(Region) --City                                   
    Year -- Year
    Sales Count(Sales table) ---Count of all sales from the fact table
    Sales Count(Sales table) -- Count of all sales from the fact table where sales type is 'CASH'
    Here my issue is how do I apply the filter condition of Sales Type='CASH' only on one of the Sales Count column which is from the fact table. I want the filter condition to be imposed only for the fourth column.
    Can anyone let me know how to achieve this?
    Thanks

    This is quite simpe. Edit the column formula for the 4th column and put something like this. I am doing this from memory so the syntax might need checking:
    Case When "Dimension Table"."Sales Type"='CASH' Then "Fact Table"."Measure" Else Null End
    You could also consider making this a permanent addition to your RPD if this measure will be used again and again. You would add a new logical column and use the expression builder to arrive at the same result.

  • Column Link - how to get back to the same row on previous form

    Using Apex 3.2.1
    I've created a column link on an updateable report which opens up another page for data entry. This is working fine but when you return to the originating page, is there a way to get back to the same row you were on before linking.
    The user enters a number in the AMOUNT field. A validation trigger says they need to enter an EXPLANATION. They link to the EXPLANATION page. But when they return to the first page, they don't know which row they were on AND the value they originally entered in AMOUNT is back to the database value. So is there a way to preserve the AMOUNT value and rowid from the originating page?
    Hope this makes sense and appreciate any and all help!
    Sandie

    Hi Sandie,
    I may not be understanding the requirements completely, but one thing that strikes me off the bat is it sounds like what you need isn't really a "validation" per se. The data the user is entering may be perfectly valid, it's just that in certain circumstances additional information is required. I only mention this because an ApEx validation by definition shouldn't allow changes to be made to the database - but in your case it sounds like the information entered up to that point can be saved (as long as it satisfies actual data validation rules), but then additional information for certain rows is required.
    One thing you might consider is having the Explanation page pop-up in a new window. So user is on tabular form with current row visible - user clicks on explanation link which pops up a new page - user enters explanation and clicks "submit" - pop-up page disappears leaving user right where he/she was.
    Hope this helps,
    John
    If you find this information useful, please remember to mark the post "helpful" or "correct" so that others may benefit as well.

  • How to display two or more links in a single column

    Hi,
    Is there a way to display two links in a single column in a sql query report . I am able to specify one but I am not able to add links to the same column . I want to take the same column id and redirect the user to different pages based on the values selected .
    Thanks

    There is no way to this declaratively that I know of. Some alternatives...
    1. Put the conditional branching logic in the report SQL itself. e.g. case when ... then '< a href=..' else '< a href=...' end and make sure the column display type is Standard Report column
    2. Have the declarative column link go to a dummy/intermediate page and setup On Load: Before-Header branches on that page to redirect to the desired page based on the item value(s) passed in to the intermediate page.

Maybe you are looking for

  • CUSTOMIZE FIELD TOTAL IN ALV REPORT

    Hi all, I am using ALV List display and calculating totals and subtotals. I have 3 columns and the totals are all displayed column-wise. But my requirement is that total of 3rd column should not be the sum of all the values in that column but it has

  • Cisco Prime DCNM 6.1(2) - Login to webinterface fails

    Hi, we are having trouble logging into the webinterface of our DCNM installation. (Cisco Prime DCNM 6.1(2), Windows 2008 R2 SP1 64  bit version, US) Everything seems to be working fine so far, except the login to the webinterface. When  calling https

  • Playing Slideshow with numerous photo pages

    I have 5 different photo pages on my iweb site. I split them up so the load time would be quicker. Is there any way to play the slideshow and include all the photos on every one of the 5 pages? Right now, you have to play the slideshow on each sepera

  • Films Are twice As Long In iTunes

    I have converted a DVD to mp4 and imported it into iTunes so that I can then transfer it to my iPod. The mp4 file on my laptop shows a correct running time of 01:12:40, yet when I drag it into iTunes it shows a running time of 02:25:21. When I play i

  • Can't print album artwork

    When I make a playlist, highlight a song and attempt to print a single cover, I do not get the album artwork to print. All I get is a monochromatic colored cover with the playlist text. Why is this?