Adding "order by" functionality to the expression of a toplink named query

hello,
using JDev 10.1.3, I have made a Toplink named query findCustomersByCompany with a parameter company (String) to pass the name of the company of interest. I used the expression option from the format tab with"1.companyId LIKE IGNORE CASE company".
The selection works fine but now I want the results to be ordered by customer name, the native order in the database is based on creation date.
How can I add the order by clause to my named query using the expression format?
kind regards,
Nemata

Look at http://www.thespot4oracle.com/SQL/re-6593_Adding-an-ordering-clause-using-a-TopLink-amendment-method.aspx
Hope this helps.

Similar Messages

  • Unable to See the Technology Function in The Expression Editor- ODI 11G

    Hi,
    I am developing Interface whereas i am unable to see the Technology functions in the Expression Editor where i am trying to do some transformation .
    Secondly in the Header it is showing Default language in place of SQL(Oracle)
    any fix please..
    Thanks,
    KP

    I fixed it myself- thanks
    Below was the step i did which resolved the issue. hope this will help others
    Go to ODI Studio
    In Topology- Expand Language
    Import New Language
    import in synonym INSERT_UPDATE mode
    The Language definitions from $ODI_HOME/oracledi/xml-reference/LANG_SQL.xml
    click OK
    close ODI Studio and Open again. that fixed my issue.
    Thanks,

  • Toplink Named Query - Creating the Expression

    In JDeveloper, I have this scenario.
    I’ve created a:
    Name.java – private String name;
    Managed Bean – Name - id, Class - paperless.Name, Scope - session
    Toplink Named Query --> findUserProfile
    Type --> ReadObjectQuery
    In the format tab, I’m using “Expression” and it is “1. pp_Username EQUAL “#{id.name}”
    I’m trying to do a query on pp_Username where pp_Username equals the login name that I have stored in the session (id.name). I can only assume that I have my express written incorrectly. When I run it, I just get nothing. Any ideas?

    Go to your toplink map in the application navigator, select the descriptor in the structure pane and then click on the "Queries" tab in the editor pane. You should be able to configure your named query there.
    Hope this helps.
    Anuj

  • Adding a Forward functionality on the Workitem dialog screen itself

    Hi SDM forum members,
    I am having some issues with adding a forward functionality to a custom dialog screen.
    I  tried to add a forward button on the WI screen , which in the background calls a fm that basically calls
    SWL_SELECT and then SWL_WI_FORWARD FM , for some reason the forwarding does not complete as expected .To explain further , suppose i am forwarding to X user the the WI still shows up in my inbox , and Workflow log shows both users assigned as agent( me and X) and though there is forwarded icon against user X  in the log -> view agent box . The Wi status is ERROR.
    example of error-
    Error handling for work item 000000055578
    Message no. SWF_RUN630
    This explians nothing to me but my guess is the issue is that WI gets completed because i execute it while forwarding it .
    Now if i get the WI id and input it to the above mentioned FM (se37) then it is forwards correctly.i can see the change in SWI1 log too. it is assigned correctly to user X with the forwarded icon and everything.
    So  i thought maybe i need to change the status of the Wi back to ready , but that is not possible, can't go back in status, Error again  .So i tried doing exit_cancelled in the WF , that does not work either , because that does not  forward the WI  atall.
    So my question is has anybody forwarded the WI  by providing an option on the WI execute screen? Is it possible using the SWW fm's ?
    Please let me know if anybody has any  solutions / ideas/ thoughts.
    I wish i could put in some screensshots , but anyways i hope you understand what i am saying , if not maybe i can elaborate further later.
    thank you ,
    Preeta

    Hi,
    Try with these FM's:
    SAP_WAPI_FORWARD_WORKITEM
    And for information: SAP_WAPI_FORWARDING_INFO_GET
    PS: Status change from COMPLETED to READY is not allowed/possible
    Regards,

  • Not able to functions in the expression editor

    Hi,
    I have Installed ODI "11.1.1.5".
    While doing the column mapping I am not able to see any default functions (which will be on bottom left side) like string functions,math functions.....etc in the expression editor....but I am able to see the all the tree structure on the right side like global variables,local variables,odiref functions....etc....
    Please help me out on this......
    regards,
    Sai.

    Hi Sai,
    In mapping property (when you select a mapping column in interface) > implementation tab > you can find pencil image, click the same icon it will open a Expression Edition window where you can find string functionality, math function etc
    Eg: in Expression Edition window you can find functions for String, expand String and you can find String functions. For Math, expand Operators and you can find Math operators like +, _, * etc.,
    Regards,
    Phanikanth

  • Satellite Pro M70-273: Functionality of the Express Media Player feature

    I bought a Toshiba Satellite Pro M70-273 "Limited Edition" (?) two weeks ago. The model number is PSM76E-00J00QDU, model name SPM76, production date 2006-02-21. According to the specifications I found in the online user's manual or in a folder with publication references
    "TEG October 2005, Art. N0. DSSSPM70 10/05NLBE", there is an "Express Media Feature" "on some selected models" ...
    It is not clear if yes or no, the model I bought has it. I have a "CD/DVD Button" that I use to launch my built-in dvd player (e.g. WinDVD), but this does not work as specified as "a standalone disc drive" that plays a dvd (film) without needing to startup Windows.
    To watch the dvd film, after using the CD/DVD button, I have to boot into Windows, login into Windows XP and when the desktop is started, the WinDVD screen will show the film.
    This is not what I'm expecting from a standalone dvd player. My old notebook has a "dj function" with which one can play a cd without booting into Windows, (or powering up the notebook), just by pressing a special key on the front . How about the promised feature of the Toshiba Satellite Pro?
    Is there an "Express Media Player" functionality at all? How can I check if the feature is provided? I used the setup provided, the first time I used my notebook. I don't wish to use the recovery cd rom provided unless it might be absolutely indispensable to install this missing feature.

    John
    With the laptop you should have received a restore/recovery disc. This contains utilities to either replace individual drivers and tools, plus a complete 'image' of the base build that your laptop has when it is built at the factory
    Although I have never used this, it is supposed to completely wipe all data and setings from ythe laptop by first formatting the hard drive then reinstalling the operating system and applications back to factory settings. From comments elsewhere on this forum one of the few options you can have when you do this is to choose to partition the hard drive into 2 sections, one for the Express Media player, the other for the operating system etc. (as the Express Media operates without booting into the operating system).
    The process is designed to be user friendly as it guides you through it, but as I said it does wipe EVERYTHING you have on the laptop currently, which is why I never bothered after I realised it wasn't installed. By the sounds of it though it won't be too much hassle for you to do that as you have data/settings you can easily transfer afterwards (Win XP has a tool to help with this)
    The Gigastore hub I have found very good, and likewise the Gigastore hard drive, although others have posted here about their laptops not 'seeing' the hard drive in certain conditions
    If you want anything further I check here fairly regularly, or you can mail me - [email protected]
    Steve

  • Evaluate throwing nQSError 42015 cannot function ship the expression

    Working in 11.1.1.6.6 on Windows 32-bit.
    Here's the formula for the one and only column on the analysis: evaluate('greatest(%1, %2)' as double, 12, 14)
    nqsconfig.ini shows EVALUATE_SUPPORT_LEVEL = 2;
    Here are the results:
    Odbc driver returned an error (SQLExecDirectW).
    Error Details
    Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65P
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 43113] Message returned from OBIS. [nQSError: 43119] Query Failed: [nQSError: 42015] Cannot function ship the following expression: Evaluate( greatest(%1, %2),12, 14) . (HY000)
    SQL Issued: SELECT 0 s_0, evaluate('greatest(%1, %2)' as double, 12, 14) s_1 FROM "A - Sample Sales" FETCH FIRST 65001 ROWS ONLY
    Can someone with an 11.1.1.6.6 system take about 30 seconds to create a column with that formula and tell me if it works for you?
    Thanks!

    Looks like its bug related, bug 13431823

  • Order records based on the parameters in IN clause -Single query.

    I have a query
    select * from table_name where id IN (100,250,400) ;
    and it returns results in the order they have been entered in the database.
    But I need to get the results in the order in which they are entered in the in clause Like
    Resultset for 100 ,resultset for 250 and so on.
    Is there a way in which I can arrange my resultset?

    user10412053 wrote:
    select * from table_name where id IN (100,250,400) ;
    Is there a way in which I can arrange my resultset?What about adding ORDER BY ID?
    select * from table_name  where id IN (100,250,400) ORDER BY ID;If you need a specific order you could always do something like this:
    ORDER BY DECODE(ID
         ,     150,1
         ,     200,2
         ,     100,3
         )Edited by: Centinul on Jul 10, 2009 7:32 AM

  • Connecting functions in the expression editor

    Hi everybody,
    what's wrong with this expression:
    If ( stringindexof( Local.string , Local.search_string ) == 0 , true , false)
    I get an "Invalid variable in expression If" error.
    Isn't it possible to connect functions together?
    or the more spectific question: How is it possible to get true or false if a string contains another one?
    Regards,
    Matthias

    Hi
    In the Conditional Action Block, you can map input1 to
    stringindexof( Local.string , Local.search_string ).
    If it will retun 0, means false. If it will retun 1, means true.

  • Why is my zero order hold not giving the expected result?

    I am trying to replicate the functionality of the Discrete Order Hold Function so that I can use it without having to have a ''Control and Simulation Loop''. The attachment desiredresult.vi shows an example of the Discrete Order Hold Function inside the ''Control and Simulation Loop''. The other attachment (zeroorderholdquestion.vi) shows my attempt at achieving the same result. I multiplied the while loop index by the sampling period to get the array index for the resampled y-output. I based this on my understanding of the formula for Discrete Order Hold given under http://zone.ni.com/reference/en-XX/help/371894G-01/lvsim/sim_dzoh/#details.
    However, I am having difficulty getting the frequency of the waveforms before and after resampling to match up. (See attachment for clarity on what I mean by this). Any suggestions on what I am doing wrong?
    Solved!
    Go to Solution.
    Attachments:
    zeroorderholdquestion.vi ‏207 KB
    desiredresult.vi ‏244 KB

    here i wrote something maybe similar to simulate a multi channel, mux, sample and hold with cross talk
    http://forums.ni.com/t5/LabVIEW/How-can-I-create-and-sample-and-hold-circuit-in-Labview/m-p/2407256#...
    If samplerate and hold time have a clean ratio  you just need the decimate vi
    another simple version:
    Greetings from Germany
    Henrik
    LV since v3.1
    “ground” is a convenient fantasy
    '˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'

  • Function calling the java code

    I have a java code that returns the size of the file name. I have created a pl/sql function that calls the method in the java class.
    The problem I face is , when I try to call the function using the command "CALL f_size('C:\Batch\Query.sql')into :leng " , the error comes reporting that
    "No method func in class fSize ".
    I have given both the java& pl/sql code. Can anyone help me out?
    import java.io.*;
    public class fSize {
    public static long func(String s)
    File file = new File(s);
    long length = file.length();
    return length;
    create or replace function f_size(path varchar2) return number
    as language java
    name 'fSize.func(String) return java.lang.Long';

    What version of the database are you runnning?
    If Oracle 9.2 or later, no need for java code. Use UTL_FILE.FGETATTR procedure.
    FGETATTR Procedure
    This procedure reads and returns the attributes of a disk file.
    Syntax
    UTL_FILE.FGETATTR(
       location    IN VARCHAR2,
       filename    IN VARCHAR2,
       exists      OUT BOOLEAN,
       file_length OUT NUMBER,
       blocksize   OUT NUMBER);
    Parameters
    Table 95-24 FGETATTR Procedure Parameters
    Parameters Description
    location
    Directory location of the source file, a DIRECTORY_NAME from the ALL_DIRECTORIES view (case sensitive)
    filename
    The name of the source file to be copied
    exists
    A BOOLEAN for whether or not the file exists
    file_length
    The length of the file in bytes. NULL if file does not exist.
    blocksize
    The file system block size in bytes. NULL if the file does not exist.
    SQL> create or replace and compile java source named "fSize" as
      2  import java.io.*;
      3  public class fSize {
      4      public static long func(java.lang.String s)
      5      {
      6          File file = new File(s);
      7          long length = file.length();
      8          return length;
      9      }
    10  };
    11  /
    Java created.
    SQL> show errors
    No errors.
    SQL> create or replace function f_size(path varchar2) return number
      2  as language java
      3  name 'fSize.func(java.lang.String) return java.lang.Long';
      4  /
    Function created.
    SQL>
    SQL> select f_size('C:\sqlnet.log') from dual ;
    F_SIZE('C:\SQLNET.LOG')
                        762
    1 row selected.
    SQL>
    SQL>
    SQL> disconnect
    Disconnected from Oracle9i Enterprise Edition Release 9.2.0.3.0 - Production
    With the Partitioning, OLAP and Oracle Data Mining options
    JServer Release 9.2.0.3.0 - Production
    SQL>

  • SSRS 2008 Work order report , in sub total donot want to add the 0 level in ( how to add the expression )

    working in Work order report, this report has different level , for example
    0 level transaction
    1 level transaction
    in subtotal don't want to add 0 level transaction,
    when I did the sub total it added all the level , so in sub total amount double up because of that
    how to add the expression so I can the level 0 take out from sub total , so it does not include in sub total
    can some one please help me with this
    thanks in advance

    Hi Simon_ Hou
    I tried the expr the way you suggested , it did not work  getting  error message,  the exp I added is below
    this the expression I added on sub total where is highlighted in Yellow,  under Cost amount column,
    I really appreciate the help
    =Sum(IIF(Fields!COLLECTREFLEVEL.Value=
    "0",0,Fields!CostAMOUNT.Value),"DataSet1")
    please see below my QUERY, can you please help and let me know what I did wrong in my exp
    SELECT        PRODTABLE.PRODID, PRODCALCTRANS.COSTGROUPID, PRODTABLE.QTYCALC, PRODTABLE.PRODSTATUS, PRODCALCTRANS.COSTAMOUNT,
                             PRODCALCTRANS.COSTMARKUP, PRODCALCTRANS.REALCOSTAMOUNT, PRODCALCTRANS.CALCTYPE, PRODTABLE.DATAAREAID, PRODCALCTRANS.KEY3,
                             PRODCALCTRANS.CONSUMPVARIABLE, PRODCALCTRANS.REALCONSUMP, PRODTABLE.ITEMID, PRODTABLE.SCHEDDATE, PRODTABLE.FINISHEDDATE,
                             PRODCALCTRANS.KEY1, PRODCALCTRANS.TRANSDATE, PRODCALCTRANS.QTY, PRODCALCTRANS.KEY2, PRODCALCTRANS.COLLECTREFLEVEL,
                             PRODCALCTRANS.LINENUM
    FROM            PRODTABLE INNER JOIN
                             PRODCALCTRANS ON PRODTABLE.PRODID = PRODCALCTRANS.PRODID AND PRODTABLE.DATAAREAID = PRODCALCTRANS.DATAAREAID
    WHERE        (PRODTABLE.PRODSTATUS = 7) AND (PRODTABLE.DATAAREAID = N'AR1') AND (PRODTABLE.ITEMID = @itemid) AND
                             (PRODTABLE.FINISHEDDATE >= @Paramfromdate) AND (PRODTABLE.FINISHEDDATE <= @Paramtodate)

  • The functions in Teststand "express browser dialog"

      Teststand provides several functions in Teststand "express browser dialog" to facilitate calculations. For example, I can use the function of "SetNumElements" to get the size of certain arrary. However, compared with in CVI, it seems that that's far away from engough.For example, there's no functions like advanced analysis library. 
      I'm wondering whether Teststand has provided much more functions than what are already listed in "express browser dialog", if yes, where can I get a reference manual to find the functions that I need.
      In order to make it clearer, the meaning of ""express browser dialog" is shown in attached file.
    Thanks a lot!
    Jacky
    Attachments:
    screenshot.gif ‏16 KB

    I want to comment that Dennis is exactly right about the intent of TestStand.
    TestStand is meant to connect and augment code you write in LabVIEW, CVI, and/or Visual Studio, not to replace it. Also, what he refers to as putting functionality in a "custom step" can mean just calling a VI, DLL, server, or assembly from a TestStand step, not necessarily the similarly named but more involved process of creating a custom step type. 
    Custom step types are good for wrapping a function or VI with a user friendly configuration dialog to facilitate re-use. However, in many cases it is more than adequate to simply passing arguments to a code module you call directly.
    It is certainly true that having a large number of code module files can make it more difficult to move a sequence without forgetting to include one of its dependencies. The TestStand deployment tool is designed to help mitigate this problem by identifying dependencies and packaging them all into one directory or installer.

  • Windows 8.1 update added a recovery partition now the recovery function won't work.

    After the latest 8.1 update, an extra recovery partition as added to the C: drive.  A few other things got messed up so i decided to reset to factory original.  To my surprise the HP Recovery Tools no longer work.  If I hit F11 I get a 0xC0000225 error where the device isn't avaialble.  I can see the recovery partition with the WINRE partition but I think the computer doesn't know where the partition is.  I'm on an DV6-7211 with Windows 8.1 update.  Anyway to tell the F11 function where the WINRE drive is?  Since HP didn't seem fit to give me recovery media in my box I have no way to revert back to factory original.  SInce there is a liscense for Windows 8 included, I don't feel like spending the money to buy a new operting system.  Recovery media is way too expesive.

    You might try making a Recovery set with the software included on your machine-though it may not work now either. Creating Recovery Media >> Windows 8
    ******Clicking the Thumbs-Up button is a way to say -Thanks!.******
    **Click Accept as Solution on a Reply that solves your issue to help others**

  • Is there any function for the Batch assignment of production order

    There is one function in the CO02(Production Order) which named "BATCH ASSIGNMENT".
    CO02 -> Components -> Batch assignment
    But the function only can assign one material one time.
    This is very boring.
    So we are planning to create a new program for it.
    But I can't find any function moudle or BAPI can be used.
    Could anybody give me some function moudle or BAPI for it?
    Tks

    Hello~~~Is there any body here?

Maybe you are looking for

  • Please help me diagnose my computer! I'm getting quite desperate...

    Hello, I've had my macbook pro (snow leopard) for 2 years now. I rarely download anything on it, nor do I save files other then school documents and pictures. I had 230GB out of 256 GB still remaining. Everything was going smoothly, when quite sudden

  • Automatic Credit with changes to specific Customers

    Dear Experts, I have a situation in credit management. Find below requirements and my mapping. Need advice to continue further. Requirements: 1)Including Existing Customers, I have to set a credit value as zero automatically even for new customers. 2

  • Anyone having a problem with google?

    Having a problem using google for last 3 days..search,mail etc.Is there a problem with the website?

  • Store takes forever to load and when it does images fail and text is not setup right?

    So I thought I had troubles loading the store with itunes, but now I notice it does load just takes forever and when it does the images are broken and the text is linear, not spread correctly like the page would have set it up.  I have tried all the

  • CS4- IDFile & IScriptRunner - Reg.

    Dear All Here I paste the below code, while I'm running in the ID-CS4 then it will immediatly showed Error and Crash the InDesign Application. Please any one can suggest me, what I made the mistake in the below code: I tried so many ways I can't get