Dynamic query runs a little shop, but not as a LOV

Hi guys,.

I have a request to show patterns that statically works in the workshop, but does not dynamically as a LOV APEX that I need. It is as follows:
select distinct owner display_value, owner return_value
FROM dba_tables@&P3_DB_NAME._DBLINK_CONTINUED
where table_name = 'DDL_LOG' 
order by 1
Now, when I replace & with a name P3_DB_NAME static it works and displays the results. However, when I try to make a LOV like her except with & P3_DB_NAME. or | : P3_DB_NAME | It does not allow to be applied and displays the following error:

LOV query is not valid, a display and a return value is needed, the column names must be different. If your query contains a query online, the first CLAUSE in the SQL statement must not belong to the query online.

Any ideas how to fix?

Mike

Hello

Try to create the list of values in the application of shared components as below and use in your selection list

RETURN 'select distinct owner display_value, owner return_value
FROM dba_tables@'||:P3_DB_NAME||'_DBLINK_CONTINUED
where table_name = ''DDL_LOG''
order by 1';

BR, Jari

Tags: Database

Similar Questions

  • LR 5, no CC, with Nikon D800, trying to tie with MacBook Pro laptop; message from non-recognition of camera. Tried to download the latest updates of LR. It runs on desktop PC but not MacBook .your help please.

    LR 5, no CC, with Nikon D800, trying to tie with MacBook Pro laptop; message from non-recognition of camera. Tried to download the latest updates of LR. It runs on desktop PC but not MacBook .your help please.

    What version of OS are you using? If you run El Capitan, he won't work except in the latest LR6 and CC. Libraries attach Nikon used until 2015.3 or 6.3 LR LR 5 and LR CC are incompatible with El capitan. Nikon has recently updated libraries and those that are now used in the latest versions of LR.

  • SIT error 14104, dll runs on the host, but not on the target

    Hello

    I have problems of deployment dll (compiled in 2007 with Microsoft Visual C++ .NET 2003) Simulink in LabVIEW (2009 SP1). My target system is a desktop PC with LabVIEW Real-time 9.0 installed.

    I created a simple Simulink model which mulitplies an entry with a Gain and returns the result. I compiled using the nidll.tlc as a target file system.

    Then, I created a LabVIEW RT application that uses this DLL. I created exactly the same application as the host VI and VI target. On the host VI everything works fine. On the target VI, I get error SIT 14104.

    What I did to solve this problem? I followed the steps on http://digital.ni.com/public.nsf/allkb/C7FF960E0A6C219A8625729600104615 . I have manually deployed the dll on the target computer. I used the suggested compiler. There is a lot of memory on the computer (RAM and HDD) target. And I'm not using a CRio system.

    Does anyone have an idea how to fix this error? I will attach the sample project labview and the MDL and DLL to this post. Don't forget to adapt the DLL-path if you test the program.

    Kind regards

    Thomas

    Well I found a solution.

    I had to deploy the DLL manually on the target, but not in ftp://IP_Address/ni-rt/system/ as the link above is said but rather in ftp://IP_Address/ .

    Problem solved.

    Kind regards

    Thomas

  • LabVIEW 2010 executable runs under windows xp, but not in windows 7

    Hi all.  Here's the situation.  We have Labview 2010 professional development on a computer running Windows XP.  I designed all my programs with this PC.  We have another PC which has Windows 7 with no Labview.  I'm trying to make the executable files and put them on the Windows 7 PC.  I have been here three executable files and move the Windows 7 PC.  One of the executables work correctly, the other two interrupt immediately.

    Executables that stop have temperature limits and the program is apparently seen a low temperature and so stop the program.  Yet, these same executables work fine on the PC under Windows XP.  What seems to be the case, is that the program is expelled before allowing himself read the temperatures.  I use the modules of the series C 9213 and 9211 with 9188 Chassis.   My programs are showing 0 for temperatures.  Well, it's certainly in the low temp limit, so the program stops.  However, she should not do this.  I know there is little delay with the playback of all thermcouples in 9213 and 9211 modules, but this was not a problem with Windows XP.  Even if the program starts from scratch on the XP PC, temperatures immediately appear, or appear after a second or two.  Yes, I've rarely seen a temp 0 on the XP PC, but the program doesn't stop; Give it a second or two and the time appear.  Why is it that happens in Windows 7?

    An executable that works has no measure of temperature.  It uses only 9481 modules and run the solenoids at a rate of about 0.2 seconds.  This executable works fine on both computers.

    So what - this on the modules of temperature reading that is causing a problem in Windows 7?

    Other installation data :

    -The XP PC has the updates Labview 2010 is compatible with

    -The PC Win 7 not the latest updates of Labview 2010 there are has compatibility problems.  National Instruments has given me the compatible components, and they has several levels down by the most recent (for example MAX vs MAX 5.6 v14.0)


  • Code that is running in Debug Mode, but not in Standard Mode

    Hello world

    A few months ago, I wrote a code that registers the current over time.  He measures each 1 s current, and it gives the user the ability to specify how often the data should be encoded.  It can be either linear (for example, every minute), or logarithmic way (by small increments in the largest leading to greater value and the user can specify the maximum sampling intervals).  I also created a queue that will record the "last minute".  For example, if the user wants to see what happened at the last minute, he will have every second saved and that data will be added at the end of the file.

    However, it was a messy piece of code (while working), and I wanted to clean it up so that it would be easier to add in the future.  I started to learn more about state machines.  I'm slowly building.  First the user pushes playing, and then complete the where to save, intervals of maximum recording, other variables etc and click on load.  After that, the user can run a push play to start the program.  For now, it is not connected to any equipment, I wanted just the working time of recording intervals.

    At present, if it is running in debug mode, everything works well, but if it is not in debug mode, it stops after a few intervals.  I think it is most likely a race condition.  I have a few local variables, and I read that they must only be used if there are used in two places inside the same VI. But I do not think that I use in the subVIs.

    Can someone give me some advice please?  It seems it is not updated to the next recording interval.  I have attached my code.


  • I can't get the "Disk Cleanup" to work, I can run off frag etc., but not the cleaning disc of any idea? __regards__Ian

    The hourglass does not appear when I click on disk cleanup function. I closed and started in safe mode, but still no luck. I can't put my Windows disc to try to do a repair that I loaded SP3 and my version of disc is only SP2.
    Thank you
    INA

    Click Start, run. Type the following command and press ENTER:

    regsvr32 dataclen.dll

    Try to open disk cleanup (cleanmgr.exe) now. Ramesh Srinivasan, Microsoft MVP [Windows Desktop Experience]

  • application runs on the ripple, but not device

    Hi - This is a newbie question.  I try using ripple of stable development and then compile the application for execution on a smartphone.

    There seems to be 2 different ways to use ripple.  It is like an extension of Chrome, described on this page:

    http://supportforums.BlackBerry.com/T5/Web-and-WebWorks-development/how-to-use-ripple-instead-of-the...

    A second way he starts as an application independent, described on this page:

    https://bdsc.webapps.BlackBerry.com/HTML5/documentation/ww_getting_started/getting_started_with_ripp...

    The second mode automates much of the process of packaging app, as described here:

    https://bdsc.webapps.BlackBerry.com/HTML5/documentation/ww_getting_started/creating_an_app_1885567_1...

    These seem to be the 2 different operating modes, but I've not found any discussion about the difference.  Am I missing something?  The two modes will be running test applications - for example, Hello world and the sample application UIExamples.

    Only the second mode has settings options on the key icon which automates application packaging.  Maybe I don't have something set up properly in Chrome for it get there?

    When it runs as a standalone application, it is very slow and many attribute tags are not displayed correctly, which makes me wonder if it's supposed to work in the corresponding mode, or if something is not installed correctly.

    In standalone mode it signals that he successfully built both the Hello World application and the UIExample app, and the JavaLoader said he manages to load on my Torch 9800.  Icons appear on the torch, but applications do anything when I tap on the icons.

    Thanks a lot for any clarification on how to properly install and use ripple.

    Keith Levi

    You don't need to change your paths relative to use local: / / /..., you just use the local: / / / path if you load a page from a remote domain, and you want this remote to access local domain packed files.

    All my applications use relative paths.

    Did you sign your application before attempting to run it on the device?  By looking at the output that you have validated the bbwp it shows that you not sign the application... If the application is not signed, it will not work on a real device.

    Ripple Chrome plugin is still available, as we work through some of the other features of the Beta 1 update which will be released at the end of this month.  The plug-in in Chrome is gradually and will set up a plan to end of life.

  • When I filled a form field using a query SQL result is displayed but not registered in the table.

    I write in the topic, I have created a form and in some of their fields, I used a SQL query to get information from a table based on the user who has been logging.

    The information displayed well, but when I press "Send button" loses information and the field in the table is shown empty.


    Anyone know what is happening?

    I enclose below a picture of the problem

    Concerning

    Problema DB APEX.jpg

    Hi ANTHONY,.

    ANTHONY wrote:

    I give you the credentials of my database, I hope you could do it works and most importantly, showing me what the error care...

    Feel free to change what you want in the application

    https://Apex.Oracle.com/pls/Apex/f?p=4550:1:2838412118981:

    BANCO_PRUEBAS

    ADMIN

    password

    It is interesting that, when I use APEX 5.0.1.00.06, I have some errors form appearing not using APEX 4.1.0.00.32

    Check your 77569 application-> Page 1. I have modified the page element attributes. Now it's working.

    Here are the changes (I will explain for P1_NOMBRE, did the same for the P1_APELLIDOS and P1_CATEGORIA):

    • 'Source' has become article attributed to him include:

    Source: Replacement always, value that exists in session state

    Source type: column database

    Source of value or an expression: NUMBER

    • The "Default" article now the following attributes:

    By default of Type: PL/SQL function body

    Default value:

    DECLARE
    
      L_NOMBRE B_LISTA_EMPLEADOS.NOMBRE%TYPE;
    
    BEGIN
    
      select NOMBRE
      into   L_NOMBRE
      from   B_LISTA_EMPLEADOS
      where  USERNAME = :APP_USER;
    
      RETURN L_NOMBRE;
    
    EXCEPTION
      WHEN NO_DATA_FOUND THEN
      RETURN NULL;
    
    END;
    

    Kind regards

    Kiran

  • CFAjax and jquery json - runs in the browser but not Planner

    This one has me quite confused.

    I have a baby of test routine:

    TestRun.cfm

    < ! DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional / / IN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" > ""

    " < html xmlns =" http://www.w3.org/1999/xhtml ">

    < head >

    < meta http-equiv = "Content-Type" content = text/html"; charset = utf-8 "/ >"

    < title > Untitled Document < /title >

    < / head >

    "< script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js "> < / script >

    < cfset dataout = timeformat (now (), "mm: SS") >

    < name cfquery = "testrun" datasource = "#application.ccidatasource #" >

    Bridge update

    Set testtime = < cfqueryparam cfsqltype = "cf_sql_varchar" value = "#dataout #" >

    < / cfquery >

    < script type = "text/javascript" >

    $.getJSON ("cciBridgeServices.cfc", {}

    method: "hemagg."

    who: "ECS"

    returnFormat: 'json ',.

    queryformat: 'column '.

    }, {function (d)}

    var text = "";

    lines of the var = d.ROWCOUNT;

    });

    < /script >

    < body >

    < / body >

    < / html >

    The service is simple as well

    < cffunction = access "hemagg" name = "remote" returntype = "numeric".
    Description = "Test function using just about anything" >
    < cfargument name = "who" required = "yes" >
    < cflog application = 'Yes' text = Hello "auto run" >
    < name cfquery = "testrun" datasource = "#application.ccidatasource #" >
    Bridge update
    Set testcol = < cfqueryparam cfsqltype = "cf_sql_varchar" value = "#testtext #" >
    < / cfquery >
    < cfreturn 1 >

    < / cffunction>

    If I run testrun in a browser, all is well.

    If I create testrun as a scheduled task in the CF administrator, or I use wget to process, the hemagg service is not running.

    I checked this by adding the < cflog... > command.  The SS is updated, but the text is not.it?
    I tried to add a returnformat and an output = "" to the < cffunction >

    Can someone explain what is happening here and how to fix it?

    Thanks in advance

    Are the inputs required for different tasks all the time? You can pass variables via the URL of the task to code server-side, or store them in a database to read when the task runs. What you need to do is to remove all of the interactive stuff and leave only your coldfusion code.

    For example, you can run the interactive treats as usual, but instead to create a task that calls your coldfusion with all page updates table updated etc. rather before calling this page directly. It will then run initially for the first time and then the demand for a later date.

  • To access the SOAP Web Services: running on Acrobat 9, but NOT Adobe Reader 9.

    Hi all

    I use webservice to fill the form control. It works fine in Acrobat 9, but when I open the form in Adobe Reader 9 his WORKS DO not. Its niether give no error or no respone. Adobe Reader need additional code to access/run web services or where I'm wrong? Help, please.

    Thank you.

    -

    Afonso

    Hi Anhinav,

    Because the reader is not 'extended' Web Services will not work on the drive.  They are, however, (as you noted) work in Acrobat, which is "extended".

    Web services to work in Reader, you will need to purchase the LiveCycle Reader Extensions.

    Hope that helps.

    Jay

  • I have running oc4j and services, but not work

    Hello everyone.
    My name is Jose, I'm from Peru and I have everything started with OBIEE.

    I have this problem. I have install OBIEE... complete installation...

    I can get into the Administration of BI Oracli tool and I can see no problem with this repository of PAINT on the line....

    But I can't see the dashboards... nor Publisher and Application Server Control... While web does not work. Internet Explorer displays "Internet Explorer cannot display the webpage".

    I run OC4J, oracle bi presentation server, oracle bi and host bi Server oracle java.

    I don't know what the problem

    I hope someone can help me.

    Thank you very much.


    Jose
    [email protected]

    PS. Sorry... my English is so bad: P

    OK, here you go Virtual Machine, let me know what you were doing with Vmware. Have you installed new operating system, and then OBIEE. Let me know what you did and how you have configured.

    Cause of your problem can be the name of the computer you use itgroup, maybe not even as virtual machine name.

  • Website will run on Windows Mobile, but not air iPad

    I am accessing a site of learning of the Red Cross.  When on a Windows machine, I get a page that says "content open in a new window" and a message below says "allow once" or "always allow this Web site.  I answer that question and still very good.  However, when trying to get to my class of learning within the site, when I'm on my Ipad Air, it just seems to hang up.  I see the page 'Content open in a new window' but nothing else and there is no way to continue.  Does anyone know how I can get past this please?

    Not every site is optimized for the iOS or mobile devices - if possible use "m" instead of www as m.redcross.org instead of www.redcross.org and check

    You can also try with another browser if you wish

  • Rental app run on the Simulator, but not in real device!

    Hello

    I made a simple application using GPSDemo in JDE, I get altitude, longitude, latitude... I tried in the Simulator (9000) and it worked perfectly.

    But when I put it on my BB (bold 9000), I can't get the location information. I've done some tests and I think it's because the location.isValid () return false!

    I checked the settings of the BB and the GPS is activated.

    Do you know what is the problem? And what can be the solution ?

    Thanks for your help and I apologize if my sentences are strange, I'm French and not very versed in English ^^...

    Ok! I found the solution! The problem wasn't my code, it came from the camera. I had update (outdoor) GPS data in the advanced options because it was the first time I tried to use it.

    And now it works perfectly!

    Thank you for all your help

  • Program runs in the hidden administrator account, but not the administrator account

    I have been using Altium Designer for about 5 months. One day, I tried Eun and got the error "dxp.exe has stopped working.  So, after trying a re-boot.  I have reinstalled the software.  At the end of installation, I get the message "the system administrator has set policies that prevent this facility." The installation then said that the installation has been completed successfully. I tried: unlock all files in the installation directory, run the installation as an administrator, the installation running on the hidden administrator account. Turn off UAC.

    The installation leaves me with a program which runs in hidden administrator but not nromal administrator.  Even if the install ation was made as normal anministrator.

    I am running Windows 7 Home premium, so the control of local security is not available.

    Thank you for your help ITKnowledge24.  Your post helped me to find parts of the program that I would never know that existed.

    It turns out that my problem was in two parts.  First what killed the software is primarily a print unrelated dirver.  (go figure)  Installation errors were caused because I downloaded the version recient most of the manufacturer's Web site.  When I reinstalled using the old version, the installation was without error.  The software starts to run correctly when the printer driver has been removed.  It seems that windows security was only a Kipper.

  • How to map Dynamic Query columns on variables of forms.

    Dear all,
    This is a correct code for executing a dynamic query and display data.
    In this program that I have defined variables ("BOLD" of police) later I binds these with the query (in the second code "BOLD").

    How I can map a column in the query, in which case I don't know that the surveyed fields type?



    GetData PROCEDURE IS
    EXEC_SQL connection_id. PORT;
    cursorID EXEC_SQL. CURSTYPE;
    sqlstr VARCHAR2 (1000);

    loc_ename VARCHAR2 (30);
    loc_eno NUMBER;
    loc_hiredate DATE;

    nIgn PLS_INTEGER;

    BEGIN
    connection_id: = EXEC_SQL. DEFAULT_CONNECTION;
    cursorID: = EXEC_SQL. OPEN_CURSOR (connection_id);
    --
    -assuming empno is a primary key for the table emp, where clause ensures
    -only 0 or 1 row is returned
    --
    sqlstr: = "select ename, empno, hiredate from emp;
    -sqlstr: = sqlstr. 'where empno =' | input_empno;

    EXEC_SQL. PARSE (connection_id, cursorID, sqlstr, exec_sql. V7);
    -EXEC_SQL. Bind_variable (connection_id, cursorID, ': bn', input_empno);

    EXEC_SQL. DEFINE_COLUMN (connection_id, cursorID, 1 loc_ename, 30);
    EXEC_SQL. DEFINE_COLUMN (connection_id, cursorID, 2, loc_eno);
    EXEC_SQL. DEFINE_COLUMN (connection_id, cursorID, 3, loc_hiredate);

    --
    -do execute_and_fetch after the analysis of the statement and calling bind_variable and
    -If necessary define_column
    --

    nIgn: = EXEC_SQL. EXECUTE_AND_FETCH (connection_id, cursorID);
    IF (nIgn = 0) THEN
    TEXT_IO. Put_line ('not Rec');
    ELSE IF (nIgn = 1) THEN
    TEXT_IO. Put_line ('found an employee');

    END IF;
    --
    -get the values of this line
    --
    WHILE (EXEC_SQL. FETCH_ROWS (connection_id, cursorID) > 0) LOOP
    -nRows: = nRows + 1;
    EXEC_SQL. COLUMN_VALUE (connection_id, cursorID, 1, loc_ename);
    EXEC_SQL. COLUMN_VALUE (connection_id, cursorID, 2, loc_eno);
    EXEC_SQL. COLUMN_VALUE (connection_id, cursorID, 3, loc_hiredate);

    MESSAGE(loc_ename||) e '|| loc_eno | » '|| loc_hiredate);

    END LOOP;
    END IF;
    END;

    If you want to use EXEC_SQL and a dynamic query with unknown data types, but the known table name,
    Then you can declare a rowtype variable
    for example;

     NOT TESTED ---A ROUGH IDEA
    m_emp_row employee_master%rowtype;
    m_col_cnt number := 0;
    So when you define collumn, create a procedure to find the column name and its width if it is varchar2 with respect to the column name .
       Find the column details from the user_tab_columns table ...
    ---------------------------------------------------------------------------------------------------------------------------------------------------
      while m_col_cnt < 3 loop
           m_col_cnt  := m_col_cnt +1;
           proc_find_col_name_width(p_qry ,p_col_no=>m_col_cnt , p_col_name,p_col_width);
    
          If p_col_name = 'EMPCODE' then
             EXEC_SQL.DEFINE_COLUMN(connection_id, cursorID, m_col_cnt , m_emp_row.empcode , p_col_width);
          elsif p_col_name ='EMPNAME' then
             EXEC_SQL.DEFINE_COLUMN(connection_id, cursorID, m_col_cnt , m_emp_row.empname , p_col_width);
           -----
            -------
           end if;
      end loop;
    
    ---------------------------------------------------------------------------------------------------------------------------------------------------
    --Your procedure will look like this
     procedure proc_find_col_name_width(p_qry  varchar2,p_col_no number, p_col_name out varchar2,p_col_width out number) is 
    
     m_col_name varchar2(30);
     Cursor c1 is
     Select  data_length
     from user_tab_columns
     where table_name = 'yr_tab_name'
     and column_name = m_col_name;
     m_lastpos number ;
     m_nxtpos number ;
     Begin
      m_lastpos := instr(p_qry,',',1,p_col_no-1);
      m_nxtpos := instr(p_qry,',',1,p_col_no);
      If m_lastpos = 0 then --- if only one col
         m_col_name := substr(p_qry,instr(upper(P_QRY),'SELECT') + 6, instr(upper(P_QRY),'FROM') -1);
      else
           If m_nxtpos = 0 then ---if last column
                 m_nxtpos := instr(upper(P_QRY),'FROM') -1;
           end if;
    
        m_col_name := substr(p_qry,m_lastpos+1,m_nxtpos);
      End if;
      m_col_name := ltrim(rtrim(m_col_name));
      open c1;
      fetch c1 into p_col_width;
      close c1;
      p_col_name := m_col_name;
    END;
    

    same thing you must apply when retrieving values using exec_sql.column_value
    concerning
    Dora

    Published by: Dora on December 7, 2009 12:20

    Published by: Dora on December 7, 2009 12:20

Maybe you are looking for