Source of the region

What is the diffrence between

Use specific query column names and validate the query

AND

User names generic coloumn (analysis of running queries)



the source of the region

Use specific query column names and validate the query
The name of the column is derived from your query and when you click button Save... It allows to check if the query is correct or not, if this is not correct it will not let you save the query.

User names generic coloumn (analysis of running queries)
Here the column name is generic for example. Col01, Col02, Col03 etc.
Query is not validated, so if you enter a wrong query, it allows you to save the query, so it is your responsibility to make sure that the query is valid

Kind regards
Shijesh

Tags: Database

Similar Questions

  • Query cannot be parsed in the generator. If you believe that your query is syntactically correct, check the generic "columns" box below the source of the region without analysis. ORA-00905: lack of keyword

    Hi all

    I have create report sql in version 4.2, and now we have apex version 5.0 upgrade.

    I encountered error when I change the State of sql

    The error massage:

    Query cannot be parsed in the generator. If you believe that your query is syntactically correct, check the generic "columns" box below the source of the region without analysis. ORA-00905: lack of keyword

    My SQL

    SELECT VW.*

    , CASE WHEN (VW.file_code is null

    OR VW.cancel_flg = 'Y'

    OR (TOUR_DEP_DATE + GET_FILE_LOCKING_DAYS (VW. (SBU_CODE) < = trunc (sysdate))

    ) THEN

    ' < font color = "Red" > < b > other < /b > < / police > '

    ON THE OTHER

    "< a href =" f? p = & APP_ID.:51: & SESSION. : O PR: & DEBUG. : 51:P51_FILE_CODE, P51_COSTING_CODE, P51_TOUR_REG_NO, P51_VERSION_NO, P51_REQUEST, P51_AGENT_NAME, P51_ADULTS, P51_CHILDS, P51_MKT_CODE, P51_QUOT_CURR:'

    || FILE_CODE | «, » || COSTING_CODE | «, » || TOUR_REG_NO | «, » || VERSION_NO | «, » ||' OPR' | «, » || AGENT_CODE | «, » || VW. FROM_PAX | «, » || 0||','|| VW.mkt_code | ',' | VW. QUOT_CURR |': ' > < font color = blue > < b > other < /b > < / police > '. "

    END as "other Actions".

    , CASE WHEN ((VW.file_code is not null AND TOUR_DEP_DATE + GET_FILE_LOCKING_DAYS (VW. (SBU_CODE) < = TRUNC (SYSDATE))

    OR cancel_flg = 'Y '.

    OR (VW. REF_COSTING_CODE = VW. ADDL_FIELD2 AND VW. ADDL_FIELD1 LIKE '% COPIED FROM % OF APPROVAL'

    AND BOOKING_NAME LIKE "%-Backup")

    ) THEN

    ' < font color = "Red" > < b > edit < /b > < / police > '

    ON THE OTHER

    "< a href =" f? p = & APP_ID.:149: & SESSION. : & DEBUG. : 149:P149_COSTING_CODE:'

    || COSTING_CODE |': ' > < font color = blue > < b > edit < /b > < / police > '. "

    END AS 'Edit '.

    , CASE WHEN (Nvl (cancel_flg, 'n') = 'Y')

    )

    THEN

    ' < font color = "Red" > < b > add < /b > < / police > '

    ON THE OTHER

    "< a href =" f? p = & APP_ID.:33: & SESSION. : & DEBUG. : 33:P33_COSTING_CODE, P33_FILE_CODE, P33_MKT_CODE, P33_QUOT_CURR, P33_NO_OF_ADULT, P33_NO_OF_CHILD:'

    || COSTING_CODE | «, » || file_code | «, » || VW.mkt_code | ',' | VW. QUOT_CURR | «, » || VW. FROM_PAX | «, » || 0 | ': "> < font color = blue > < b > add < /b > < / police > '

    END as 'Services '.

    OF TOUR_MAS_VW VW

    How to solve it.

    Thank you

    Dear friends

    Thanks for your helping hands.

    I found the solution for this. We can solve this problem by using these solutions

    • A region of HTML:

      click me
      
    • Using PL/SQL:
      htf.anchor('f?p=100:5:'||V('APP_SESSION'),'click me');
      
    • Using a SQL query: SELECT htf.anchor('f?p=100:5:'||:APP_SESSION,'clickme') FROM DUAL;

    We can write the query in the form

    SELECT ' f? p = 100: 1 :'|| : APP_SESSION |': ' | : APP_UNIQUE_PAGE_ID |

    ': P1_EMPNO :'|| employe_id,

    first name,

    job_id

    Employees

    Thank you & best regards

    CORINE

  • Can I use an IF statement in a Source in the region

    Hello, Im using Apex 3.x. I have a standard report page whose Source region is a simple select statement... SELECT xyz OF... WHERE

    I need to add an IF statement to this Source in the region, but when I do I get an error - query cannot be parsed in the generator.

    IF: P2_FILTER = 'A' THEN
    SELECT FROM ABC... WHERE
    ELSIF: P2_FILTER = 'B' THEN
    SELECT FROM ABC... WHERE
    END IF;

    The selected columns are the same in both scenarios. Is it possible to add an IF statement to the source of the region?

    Thank you
    you

    You can either:

    (1) create several springs in the area with a query and set a condition to show only based on your health status.

    (2) a function returning the pl/sql and return the generic as columns:

    if a then
      return 'select 123 from dual'
    else
      return 'select 456 from dual'
    end if;
    
  • modify the SQL in "source of the region", according to hidden parameter?

    Hello
    Is there a way to execute sql queries 'source region' 2, depending on the setting hidden past? In other words, if I want to show everyone "select * from emp" when clicking on a link 'total' as opposed to ' select * from emp where dept =: xxx "when clicking on a link dept, how the"source of the region' counts another sql statement?

    Thank you.

    My understanding is that according to the link you click on in a page (PX), it will go to a page (PY) that has an inside report and an element hidden with som value passed.

    If this is correct then do this in PY:

    select * from emp
    where dept=:xxx
    or
    :PY_PASSED_VALUE = 'total'
    

    This will show all THE records into emp if the passed value is total, that is, you clicked on the link total and 'total' to the element hidden in PY: PY_PASSED_VALUE
    but it will be visible only records specific Dept. otherwise.

    Hope this helps,
    Sam

  • Source of the region with css script

    Hi Andy -.

    I've implemented the shape with the source of the region of css scripts. After the filling of data by default for an item, I tried to print the form using the print mode, the data appeared at the top of the form, it no longer is displayed in the input field.

    I want to be able to print the form with the integrated data (mode friendly printer), is - it possible using scripts css as the source of the region?

    Thank you
    Yivon

    Hello

    Paste the HTML into a post is a bit of a pain.

    First of all, you must surround your code with {code} tags. Second, all the < and > characters must be replaced by & lt; and & gt; Finally, all Roger has to be replaced by & amp; I tend to type/paste code in a text editor and then make replaces overall.

    Thus, for example, to display:

    < div > blah blah < / div >

    You must enter:

    {code}
    & lt; div & gt; Blah blah & lt; / div & gt;
    {code}

    Andy

  • Missing columns in an IR after re - build the Source of the region

    Hello guys,.

    I've added two new fields in a Source region (query) of an international registration, but they don't display, if I go on the button "Actions"-> "Select columns", and then hide side columns there, but I need them to appear as a default, the configuration of all of the fields are the same.

    Here's the before code:
    SELECT PESS.ID, 
                NVL(PESS.NOME_FANTASIA, PESS.DESCRICAO) DESCRICAO,
                CIDA.DESCRICAO||' - '||UFED.SIGLA CIDADE,
                DECODE(PESS.CNPJ, NULL, NULL, SUBSTR(TO_CHAR(PESS.CNPJ, 'FM00000000000000'), 1, 2)
                || '.'
                ||SUBSTR(TO_CHAR(PESS.CNPJ, 'FM00000000000000'), 3, 3)
                || '.'
                ||SUBSTR(TO_CHAR(PESS.CNPJ, 'FM00000000000000'), 6, 3)
                || '/'
                ||SUBSTR(TO_CHAR(PESS.CNPJ, 'FM00000000000000'), 9, 4)
                || '-'
                ||SUBSTR(TO_CHAR(PESS.CNPJ, 'FM00000000000000'), 13, 2)) AS CNPJ
       FROM (table)
       (JOIN's here)
    WHERE (conditions)
    Then go to:
    SELECT PESS.ID, 
                PESS.NRO_FONE TELEFONE,
                PESS.EMAIL EMAIL,
                NVL(PESS.NOME_FANTASIA, PESS.DESCRICAO) DESCRICAO,
                CIDA.DESCRICAO||' - '||UFED.SIGLA CIDADE,
                DECODE(PESS.CNPJ, NULL, NULL, SUBSTR(TO_CHAR(PESS.CNPJ, 'FM00000000000000'), 1, 2)
                || '.'
                ||SUBSTR(TO_CHAR(PESS.CNPJ, 'FM00000000000000'), 3, 3)
                || '.'
                ||SUBSTR(TO_CHAR(PESS.CNPJ, 'FM00000000000000'), 6, 3)
                || '/'
                ||SUBSTR(TO_CHAR(PESS.CNPJ, 'FM00000000000000'), 9, 4)
                || '-'
                ||SUBSTR(TO_CHAR(PESS.CNPJ, 'FM00000000000000'), 13, 2)) AS CNPJ
       FROM (table pess)
       (JOIN's here)
    WHERE (conditions)
    What should I change?

    Thank you
    Alan.

    Actions, select columns (select the columns you want for all users to see..)
    Save, save the report, actions like the default report parameters

    Thank you

    Tony Miller
    Webster, TX

    Time passes fast like the wind, but the flies from fruits such as bananas.

    If you answer this question, please mark the thread as closed and give points where won...

  • Use a slider as the source of the region

    Is it possible to use a PL/SQL cursor as the source for a page Apex region?

    It is:

    http://Apex.Oracle.com/pls/OTN/f?p=31517:199

    Denes Kubicek
    -------------------------------------------------------------------
    http://deneskubicek.blogspot.com/
    http://www.Opal-consulting.de/training
    http://Apex.Oracle.com/pls/OTN/f?p=31517:1
    -------------------------------------------------------------------

  • How can I change the source of the region of the interactive form with a button

    On the first page of the interactive form the user wants a button to enjoy on, for example: "select * from mytable where name = 'Doug' to a button on the top of the form."
    Is this possible.
    Thank you
    Doug

    Hi Doug,.

    Take a look on: Re: dynamic query for a report it can be a bit limited for what you need, but can give you ideas

    Andy

  • How to hide the region

    Hi, I created a page region 0 in my apex application. I understand that whatever it is in page 0 apply to all pages. Anyway, my problem is that the title of region shows on any page. They is a way to hide the region?

    Hi Dave.

    You can create a new model of the region with a model code;

    Templates-> Create model-> area - from scratch-> him give a name. Custom 1 model (for example) - class create.

    Edit this new model and modify the definition of #TITLE #.
    #BODY # to the following:

    #BODY #.

    Change your region to use this model and you'll be fine.


    Edit

    I just noticed that your javascript has been in the header.  I have my case is in the source of the region as

    Kofi

  • How to insert image in the region

    Hello!

    How to Insert Image in the region, as I upload image with the name "bar_color.jpg" in my workspace. And in the attributes of the region, I found
    1-static id
    2-region attributes
    View 3-region selector
    image 4-region
    The 5-image tag attributes
    Attributes of cells 6-region HTML table

    What to enter in these attributes.
    I entered bar_color.jpg in the column region's image, but the image does not appear

    Any help!

    Hello

    You can not simply use an img tag in the Source of the region ? :

    
    

    Otherwise, you can view the type of the Image to displayitem, if you want to display the image directly from the BLOB.

  • a href in the region of html

    Hello

    A source in the region, I have the following link text , but every time I go on the page (in the same application) it asks password. How can I avoid this?

    Thank you

    Hello

    I guess that your link will take you to another page in your application.
    If this is the case, I think that your link is missing from the session id.
    Try

    <a href="f?=&APP_ID.:10:&APP_SESSION.:::::">My Link</a>
    

    Change id number 10 of the page according to the link you need to be redirected

    PS: when the validation code wrap it in {noformat}

    {noformat} tag like
    {noformat}
    

    my code here

    {noformat}
    
    Regards,
    Jair                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        
    
  • view the report in the region

    Hello
    I have 2 regions. in the region1, I add a button (and region1 have 3 text fields). region.2 type is query sql (pl sql return sql query function body).
    And I also have a process called insert. It is for the insertion of data (data inserted into 3 text fields) in the database when I am pressing the Add button.

    Insert the code in process

    Insert in the values(:p18_attributename,:p18_description,:p18_datatype) attribute.

    When the selected in the region.2 region1 (add button) button must display the report. To do this, I wrote the code in the source of the region.2 as follows

    DECLARE
    v_query varchar2 (1000);
    BEGIN
    IF: P18_attribute_name is not null THEN
    v_query: = 'SELECT attributename, description, attribute data type;
    END IF;
    Return (v_query);
    END;

    You can guide me please.

    Hello

    First of all good practices to use as the column names in your insert statement.

    Secondly, in your insert query, you mentioned "p18_attributename" values, but in your pl/sql code, you used "P18_attribute_name" it is intentional or a typo?

    Thirdly, after the insert are you no compensation values textfield? I think you should. Why should you check

    IF: P18_attribute_name is not null

    in your pl/sql code, you can directly write the sql code, when there is all the data that it will display after refresh your page.

    Thank you
    Tauceef

  • Use a static file as the source of the HTML region

    Hi all

    Sorry for the maybe trivial question, but is be possible to use static files as the source of the HTML region? The files are pretty simple, but must be translated so we prefer to keep as a static, rather than paste multiple lines of region to conditionally display files.

    I tried something like

    < embed src = "#WORKSPACE_IMAGES #& FSP_LANGUAGE_PREFERENCE.file01.txt" >

    It is however showing the HTML source on screen and making is not in html format.

    The other option, I tried creating a URL zone that would get the content from the server, for example:

    http://localhost:9080/Apex/wwv_flow_file_mgr.get_file?p_security_group_id=4874627831984398 & p_fname = en_file01.txt

    ... but I'm running against error access control list (ACL). The file opens when you load the link directly in a browser, but apparently localhost is not allowed to ACL and I would not have sysdba access where to deploy.

    Finally I saw the recommendation to use an iframe in a similar discussion to display pdf file here Show PDF in Apex region Earth tried
    "< iframe src =" ' #WORKSPACE_IMAGES #& FSP_LANGUAGE_PREFERENCE.file01.txt & embedded = true ' style = "" > < / iframe >

    but receive "not found".

    The requested URL /apex/wwv_flow_file_mgr.get_file was not found on this server"as if the file name is not received? Eponymous is parsed correctly in the embed tag.

    Help, please

    Atanas

    Hello

    To me it sounds you can use shortcuts instead to locate some files in the workspace files
    http://docs.Oracle.com/CD/E37097_01/doc/doc.42/e35125/bldapp_cut.htm#sthref1696

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

  • How to create a horizontal line in the region of html

    Hello

    How can I create the html elements, including a horizontal line in an html area filled with items. I want to use this horizontal line to part elements optically. Moreover, my solution for now is to group the elements belonging together in a separate html area. So I have now 3 parts of html, each filled with 5 columns of elements. Is it possible to align the elements in the 3 regions (together)? Cause at the present time, only the items in each region are aligned.

    I use oracle 11 g 2 with apex 4.1

    wucis wrote:

    Apex version is 4.1

    Theme: Sapphire 17

    Page: Two level Tabs - right Sidebar (optional / based on a table)

    The region is HTML

    Main question is, how to create a horizontal line as visible separator between items.

    My personal preference would be to group the items according to the needs in the subregions and use CSS to display the Visual borders and uniform spacing of control over formatting tables.

    If however you want using HTML single region, is to create elements of the only view to the agenda of the positions of the sequence in the region where you want the jumps to appear, with the following parameters:

    Name: PX_HR_1 / / substitute suffix number and an increment of page as required

    Display in the form: Display only

    Save Session State: NO.

    Start on a new line: Yes

    Start the new field: Yes

    ColSpan: number of columns in your layout

    Label: leave blank

    Horizontal/Vertical alignment: Above

    Model: --choose a model--

    Type of source: Static assignment

    Source of value or expression:

  • Variable setting wrong with dynamic action for the region of report

    Hello

    I can't setting a variable. Here are the details of connection:

    Connection information:

    TCARMY workspace

    User Apex_dev

    Password dev_apex

    Application 88542

    Page 11

    If you run the page 11 and just click on submit, there will be two rows. If you click on one, the modal region won't say no data found. If you click on the button submit once again, the value is passed if you click on it now, the results arrive. If you click on the second row, it still shows the value of the first row. If you click on submit again after clicking on the second line, then it is displayed correctly. It seems that the value is set to submit it. I want this to work when clicked, and then for the sql to run with the value that is in this variable when clicks on the element. There is a bit of javascript page level and dynamic action. Something is not right to the installation.

    The modal window should popup and run the sql at that time with the variable data and view the two columns. And if the user clicks on the second row, it would display the data in the row.


    Thank you

    Tim

    TC-army wrote:

    If you run the page 11 and just click on submit, there will be two rows. If you click on one, the modal region won't say no data found. If you click on the button submit once again, the value is passed if you click on it now, the results arrive. If you click on the second row, it still shows the value of the first row. If you click on submit again after clicking on the second line, then it is displayed correctly. It seems that the value is set to submit it. I want this to work when clicked, and then for the sql to run with the value that is in this variable when clicks on the element. There is a bit of javascript page level and dynamic action. Something is not right to the installation.

    What has not been set up right, it's that the element of P11_NAICNUMD parameter was not specified in the source attribute of Page to go to the region, modal Discount. The current value in the browser page, therefore, was not defined in session state when the report has been updated by the dynamic action. When

Maybe you are looking for

  • Satellite L300 poster error 0xc000000f

    My laptop s son had this error yesterday and all day today, I tried to solve the problem and hit a brick wall.Here is what I tried so far, it is running vista, safe mode recovery F8, F12 boot from CD/DVD with recovery discs, F12 boot from CD/DVD with

  • Satellite A500 and use external monitor

    Hello I bought recently (yesterday) a Toshiba Satellite A500. I am using an external monitor AND the laptop screen. At this point, the two screens are working well but have the same images/windows. I want to do is have each screen show another window

  • If I format and reinstall my product will be always authentic?

    Hello. I need to format my computer and reinstall Windows 7 PRO. I'll be able to use the same serial number for Windows? If so, how can I do it? The last time I tried, after reinstalling, my computer says the copy of Windows is not genuine and it was

  • Error creating registry key - PS CC 2015.5

    I try to install the update to the CC 2015.5 on Windows 10 PS, and I get the following error in the install.log:FATAL: Error (Code = 160) the 'SetRegistryValueCommand' command for package: 'AdobePhotoshop17-Core_x64', version: 17.0.0.88FATAL: An erro

  • InDesign CS6 will not retain any preferences

    One of my users has been recently updated for CS5 Design and Web Premium CS6.  The first problem is that the InDesign program crashes from time to time for no apparent reason.  Second, the InDesign program will not retain the preferences.  If the pro