Apex 4: conditional display substitution strings

Hello

I have a replacement string defined in apex 4:

Substitution string: NOT_IN_EXCEL
Replacement value: instr (nvl(:REQUEST,'FOO'), 'FLOW_EXCEL') = 0

Now when I try to use this substitution string to a condition, for example on a column of the report, I get an error:

Condition type: PL/SQL Expression
Expression 1: & NOT_IN_EXCEL.

Error message:

ORA-06550: line 4, column 18: PLS-00103: encountered the symbol "&" when expecting one of the following numbers: (- + new case mod not null < an ID > < a between double quote delimited identifiers of > < a variable binding > continue avg current County are min max sql prior stddev sum variance execute forall time timestamp interval date fusion < a literal string with character set the context of > < a > <) a SQL string between single quotes > hose < a literal string between double quotes otherwise spec character set


With the help of a chain of substitution in this way in Apex 3.2.1 works without problem.

Thanks for the help in advance,
Dirk

Hello

1. change the Item Page and scroll up to where you have the Condition
2. check do validate not (code analysis during execution only). checkbox, and then apply the changes

Substitution strings to continue to work as before in 4.x

Concerning

Tags: Database

Similar Questions

  • Why substitution strings are now old value in application translated even after seed/publish?

    Hello

    Recently, I noticed a small, but from the perspective of our customer "big" issue. We defined in our application, some chains of substitution to keep more detailed information about the version of the application. Later, they are used in page templates to display information to end users. Recently I had to update the value of one of the chains of substitution. The change is immediately visible in the main application. Unfortunately, it is not the case for the translated application. For some reason the old value is retained. Even after doing the "seed"-> "Apply translation file"-> "publish." It is keeping the old value. I tried to use the "Translatable" checkbox in the model. In the translation file, is to show correctly the substitution in the 'source' and the tags string 'target', but still he is resolved to the old value.

    We use the APEX 4.2.2.00.11 running on 11g.

    Waiting for suggestions that maybe it's me forget somewhere extra time "checkbox. Thank you in advance.

    Greetings,

    kempiak

    It was my mistake. Value of the substitution string is included in the translation file. I changed it it and it works perfectly.

    Greetings,

    kempiak

  • Displaying a string instead of the "null" value in the columns of answers

    Hi, is it possible to display a string (e.g. "no data") in responses instead a NULL value in a column of a table or a PivotTable? I read everything by using the formula in the column section in the answers, but I do not understand what expression should be used... could you help me?

    Is this kind of possible substitution only in the web interface of answers, or still in BI Admin meta - data? I would be very interested to recognize from analysis UDML in metadata,
    Thanks in advance!

    You must do this in the business model and the Mapping layer

    Go to the properties of the column

    1. in general tab, you have "use existing columns of logic as a source.
    Select this check box. Click the period (...)
    In the formula for the column, you can add the condition of ifnull
    In this col formula editor, you can choose the logical columns.

    2. on the Data Type tab, you have the maps and logical sources
    Here too you can achieve.
    In this col formula editor, you can choose physical columns.

    Kind regards
    Rambeau

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

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

  • Substitution strings are not read

    Hello

    I'm working on APEX 4.2.2 and Oracle 11 g.

    We ask a how to download attachments of a report query. We use a v ('APP_ALIAS') substitution string to the procedure, which is not playing. Is there a limitation that a procedure should be called from process only so the substitution string would be read? Please help me with this.

    Thank you

    Shoaib

    2812672 wrote:

    The procedure is called from a report interactive/Classic Apex, who only considers current Apex session? They are read flat when I call the same procedure of a process page apex.

    How is it used in the process of the page? It's obviously in a context of APEX session: the procedure is called by a block anonymous PL/SQL run during show page APEX or accept treatment.

    When the user clicks on the link in the report, it's the browser that calls the procedure, not APEX. Look at the URL of the link: it does not use the APEX "f?" p =... "signature of procedure; It is not an APEX session ID; It is not executed in a context of APEX.

  • Textarea conditional display based on the value of the checkbox.

    Hi all

    I have a question regarding the conditional display of an article based on the value of the checkbox.

    I have a checkbox in a region, which is a STATIC LOV:; Y and the text box in the same region. Now I want to show this textarea only if the check box is selected. ??

    Please suggest how to achieve this.

    Thank you

    DC

    Hello

    I guess that you are 4.2 Apex as you haven't shared the same.

    • Create a dynamic Action on change of box which should present the value of the checkbox and update the TextArea element.
    • Then continue as conditional Textarea with checkbox value.

    BR,

    Patrick

  • Conditional display based on the value of line

    I have a report table with several lines on it.  I need to post a link to another page of user action if a value in the line corresponds to an attribute of the user's role, so they can act on the item.  Other display or update the document would not be able to run the link.

    The logic of nickname would go something like this:

    If user_role = role_this_line_item then

    display approval_link

    on the other

    Hide approval_link

    end if

    I know how to write pl/sql to return to the display of the correct state of true/false, but I can't find out how to reference the value on the display line.  I tried: role_this_line_item, role_this_line_item, #role_this_line_item # and none of them return one value other than false.  How to refer to an attribute on the current line of the decision to hide/show correct?

    Al

    Al Wondra says:

    I use V4.2.6 Apex in local installation of Oracle 11 g XE.  I tried with IE, Firefox and Chrome.  None has the conditional display.

    The report is a standard report created using the Apex report wizard.  I'm one of the columns (the ID of the line) changing to conditionally a link to a page to data entry.  I only need one line at a time to be the active link.  No line should have a link, if the user is not the role is required to perform this action.

    You have described my question exactly, it seems, that the conditional rendering is applied to the entire column.  I need that it is applied to specific lines.  Some lines (1) will be the active link.  All other lines does not display the link.  Is this possible?

    If you want the value of the ID to display for each row returned by the report, but only rendered as a link, if the condition is true? The values used in the State come "role_this_line_item" seems to be a value of a column in the report. "User_role" is also a column value?

    The simplest option is to modify the column attribute display as for the Standard report columnID column and conditionally generate the link in the report query:

    select
        ...
      , case
          when user_role = role_this_line_item
          then
            'where DATA_ENTRY is the 'data entry page' target number or alias of the page.

  • Substitution strings do not fill in report models &gt; header &gt; before lines

    I'm unable to use the substitution string in report models > header > before lines

    < border tr = "1" >

    < class th = "header" align = "center" colspan = "2" > < /th > SYSDATE-3

    < class th = "header" align = "center" colspan = "2" > < /th > SYSDATE-2

    < class th = "header" align = "center" colspan = "2" > < /th > < /tr > SYSDATE-1

    I need to use something like below

    < border tr = "1" >

    < class th = "header" align = "center" colspan = "2" > & SYSDATE1. < /th >

    < class th = "header" align = "center" colspan = "2" > & SYSDATE2. < /th >

    < class th = "header" align = "center" colspan = "2" > & SYSDATE3 < /th > < /tr >

    SYSDATE1

    SYSDATE2

    SYSDATE3 are elements of my page.

    Version: Apex 4.2

    Theme: Red Simple

    Report model: Standard, change the line colors

    Report type: report Classic

    Is it possible to use these elements in the specified model?

    Thank you

    Chauvet

    The ampersand/dot substition works in report models. https://Apex.Oracle.com/pls/Apex/f?p=3568966:1

    Maybe the page item values are not saved in session state, before the report is rendered.

  • How to trigger a conditional display based on a dynamic Action without submitting the Page

    Hello

    Using Oracle APEX v4.2 on 11g, I have the following scenario and wanted to take other people on how to accomplish what I'm trying to do, i.e.:

    In region 1, I have a select item list page called P1_SELECTION, which contains selections from drop down to the user to choose from the following three: A1, B2 and C3

    In region 2, I have two checkbox elements:

    P1_CBOX1 I gave a conditional display of ' point value / Expression 1 column! = 2 expression, where Expression 1 = P1_SELECTION and Expression 2 = B2, so P1_SELECTION! = B2

    P1_CBOX2 I gave a conditional display of ' value of the point / column Expression 1 = Expression 2 where Expression 1 = P1_SELECTION and Expression 2 = B2, then P1_SELECTION = B2 .

    Use of dynamic Action on the evolution of the P1_SELECTION in region 1, how can I trigger the correct display of the checkbox in region 2, with the default view of the region 2 checkbox being P1_CBOX1, without submitting the entire page, just refreshing each of the elements checkbox to trigger the conditional display correct?

    For example, on the changes of P1_SELECTION = B2 then entire submission without page, only P1_CBOX2 is presented to the user in other P1_CBOX1 is displayed.

    Is this possible?

    Thank you.

    Tony.

    Hi Tony,.

    condition your dynamic action on P1_SELECTION with the following condition of javascript: this.triggeringElement.value = "B2".

    Add real actions that will show P1_CBOX2 and hide P1_CBOX1

    Add false actions and going hide P1_CBOX2 show P1_CBOX1

    Set the dynamic actions to fire on Page load

    Kind regards

    Erik-jan

  • Adding a substitution string without exporting the entire application

    Hello

    I was wondering if it was possible to add a substitution string to an application on a different environment without having to export the entire application.

    I use export by component a lot, but now I have a small update a page and a substitution string (specified in the Application definition).

    I have to get this update to another copy of our application, without the substitution of the entire application.

    With a full export, I noticed that the wwv_flow_api.create_flow function is called that has a lot of parameters and substitution strings:

    p_substitution_string_18 = > 'TEST ',.

    p_substitution_value_18 = > ' < img src = "" & test.png "title ="test"/ >".

    There is another function that can add them separately? Or I can insert them with a statement on a table?

    Hope someone can shine some light on this case, so I know how to export more different components.

    Thank you


    Robert

    PS: I use apex 4.2 with 11g, but I don't think that what really matters on this case.

    The substitution variables are found in the wwv_flows table and run from 01-20, you have to identify you with the user/schema of APEX_040200...

    Select substitution_string_01, substitution_value_01 from wwv_flows where id = 101;

    Update wwv_flows set substitution_value_01 = 'new value' where id = 104;

    Kind regards

  • Conditional display of HTML5

    APEX 4.2 theme 25 DB Oracle 11 GR 2 - I need to conditionally display Html5/Flash graphic areas depending on the browser compatibility, does anyone have ideas on how to do this. Thanks in advance.

    Hi rich,

    With APEX 4.2, we integrated AnyChart 6 cards that gives users the ability to create graphs of HTML5 and Flash graphics. Something to note is that Flash graphic 4.2 automatically use the AnyChart rendering type "FLASH_PREFERRED": http://anychart.com/products/anychart/docs/users-guide/migration-guide.html#from-5.1.x-to-6.x-rendering-types. This setting means that when Flash is available, the table will be rendered in Flash. However, when the Flash is not available, the table will be rendered under HTML5. It is an automatic failover with the parameter "FLASH_PREFERRED". This will therefore remove potentially your need to conditionally display the graphic regions based on browser compatibility.

    Kind regards
    Hilary

  • Conditional display based on Web browser

    Hey,.

    Is it possible to place a conditional display on APEX elements depending on the Web browser they are using?
    I have a plugin which is extremely useful on IE7 and FF, however most of our users are on IE6, and of course the plugin does not work.

    So if I can I'd like hide the Combobox plugin and automatically fill the area of text instead.

    Thanks in advance
    Ozzy



    APEX Version - 4.0.1.00.03

    Hello

    Try the PL/SQL expression condition to detect IE6

    UPPER(owa_util.get_cgi_env('HTTP_USER_AGENT')) LIKE '%MSIE 6%';
    

    Kind regards
    Jari

  • Database name Substitution string?

    Hello

    I was wondering if there is any way to query the name of the database being connected to, or if there were any built-in substitution string-APEX/Oracle-who would return this value?

    Thank you
    Justin

    I always use

    sys_context('userenv', 'db_name')
    

    This gives you the SID

  • Conditional display with several conditions of PL/SQL

    Hi guys,.

    I want my chart to conditionally display 2 points, 1. a selection list is not null (TO_CHAR(:P7_DB_LIST)! = TO_CHAR (666)) and 2. the maximum value in a query is above a certain amount such as 2000. The idea is that I currently have a graphical display in MB. 40 000 MB is not something big to see so after a certain point, I want to display a graph in GB instead. So I want 2 graph both depends on the LOV is not null, but who need the value of the query less than 2000 and the upper.

    I don't know if its possible to have two parolees working together in one conditional display of the APEX (PL/SQL Expression)?

    Mike

    Damaged by: ATD on August 11, 2009 06:20

    Mike,

    Laughing out loud! Welcome to PL/SQL ;)

    Packages are not very difficult to get, but perhaps we should start over with a stored function a package... Here's the gist:

    CREATE OR REPLACE
    FUNCTION size_is_valid (
       p_svc_app      IN VARCHAR2,
       p_svc_app_name IN VARCHAR2
    ) 
    
       RETURN BOOLEAN 
    
    AS
    
       CURSOR max_size_cur
       IS
          SELECT max(size_mb) AS size_mb
          FROM [email protected]
          WHERE svc_app_name = size_is_valid.p_svc_app_name
             AND svc_name = size_is_valid.p_svc_app;
    
       l_max_size_rec MAX_SIZE_CUR%ROWTYPE;
       l_retval       BOOLEAN;
    
    BEGIN 
    
       OPEN max_size_cur;
       FETCH max_size_cur INTO l_max_size_rec;
       CLOSE max_size_cur;  
    
       l_retval := l_max_size_rec.size_mb > 500;
    
       RETURN l_retval;
    
    END size_is_valid;
    

    Then your new validation of test should be:

    BEGIN
    
       RETURN size_is_valid(:P7_DB_LIST, :P7_PROJ_LIST);
    
    END;
    

    Kind regards
    Dan

    http://danielmcghan.us
    http://sourceforge.NET/projects/tapigen

    You can reward this answer by marking as being useful or correct ;-)

Maybe you are looking for

  • Photo editing tools

    It will be possible to 'Edit' the editing tools?  Change their order and eliminate some of them which I don't use?

  • What is the correct VGA for mac Mini adapter?

    Hello! My employer bought me a mac mini. I need to use it with my VGA monitor. Wrong, they ordered me a DVI HDMI cord. I just need to check that this card will work for me. Looks like it is. I do not see DVI, but I see Thunderbolt 2 on my Mini, and a

  • Home sharing woes

    I have an iMac running the latest OS and software. I also have 4 children.  Everyone has an iPad and 1 has an iPhone as well. My wife has an iPhone and an iPad. We also have 4 Apple TV. We have one more Apple TV.  I have an Airport Extreme and an Air

  • My first ARM VI does not compile

    Hello I'm a beginner full and just tried to compile the example VI of the "Getting started with LabVIEW Embedded Module for ARM microcontrollers. I understand not all uVision and correlations LV Embededd ARM and the VI does not compile. Here is my sy

  • How to open a .apk file?

    I can open ext .apk on windows xp if so how