Substitution string literal

Hi all.

I'm moving a datetime value in a link on the page, using substitution strings:

#DD #/ #MM #/ # YYYY # #HH24 #: #MI #.

He does not understand the ': ' literal. If I type #DD #/ #MM #/ # YYYY # #HH24 #. #MI #, it works. How can I use the ': ' literal in a substitution string?

Thanks in advance.

Hello

Item values cannot include colons

Spend for example value

#DD#/#MM#/#YYYY# #HH24#;#MI#

Then use after expression header process or calculation pl/sql type to format the value for example

REPLACE(:Px_MY_ITEM,';',':');

Kind regards
Jari
-----
My Blog: http://dbswh.webhop.net/htmldb/f?p=BLOG:HOME:0
Twitter: http://www.twitter.com/jariolai

Published by: jarola on 24 Sep 2012 20:29

Published by: jarola on 24 Sep 2012 20:30

Tags: Database

Similar Questions

  • 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

  • ORA-01780: string literal required error

    I need to create a directory in the path (for example it is/export/home/camsdoc ' camsdocd/meterwatch for development/export/home / ' /meterwatchqfor QA and/export/home /'camsdocp/meterwatch for production)

    Here's what I thought, but I get the error message below

    declare

    v_camsdoc v$instance.instance_name%type;

    v_stmt varchar2 (1000);

    Start

    Select instance_name

    in v_camsdoc

    from v$ instance;

    v_stmt: = ' CREATE or REPLACE DIRECTORY METERWATCH AS/export/home / | v_camsdoc | ' /meterwatch';

    immediately run v_stmt;

    end;

    Error on line 1

    ORA-01780: string literal required

    ORA-06512: at line 9 level

    v_stmt: = ' CREATE or REPLACE DIRECTORY METERWATCH AS "/ export/home /' | v_camsdoc | ' / meterwatch "';

    or better:

    v_stmt: = Q'[CREATE or REPLACE DIRECTORY METERWATCH AS ' / export/home /]' | v_camsdoc | Q'[/ meterwatch ""]';

    SY.

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

  • SYS. DBMS_SQL. Version of overload of PARSE CLOB error PLS-00172: string literal too long.

    I have This Oracle 12c Procedure

    CREATE OR REPLACE PROCEDURE LOGINCHECK(stmt IN CLOB)
    AS
      C INTEGER
    ;
      N INTEGER
    ;
      RC SYS_REFCURSOR
    ;
    BEGIN
      C
    := SYS.DBMS_SQL.OPEN_CURSOR;
      SYS
    .DBMS_SQL.PARSE(C,stmt,DBMS_SQL.native);
      N
    := SYS.DBMS_SQL.EXECUTE(C);
      SYS
    .DBMS_SQL.GET_NEXT_RESULT(C,RC);
      SYS
    .DBMS_SQL.RETURN_RESULT(RC);
    EXCEPTION
    WHEN NO_DATA_FOUND THEN
      
    NULL;
    when OTHERS then
      RAISE
    ;
    END LOGINCHECK;


    for example, to create an oracle with a xml or clob type IN FastInventory procedure and pass xml from this link https://drive.google.com/file/d/0BwAVQqYmX0-zQ1d1VnNmZndfcVE/view?usp=sharing


    The of the stmt parameter is approximately 50000 characters.


    DBMS_SQL. ANALYSIS gives error PLS-00172: string literal too long.


    I'm passing stmt My .net code as parameter . OracleDbType.Clob then why this error occurring.


    I use Oracle 12 c database. Visual Studio 2012, .net Framework 4;

    OK now I have a response team of oracle.net where it says on tweeter

    @OracleDOTNET team .NET oracle

    Seems to be a bug specific to PL/SQL, because the error occurs on the DBMS_SQL. ANALYZE the call

    Thank you all who have helped and at least tried to solve this problem.

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

  • 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

  • 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

  • CLob update fails with PLS-00172: string literal too long

    I have a clob column that needs updating with a message about message_id

    Description of the table

    SQL > desc cl_message1
    Name Null? Type
    ----------------------------------------- -------- ----------------------------
    MSG_ID(2) NOT NULL NUMBER (10)
    DATA NOT NULL CLOB

    UPDATE statement:
    CLOB variable data1;
    Start
    : data1: ='TESTHDR ^ add ^ 200812310374 ^ 15:53:22.0 2012-08-19 ^.
    TESTHDR ^ add ^ 200812310374 ^ 5652 ^ C0000029 ^ 15:46:49.0 2012-08-19 ^.
    TESTDWN ^ ADD ^ 200812310374 ^ 5652 ^ G ^ 03 ^ 00000999990000722444 ^.
    .....
    ... ----------------------------------------------------------------------------------------- 2376 lines of text-------------------------
    TESTDWN ^ ADD ^ 200812310374 ^ 5674 ^ G ^ 10 ^ 00000999990000743289 ^.
    TESTEND ^ 5674 ^';
    UPDATE cl_message1
    SET DATA =: data1
    WHERE
    msg_id(2) = '989';
    END;
    /

    When I run this statement it fails with


    SQL > @test_clob_insert.sql
    : data1: ='WAVEHDR ^ add ^ 200812310374 ^ 15:53:22.0 2012-08-19 ^.
    *
    ERROR on line 2:
    ORA-06550: line 2, column 10:
    PLS-00172: string literal too long

    According to my understanding of a bind variable can store a maximum of clob. Not sure why it is throwing this error. Help, please

    Concerning

    This column is stored in_row.


    SQL > r
    1 * select table_name, column_name, owner, in_row from dba_lobs where table_name = 'CL_MESSAGE1 '.

    OWNER, TABLE_NAME COLUMN_NAME IN2
    ------------------------------ ------------------------------ ---------------------------------------- ---
    VEERA CL_MESSAGE1 DATA YES

    Published by: 953621 on August 19, 2012 22:34

    Published by: 953621 on August 19, 2012 23:44

    953621 wrote:
    According to my understanding of a bind variable can store a maximum of clob. Not sure why it is throwing this error. Help, please

    Yes, if the binding variable is declared as a clob, so it can store the maximum size of the CLOB, but this isn't your problem.
    Your problem is that you set the clob data using a string literal that is a single quoted string. There is a limit to the size of the string literals, so you will have to accumulate the clob in adding a whole lot string literals instead.

  • ORA-01780: string literal required (ERROR on line 7 :)

    Can someone help me?
    The XMLQuery below show me ORA-01780:

    with t as)
    Select xmltype ("< root >
    < Child1 attribut1 = "1" attribut2 = "2" > < / Child1 >
    < Attribut1 Child1 = attribut2 "3" ="4" > < / Child1 >
    < Attribut1 Child1 = attribut2 "5" ="6" > < / Child1 >
    < Attribut1 Child1 = attribut2 "2" ="1" > < / Child1 >
    ((< / root > ') double xml)
    SELECT warehouse2.attribute1
    warehouse2.attribute1
    Warehouses
    , XMLTABLE ('/ Root')
    PASSAGE t.xml
    COLUMNS
    attribute1 varchar2 (1) PATH ' / Root/Child1/@attribute1',
    attribut2 varchar2 (1) PATH ' / Root/Child1/@attribute2') warehouse2;
    SQL >
    SQL > < / Root > ') double xml)
    SQL > *.
    SQL > ERROR on line 7:
    SQL > ORA-01780: string literal required

    Have you revied this thread (search is your friend).

    Re: XMLTable cause the problem 10.2.0.3 or privs?

    What Version of DB are you using

    What are the compatible parameter values and cursor_sharing in your case...

    -Mark

  • Update the #NOTIFICATION_MESSAGE substitution string #.

    Hello

    I use a process that updates a report based on provided information of editable columns.
    The problem is that, if in this process, I encounter an exception, for example 'ORA-01843 a month not valid' and I manipulate it in the EXCEPTION block
    WHILE OTHERS then
    IF (SQLCODE =-1843) THEN
    +: P_ERROR: = ' error: some dates do not months contain valid (DD-MON-YYYY)'; +
    END IF;
    +...+

    the process 'Error Message' Message the process section, appears only in the error page, but I want to show the error in the same page of the report.
    So I think to update the #NOTIFICATION_MESSAGE substitution string # with my text from the + & block handle P_ERROR. + I've initialized in the exception.
    How can I do?

    Thank you very much
    Adela

    Hello

    How about if you check how to use apex_application.g_notification instead of the own element?

    Could help you
    Notification/success message of the parameter when using owa_util.redirect_url
    Re: apex_application.g_notification or g_print_success_message does not work

    BR, Jari

  • multiline string literal

    AC3 let me create a literal multiline string?

    Come on, looks like this:
    'first line maximum\ '.
    string literal.

    In the text box appears in the form
    first line literal ofstring

  • 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

  • How to convert a string literal function function valid

    Hello

    I have a situation where I need to get the built-in (sysdate/sysdate-1/sysdate-2) as variables. As the variable is taken as a string, it is considered as a string, not a function. Is it possible to convert the string literal in valid function.

    Here is an example for better understanding. I used v_var to store the 'sysdate-1 "in the form of string literal. Try to change the value.


    */*-------------------------------------------------------------------------------------*/*
    declare

    v_var varchar2 (20): = ' sysdate-1';
    date of v_var2;

    Start

    Select v_var in the double v_var2;

    dbms_output.put_line ('v_var2: ' | v_var2);

    end;

    */*-------------------------------------------------------------------------------------*/*


    Thanks in advance

    Or

    SQL>  var str varchar2(20)
    SQL>  exec :str := 'sysdate - 1'
    PL/SQL procedure successfully completed.
    
    SQL>  select trim(dbms_xmlgen.getxmltype('select ' || :str || ' s from dual').extract('//text()')) str from dual
    /
    STR
    ------------------------
    15.07.09
    1 row selected.
    
  • A string literal must be completed prior to the line break

    I just started learning flash so I suffer some of the most difficult problems that beginners have. I copied code from a tutorial only I seem to have problems with strings when I use line breaks. Even by putting:

    var quoteContent:String = "the question of if.
    This ";

    generates this error:
    'A string literal must end before the line break.
    or
    «Syntax error: expected semicolon before plusassign.»

    everything that's want to say...

    Does that mean that in CS4 that line breaks in strings are not allowed? I also tried the concatenation channel lines together using the += but who was not working and was tedious. In addition, adding \n at the end or at the beginning of lines doesn't seem to work. Why is this a big deal for flash?

    Only a string without newlines works.

    Quote:
    Posted by: Andrei1
    As the indicated error AS3 does not allow line breaks in the assignment of the string and the string should end with a quote on the same line, he started. In other words, the string can be on a single line only.

    Thanks Andrei1. For Actionscript 3 can't make multiline in all chains. Looking at this new I can see why it happened. The original string had several lines in there but no line breaks. I then turned off Word wrapping to diagnose the problem. My own line breaks were what caused the problem.

    I realize that it could not be a simpler problem to work but it took a while to diagnose because of the useless error message.

    Solution: Put all your channels on 1 line and turn the enveloping Word by going to the drop down in the upper right panel actions and clicking (ctrl + shift + w) line.
    Line numbers will allow you to see if you have line breaks where you shouldn't.

Maybe you are looking for

  • Reference to the parallelism - improve update tree times

    Hello Experts! I have a big problem, and I do not know how to solve. I have a huge tree, nodes rely on 40-50. I have an array of object, each object is a node in the tree. I want to update the State of the tree with the objects, but it takes so long.

  • lunable to download kb2656353

    have no downloads download microsoft security problem, but it will not download = #KB2656353

  • HP a6655it - downgrade from Vista to XP! Need drivers.

    Hello I have a HP Pavilion a6655it with Vista and I want to downgrade to XP.I would be very grateful if someone provides me with the links for the drivers. Thank you

  • HP C4280 with Win 7, works of scanner, printer has its not, sometimes

    HP C4280 all-in-one printer with Win 7 0n Fujitsu AH531 laptop, scanner works, the printer does not work, concludes sometimes-laptop, printer at first, later said he does not, must reload the software. Spooler problem? I loaded SW several times. Prin

  • Get all the twitter feed

    Hi, I want my twitter account in blackberry I integrate twitter that I get the token with success now, how can I get a twitter account? as http://stackoverflow.com/questions/2401289/get-all-twitter-feed-in-my-blackberry-device/15150582#151... but no