Conditional display for the links in the column?

Hi all

For a report, if you configure a column under the 'attributes of column' binding so that the report has a link to turn an edit form, is it possible to set a condition on this somewhere so that only certain LINES has an icon link (or text)?

NT

You can use a case statement?

select case
          when column1 = 'x' then '' || column2 || ''
          else column2
       end
from table

Minh

Tags: Database

Similar Questions

  • Interactive report, conditional display of the column binding

    Hello

    We have obligation to disable editing in case this field is 1 (1 = closed).

    Is it possible to disable it on interactive report.

    -case when status = 1 link in the column should be disabled (not visible) in order to prevent future changes on the payroll.

    SELECT payroll_no, status

    OF hr_payroll

    ORDER BY payroll_no DESC;

    I tried the link below, but it does not work in my case.

    http://nerd.NET.au/24-Apex-application-express/report-layout/92-conditionally-show-report-link-column-based-on-value-of-...

    Oracle Database 11g Express Edition Release 11.2.0.2.0 - Production

    Request Express 4.2.2.00.11


    Thank you in advance,

    Best regards, FM

    Status of the INCIDENT WHEN 'ACTIVE' = then


    '
    OTHER END null deactivate_employee.

    Of

    EMPLOYEES

    What exactly is the error you get? What HTML is displayed in the HTML source code?

    Just by looking at it, I would say that you need to remove the "/" before the f? p

    Don't forget not this way could cause problems if you start using the checksum, then you might want to look at the use of APEX_UTIL. PREPARE_URL to create your URL.

  • Conditional display for interactive report columns

    The APEX 4, one of the options in the conditional displays for the columns was 'PL/SQL function body returning Boolean ". I had a function that returns a Boolean value, and I stuck my function call in the text like this:


    return DISPLAY_FIELD (: APP_USER( )

    "I don't see" ""PL/SQL function body returning Boolean " option 5 APEX. What should I use to call the same function to hide and show the column in the report?

    bobmagan wrote:

    Thank you. Using PL/SQL Expression will give best performance? Some of my reports have 80 + items, which must undergo this check.

    Probably not what you have seen. Have less well.

    And if I use PL/SQl Expression, what is the syntax I need?

    this:

    DISPLAY_FIELD(:APP_USER) = TRUE

    For functions that return a Boolean value, just use the function call:

    display_field(:app_user)

  • We display only the columns required dynamically?

    Hi all

    I have a scenario where I have 30 columns in the rtf model. All columns will never be displayed, only a privileged few will be available for display. The output file is so see the empty columns. Now, I want to display only the columns that contain data.

    FYI - can't know what columns are made up of data until we run the report.

    Any advice.


    Thanks in advance.

    Malenfant.

    Hello

    You can use the following text:

    Column heading:
    My label

    The data in the column:
    My data

    The @column will tell XMLP wheater or not that column should be indicated.

    I hope this helps you.

    Kenneth BR

  • ORA-01438: value larger than the precision specified for the column '

    When inserting the different entries of cheaper products in this table PF_PRODUCT_VIEWS_PROFILE, I'm having this problem of "java.sql.SQLException: ORA-01438: value larger than the precision specified for the column '.»


    As I see it in the tables (desc pf4. PF_PRODUCT_VIEWS_PROFILE; & PFCA4 of ESCR. DCS_PRICE_LEVEL;), I see the accuracy for the price of the table PF_PRODUCT_VIEWS_PROFILE as NUMBER (12.7) & accuracy for the price of the table DCS_PRICE_LEVEL as NUMBER (19.7). There is therefore a difference in precision 7 units for the price in the PF_PRODUCT_VIEWS_PROFILE table that is causing this problem. So that would be the solution.


    Could you please post my comments, so that I can change the accuracy for the price of the PF_PRODUCT_VIEWS_PROFILE table.
    Need to confirm other columns in the table PF_PRODUCT_VIEWS_PROFILE does not exceed their precision values before making this change.

    Hello

    Ideally avoid data loss as you increase the length of the column as it really is. You have to worry about this in the case if you reduce the length. It is always better to be doubly sure, so also check other tables.

    see you soon

    VT

  • 2 conditional display for link column

    Hello

    I use Oracle Apex 5.0.2 and I have a report that contains a link to the column. The report contains various user_ids and shows some qualities of these users. I want to make the link in the column of conditional display based on two conditions.

    1. If the user who is viewing the page is an administrator

    2. If the user who visits the page is not an administrator, but sees its own information in this report.

    The 1st condition, I know how to implement it using PL/SQL expression. I stored the role: APP_USER in a P1_USER_ROLE and check if P1_USER_ROLE = "administrator."

    For condition 2, I know how to implement it using the "value of the element / the expression 1 column = Expression 2.» And I put just expression 1 #USER_ID # and expression 2 P1_USER ID (an element which stores: APP_USER).

    I was wondering if there is a way to simultaneously implement these two conditions together. Thank you!

    kevinsun91 wrote:

    I use Oracle Apex 5.0.2 and I have a report that contains a link to the column. The report contains various user_ids and shows some qualities of these users. I want to make the link in the column of conditional display based on two conditions.

    A "report"? Always tell exactly what you mean by this term: standard report, interactive, component report shared report query or some sort of tabular form?

    1. If the user who is viewing the page is an administrator

    2. If the user who visits the page is not an administrator, but sees its own information in this report.

    The 1st condition, I know how to implement it using PL/SQL expression. I stored the role: APP_USER in a P1_USER_ROLE and check if P1_USER_ROLE = "administrator."

    For condition 2, I know how to implement it using the "value of the element / the expression 1 column = Expression 2.» And I put just expression 1 #USER_ID # and expression 2 P1_USER ID (an element which stores: APP_USER).

    Here are the two different requirements. The first is a restriction on the level of columns that can be implemented with the help of a condition on a column in report or a link. The second is a restriction on the level of the lines who cannot. It is not possible to report using #COL_ALIAS # overrides row values in the State of the reference column. It would be unwise to do so: how APEX can determine if the column should be included or not until all rows are retrieved?

    The conditions of type 'values in the column"referred to value of element / column expression... are those generated by the tabular form wizard, which can be referenced in these expressions for run level row and process validation conditionally based on the submitted values. An example might be triggering a validation not Null in COMMISSION when JOB = 'SELLER '.

    Conditional display of level line in the reports always is possible by including the necessary logic to the report using CASE or other expressions query.

    I was wondering if there is a way to simultaneously implement these two conditions together.

    It is not possible to do in a State of the column. It must be made in the report query using a CASE expression:

    ...
    case
      when    :p1_user_role = 'Administrator'
           or user_id = :p1_user_id
      then
        ... --- Construct link URL
    else
      null
    end col_link
    ...
    

    In other circumstances where it is possible to combine several conditions, use a PL/SQL Expression condition with several predicates and required Boolean.

  • How to use c:if condition check in the column to display the value

    I'm working on Jdeveloper11g with the table of the ADF.

    UseCase: in one of the column I use the condition such that if the value is not null then use golink otherwise display fair value (in fact, it is nothing). I mean I should be using golink if there is a value for this line. I tried with below but without success.

    Let me know the solution.

    < af:column sortProperty = "docName" sortable = "true".
    headerText = "#{res}" >
    < c:if test = "${docName.length > 0}" >
    "< af:goLink destination =" #{row.docURL} "text =" #{row.docName} ".
    targetFrame = "_blank" / >
    < / c:if >
    < af:outputText value="#{row.bindings.docName.inputValue}"/ >
    < / af:column >

    Thank you
    Katie

    Katie,

    You can do this by using switch or by using the visible property.
    The use of switcher:

    
         
          
              
          
          
              
          
         
    
    

    The visible property using:

    
         
         
    
    

    Jean Lou

  • I can't display the preview pane when opening for the column.

    When I open an Illustrator file I can't see my preview to column view (my favorite) pane. The preview pane appears to have expanded much more to the right so that no matter how wide, I do the window that I still cannot see the preview. I tried to drag the window beyond the size of my screen to see if there is a column separator after the panoramic overview I can move to the left to reduce the size of the preview pane, but it seems not to be. Any ideas on how to solve this problem? It is not critical, but boring.

    Please search the Forum. This has answered every week (at least) for the last year.

    Do not use column view. He broke. Use the display of the list. Select a file, and then press the SPACEBAR to preview. Work within dialog boxes.

  • Display all THE columns in the session state for a collection V4.0

    I loaded columns into a collection of APEX c001 to c020. as follows
    I'm in 1.:P1_SPC_NO_OF_SPECIMENS LOOP
    htmldb_collection.add_member (p_collection_name = > 'SPECIMEN_BATCH',)
    p_C001 = >: P1_LEVEL,.
    p_C002 = >: P1_PARENT_ID,.
    p_C003 = >: P1_SPC_TYPE,.
    p_C004 = >: P1_SPC_BANK_ASSIGNED,.
    p_C005 = >: P1_SPC_TRIAL,.
    p_C006 = >: P1_SPC_CONCENTRATION,.
    p_C007 = >: P1_SPC_SERUM_TAKEN_DATETIME,.
    p_C008 = >: P1_SPC_SERUM_FROZEN_DATETIME,.
    p_C009 = >: P1_SPC_CELL_COUNT,.
    p_C010 = > case: P1_SPC_CELL_COUNT_UNIT when '?' then "else: P1_SPC_CELL_COUNT_UNIT end.
    p_C011 = >: P1_SPC_VIABILITY_STATUS,.
    p_C012 = >: P1_SPC_VIABILITY_REASON,.
    p_C013 = >: P1_SPC_INITIAL_QUANTITY,.
    p_C014 = > case: P1_SPC_QUANTITY_UNIT when '?' then "else: P1_SPC_QUANTITY_UNIT end.
    p_C015 = >: P1_SPC_COMMENTS,.
    p_C016 = >: P12_SPC_VOL_OF_SAMPLE,.
    p_C017 = >: P12_SPC_DILUTION_FACTOR,.
    p_C018 = >: P12_SPC_A260,.
    p_C019 = >: P12_SPC_A280,.
    p_C020 = >: P12_SPC_RIN);
    END LOOP;

    When I discovered the contents of the collection in session state, I don't see until c010. How can I view all the columns 'C' of a collection in session state? I know that the values are in the columns to c020 c011 as I can successfully insert 20 values into a table!

    Thanks in advance
    Paul P

    Hello

    Better create report own region for debugging.

    SELECT *
    FROM apex_collections
    WHERE collection_name = 'SPECIMEN_BATCH'
    

    You can set the status of report never when you need, or just delete the entire region.

    Kind regards
    Jari

  • Create the help text for the column tabular APEX region

    Hi guys,.

    Please see the screen - shot below.

    I have to do two things:

    1. this "5000" value is passed in the URL, for example P_41_TOTAL_LEAD_VALUE and I want to display in the currency format, i.e. 5 000.
    If the value is 60000, it should be displayed as 60 000.

    2. I am required to display the help text for column of tabular form - expected quarterly value, how to proceed with that?

    Thanks in advance

    Arpit

    Capture.JPG

    Hi David,

    I have not tried to use the Format mask, however there is no change in the display format.

    Even I tried in a different format, nothing happens.

    Try the steps given, which will solve your problem

    1. create a hidden item I say P41_LEAD_VALUE

    Protected value: No.

    Pass the URL value on this element hidden instead of P_41_TOTAL_LEAD_VALUE.

    2 create a calculation on the point P_41_TOTAL_LEAD_VALUE

    Type: SQL Expression

    Point calculation: after region (s)

    Calculation: TO_CHAR (: P41_LEAD_VALUE, '999G999G999G999G999G999G990')

    Hope this helps you,

    Kind regards

    Jitendra

  • First group title below displays under the column headers using the model 23 classic report with the help of repeat titles on break

    Hello

    I am migrating an application from 3 APEX APEX 4.2 on a thing I noticed with the classic reports when I put them in the model 23, it's that the first section break has break notch under the headings of columns for this section of line while the remaining lines properly have it display above the headers on the subsequent sections of group.


    When I look at firebug code I saw that all the tables but the first, the break line is included in the last line of the previous table, so I can see how it did not work for the holidays since.

    I have tow questions.

    1. is it really intentional because it seems not terribly elegant and my users to zero immediately above as a perceived bug.

    2. is there a reasonable job around always use headers repeat on break? I have multiple reports on the same page in places so switch to interactive reports is not a quick fix for me in this case.

    Example of a question can be seen at apex.oracle.com at home

    Thank you

    Brad

    Roadling wrote:

    Hello

    I am migrating an application from 3 APEX APEX 4.2 on a thing I noticed with the classic reports when I put them in the model 23, it's that the first section break has break notch under the headings of columns for this section of line while the remaining lines properly have it display above the headers on the subsequent sections of group.

    1. is it really intentional because it seems not terribly elegant and my users to zero immediately above as a perceived bug.

    The Standard report template definition in issue 23 contains thead and tbody elements:

    Before the column header

    
    

    Column title template

    #COLUMN_HEADER#
    

    After the title column

    
    
    

    After the lines

    
    
    
    
    
    
    #PAGINATION#
    
    
    
    

    This is intentional, the best practice for marking up HTML tables. What is not expected is the problem that arises when this model is used with the break of repeat titles on break formatting option. The repeated headings result table consisting of soup of tags containing several poorly constructed tbody and thead, which is not valid elements.

    2. is there a reasonable job around always use headers repeat on break? I have multiple reports on the same page in places so switch to interactive reports is not a quick fix for me in this case.

    Create a copy of the report model Standard in Standard (break formatting) for use with reports of the break, remove the thead and tbody definitions of template tags and the breakdown of the reports to use the new model of change. (Or, if you use mainly break reports using the Standard template, keep the tags in the copy and remove them from the original in order to minimize the number of reports, you need to change.)

    Personally, I would create a report model of line custom to break complex reports in order to be able to have complete control over the structure and presentation.

  • How to create the presentation for the columns variable and use it in the story?

    Hi all

    Someone knows how to create variable presentation for a column (that is, I need to create it in edit section formula itself). And then, I should use it in the Narrative section to display the value of this column. Is this possible? Or do I need to use any other variable for this requirement? If Yes please let me know, how to create it? This is a very urgent requirement.

    Thanks in advance
    Stephanie

    Hello
    You can have any number of columns in the narrative view, he will accept... Just mention the numbers of the columns in the view body narrative...

    check if useful/correct...

    Thank you
    prassu

  • ORDER BY using for the column that is not in a select list of selection?

    Hi all.

    I have a selection list on an APEX at the apex.oracle.com page, and I would like to order by the value of the UnitOrder column.
    The SQL is:
    SELECT DISTINCT foodunit.name AS display_value, foodunit.foodunitid AS return_value
    FROM foodunit, food
    WHERE foodunit.foodid = :P18_FOODID
    ORDER BY foodunit.unitorder ASC;
    Of course, this code does not work. And since it's a selection list, I can't just add foodunit.unitorder to the SELECT statement. In addition, I can not get rid of the SEPARATE, because then for some reason, it tends to view an infinite amount of the same line...
    Order by UnitOrder is that all units that start with gram, mg, ml, kg,... etc., will be shown on top of the selection list. All other units of food will be shown on the second place and so on.
    The UnitOrder column contains 1 or 2 as the value. 1 is the value for all lines which should be displayed at the top of the list of selection, 2 is the value for the rest.

    So, what I want, it's all the lines in which the UnitOrder is 1, are displayed on top of the selection list. Usually only 2 list items get displayed in the list of selection at a time, depending on what food item a user has selected. The selection list is then refined to certain lines that match the foodid etc etc...

    If someone has an idea, I would be very happy to hear about it.

    I don't see a join between the tables of your foodunit and food. That would solve your problem of "endless amount"?

    (you can omit the food table of your selection)

  • IR - code HTML display in the column PCT_GRAPH

    Database Oracle 11 g and oracle apex 4.2

    I created the form IR report. in the report of the IR, I have a column of type number percentage WHRATE name. I want to show the percentage displayed as bar in https://apex.mt-ag.com/pls/apex/f?p=145:8:0:NO:RP: & cs = 30A914467F826BB3DF61E79183C9F1007 last PCT_GRAPH in column mask.

    I have WHRATE interactive report column and I put number / date format = PCT_GRAPH:CFDEF0:144485:150.

    apply changes after when I run the report to the WHRATE column list below the code instead of the percentage of chart bar.

    < div style = "width: 150px;" height: 14px; background: #CFDEF0; border-top: 1px solid #aaaaaa; border-left: 1px solid #aaaaaa; border-bottom: 1px solid #ffffff; border-right: 1px solid #ffffff; "" > < img src="/i/1px_trans.gif" width = "30" alt = "30" height = "14" border = "0" style = "background: #144485;" "> < / div >

    kindly Guide.

    Thank you.

    870213 wrote:

    Please update your forum profile with a real handle instead of "870213.

    Database Oracle 11 g and oracle apex 4.2

    I created the form IR report. in the report of the IR, I have a column of type number percentage WHRATE name. I want to show the percentage displayed as bar in https://apex.mt-ag.com/pls/apex/f?p=145:8:0:NO:RP: & cs = 30A914467F826BB3DF61E79183C9F1007 last PCT_GRAPH in column mask.

    I have WHRATE interactive report column and I put number / date format = PCT_GRAPH:CFDEF0:144485:150.

    apply changes after when I run the report to the WHRATE column list below the code instead of the percentage of chart bar.

    30

    The value of the column percentage display as value attribute Standard report column.

  • How can I modify, move, add a column... Information for the columns to make a few changes of script?

    Hi Oracle Experts,

    I have a difficult question . Lets say that I have two table with the same name, but these two tables come from two different databases with 2 different users.

    A source database and the user SCOTT

    Table Column Data_Type Length PRECISION Scale Primary key Nullable Default Comment
    BOOKSBOOK_IDVarchar24--1---
    ISBN_10Varchar2

    13

    ---Yes--PRICENumber-62-Yes--

    Target database B and user DAVID


    Table Column Data_Type Length PRECISION Scale Primary key Nullable Default Comment
    BOOKSBOOK_IDVarchar220--1---
    PRICENumber-62-Yes--
    TITLEVarchar250---Yes--

    What I want to do:

    I want to get a query script that shows which columns need to edit, add and drop depends on the source table (make the necessary changes to make the columns in the Source table columns the same target table). No need to make any changes in the database do not want the query that must run to make these changes.

    EXAMPLE: I was using under query to get the query create table EMP. But seeing the column information to create the column even for the other user is difficult:)

    Select dbms_metadata.get_ddl ('TABLE', 'EMP') of double

    Erhan_toronto wrote:

    Is it possible to see the result like this:

    ALTER table Target_table change BOOK_ID Varchar2 (4);

    ALTER table Target_table add ISBN_10 Varchar2 (13), null;

    ALTER table drop TITLE Target_table;

    There are two simple ways to do so.

    1. use free sql Oracle development tools

    http://www.Oracle.com/technetwork/developer-tools/SQL-Developer/downloads/index.html

    Simply select 'Tools - Diff of the database' and go through the menus

    Here is an article from Oracle by Jeff Smith that shows how do

    http://www.Oracle.com/technetwork/issue-archive/2012/12-Sep/o52sqldev-1735911.html

    >

    Quickly copy, compare and synchronize databases with Oracle SQL Developer.

    >

    2 use the DBMS_METADATA_DIFF package - see the commercial doc

    http://docs.Oracle.com/CD/E11882_01/server.112/e22490/metadata_api.htm#BABIDHGE

    >

    Using the DBMS_METADATA_DIFF API to compare the metadata of the object

    >

    If you look at step 14 of this article, you will see the result of the use of COMPARE_ALTER:

    >

    14. compare the results by using the navigation API DBMS_METADATA_DIFF:

    SQL > SELECT dbms_metadata_diff.compare_alter ('TABLE', 'TAB1', 'TAB2') FROM dual;
    ALTER TABLE 'SCOTT '. "' TAB1 ' ADD ("MGR"NUMBER (4,0))
    ALTER TABLE 'SCOTT '. "' TAB1 ' DROP ("JOB")
    ALTER TABLE 'SCOTT '. "' TAB1 ' CHANGE ('ENAME' VARCHAR2 (20))
    ALTER TABLE 'SCOTT '. "' TAB1 ' ADD A KEY ('EMPNO') PRIMARY AID INDEX
    PCTFREE, INITRANS 10 2 STORAGE (INITIAL 16384 MINEXTENTS THEN 16384 1)
    MAXEXTENTS 505 PCTINCREASE 50 FREELISTS 1 FREELIST GROUPS 1 USER_TABLES
    (VALEUR PAR DÉFAUT) ACTIVATE ALTER TABLE "SCOTT" TAB1"AND RENAME"TAB2 ".

    1 selected line.

    >

Maybe you are looking for

  • Libretto W100 - 10 d - What software is required to use the GPS

    Hello I have questions about this camera and exactly, I would like to know if it is possible install the libretto W100 - 10 d special SW using the potential installed on board.This model has a characteristic maps Erickson F3607 model to use this devi

  • I can conect apple tv to a non HDMI tv

    Hello how can I connect an apple Tv to a non HDMI tv or an old sony tv with just red, yellow and white cables thanks

  • Help! K900 AFN

    Just got the Chinese k900, can someone please tell me how I can manually enter my internet service provider settings... I can't find anywhere to put in APN etc... Help, please

  • Or-Scope on Linux

    As the information provided by ni.com looking a little outdated, I would like to know the current state of the nor-Scope drivers on linux. Specifically, I need to know if: (1) I use the GHz sampling rate digitizers (nor 5154 / 5153 / 5152) with no-sc

  • CODE66A error - cannot download updates

    original title: error CODE66A Can someone tell me what CODE66A is the error? He won't let me download updates...