How to reference the substitution model in State of PL/SQL string

Hello - I need display conditionally an article based on the value of #TITLE #. I'm trying a function body pl/sql expression returning a Boolean

DECLARE
PAGE_TYPE VARCHAR2 (1000);
BEGIN
PAGE_TYPE: = lower (substr (:TITLE,instr(:TITLE,'Query')));

If (page_type = "query") then
Return TRUE;
on the other
return FALSE;.
end if;
END;

There are no errors, but the condition is not met, whereas it should be.

I tried to adjust some elements of the application to the value of #TITLE # and I'm obviously not reference properly. they are all null:
: Test_value: = & TITLE. ;
: TEST_VALUE2: =: TITLE;
: TEST_VALUE3: = V ('TITLE');

Help?

Thank you
Carol

Hello

Your can use the page title attribute in the metadata as...

SELECT page_title
INTO my_var
FROM apex_application_pages
WHERE application_id = :APP_ID
AND   page_id = :APP_PAGE_ID

???

See you soon

Ben

Tags: Database

Similar Questions

  • How to reference the value of a < af:inputText > to the level of the view in a java class

    How to reference the value of a < af:inputText > to the level of the view in a java class to level model? Thank you!

    Hello!
    1: you must close this topic and open another... :))) and game question calls for a response (if my answer is correct: set my answer - correct answer)...

    2nd: for example in your java class in view level:

    links BindingContainer private;

    public BindingContainer {} getBindings()
    If (this.bindings == null) {}
    FacesContext fc = FacesContext.getCurrentInstance ();
    This.Bindings =
    (BindingContainer) fc.getApplication () .evaluateExpressionGet (CF,
    "#{bindings}."
    BindingContainer.class);
    }
    Return this.bindings;
    }

    Public Sub UseSetMyParam()
    {
    Fcab FacesCtrlActionBinding = (FacesCtrlActionBinding) getBindings () .getControlBinding ("setMyParam");
    fcab.doIt ();
    }

  • How to get the device model, for example app works on PlayBoook or BlackBerry 10?

    How to get the device model, for example app works on PlayBoook or BlackBerry 10?

    You can use this class: http://goo.gl/GtMLP for information on devices

    something like this:

    String myDeviceModel = android.os.Build.MODEL;
    String myDeviceBrand = android.os.Build.BRAND;
    String myDeviceDevice = android.os.Build.DEVICE;
    
  • HOW TO CREATE THE WINDOWS MODEL

    Dear all

    I'm new to the ESX Server do not know how to create the window model in EX Server I mean customer infrastructure. So that I can do a lot of copy of windows from this model.

    Kindly help me to solve my problem step by step.

    Thank you

    Malik Adeel Imtiaz

    NetSol Technologies

    Hello

    Create a new virtual machine in Virtual Center - install the software updates that you need in this model etc etc.

    Click right of the virtual machine when you finished and chose "convert model', if you need later update it is again you can 'convert virtual machine' and update before make you a model again.

  • How to debug the RTF model

    Hi all

    How to debug the RTF model, we had an error during the creation of the report...

    Thanks in advance.

    Hello

    Check out the link below, it may be useful for you

    http://bipconsulting.blogspot.com/2010/01/bi-Publisher-logging-debugging-part-4.html

    Thank you
    Ananth
    http://bintelligencegroup.WordPress.com/

  • How to reference the names of columns, if you use select *.

    Hello

    How to reference the names of columns to get out of the data, when you use select * and not aware of the column names (and number of columns) in advance.

    Even if I could get the column names in the other variables. I am new to CF so question may be stupid.

    getting column names: -.

    < cfquery datasource = "RTW_ORA" name = "cn" >
    SELECT COLUMN_NAME
    OF ALL_COL_COMMENTS
    WHERE TABLE_NAME = ' #meas #
    < / cfquery >

    obtain data: -.

    < cfquery datasource = "RTW_ORA" name = "cd" >
    SELECT *.
    To #meas #.
    < / cfquery >

    How do all the output data?

    Any help would be much appreciated!

    Thank you

    Tushar Saxena

    How to reference the names of columns to get out of the data, when you use select * and not aware of the column names (and number of columns) in advance.

    Even if I could get the column names in the other variables. I am new to CF so question may be stupid. getting column names: -.


    SELECT COLUMN_NAME
    OF ALL_COL_COMMENTS
    WHERE TABLE_NAME = ' #meas #

    obtain data: -.


    SELECT *.
    To #meas #.

    How do all the output data?

    Your question is not stupid. You can use the concept of a query requestand their properties cfquery attributes name and result.


    SELECT *.
    To #meas #.






    column names: #column_names #.

    number of columns: #no_of_columns #.



    SELECT #column_names #.
    FROM the cd



    A SQL query: #resQoQ.sql #.

    Query:


       
       
    #column #: #cd [column] [currentrow] #.
       


    T/t:


       
    #column #: #QoQ [column] [currentrow] #.
       


  • How to store the output of a statement select * statement in a file?

    How to store the output of a statement select * / statement of dsc in a file?

    As user sys:

    CREATE OR REPLACE DIRECTORY TEST_DIR AS '\tmp\myfiles'
    /
    GRANT READ, WRITE ON DIRECTORY TEST_DIR TO myuser
    /
    

    As myuser:

    CREATE OR REPLACE PROCEDURE run_query(p_sql IN VARCHAR2
                                         ,p_dir IN VARCHAR2
                                         ,p_header_file IN VARCHAR2
                                         ,p_data_file IN VARCHAR2 := NULL) IS
      v_finaltxt  VARCHAR2(4000);
      v_v_val     VARCHAR2(4000);
      v_n_val     NUMBER;
      v_d_val     DATE;
      v_ret       NUMBER;
      c           NUMBER;
      d           NUMBER;
      col_cnt     INTEGER;
      f           BOOLEAN;
      rec_tab     DBMS_SQL.DESC_TAB;
      col_num     NUMBER;
      v_fh        UTL_FILE.FILE_TYPE;
      v_samefile  BOOLEAN := (NVL(p_data_file,p_header_file) = p_header_file);
    BEGIN
      c := DBMS_SQL.OPEN_CURSOR;
      DBMS_SQL.PARSE(c, p_sql, DBMS_SQL.NATIVE);
      d := DBMS_SQL.EXECUTE(c);
      DBMS_SQL.DESCRIBE_COLUMNS(c, col_cnt, rec_tab);
      FOR j in 1..col_cnt
      LOOP
        CASE rec_tab(j).col_type
          WHEN 1 THEN DBMS_SQL.DEFINE_COLUMN(c,j,v_v_val,2000);
          WHEN 2 THEN DBMS_SQL.DEFINE_COLUMN(c,j,v_n_val);
          WHEN 12 THEN DBMS_SQL.DEFINE_COLUMN(c,j,v_d_val);
        ELSE
          DBMS_SQL.DEFINE_COLUMN(c,j,v_v_val,2000);
        END CASE;
      END LOOP;
      -- This part outputs the HEADER
      v_fh := UTL_FILE.FOPEN(upper(p_dir),p_header_file,'w',32767);
      FOR j in 1..col_cnt
      LOOP
        v_finaltxt := ltrim(v_finaltxt||','||lower(rec_tab(j).col_name),',');
      END LOOP;
      --  DBMS_OUTPUT.PUT_LINE(v_finaltxt);
      UTL_FILE.PUT_LINE(v_fh, v_finaltxt);
      IF NOT v_samefile THEN
        UTL_FILE.FCLOSE(v_fh);
      END IF;
      --
      -- This part outputs the DATA
      IF NOT v_samefile THEN
        v_fh := UTL_FILE.FOPEN(upper(p_dir),p_data_file,'w',32767);
      END IF;
      LOOP
        v_ret := DBMS_SQL.FETCH_ROWS(c);
        EXIT WHEN v_ret = 0;
        v_finaltxt := NULL;
        FOR j in 1..col_cnt
        LOOP
          CASE rec_tab(j).col_type
            WHEN 1 THEN DBMS_SQL.COLUMN_VALUE(c,j,v_v_val);
                        v_finaltxt := ltrim(v_finaltxt||',"'||v_v_val||'"',',');
            WHEN 2 THEN DBMS_SQL.COLUMN_VALUE(c,j,v_n_val);
                        v_finaltxt := ltrim(v_finaltxt||','||v_n_val,',');
            WHEN 12 THEN DBMS_SQL.COLUMN_VALUE(c,j,v_d_val);
                        v_finaltxt := ltrim(v_finaltxt||','||to_char(v_d_val,'DD/MM/YYYY HH24:MI:SS'),',');
          ELSE
            v_finaltxt := ltrim(v_finaltxt||',"'||v_v_val||'"',',');
          END CASE;
        END LOOP;
      --  DBMS_OUTPUT.PUT_LINE(v_finaltxt);
        UTL_FILE.PUT_LINE(v_fh, v_finaltxt);
      END LOOP;
      UTL_FILE.FCLOSE(v_fh);
      DBMS_SQL.CLOSE_CURSOR(c);
    END;
    

    This allows the header line and the data to write into files separate if necessary.

    for example

    SQL> exec run_query('select * from emp','TEST_DIR','output.txt');
    
    PL/SQL procedure successfully completed.
    

    Output.txt file contains:

    empno,ename,job,mgr,hiredate,sal,comm,deptno
    7369,"SMITH","CLERK",7902,17/12/1980 00:00:00,800,,20
    7499,"ALLEN","SALESMAN",7698,20/02/1981 00:00:00,1600,300,30
    7521,"WARD","SALESMAN",7698,22/02/1981 00:00:00,1250,500,30
    7566,"JONES","MANAGER",7839,02/04/1981 00:00:00,2975,,20
    7654,"MARTIN","SALESMAN",7698,28/09/1981 00:00:00,1250,1400,30
    7698,"BLAKE","MANAGER",7839,01/05/1981 00:00:00,2850,,30
    7782,"CLARK","MANAGER",7839,09/06/1981 00:00:00,2450,,10
    7788,"SCOTT","ANALYST",7566,19/04/1987 00:00:00,3000,,20
    7839,"KING","PRESIDENT",,17/11/1981 00:00:00,5000,,10
    7844,"TURNER","SALESMAN",7698,08/09/1981 00:00:00,1500,0,30
    7876,"ADAMS","CLERK",7788,23/05/1987 00:00:00,1100,,20
    7900,"JAMES","CLERK",7698,03/12/1981 00:00:00,950,,30
    7902,"FORD","ANALYST",7566,03/12/1981 00:00:00,3000,,20
    7934,"MILLER","CLERK",7782,23/01/1982 00:00:00,1300,,10
    

    The procedure allows for the header and the data to separate files if necessary. Just by specifying the file name "header" will put the header and the data in a single file.

  • How to reference the link column in the detail view

    I have a pretty simple question that turns everyone strain. I created a simple report and defined a column of link to point to a page of edition to the line items. So far, everything is great and works as expected.

    Now I use the detail view to replace the standard HTML code for each LINE of my report. I can access all the #COLUMN_NAME #s to fill my own HTML for each ROW with the values of the report.

    How can I reference the column link in my view detail? What is the # to #SUBSTITUTION_STRING it? How can I find out about all available alternative channels?

    Thank you

    Jan

    That's the problem with the detail view, it is difficult to add conditional fields without the ugly SQL.

    Another alternative is the named report model, but it shares the same problem

    APEX reports: layout custom with a column named (model line)

  • How to run the callback model SequenceFilePostStepFailure after step fails with the calls of the nested sequence

    Hello

    I want to appear a message immediately box on any test failure.  I thought I could use the reminder of the SequenceFilePostStepFailure model to achieve this, but when I change the reminder of process model to achieve this, I found that the recall code is executed only for the failures of step of the top level of the page sequence file.

    My test code has sequence called before mutiple files to the granularity of the basic numerical limit test that range from success or failure, so I would like to run the callback SequenceFilePostStepFailure immediately at this level.  I can accomplish this by adding a substitution of recall of SequenceFilePostStepFailure in the file of the sequence in question, but I prefer to use the implementation of reminder default template, so I can't find all the places where numerical limits tests are executed and cause the ASE of pass/fail.

    I have attached a few sequences of the example I want to illustrate the problem.

    Thanks for the help,

    Daniel

    My fault, I see now that the recall of model should I have changed is the ProcessModelPostStepFailure.  Problem solved.

  • Camcorder car bought in Asia, how to change the date/time United States?

    Hi, I bought the unit in Hong Kong and brought it to the United States.  After I've set the date and time, each time it starts, it is synhronize to the time and date in Asia, which is 15 hours ahead of time.  I tried to find it in the manual on how to change the region, but could not.  Is there a way I can do?  Pleaes help.  Very much appreciated.

    I found it under Satilliate synchronization, I had to press OK again to UTC is displayed.  Thank you very much for the help.

  • How to erase the hard drive, foreign State in T630 with H730 PERC controller

    I recently bought a Poweredge T630 Server computer configured with a PERC H730 controller and two 1 TB SATA (raid 1) drives.

    The controller H730 being compatible with no dell certified readers, I bought 2 WD red label records to add more storage space.  The problem I have is it H730 one of the 2 WD drives senses as a 'foreign' drive  Under "available tasks", I see only two options, "Blink" and "Unblink.  Unlike other HDD WD, the controller does not allow me even an option to convert the capable RAID drive.  This only happens to one of the two WD drives. The WD with 'Foreign State' drive is not defective or damaged.  How can I clear the foreign flag on one of the two WD drives so that I can convert the two disks in RAID ready status.

    Hello

    You have a foreigners view tab when you are in the bios H730? If you do, you should be able to use ctrl + N to access this screen, select the controller, press F2 and go to foreign config and have the ability to clear the foreign configuration.

  • How to use the substitution in case of construction dim variable

    Hi all

    Lets say I have 3 void / vars - Prevmonth prevmonth-1, prevmonth-2. These change every quarter.

    I want to build a cube that will be who will have only 3 months preceding the fiscal dimension. This will serve once at the end of the quarter.

    What should I do for the substitution if build rules files variables dim? I want to automate the process. We have Sun for other dims build SQL, only the Sun can be built as flat file.

    Or y at - it another way to do this Besides using sub vars? I can try to store 3 variables in a table and then use them to create the cube, but want to see if we can avoid creating an interface more.

    Thank you.

    You can use substitution variables, as in the SQL of the charge state - rules for the Substitution Variables

    See you soon

    John

  • How to reference the first word in a text frame (threaded)?

    Hello.

    I have a series of threaded text images.
    I want to be able to reference the first word of each of them.
    [This is no big deal to start the project and do it all on the fly].

    Any ideas how I can get there?

    Any help would be appreciated.

    To get the content of the Word use myWord. content to move the Word use myWord. move (LocationOptions.AT_BEGINNING, myDestinationTextFrame);

  • How to reference the Javascript data link data?

    Hello

    I have a specific question-

    I have a PDF template I design in Livecycle Designer ES2. Data binding is the XML schema. For one of the fields, I need to link data with formatting.

    For example: if my XML (based on the schema) is as follows

    .

    .

    .

    < name xml:element = "EffectiveDT" value = "29/01/2011" / >

    < name xml:element = "ExpirationDT" value = "29/01/2012" / >

    .

    .

    I want to connect a tabled text named "term" on the model of PDF to be set as < EffectiveDT > - < ExpirationDT >

    I couldn't understand how to bind it in the binding for the text field tab, so I thought that maybe I can have a JavaScript code that can make me to be concatenated to the TextField and I can let the empty link.

    Is this possible? What would be a good solution for these use cases? If we can go way of JavaScript, could someone please share a snippet on how to access the element of JavaScript data binding?

    Thanks in advance!

    Hello

    Is the expression field will be used as a label, or the authorized user to update?  If it's just a label so that you can use a text object with two floating fields related to dates.

    If you do not want to use a TextField object, you can use JavaScript as follows, where initialization;

    this.rawValue = parent.dataNode.resolveNode("element[0].value").value + "-" + parent.dataNode.resolveNode("element[1].value").value;

    This code assumes that your xml file looks like.

    And that the the TextField object has a parent subform, which is bound to the element xml:term (so the parent.dataNode resolves to xml:term).

    Also, I found also that it can cause problems using element and attribute names that are in conflict with the names of the XFA objects.  Normally, I would have written the resolveNode argument used above something like;

    parent.dataNode.resolveNode ("element. ("(name) == 'EffectiveDt'] .value ') .value

    But because the object XFA representing the element also has a name property I never found a way to refer to the attribute called xml name in JavaScript.

    So the tricky part will be if they can update the values and you can then update your xml file the fields manually, not which in fact updated it is hard, it's going to be analysis of the new value that will be difficult.

    Hope this helps,

    Bruce

  • How to reference the layout object in the program unit?

    Hello world

    I'm changing the outcome of the result of a F_Test_Result1 field, so I create a trigger of format for it, the code is showed in below:

    function boolean return F_Test_Result1FormatTrigger is
    Start
    If F_TEST_Result1 = "0" then
    F_Test_Result1: = "Pass";
    end if;
    return (TRUE);
    end;

    but the Report Builder returns error saying F_TEST_Result1 is not yet defined. so, how can I do to direct these layout object and the object of data (from the data model) in triggering?

    Thank you
    Bryan

    Published by: Bryanevil on April 22, 2009 20:50

    Hello

    I suggest to create a column formula in the group that contains the column PASS_FAIL_SUMMARY

    and use a PL/SQL code like this for the column in the formula:

    function CF_1Formula returns the Char type is
    Start
    If: PASS_FAIL_SUMMARY = '0' then
    return ("pass");
    on the other
    Return('--');
    end if;
    end;

    Then, set the column formula as a Source for the field in the layout.

    Concerning

Maybe you are looking for

  • Satellite 5100-201 problems Windows XP installation (blue screen)

    I have this computer and unfortunately I don't have access to the cd that came with the computer because my cousin has lost. I tried to install Windows XP Professional I bought and during the first installation of Windows XP is about to start I get t

  • Compaq mini 110 c - 1020st: how to recover the password of bios compaq mini 110 c.

    How to recover the password of bios compaq mini 110 c. S/N: [personal information] P/N: NZ794EA #AB8

  • How to choose selectively refers to simplified data standards?

    Hi all First of all, I'm a newbie to LabVIEW, and my question may seem subtle to many of you. So, I apologize to if that's the case. I'm trying to implement a very simple algorithm in which (1) a while loop continues by pulling a series of random num

  • Wireless Windows 7 problem (cannot connect)

    Hi, I recently installed windows 7 on my laptop (Compaq presario V3702TU) everything is perfect except my wireless adapter (Broadcom 802. 11 g). I use a Netgear router is visible, but I am unable to connect.  Please advice me what is the solution. Th

  • WiFi link 5100 AGN

    I get the "dysfunctional" message that the WIFI link 5100 AGN has a driver problem... I am running Windows 7... Troubleshooting DIFFICULTY IT has failed.  Could someone enlighten me also as to how it affects me?  I didn't notice anything in particula