How do I dynamically change the query VO

Hello

IAM trying to change the VO query dynamically. My forced, it is that I have 6 columns in a page header 3 columns (single default) for objective sort and another 3 columns (the default one) for querying data.

Al, are in a single view so I created a VO.

Sort of research
AN A
B B
C C

When I give all sort values and hit the query of VO submit button should change dynamically.
I searched old post in this regard.

My query is something like that

SELECT * from cust_table where a = NVL (: 1, a)
UNION
SELECT * from cust_table where a <>NVL (: 1, a)
order by one

IAM not trying the Sub part dynamicaly in my AM method
vo.setWherecaluse ("where a = NVL (: 1, a)")
UNION
SELECT * from cust_table where a <>NVL (: 1, a)
order by one ").
and trying to pass parameters to the query. But it does not work. In error "variable binding is not found.

The one you suggest how to solve the problem.


Thank you
Mahesh

Mahesh

Please let me know the logic behind the union of the same query with it. What is the problem you are having with
vo.setWhereClause

Thank you
AJ

Tags: Oracle Applications

Similar Questions

  • How do I dynamically change the the number of vCPU and amount of a virtual computer memory?

    Hi all

    My first question is how do I dynamically change the number of vCPU and amount of a computer virtual memory when the virtual machine is running? If so, this may be achieved by writing a few scrpits to inform the hypervisor?

    My second question is, I can start a virtual machine in KVM with the number of vCPUs and amount of memory configured in the startup script. I don't know if this is supported in vmware ESXi?

    I couldn't find the answer in the ESXi 5.0 user guide.

    Your suggestion will be highly appreciated.

    Cheng Wang

    http://sparrowangelstechnology.blogspot.com/2012/11/hot-add-of-CPU-and-memory-to-virtual.html

    You can change the ram and the CPU, but it must be enabled.

    by default, only it isn't.

    See this link to change the settings of vm via powercli

    http://ICT-freak.nl/2010/05/07/PowerCLI-script-to-schedule-memory-and-or-vCPU-updowngrade/

  • How can I dynamically change the scale of an AIChannel, while the task is running?

    I would like to change the scale of an AIChannel while the task is running.

    Is this possible? How can I do?

    Hi Michael,

    I don't think that this is possible.  If you need this capability, I would acquire the raw tension and applying your own scaling on the set of data as being treatment.

    Kind regards

  • How can I dynamically change the Format of Date of Application?

    Hello world...

    In my application (v 3.2) I let the user set the date format of app dynamically by a "preference" value, they can change on the road.
    I then take the format they take and affect their value (ie: ME-DD-YYYY) and pad "Hh: mi" for it and use it as the PICK_DATE_FORMAT_MASK that works very well for most of the selectors of dates.

    The problem I have is that some date picker, I use the application does not require the hh: mi, they need just the part of ME-DD-YYYY. I could use the NLS_DATE_FORMAT for this? I may be able to use the selectors of dates with the "format of date of application use? It doesn't seem to work for me.

    In other words, I need essentially 2 date formats for my selectors of application dates; 1 for just the dates and 1 for dates, including time. And these 2 formats are selected by the user by setting a preference of app dynamically at run time.

    Not sure if I feel here... any idea?

    Thank you!
    François

    You must use the element of the application in the installation of your application, so when you select in your control, you would use the date format of application level. You can change the level application through code or control element.

    Thank you

    Tony Miller
    Webster, TX

  • How do you dynamically change the enabled state of a control?

    I build a VI whose purpose is to generate a digital signal, post it on a chart and eventually save the data in a file. I have a trajectory control and a checkbox included in my front panel. When the box is checked , I want the State of the path control to be activated. If the check box is disabled , I want the State of the control path for disabled & clothing. Is there a way to get there or even just make it look like this?

    PS: I want also the checkbox for controlling whether or not the VI saves the data in a file, but I think I can understand the part.

    Right-click on the control, and then choose create the property node.

    Select enabled

    Also write

    Wire a constant (o on, off, 1 3 disabled and grayed out)

    Ben

  • How to dynamically change the host name in the Pages of the URL of the APEX

    Dear gurus,

    Please advise me on how to dynamically change the hostname in the URL used in the pages of the APEX.

    For example: I have the below URL in one of the apex pages.
    owa_util. REDIRECT_URL ("http://adminlxdb03.texas.org:7780/pls/htmldb ' |' / f?") p ='|| v ('APP_ID') | ": 151:" | " v ('APP_SESSION'));

    in the case of a Migration of this apex from one server to another (for example, TEST the PROD box), this / these pages are wrong because the different host id name in the PROD box.

    Is it possible that we can dynamically change the hostname in the URL used in the pages of the APEX.

    for example
    owa_util. REDIRECT_URL ("http://adminlxdb03.texas.org:7780/pls/htmldb ' |' / f?") p ='|| v ('APP_ID') | ": 151:" | " v ('APP_SESSION'));

    should become

    owa_util. REDIRECT_URL ("http://adminetuxdb09.texas.org:7780/pls/htmldb ' |' / f?") p ='|| v ('APP_ID') | ": 151:" | " v ('APP_SESSION'));

    It's adminlxdb03.texas.org (TEST) at adminetuxdb09.texas.org (PROD).

    If the page has no error...

    Please notify.

    Thank you
    Sheik

    You don't need to provide the hostname while redirecting in the pages of the apex

    owa_util. REDIRECT_URL ('f? p ='| v ('APP_ID') |) ": 151:" | " v ('APP_SESSION'));

    should work just fine.

  • Dynamically change the number of sub-panels

    Hello

    I have a computer where usually 4 testplaces of production are connected to.

    I want to have a main VI indicating the status of the 4 different testplaces, that I can do with 4 separate sub-panels - no problem.

    The issue is that I would be flexible in testplaces how I show in a program (as this hole thing is pretty cool, and I expect that some changes will come). Is it possible to dynamically change the number of sub-panels displayed (other that make it twenty of them and turning off then those you don't need)?

    My first idea was to place the school in a table, but unfurtunately is not possible.

    Best regards

    Frank

    Yamaeda wrote:

    The POP in separate windows, and you can have as much as you want.

    Or make separate them windows, and then set up a child-parent relationship in Windows, it seems as if it was all about a user interface.

    http://screencast.com/t/P9SJ1anR

    It's nice enough for the demo beta like software, but works.

    https://lavag.org/topic/17046-multi-panel-interface/

  • Dynamically change the animations

    In my application, I set all of my animations in QML.  How now dynamically modify them (either QML or C++)

    Thus, for example:

    Container

    {

    animations: {CustomAnim1}

    }

    }

    }

    How do I dynamically change that to CustomAnim2?

    You lost me now with your example... I assume that you have already read: https://developer.blackberry.com/cascades/documentation/ui/animations/implicit_animations.html right?  Something that may be a little confusing is the documentation explains in QML and C++, you do not have to use both.  Rather, it makes more sense to use only one or the other.  Personally, I like the QML much better for animations so I do not recommend use C++ at all for this.

    And playback on your example, I don't understand what you're trying to have control of the animation.  Eventually, it would be better if you try to have a button combat into a simple "onClicked" signal just to test if you are indeed correct.  Then switch it to another signal event.  If you still don't have it in the next few days I'll have an animation tutorial where I use explicit animations in my blog (link in signature) more later this week/weekend.

  • dynamically change the HomeScreen application title

    Hi all

    As you know, we can dynamically change the application ICON on the home screen,

    what I want to know how to change the title of the application on the home screen.

    I mean when the user foucs on my application, text will appear on the screen.

    When I change an ICON, I want that the text will be changed according to the new icon.

    Is this possible?

    Thank you.

    Try the HomeScreen class - see the documentation of the api for HomeScreen.setName)

  • procedure that will dynamically build the query data and table Medallion

    Hi people,

    I write a procedure that dynamically build the query data and insert in the table "dq_summary".
    enforcement procedure with success and data not inserted into the table 'dq_summary '.

    I have thin problem in code attached below
    -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    FOR rep IN cur_di_attr
          LOOP
            dbms_output.put_line ('d: ');   
            
            BEGIN
              EXECUTE IMMEDIATE 'SELECT table_name FROM ' || sum_tab || ' WHERE id = ' || rep.attribute_id INTO rep_tab;
              dbms_output.put_line ('rep_tab: '||rep_tab);
              run_query := run_query || ' ' || rep_tab || ' WHERE ' || nvl(wh_cond, '1 = 1');
              EXECUTE IMMEDIATE run_query INTO end_rslt;
            
              EXECUTE IMMEDIATE 'UPDATE dq_summary SET ' || prop || '_' || p_code || ' = ' || end_rslt || ' WHERE attribute_id = ' || rep.attribute_id;
              dbms_output.put_line ('e: ');      
              dbms_output.put_line ('rep_tab: '||rep_tab);
              dbms_output.put_line ('end_rslt: '||end_rslt);
              dbms_output.put_line ('f: '); 
            EXCEPTION
              WHEN no_data_found THEN
                rep_tab := '';
                sum_tab := '';
            END;  
          
          END LOOP;    
    -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    but in the procedure below must be run several times
    create or replace
    PROCEDURE DQ_REPORT_PROC
    AS
      prop                              di_proposition.pro_name%type;
      col_var                           VARCHAR2(100);
      p_code                            dq_parameter.para_code%type;
      sum_tab                           di_proposition.summary_table%type;
      run_query                         dq_parameter.run_query%type;
      wh_cond                           dq_parameter.where_cond%type;
      end_rslt                          VARCHAR2(20);
      rep_tab                           VARCHAR2(50);
      v_error_msg                       VARCHAR2(200);   
      v_error_code                      VARCHAR2(200);  
      v_object_name                     VARCHAR2(50)                          DEFAULT 'DQ_REPORT_PROC';
      v_iss_no                          VARCHAR2(20)                          DEFAULT NULL;
      CURSOR cur_di_prop IS 
        SELECT upper(replace(replace(pro_name, ' '),'-')) pro_name
          FROM di_proposition;
      
      CURSOR cur_di_para IS
        SELECT upper(para_code) para_code, run_query, where_cond
          FROM dq_parameter;
      
      CURSOR cur_di_attr IS 
        SELECT attribute_id
          FROM dq_summary;
    BEGIN
      
      DELETE FROM dq_summary;
    
      INSERT INTO dq_summary (attribute_id, entity_name, attribute_name, data_champ) 
        SELECT a.attribute_id, b.entity_name, a.attribute_name, a.data_champ
          FROM di_attribute_master a, di_entity_master b
         WHERE a.entity_id = b.entity_id;
    
      FOR c_prop IN cur_di_prop
      LOOP
        prop := c_prop.pro_name;
        
        BEGIN
          SELECT distinct SUBSTR(column_name, 1, INSTR(column_name, '_')-1), summary_table
            INTO col_var, sum_tab
            FROM user_tab_cols a, di_proposition b
           WHERE a.table_name = 'DQ_SUMMARY'
             AND upper(replace(replace(b.pro_name, ' '),'-')) = prop
             AND SUBSTR(a.column_name, 1, INSTR(a.column_name, '_')-1) = upper(replace(replace(b.pro_name, ' '),'-'))
             AND upper(b.status) = 'Y';
             
             dbms_output.put_line ('col_var: '||col_var);
             dbms_output.put_line ('sum_tab: '||sum_tab);
             
        EXCEPTION
          WHEN no_data_found THEN
            col_var := '';
            sum_tab := '';
        END;
    
        dbms_output.put_line ('a: ');
    
        FOR para IN cur_di_para
        LOOP
         dbms_output.put_line ('b: ');
          p_code := para.para_code;
          run_query := para.run_query;
          wh_cond := para.where_cond;
          dbms_output.put_line ('c: ');
          FOR rep IN cur_di_attr
          LOOP
            dbms_output.put_line ('d: ');   
            
            BEGIN
              EXECUTE IMMEDIATE 'SELECT table_name FROM ' || sum_tab || ' WHERE id = ' || rep.attribute_id INTO rep_tab;
              dbms_output.put_line ('rep_tab: '||rep_tab);
              run_query := run_query || ' ' || rep_tab || ' WHERE ' || nvl(wh_cond, '1 = 1');
              EXECUTE IMMEDIATE run_query INTO end_rslt;
            
              EXECUTE IMMEDIATE 'UPDATE dq_summary SET ' || prop || '_' || p_code || ' = ' || end_rslt || ' WHERE attribute_id = ' || rep.attribute_id;
              dbms_output.put_line ('e: ');      
              dbms_output.put_line ('rep_tab: '||rep_tab);
              dbms_output.put_line ('end_rslt: '||end_rslt);
              dbms_output.put_line ('f: '); 
            EXCEPTION
              WHEN no_data_found THEN
                rep_tab := '';
                sum_tab := '';
            END;  
          
          END LOOP;    
        END LOOP;
      END LOOP; 
      COMMIT;   
    EXCEPTION
          WHEN OTHERS THEN
             v_error_msg   := SQLERRM;
             v_error_code  := SQLCODE;  
             TRACKER_LOG_EXECEPTION(v_iss_no, v_object_name, CURRENT_TIMESTAMP, v_error_msg, v_error_code);
          COMMIT;        
      
    END DQ_REPORT_PROC;
    Published by: BluShadow on February 7, 2012 12:04
    addition of {noformat}
    {noformat} tags.  Please read {message:id=9360002} and learn to do this yourself in future.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            

    903830 wrote:

    I write a procedure that dynamically build the query data and insert in the table "dq_summary".
    enforcement procedure with success and data not inserted into the table 'dq_summary '.

    I'm sorry. But there is no kind of say that way. The code is undesirable. The approach is wrong. This will not happen. This will cause the fragmentation of memory in the shared Pool. This will lead to another session being impossible to analyze the sliders because of the fragmented memory.

    Not only that. The underlying data model is questionable.

    All this seems a candidate perfect as an example of how NOT to design and code and use Oracle.

  • How export (unload) result of the query without running query on sql developer

    Hello

    I want to know how export (unload) result of the query without running query on sql developer.

    I know this way.
    1. execution of query
    2. click on "Download" on the results tab
    http://i.stack.imgur.com/CQ4Qb.jpg


    Is he available unload a query result before the race?

    No, but you can do this ask the developer SQL change however, for other users can vote and add weight to the possible future implementation.

    Kind regards
    K.

  • dynamically change the selection table of

    is it possible to dynamically change the table used in a select statement for an interactive report 3.2 on 11g database? I have a series of similar tables, one for each month of the year. I want to click a month on one page and to set up a table for this month report. I want to use a page for this report and have all the links from the link to the previous page on the same page, just different results based on what month has been clicked.
    I know I could just install 12 different reports and conditionally display each region based on a value passed to the page, but I prefer to create only a single page and a report on this page.

    Thanks for ideas or solutions.

    Hello:

    Because the tables involved are fixed for a given month, you can try something like

    select * from tab_1
    where :p_mth=1
    UNION
    select * from tab_2
    where :p_mth=2
    UNION
    ....
    select * from tab_12
    where :p_mth=12
    

    only the query for the IR. "P_MTH" is the page element has the value entered by the user for the months for which data should be retieved.

    CITY

  • Extend the VO - need to change the query of VO - screen is off

    {Re-post the message in this forum (thanks to John Stegeman to lead me here...)   {Posted: August 28, 2009 04:27}

    Dear all,

    Thanks to this great body of knowledge, I ask my questions.

    I need to extend a VO to display the name of the country.
    The column is not in the VO. So, I need to get another table: FndTerritories

    I want to change the query, but the request frame is turned off (in the wizard the View - step 5 of 6 - Generated statement object substitution)

    Could you be it someone please let me know: how to change the application of the VO in this case?

    OR is there another solution for such cases, to maintain development standards

    Thank you very much

    Kind regards

    Hello

    I think that's when you just have to add an attribute, you should not click the expert mode checkbox... make use of
    Mix and add the button.

    But when you need to modify the query, and then we want to use to modify the query window...

    Thank you
    Gerard

  • Dynamically change the path of the report

    Is it possible to dynamically change the path where reports are saved. TestStand 4.1.1

    Glennjammin,

    You can set a path to the specific report for any sequence that you run via the entry points of process model using the reminder of your sequence ReportOptions. It will allow you to change the current settings in the Options report (including the path) for the execution of this sequence. This allows each of your sequences have unique report options.

    If I understand your question, you want to do is exactly what is meant recall ReportOptions.

    -Jack

  • How can I permanently change the NVIDIA geforce of Intel(r) hd graphics?

    I would like to know how can I permanently change the type of adapter display card Intel (R) NVIDIA geforce hd? Previously, when I bought my computer, it is equipped with one chart type-NVIDIA geforce and everything goes fine until I installed Intel(r) hd as you are prompted by windows update. Since then, my computer have encountered many problems, especially when you play high graphics... I tried to move from the graphics card Intel (R) NVIDIA geforce hd when playing games... and yet, the performance is not as good as the last time where I did have only one chart. Because of this, I would like to change or define main graphic geforce NVIDIA and Intel (R) hd as secondary, or if possible, permanently remove the hd Intel (R).

    Hello

    What is the make and model of computer?

    What is the Windows operating system?

    Follow these steps to disable Intel

    http://www.WikiHow.com/disable-the-onboard-graphics-and-install-a-new-graphics-card-in-your-HP-Pavilion-6630

    HP Support Doc

    http://h10025.www1.HP.com/ewfrf/wc/document?DocName=c01684404&tmp_task=useCategory&LC=en&DLC=en&cc=us&product=4215700&lang=en

Maybe you are looking for