How is added this clause to  a standard VO query... ?

Hi friends,
[AppsR12]
I've seen a peculiar behaviour while executing a LOV query:
Standard LOV query is:
select class_code, description, class_code||' - '||description display ,CLASS_CATEGORY, START_DATE_ACTIVE, END_DATE_ACTIVE
from pa_class_codes
where trunc(sysdate) between trunc(start_date_active) and nvl(trunc(end_date_active), trunc(sysdate))
Imagine you enter into the LOV screen an press the Go button.
Query is executed and all records are retrieved... OK
The problem wtih this LOV (ProjectClassCodesVO) is that if I have a look through "About this page" link and see the query, it is:
SELECT * FROM (select class_code, description, class_code||' - '||description display ,CLASS_CATEGORY, START_DATE_ACTIVE, END_DATE_ACTIVE
from pa_class_codes
where trunc(sysdate) between trunc(start_date_active) and nvl(trunc(end_date_active), trunc(sysdate)) ) QRSLT WHERE (( UPPER(CLASS_CATEGORY) = :1 AND (CLASS_CATEGORY like :2 OR CLASS_CATEGORY like :3 OR CLASS_CATEGORY like :4 OR CLASS_CATEGORY like :5)))
It's adding this condition automatically:
(( UPPER(CLASS_CATEGORY) = :1 AND (CLASS_CATEGORY like :2 OR CLASS_CATEGORY like :3 OR CLASS_CATEGORY like :4 OR CLASS_CATEGORY like :5)))
I can't be able to locate why/where it's added and what kind of types are these new parameters
The problem is that if we want to extend the original VO and pass it two parameters (:1 and :2) in the query , after pressing the Go button, this time it does not give results....
I think it could be due to :1 and :2 parameter appear two times, one for my new parameter and the other for the added automatically..
Ideas?
Thanks.

Hi Summit,
thanks for the comments but.. I've already had tried to add my variables as :6 and :7 (i.e.) and it doesn't recognizes them.... (OAF must first check for query parameters and after add the new where clause with the :1 to :5)
I think I can't do the mappings because it would imply to modify xml.. and that's not possible (it's an standard one)...
The query added is explained here:
http://radio.weblogs.com/0118231/stories/2003/03/07/viewObjectsViewDefinitionsAndRuntimeWhereClauseHandling.html
but I continue without knowing how to pass my two parameters...
Thanks!

Similar Messages

  • How do I get Flash working under 'Standard User' (IE9, Windows 7 x64)?

    I have a very irritating problem that I can't find anyone to help me  with.
    In Internet Explorer 8 (and now IE9), I can view flash videos fine (Youtube, Hulu, etc).  However,  when it comes to embedded youtube flash videos on various websites, all I get is white boxes where  the video would be.  However, if I log in via my Admin user account on Windows 7 and launch  IE, the embedded video plays fine.  This issue is present in both the 32-bit and  64-bit browsers.
    For the life of me, I can't figure out how to make this work with my standard  user account.  I do not want to change my account back to Administrator for  security reasons.  Let me tell you what I've done so far:
    1) Uninstalled All Flashplayers using the uninstall tool as mentioned in  other articles.
    2) Reinstalled using the 'Run as Administrator' option.
    3) Used a slightly older version of Adobe Flash, to rule out problems with  their most recent release.
    4) Ran System File Checker utility
    I'm out of ideas... please assist.
    Many thanks!!

    Under Global Settings (http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager03.htm l), check 'allow 3rd-party Flash content...'.
    If that doesn't help, see this post http://forums.adobe.com/message/3165341#3165341

  • I registered my new iPhone 5s to my usual Apple ID, however it isn't showing in my devices when I log in. I tried to register it by adding a new device, but it tells me it's already registered to a different Apple ID. I'm really not sure how to fix this.

    I registered my new iPhone 5s to my usual Apple ID, however it isn't showing in my devices when I log in. I tried to register it by adding a new device, but it tells me it's already registered to a different Apple ID. I'm really not sure how to fix this. I only have the one Apple ID and the phone is brand new, purchased directly from Apple.
    When I check on the phone itself (iCloud and App Store settings) the Apple ID is correct. I'm not sure where else to check.
    Whilst setting up the phone, it prompted me to register, which I did. Then when connecting to my laptop through iTunes it prompted me again so I registered again. I even got a confirmation email to the email address associated with my Apple ID that the registration was successful.
    How can I add my iPhone 5s to the list of devices on the correct Apple ID?
    Thanks in advance for any advice.

    Found the answer to my question after posting (in related discussions)
    https://discussions.apple.com/message/12331666#12331666
    Will call Apple Care as soon as I can.

  • I used to drag and drop newly loaded CD's from Recently Added to one of my iPod Classic playlists. I have no idea how to do this with the new version of iTunes. I thought perhaps checking Sync might give me a clue but it warned me Syncing would wipe conte

    I used to drag and drop music loaded from CD's from the Recently Added folder to a Playlist on my iPods Classic. Can't see how to do this with new iTunes version. Probably need to sync somehow but when I checked on Sync it warned me it would wipe out my iPod contents. Don 't know why Apple makes something that used to be simple so difficult. Can't even figure out how to display both my library and iPod contents on same screen.

    Hey joshuafromisr,
    If you resintall iTunes, it should fix the issue. The following document will go over how to remove iTunes fully and then reinstall. Depending on what version of Windows you're running you'll either follow the directions here:
    Removing and Reinstalling iTunes, QuickTime, and other software components for Windows XP
    http://support.apple.com/kb/HT1925
    or here:
    Removing and reinstalling iTunes, QuickTime, and other software components for Windows Vista or Windows 7
    http://support.apple.com/kb/HT1923
    Best,
    David

  • Adobe Acrobat Standard 9.5 Install Error:  "Error applying transforms please ensure specified transform paths are valid".  Any ideas on how to fix this?

    I had Acrobat Standard 9.5 on a laptop that broke.  Adobe Acrobat Standard is paid for and all I need. I had to get a new PC (Windows 8.1) and I did downloaded Standard 9.5 but when I went to install it the installer gave me an “Error applying transforms please ensure specified transform paths are valid”.  Any ideas on how to fix this?

    Rahul,
    No error numbers other than the message I mentioned previously.
    I tried the transforms repair and it reported no Acrobat product (correct, none yet installed) or no administrative privileges (I am the administrator and have done previous administrative actions).
    When I unzip the Acrobat file this is what is in the setup ini file:
    [Startup]
    RequireOS=Windows XP
    RequireMSI=3.0
    RequireIE=6.0.2600.0
    [Product]
    msi=AcroStan.msi
    Languages=1033;1031;1036
    1033=English (United States)
    1031=German (Germany)
    1036=French (France)
    CmdLine=TRANSFORMS="AcroStan.mst"
    [Windows XP]
    PlatformID=2
    MajorVersion=5
    MinorVersion=1
    ServicePackMajor=2
    [MSI Updater]
    Path=WindowsInstaller-KB893803-v2-x86.exe
    Thoughts?
    Thanks again,
    Tom

  • After adding MIME type in sharepoint server, file click opens a popup for file to open as readonly or edit, How to avoid this popup

    After adding MIME type in sharepoint server,
    File click opens a popup for file to open as readonly or edit, How to avoid this popup
    Popup Details:
    You are about to open --> File Details
    How would you like to open --> ReadOnly, Edit
    OS: Window 7
    Jagadish

    this is likely caused by the library requiring check-out/check-in. For a file to be editable, the file needs to be checked out.
    Scott Brickey
    MCTS, MCPD, MCITP
    www.sbrickey.com
    Strategic Data Systems - for all your SharePoint needs

  • How to change the order by clause of a standard VO in OAF

    Hi All,
          I need to change only the order by clause of a standard VO (Which is attached to a messageChoice item).
    Steps followed:
    1)Created a custom VO by extending the standard VO .
    2)VO Impl class files are not generated as seeded VO has no such class files.
    3)Created a substitution
    4)Imported it
    5)When I try access the specific page, getting Sys Admin error without any clue about the error.
    Even I tried to create the custom VO without extending the std VO ,
    Still getting the same error .
    Please provide your suggestions on this.
    Thanks,
    Thavam

    When I set the FND:Diagnostics profile option , I could see what was the exact error . It was SQL Wrapper exception error.
    The VO which is extended , has a dynamic where clause with bind variables. The binding style of the extended VO does not match with seeded VO. It works when the binding style is changed.
    Thanks,
    Thavam

  • I have to re-install acrobat standard 9 becaus of 'unable to extend license procedure (148:3)'. Where can I download? Or better to upgrade to XI (what is the price and how to do this)

    I have to re-install acrobat standard 9 becaus of 'unable to extend license procedure (148:3)'. Where can I download? Or better to upgrade to XI (what is the price and how to do this)

    Hi riffpizcy,
    Error 148:3 is a licensing error.
    Try following the steps mentioned in the KB: Error "Licensing has stopped working" | Windows
    You can download Acrobat 9 Std. from: https://files.acrobat.com/a/preview/8d640488-4a92-4f7d-b50b-d8eb7f96bff8
    You can upgrade from Acrobat 9 to Acrobat 11 Pro at $199 USD
    Please refer: Buying guide | Adobe Acrobat XI Pro  for more information.
    Regards,
    Rave

  • I erased all the contacts, apple ID and icloud account in my old 4s and gave it to someone. However, whatever contact that someone has saved in my old 4s phone has added in my new 5sphone. Does anyone know how to solve this?

    I erased all the contacts, apple ID and icloud account in my old 4s and gave it to someone. However, whatever contact that someone has saved in my old 4s phone has added in my new 5s phone. Those are not my contact and I don't want them in my new phone. Does anyone know how to solve this problem?

    Ln the old iPhone, -> What to do before selling or giving away your iPhone, iPad, or iPod touch

  • Can Any one tell me. System considering the Sales District also in Delivery Split which is not in standard. How to resolve this. Please help me

       Hi
    Can Any one tell me. System considering the Sales District also in Delivery Split which is not in standard. How to resolve this. Please help me

    Dear Srikanth,
    I am not sure, if my answer will satisfy you, but anyway I will try:
    Field Sales District is technically called BZIRK. In delivery structure is this field located in header (table LIKP), what cause split, if origin document (Sales Order) has different Sales District in some positions. This is standard program behavior. Basically it shouldn't happen, as value is taken from customer master (Sold-to Party) and copied to header and items of sales document. But user can manually changer for particular items.
    Well, to solve situation you have few ways:
    1. Do not allow users to change value on items - can be managed by organizational decision or by authorization concept.
    2. If there is a reason to have different Sales District in items, then it can be managed in in routines for copy control between sales and delivery documents (delete value of BZIRK for all items for instance). But then will be this information lost for further usage. It seems to me to invoice is value copied directly from sales order (field VBRP-BZIRK_AUFT) then it mustn't be a critical for analyses.
    3. Your situation also can happen if you wants to collect more sales documents to one delivery. In this case can be that Sales District is different for same customer in different sales order (even seems to be little bit strange). Then solution from point 2 can help as well, I believe.
    Best Regards
    Arnost

  • HT1386 purchased new songs from itunes and when I clicked on the Sync button those new songs are not added to my ipod nano. Have any idea how to resolve this problem?

    purchased new songs from itunes and when I clicked on the Sync button those new songs are not added to my ipod nano. Have any idea how to resolve this problem?

    Do you have the right boxes checked to sync the music to your iPod?
    iTunes: Syncing media content to iOS devices and iPod
    Do they play in iTunes on the computer?
    Have you successfully synced music form this iTunes library/computer before?

  • Hi, I have added on Musique finder my old CD and want now to add them on my iTunes, please, could you explain to me step by step how to do this? Mant tks in advances for your kind help

    Hi, I have added on Musique finder my old CD and want now to add them on my iTunes, please, could you explain to me step by step how to do this? Mant tks in advances for your kind help

    Correct, it will only be one-level, the Photos app doesn't support sub-albums - the sub-folders photos will be included in the parent's album.
    If you select My Pictures at the top of the Photos tab when syncing, then you should get an album for each folder that is directly under it - so if I understand correctly what you described then that would mean an album for 2013, one for 2012 etc. And each of those should include all the photos in the subfolders under it - so 2013 would include the photos from the events and months subfolders under it.
    You can't sync them separately, only the contents of the last sync remains on the iPad, by not including a folder in the next photo sync you are effectively telling iTunes that you no longer want that folder/album on the iPad so it will be removed and be replaced by the contents of the new sync (you can't delete synced photos directly on the iPad, instead they are deleted by not including them in the next sync).
    The app that I use, Photo Manager Pro, allows you to select and copy a folder (via FTP), but you would need to select each subfolder individually, which if you have a lot would be time-consuming (I think that if you select '2013' it would ignore the folders beneath it).

  • Adding "where" clause to VO

    Gurus,
    It's been a while since working with OAF. I have forgotten what I need to do to code this properly:
    The following "where" clause needs to be added to my AccountsVO:
    select distinct cont_cd||' - '||customer acctdesc,
    cont_cd
    from spldat.spl_account_map sam,
    spldat.spl_disposition_accts sda
    where sam.cont_cd not in (select acct_number
    from spldat.spl_disposition_accts
    where disp_code = :1 )
    order by 1
    Unfortunately, the standard way of adding a "where" condition in the VO won't work for the query above.
    public void initHandleAcctValidationVO(String dispCode)
    if ((dispCode != null) &&
    (!("".equals(dispCode.trim()))))
    String dnum = null;
    try
    dnum = new String(dispCode);
    catch(Exception e)
    throw new OAException("AK", "FWK_TBX_INVALID_EMP_NUMBER");
    setWhereClause("DISP_CODE = :1");
    setWhereClauseParams(null); // Always reset
    setWhereClauseParam(0, dnum);
    System.out.println("final value of Desig Code>>"+dnum);
    executeQuery();
    I remember that there is a way to define the bind variable INSIDE the VO query but forgot how to do this.

    Still getting an exception error
    oracle.apps.fnd.framework.OAException: oracle.jbo.SQLStmtException: JBO-27122: SQL error during statement preparation. Statement: select distinct cont_cd account,
    cont_cd||' - '||customer acct_desc
    from spldat.spl_account_map
    where cont_cd not in (select acct_number
    from spldat.spl_disposition_accts
    where disp_code = :1)
    order by 1
         at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:891)
         at oracle.apps.fnd.framework.webui.OAPageErrorHandler.prepareException(OAPageErrorHandler.java:1145)
         at oracle.apps.fnd.framework.webui.OAPageBean.renderDocument(OAPageBean.java:2928)
         at oracle.apps.fnd.framework.webui.OAPageBean.renderDocument(OAPageBean.java:2725)
         at OA.jspService(OA.jsp:48)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
         at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
         at java.lang.Thread.run(Thread.java:534)
    ## Detail 0 ##
    java.sql.SQLException: ORA-01008: not all variables bound
         at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
         at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:289)
    Here's my AM
    public void handleAcctValidation(String dispCode)
    AccountsVOImpl vo = getAccountsVO1();
    vo.setWhereClause(null);//Always Reset
    vo.setWhereClauseParam(0,dispCode);
    vo.clearCache();
    vo.executeQuery();
    Here's my VO query
    select distinct cont_cd account,
    cont_cd||' - '||customer acct_desc
    from spldat.spl_account_map
    where cont_cd not in (select acct_number
    from spldat.spl_disposition_accts
    where disp_code = :1)
    order by 1
    My AccountsVOImpl just contains constructor
    public class AccountsVOImpl extends OAViewObjectImpl
    * This is the default constructor (do not remove)
    public AccountsVOImpl()
    Any ideas?

  • I have a Macbook Pro 15" that is three and a half years old.  Although it has slowed a bit, it still runs well and runs every program I need. Any tips for how to keep this old computer running well and in good health?

    I have a Macbook Pro 15" that is three and a half years old.  Although it has slowed a bit, it still runs well and runs every program I need. Any tips for how to keep this old computer running well and in good health?
    I have a 250 gig drive and try to keep at least 100 gigs unused at all times, 4 GB 667 MHz DDR2 SDRAM memory, back up with Time Machine and CrashPlan, and have OS X 10.7.3.
    This was my first Mac since an old Apple II GS.  After that I used PC's and got really good at reformatting, replacing drives, reinstalling, defragging, resolving software conflicts, etc.  Since switching back to Macs (five in my extended family now), I haven't had to do any of those things. So, although, the cost is three times as much, the aggrevation has been ten times less.
    I'm retired and living on a fixed income and would therefore like to keep this computer running as opposed to constatntly upgrading.
    That said, any tips?
    Thanks
    It does have a crack on the left of the screen case about 3/4'' up from the bottom.  I've posted that as another question.

    Kappy's Personal Suggestions for OS X Maintenance
    For disk repairs use Disk Utility.  For situations DU cannot handle the best third-party utilities are: Disk Warrior;  DW only fixes problems with the disk directory, but most disk problems are caused by directory corruption; Disk Warrior 4.x is now Intel Mac compatible. Drive Genius provides additional tools not found in Disk Warrior.  Versions 1.5.1 and later are Intel Mac compatible.
    OS X performs certain maintenance functions that are scheduled to occur on a daily, weekly, or monthly period. The maintenance scripts run in the early AM only if the computer is turned on 24/7 (no sleep.) If this isn't the case, then an excellent solution is to download and install a shareware utility such as Macaroni, JAW PseudoAnacron, or Anacron that will automate the maintenance activity regardless of whether the computer is turned off or asleep.  Dependence upon third-party utilities to run the periodic maintenance scripts was significantly reduced since Tiger.  These utilities have limited or no functionality with Snow Leopard or Lion and should not be installed.
    OS X automatically defragments files less than 20 MBs in size, so unless you have a disk full of very large files there's little need for defragmenting the hard drive. As for virus protection there are few if any such animals affecting OS X. You can protect the computer easily using the freeware Open Source virus protection software ClamXAV. Personally I would avoid most commercial anti-virus software because of their potential for causing problems. For more about malware see Macintosh Virus Guide.
    I would also recommend downloading a utility such as TinkerTool System, OnyX 2.4.3, or Cocktail 5.1.1 that you can use for periodic maintenance such as removing old log files and archives, clearing caches, etc.
    For emergency repairs install the freeware utility Applejack.  If you cannot start up in OS X, you may be able to start in single-user mode from which you can run Applejack to do a whole set of repair and maintenance routines from the command line.  Note that AppleJack 1.5 is required for Leopard. AppleJack 1.6 is compatible with Snow Leopard. There is no confirmation that this version also works with Lion.
    When you install any new system software or updates be sure to repair the hard drive and permissions beforehand. I also recommend booting into safe mode before doing system software updates.
    Get an external Firewire drive at least equal in size to the internal hard drive and make (and maintain) a bootable clone/backup. You can make a bootable clone using the Restore option of Disk Utility. You can also make and maintain clones with good backup software. My personal recommendations are (order is not significant):
    Carbon Copy Cloner
    Data Backup
    Deja Vu
    SuperDuper!
    SyncTwoFolders
    Synk Pro
    Synk Standard
    Tri-Backup
    Visit The XLab FAQs and read the FAQs on maintenance, optimization, virus protection, and backup and restore.
    Additional suggestions will be found in Mac Maintenance Quick Assist.
    Referenced software can be found at CNet Downloads or MacUpdate.
    Be sure you have an adequate amount of RAM installed for the number of applications you run concurrently. Be sure you leave a minimum of 10% of the hard drive's capacity as free space.
    Adding more RAM, if feasible, and a new, faster hard drive may also help pep it up a little.

  • How to add 1 more column in standard portal UWL and map the values.

    Hi
    I have one issue/requirement, please help me out on that also.
    In portal UWL, i want to add one more column TICKET ID COLUMN, and ticket id value I  will be putting as work item ID of abap Workflow, so whenever  approver opens his portal UWL, in first column i want to show ticket ID say 00012345, so how to add this ticket ID column in standard portal UWL and how to put/map  value of work item in that column.
    My idea behind this is, when ever say employee wants to know the status about his ticket ID, he can simply ask his manager regarding the ticket status by referring to that ticket ID which manager can easily find in his portal UWL in that extra TICKET ID COLUMN .
    Do I have to change anything in SAP inbox also ? Do i have to add 1 more colum in sap R/3 inbox also ? and will adding 1 more colum in sap inbox (R/3 inbox), will create automatically one more ticket ID colum in portal UWL also ?
    please let me know , as i do not want to add 1 extra column in R/3 inbox, just i want in portal UWL extra ticket ID column should come and i want to put workitem ID generated at the start of workflow, in that colum in portal UWL
    please help me on this.
    Thanks...
    Edited by: User Satyam on May 29, 2011 6:16 AM

    Hi Satyam,
    These are called custom attributes.  Here is a powerpoint that may be able to assist you with the documentation that the other poster gave you too.
    Always remember too when you make a change on the backend R/3 side, you must reregister your UWL connector.  And yes, the column must be available on the backend R/3 side.  We can't create on the fly columns in the UWL, that have no reference to the backend system in this case.
    Beth Maben
    EP - Senior Support Consultant II
    AGS Primary Support
    Global Support Centre Ireland
    Please see the UWL Wiki @
    https://www.sdn.sap.com/irj/scn/wiki?path=/display/bpx/uwl+faq  ***

Maybe you are looking for

  • Bpm block deadline branch not triggering

    For some reason, in one of my environment, the bpm block step's deadline branch doesn't get triggered. I couldn't figure it out. I setup a 1 minute limit and it never calls the deadline branch. Same thing works in my dev environment. please help.

  • Dblink_encrypt_login, So what in Oracle 10G?

    Hi using of dblink_encrypt_login= true to encrypt the login that is passed from the local to the remote database over the database link. For Oracle 10G& 11G this parameter is no longer used, So, How can encrypt login from local to remote db over the

  • How to set serial no in jasper report

    Hi friends, I am using jasper report in my application. In the table has 4 fields like code,name,address,phone number. If i generate the report i need to display the serial number like1,2,3.... for each record. I don't know how to set. So please help

  • Deploy EJB: IIOP &MTS needed?

    Hi JDev Team! Is it necessary to have an IIOP connection to the database if I4m not deploying my EJB in the d.b. but in my application server? And, if so, the d.b. has to be configured in MTS mode? Thanks for all.

  • Possible to upgrade a G5 to Intel? or trade G5 for an Intel iMac?

    I gave my wife my G5 tower (10.4.11); it's pretty beefy but increasingly the software she has is "Intel only". Is it possible to change out the motherboard and make it into an Intel (while keeping the hardware) or is that a pipe dream? If it's imposs