Can we override the viewlink generated query?

Hi,
my question is :
After creating the viewlink it generates query with bindvarible, can we override this, so that we can pass a some other value ?

Hi,
But right now i am using the jdev11.1.1.4?
can we oveeride it in viewlink generated query in the wizard? is their is any issues if we ovveride in wizard itself.
Actaully i overrided the viewlink genreated query in wizard lik :
EmpDeptFkLink viewLink
before:
:Bind_DepartmentId= Employees.DEPARTMENT_ID
After override :
DECODE(:Bind_DepartmentId,10,Employees.DEPARTMENT_ID,:Bind_DepartmentId) = Employees.DEPARTMENT_ID
it works. is their any performance issues related to this?

Similar Messages

  • How can i change the default text "Query by Example"

    Studio Edition Version 11.1.1.3.0
    how can i change the default text *"Query by Example"* in a Panel Collection
    Thx

    Hi thieto,
    The label you are looking for is af_panelCollection.LABEL_MENUITEM_QBE*
    I'm currently writing a blogpost on this issue. In short, you will have to create a skin resource bundle.
    In the skin definition, refer to this bundle class.
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <skins xmlns="http://myfaces.apache.org/trinidad/skin">
      <skin>
        <id>mySkin.desktop</id>
        <family>MySkin</family>
        <extends>blafplus-rich.desktop</extends>
        <render-kit-id>org.apache.myfaces.trinidad.desktop</render-kit-id>
        <style-sheet-name>skins/MySkin.css</style-sheet-name>
        <bundle-name>com.blogspot.lucbors.view.bundles.MySkinBundle </bundle-name>
      </skin>
    </skins>In this class, adjust the label text to your needs.
    package com.blogspot.lucbors.view.bundles;
    import java.util.ListResourceBundle;
    public class MySkinBundle extends ListResourceBundle {
      public MySkinBundle() {
        super();
    @Override
      public Object[][] getContents() {
        return _CONTENTS;
    static private final Object[][] _CONTENTS = {
         {"af_panelCollection.LABEL_MENUITEM_QBE","the text that you want"}
    }More in the blogpost
    Good luck
    Luc Bors
    Edited by: lucbors on Jul 26, 2010 11:39 AM (blogpost finished - URL added)

  • How can I put the report generated by a program into a File?

    Hi all,
       How can I put the report generated by a program into a File?It can be in TXT format or excel format which ever is possible.
    I need to export this file to memory,How can I do that??
    Regards,
    Shashank.

    Hello Shashank,
    Please ignore my previous answer... Ofcourse it works...
    There are several ways to do this...
    two of them are
    1. List -> Save -> File and press enter..
        it will ask for the format, then path where to save it. Just give the path.
    2. Using function module 'GUI_DOWNLOAD'.
    I'm giving the example bellow which explains the usage of both GUI_UPLOAD and GUI_DOWNLOAD.
    To do this... you need to have folder with name 'TEST' and a .txt file in it with name 'test'. And contents of it are :
    TEST1             ,BOT 
    TEST2             ,BOT 
    TEST3             ,BUT 
    with spaces.
    REPORT zssr_bdc .
    DATA: BEGIN OF g_t_itab OCCURS 0,
            matnr LIKE mara-matnr,
            maktx LIKE makt-maktx,
          END OF g_t_itab.
    DATA: g_t_bdcdata TYPE TABLE OF bdcdata.
    DATA: path TYPE string,
          path1 type string.
    path = 'C:\Documents and Settings\ssr3kor\Desktop\TEST\test.txt'.
    path1 = 'C:\Documents and Settings\ssr3kor\Desktop\TEST\test1.txt'.
    *contents of test.txt    *
    *TEST1             ,BOT  *
    *TEST2             ,BOT  *
    *TEST3             ,BUT  *
    CALL FUNCTION 'GUI_UPLOAD'
      EXPORTING
        filename = path
      TABLES
        data_tab                      = g_t_itab.
    LOOP AT g_t_itab.
      WRITE:/1(18) g_t_itab-matnr, 20(40) g_t_itab-maktx.
    ENDLOOP.
    CALL FUNCTION 'GUI_DOWNLOAD'
      EXPORTING
       filename = path1
       filetype                      = 'ASC'
      TABLES
        data_tab                      = g_t_itab.
    Now you will get one .txt file with name 'TEST1.TXT' in the TEST folder.
    <b>REWARD POINTS IF IT IS HELPFUL</b>
    Regards
    Sasidhar Reddy Matli

  • Can we override the jspService method?

    Can we override the jspService method in jsp file?

    You can. But the use depends on the webcontainer used. For every kind of webcontainer you likely have to rewrite the stuff.
    In case of Tomcat, you simply have to extend the HttpJspBase and implement accordingly.

  • Can we override the Desktop LAF for Pages using backing Files ?

    Hi
    I have the following Look And Feel related requirement.
    We have an global application level Skin which was applied at the desktop level using the .laf file.
    But some of the pages require a totally different Look and Feel apart from the one defined at the desktop level.
    To put the question in the other way,
    Can we override the skin & skeleton defined at the Desktop level using the backing file (for page or portlet) ?
    The following is the code snippet, which i used in the backing file to achive the above.
    LookAndFeel lookAndFeel = LookAndFeel.getLookAndFeel(request);
    lookAndFeel.setSkin(y_skin);
    lookAndFeel.setSkeleton(y_skeleton);
         lookAndFeel.reinit();
    Here the y_skin & y_skeleton are the new set of skin & skeletion which i have created for the page.
    when i ran the above snippet in the portal framework, i found the desktop level skin is getting applied
    to the pages insted of the y_skin & y_skeleton.
    Any help or directions .... for dynamically changing the skin & skeletion for pages will be appreciated.
    Thanks & Regards
    - Sachi

    What you are doing looks valid.
    this is the code that i have
    public void init(HttpServletRequest request, HttpServletResponse response)
    // Get the session from the request
    HttpSession session = request.getSession();
    // Get the LookAndFeel object from the PrimaryTheme in the request
    LookAndFeel lookAndFeel = LookAndFeel.getLookAndFeel(request);
    if (request.getParameter("defaultButton") != null)
    //System.out.println("default skin selected");
    session.setAttribute("skin", "default");
    if (request.getParameter("textButton") != null)
    //System.out.println("text skin selected");
    session.setAttribute("skin", "text");
    if (request.getParameter("classicButton") != null)
    //System.out.println("classic skin selected");
    session.setAttribute("skin", "classic");
    String selectedSkin = (String) session.getAttribute("skin");
    if (selectedSkin != null)
    //System.out.println("setting skin and skeleton to: '" + selectedSkin + "'");
    lookAndFeel.setSkin(selectedSkin);
    lookAndFeel.setSkeleton(selectedSkin);
    lookAndFeel.reinit();
    }

  • Bex request can not collect the change of query

    HI every one:
         Bex request can not collect the change of query automatically ,eventhough This query has ben transport before and have the same dev class with the Bex request.
            when I press the  button to save the change of query  , a dialog was pop up to let me assign one request to this query.
              who can help me ?! thanks alot!
    Best regard
    david

    Hi David,
    already previous request is transported to Q or P....so when ever u try to change the existing query in BI.. the assigned request is not available in 'D'. so its asking to assign a request. for this
    go to transport connection in Admin Workbench>there in right top u willl find a transport symbol for bex> click that for creating a request for bex queries--> after creating that request try to open ur query and do necessary modifications, what ever the modifications you do will come under this newly created request.
    reply back if u have any questions
    Thanks and Regards
    Ajay .D

  • Can I override the Pagination HTML code?

    I am working on some apex templates and such and would like to override the code. I cant seem to find a hook into it. There doesnt seem to be much info on the External pagination functionality.
    I am working with rewriting the borderless report template.
    I have code for the Next and Previous Page Templates - thats fine. I cant seem to stop the wrapper though.
    It wants to use tables and tr and td tags. How can I override all these tr/td and table tags?
    <tr><td colspan="3" align="right" >
    <table summary="">
    <tr><td class="pagination"></td><td class="pagination"></td><td nowrap="nowrap" class="pagination"><!-- Pagination Template --></td>
    <td class="pagination"><img src="/i/themes/navright.png" align="Next" />
    </td><td class="pagination">
    </td></tr></table>
    </td></tr>

    It wants to use tables and tr and td tags. How can I override all these tr/td and table tags?Oracle's love affair with tables is a long-standing issue:
    Pagination Sub-template and table-less layouts
    As the doc states, the APEX engine generates table rows for the pagination substitutions, so there has to be an accommodating table wrapper...

  • How can I customize the dam search query in backend?

    I am trying to customize the dam search query in the cq backend but I cannot figure out where to do it.
    It seems that the search is performed by dam.assetsearch.json but where can I edit it?
    Thanks.

    The above is the post message to the querybulider.json when we trigger searching
    p.hitwriter=full
    p.nodedepth=4
    mainasset=true
    type=dam:Asset
    fulltext=1111
    path=/content/dam
    path.flat@Delete=true
    orderby=path
    0_daterange.property=jcr:content/jcr:lastModified
    0_daterange.lowerBound=
    0_daterange.upperBound=
    1_group.property=jcr:content/metadata/dc:format
    1_group.p.or=true
    2_group.property=jcr:content/metadata/cq:tags
    2_group.p.or=true
    3_group.property=jcr:content/metadata/dam:scene7FileStatus
    3_group.p.or=true
    p.limit=15
    p.offset=0
    Actually how 0_daterange, 1_group, 2_group.... generated?
    If I just add a predicate, it cannot be convert to x_group something like this and hence the searching fail.
    Any idea to this?
    Thanks.

  • Can I override the default ReadObjectQuery for an entity and specify my own call

    Hi,
    I am trying to override the default ReadObjectQuery and the ReadAllQuery for an entity and supply my own call.The entities have to be read from the database using a StoredProcedure.I tried doing something like
    Descriptor desc=evt.getSession().getDescriptor(Configuration.class);
    desc.getQueryManager().setReadObjectQuery(new ReadObjectQuery());
    StoredProcedureCall call = new StoredProcedureCall();
    call.setProcedureName("CONFIGSVC");
    call.addUnamedArgument("CATEGORY");
    call.addUnamedArgument("CFGKEY");
    call.addUnamedArgument("VALUE");
    desc.getQueryManager().getReadObjectQuery().setCall(call1);
    desc.getQueryManager().getReadObjectQuery().addArgument("CATEGORY");
    desc.getQueryManager().getReadObjectQuery().addArgument("CFGKEY");
    desc.getQueryManager().getReadObjectQuery().addArgument("VALUE");
    When I try to execute the query
    ExpressionBuilder builder = new ExpressionBuilder();
    Expression expr = (builder.getField("category").equal("GOESVC.GETTDEV")).and(
              new ExpressionBuilder().getField("configKey").equal("GOESVC.REQ")).and(
              new ExpressionBuilder().getField("value").equal("$ENV.$ORIGIN.GOESVC.REQ"));
    ReadObjectQuery query = new ReadObjectQuery(Configuration.class, expr);
    session.executeQuery(query);
    I can see in the log that it completely ignores the call I set and tries to execute using the default call and that too with incorrect mappings between the "entity" field names and the actual database field names.
    2002.11.01 08:50:52.640--ClientSession(8218801)--Thread[main,5,main]--#executeQuery(ReadObjectQuery(com.fmrco.gett.toplink.Configuration))
    2002.11.01 08:50:52.750--ServerSession(7721862)--Thread[main,5,main]--Connection(5230193)--SELECT CFGKEY, CATEGORY, VALUE FROM CONFIG_ETT WHERE (((category = 'GOESVC.GETTDEV') AND (configKey = 'GOESVC.REQ')) AND (value = '$ENV.$ORIGIN.GOESVC.REQ'))
    2002.11.01 08:50:53.375--ClientSession(8218801)--Thread[main,5,main]--EXCEPTION [TOPLINK-4002] (TopLink - 9.0.3 with StoredProcedureCall patch [email protected] 28/10/2002 (Build 423)): oracle.toplink.exceptions.DatabaseException
    EXCEPTION DESCRIPTION: java.sql.SQLException: [SQL0206] Column CONFIGKEY not in specified tables.
    INTERNAL EXCEPTION: java.sql.SQLException: [SQL0206] Column CONFIGKEY not in specified tables.
    How to I solve this issue?
    Thanks,
    Harini

    Hi,
    The "ReadObjectQuery" in a descriptor's query manager can only be used to change the primary key read query. It will be used only for a ReadObjectQuery that either has a selection key, selection object, or an expression that exactly matches the primary key.
    If you have a non-primary key query that you want to use, you can add it as a named query to the descriptor's query manager.
    I'm not sure of the primary key of your descriptor, assuming that it is a 3 part composite key, then your ReadObjectQuery procedure is defined correctly in the descriptor. However the ReadObjectQuery is incorrect, you must use "get" not "getField", also you must use a single expression builder.
    i.e.
    ExpressionBuilder builder = new ExpressionBuilder();
    Expression expr = (builder.get("category").equal("GOESVC.GETTDEV")).and(
    builder get("configKey").equal("GOESVC.REQ")).and(
    builder.get("value").equal("$ENV.$ORIGIN.GOESVC.REQ"));
    ReadObjectQuery query = new ReadObjectQuery(Configuration.class, expr);
    session.executeQuery(query);
    you could also do,
    Vector key = new Vector(3);
    key.add("GOESVC.GETTDEV");
    key.add("GOESVC.REQ");
    key.add("$ENV.$ORIGIN.GOESVC.REQ");
    ReadObjectQuery query = new ReadObjectQuery(Configuration.class);
    query.setSelectionKey(key);
    session.executeQuery(query);
    If the descriptor primary key is not 3 part, then add this query as a named query.
    Descriptor desc=evt.getSession().getDescriptor(Configuration.class);
    ReadObjectQuery query = new ReadObjectQuery();
    StoredProcedureCall call = new StoredProcedureCall();
    call.setProcedureName("CONFIGSVC");
    call.addUnamedArgument("CATEGORY");
    call.addUnamedArgument("CFGKEY");
    call.addUnamedArgument("VALUE");
    query.setCall(call);
    query.addArgument("CATEGORY");
    query.addArgument("CFGKEY");
    query.addArgument("VALUE");
    desc.getQueryManager().addQuery("findConfigSVC", query);
    To execute the query,
    Vector arguments = new Vector(3);
    arguments.add("GOESVC.GETTDEV");
    arguments.add("GOESVC.REQ");
    arguments.add("$ENV.$ORIGIN.GOESVC.REQ");
    session.executeQuery(Configuration.class, "findConfigSVC", arguments);

  • Can't find the ODS in query designer

    Hi Gurus;
    I am using SAP_BW 30B. I just created an ODS but I can't find the ODS under the InfoArea menu in query designer. I am not sure if it is related but, I tried to check the box for BEx Reporting under ODS settings. When I save or activate the ODS again the check in the box disappears. I can view other ODSs that are previousy created and non of them have a check for BEx Reporting under settings.
    I tried to delete the entries in the ODS and try to check again but no difference.
    Need your help.
    Thanx a lot in advance;
    Duygu Sile

    HI,
    Select the option, Create new query when you create for the first time on the  ODS and after designing the query it will ask for the Infoprovider under which the query has to be saved,give the ODS name which you  have created.Later Your ODS will be visible while creating queries.
    Hope this helps..

  • Can we implement the custom sql query in CR for joining the two tables

    Hi All,
    Is there anyway to implement the custom sql query in CR for joining the two tables?
    My requirement here is I need to write sql logics for joining the two tables...
    Thanks,
    Gana

    In the Database Expert, expand the Create New Connection folder and browse the subfolders to locate your data source.
    Log on to your data source if necessary.
    Under your data source, double-click the Add Command node.
    In the Add Command to Report dialog box, enter an appropriate query/command for the data source you have opened.
    For example:
    SELECT
        Customer.`Customer ID`,
        Customer.`Customer Name`,
        Customer.`Last Year's Sales`,
        Customer.`Region`,
        Customer.`Country`,
        Orders.`Order Amount`,
        Orders.`Customer ID`,
        Orders.`Order Date`
    FROM
        Customer Customer INNER JOIN Orders Orders ON
            Customer.`Customer ID` = Orders.`Customer ID`
    WHERE
        (Customer.`Country` = 'USA' OR
        Customer.`Country` = 'Canada') AND
        Customer.`Last Year's Sales` < 10000.
    ORDER BY
        Customer.`Country` ASC,
        Customer.`Region` ASC
    Note: The use of double or single quotes (and other SQL syntax) is determined by the database driver used by your report. You must, however, manually add the quotes and other elements of the syntax as you create the command.
    Optionally, you can create a parameter for your command by clicking Create and entering information in the Command Parameter dialog box.
    For more information about creating parameters, see To create a parameter for a command object.
    Click OK.
    You are returned to the Report Designer. In the Field Explorer, under Database Fields, a Command table appears listing the database fields you specified.
    Note:
    To construct the virtual table from your Command, the command must be executed once. If the command has parameters, you will be prompted to enter values for each one.
    By default, your command is called Command. You can change its alias by selecting it and pressing F2.

  • How can I reverse the posting generated by MF47 or COGI?

    Hi,
    Using transaction MF47 I have generated a posting document. But when I ran MF47 I did it with the wrong posting date, so the accounting document generated by transaction MF47 has the wrong posting date. I would like to reverse the document generated by MF47 in order to run MF47 afterwards with the correct posting date. Is it possible? I  have try to reverse it using MF41 but I do not see the document generated by MF47 in order to reverse it.
    Thank you very much,
    Ariana

    Hi,
    It is not possible to reverse the MF47 entry or COGI entry. Once it is cleared means that's all. May be you can try with cancelling the material document and once again you can try with the backflush. But this will not create any COGI entries reversal or MF47 entries reversal.
    Regards,
    V. Suresh

  • How can I override the startup window position?

    Can I override a compiled labview 7 app with ini settings, command line options, via a registry edit, or other option?
    Thanks,
    Mike

    Hello Mike
    Besides saving the vi in a position, you also have a property node to determine window position at startup app.
    Values can be fix, calculated from monitor specs, etc.
    See attached doc.
    Hope it helps
    Alipio
    "Qod natura non dat, Salmantica non praestat"
    Attachments:
    origin.doc ‏35 KB

  • How can I override the DNS Servers and Domain Name used by my Airport Time Capsule?

    The defaults picked up from my ISP's DHCP are to use the ISP's DNS servers and ISP's domain. I do not want this.
    With my prior router I set the DNS servers to Google's Public DNS (8.8.8.8 and 8.8.4.4) and my domain to either "bannister.us" (which I own) or "bannister.home". I do not want simple names resolving to some ISP default. (Yes, I know exactly what this does.)
    In the Apple AIrport Utility (version 6.3.2) the fields for DNS and Domain do not allow editing. (Why??)
    Is there some way to override this?

    Unfortunately not one that will work with the latest version TC.
    The way around it is to use a different router.. It can be a very simple router.. I usually recommend units like the TP-Link WDR3600 as they take good third party firmware like gargoyle, openwrt, dd-wrt.. ie they have real controls and beyond that a proper Linux firmware with command line interface.
    You can then change the TC over to static IP. It will not be the router.. but it will effectively become the local dhcp server.
    I have adsl so I cannot reproduce your system.. I have a bridged modem.. a router.. AC66U.. and a TC.. but the TC is not in bridge.. it is in static IP mode.
    Let me demonstrate.
    By setting a range on the main router from 1-199 (leave a space.. ) so set the TC to 192.168.2.201 and then you can set DNS and domain as you like. Set the dhcp range (leave a space) you could use 203-253.. then I use the main router as 254.
    It is brilliant.. all computers behind the TC receive the IP from the TC with whatever IP and dns (and domain although I haven't changed it).. Effectively the TC works as its own dhcp device.. but is merely a secondary dhcp server to the main unit.
    (This gives me netflix which is why I do it.. from well outside the US).
    It may be of use.
    Why leave a space.. well it helps it to work.. I have not tested it but another person reported issues and found leaving a space .. ie last ip in the router.. 199, static ip 201.. first dhcp 203 (i used 205 to help me keep count!!). worked.. I have not tried to reproduce the problem.. so I reproduce the solution.. it might be like sheep jumping over the fence.. even if the fence was removed the sheep keep jumping over at the same place. Just say bahhh and do likewise.

  • Portal SearchOps: Can I see the SQL generated?

    Is there a way to see the SQL generated by a content search?
    We have started to move a project into production which is querying against a DB2 database, and I fear that a date range constraint in our query is failing to be exercised.
    Thanks,
    -mike

    If you're familiar with using debug.properties, add this to your debug.properties file:
    usePackageNames: on
    com.bea.content: on
    When you start the server, pass this option in:
    -Ddebug.properties=[your debug.properties file, including path]
    The output will be rather verbose, and you might be able to narrow it down by replacing
    com.bea.content: on
    with
    com.bea.content.repo.internal.server.logic.SearchOpsLogic: on
    com.bea.content.repo.internal.server.common: on

Maybe you are looking for