Trying to use a query as the p_value in a SELECT_LIST_FROM_QUERY default

Hi,
I have a SELECT_LIST_FROM_QUERY and the select for the LIST shows the list as ought to. The select for the p_value does not set the default to the value I want. If I hardcode to 132, as the query should retrieve, it sets the default as should.
I replaced the query with 'select 132 from dual' and that does not work either.
I guess it is trying to use the LITERAL string as the default.
How do I use a query to supply the default for the list?
APEX_ITEM.SELECT_LIST_FROM_QUERY(24,
'select RMSETUPSTLES from MR_RM_REQUIREMENTS
where RM_REQ_ID = RM_REQ_ID',
'select substr( substr(FILE_NAME,instr(FILE_NAME,''/'')+1),1,LENGTH(substr(FILE_NAME,instr(FILE_NAME,''/'')+1))-4) D, FILE_CATALOG_ID R from FILE_CATALOG C, BH_XREF_IDS X WHERE C.FILE_CATALOG_ID = X.CHILD_ID and PARENT_ID = ''1'' AND PARENT_TYPE = ''ROOMSETUP'' ORDER BY SORT_ORDER','','YES','','- Select -','','','NO') "RMSETUPSTLES2",

The problem was the p_value need ( ) around the select instead of ticks ' '.
APEX_ITEM.SELECT_LIST_FROM_QUERY(24,
(select REQ.RMSETUPSTLES from MR_RM_REQUIREMENTS REQ
where REQ.RM_REQ_ID = M.RM_REQ_ID),
'select substr( substr(FILE_NAME,instr(FILE_NAME,''/'')+1),1,LENGTH(substr(FILE_NAME,instr(FILE_NAME,''/'')+1))-4) D, FILE_CATALOG_ID R from FILE_CATALOG C, BH_XREF_IDS X WHERE C.FILE_CATALOG_ID = X.CHILD_ID and PARENT_ID = ''1'' AND PARENT_TYPE = ''ROOMSETUP'' ORDER BY SORT_ORDER','','YES','','- Select -','','','NO') "RMSETUPSTLES2",

Similar Messages

  • Error when trying to use this query in report region

    Hi ,
    I am getting "1 error has occurred
    Query cannot be parsed within the Builder. If you believe your query is syntactically correct, check the ''generic columns'' checkbox below the region source to proceed without parsing. ORA-00933: SQL command not properly ended"
    while trying to use this query in reports region .
    Pls help.
    Thanks ,
    Madhuri
    declare
    x varchar2(32000);
    begin
    x := q'!select (first_name||' '|| last_name)a ,
    count(distinct(session_id)),manager_name
    from cappap_log,
    MIS_CDR_HR_EMPLOYEES_MV
    where DECODE(instr(upper(userid),'@ORACLE.COM',1),0,upper(userid)||'@ORACLE.COM',upper(userid)) = upper(email_address)!';
    if :P1_ALL = 'N' then
    x:= x||q'!and initcap(first_name ||' '|| last_name)=:P1_USERNAME!';
    else
    x:= x||q'!and initcap(first_name ||' '|| last_name)like '%'|| :P1_USERNAME||'%'!';
    end if;
    if :P1_APP_NAME = '%' then
    x:= x||q'! and flow_id like '%'!';
    else
    x:= x||'flow_id = :P1_APP_NAME';
    end if;
    x:= x||q'! group by first_name||' '|| last_name , manager_name!';
    return x;
    end;

    Hi, I am actually stuck here. Can you please let me know which among these is the higher version.
    1) Final Release 3.50
       Version 3500.3.016
    2) Final Release 3.50
        Version (Revision 481)
    Because it is working fine in the 1st one whereas its throwing that error pop-up in 2nd one(as soon as we select the Change query global definition option) .

  • Trying to use laf project for the first time

    hi all , i need help , please
    i am trying to use laf project for the first time as i said , and i want help on
    the installation process
    step by step please , i am soo junior here
    i've just downloaded the zip file as the site said (http://fdtool.free.fr/LAF/doc/implementation.htm)
    please go to this url and declare the steps to me
    thanks in advance

    The Forms Look and Feel Project is not an Oracle product. This product was developed by Francois Degrelle. Francois has posted numerous times in this forum that if you need help with the LAF you have to go to the Oracle Forms Look & Feel Project web site or his PJCs and Java Beans Forum for support.
    Craig...

  • "500 internal server error" when trying to use F4 help in the variable sele

    Hi Experts,
    I am getting "500 internal server error" when trying to use F4 help in the variable selection screen (in WAD).
    How could this be resolved?
    Quick reply would be very helpfull.
    Thanks in advance !!

    It seems you are using wrong client ID. Make sure your logon pad has right details. You should verify this with your basis team.
    If the problem persists then try re-installing. But before you do that you can execute sapbexc.xla which is in the c:\program files\sap\bw. Type c:\ in cell c3 and click "start button". Any red flag means you have wrong version dll/ocx on your local drive, in that case you should reinstall with right patches.
    if this solution helps u then pls assign points

  • HT201407 I bought my iphone 4 in the UK and I am trying to use a sim in the UAE and it doesn't work.  It says that the sim is not valid, how can I get this unlocked?

    I bought my iphone 4 in the UK and I am trying to use a sim in the UAE and it doesn't work.  It says that the sim is not valid, how can I get this unlocked?

    You are saying the phone is locked, but then you are saying there is no provider. The two situations cannot peacefully coexist. Contact Apple and they can tell you if the phone is locked and if locked to which provider the phone is locked. People on this board are not Apple employees and cannot get you that information.

  • I am trying to use Adobe Color and the screen won't load

    I am trying to use Adobe Color and the screen won't load. All I get is the 4 spinning squares in the center of the screen. I Am using a Mac. Any help would be much appreciated.

    Try:
    - Reset the iOS device. Nothing will be lost
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Go to Settings>Store and sign out and sign back in.
    - Reset all settings
    Go to Settings > General > Reset and tap Reset All Settings.
    All your preferences and settings are reset. Information (such as contacts and calendars) and media (such as songs and videos) aren’t affected.
    - Restore from backup
    - Restore to factory settings/new iOS device.

  • I have got an iPhone MC605J version 6.0 soft bank iphon 4 but unable to use it in India.  I am trying to use Airtel sim but the phone is showing invalid sim.  So please help me out to unlock it.

    I have got an iPhone MC605J version 6.0 soft bank iphon 4 but unable to use it in India.  I am trying to use Airtel sim but the phone is showing invalid sim.  So please help me out to unlock it.

    No one here can help you, & Apple can't/won't help you. Fact is, there is no way to get that iPhone officially unlocked. Only Softbank can authorize the official unlocking of your phone, but they won't. Softbank does not offer official unlocking for any iPhone.
    It is what it is.

  • *Program "SAPMV45A" tried to use screen 0000. The screen does not exist*.

    Dear Experts,
    I have copied a program SAPMV45A (VA01) to ZSAPMV45A and created the transaction ZVA01.
    I have maitained the transaction ZVA01 in V_T180 of SM30 by copying VA01.
    after doing all, when I execute the transaction ZVA01 it will go to the initial screen of create Sales Order after enter the header information like Order Type, Sales Org, Distribution Channel & Division if click Enter it will go to short dump where I am getting the information as shown below
    Program "SAPMV45A" tried to use screen 0000.
    The screen does not exist.
    If any one have an idea please let me know the solution to rectify this problem.
    Thank You,
    Best Regards
    Venkatesh

    Hi
    in transaction VFBS we have....
    Function Codes                            T185F
    Paths between Process. locations  T185
    Processing Locations                    T185V                                         
    Dialogs                                         T185D
    Development Support                     T185E
    Tab Control                                   TAXITABS
    To maintain the Screen Sequence is it enough to fill Dialogs T185D or do I need to fill all all...?
    if so can I maintain the same info for ZSAPMV45A as which is there for the standard profram SAPMV45A ?
    Regards
    Venkatesh

  • Hello. I am having much difficulty using any software drum program. I am trying to use EZ Drummer and the drum programs in Logic, with limited success. I was using them, and they were working, but this is no longer the case. Please help me navigate my way

    Hello.
    I am having much difficulty using any software drum program. I am trying to use EZ Drummer and the drum programs in Logic, with limited success. I was using them, and they were working, but this is no longer the case. Please help me navigate my way through these issues, if possible.
    Thanks.
    Eric

    Aha! I have sorted it.
    For those with similar problems, the solution is this:
    Macintosh HD > Library > Audio > MIDI Drivers
    Then delete DigiDioMidiDriver.plugin

  • Just got an iMac. I am trying to use Migration Assistant. The Mac side seems to be doing it's job, but my PC just keeps "Waiting for the Mac to connect." For over an hour.

    Just got an iMac. I am trying to use Migration Assistant. The Mac side seems to be doing it's job, but my PC just keeps "Waiting for the Mac to connect." For over an hour.

    Probably a PC issue, you can try calling AppleCare, you are covered for 90 days from the date of purchase and can find the phone number in the owners manual. Also please look over:
    http://drtyhnds.blogspot.com/2011/08/how-to-use-migration-assistant-from-pc.html
    and
    http://pondini.org/OSX/SetupLion.html
    Thomas,
    It would also be extremely helpful to those trying to help you if you complted your Profile so we at least know what iMac and version of OS X is installed. Click Your Stuff in the upper right then click Profile and complete the necessary fields including what part of the planet you're located.

  • I tried to use Apple Pay at the 1280 Lexington Ave store in NY but was asked for the last 4 digits of my cardnumber and it never worked.

    I tried to use Apple Pay at the 1280 Lexington Ave store in NY but was asked for the last 4 digits of my cardnumber and it never worked. The question itself made no sense but I tried in vain by supplying it as well as the security code. I didn't know the last 4 of my proxy card number.

    Open Passbook, select the credit card you are using, touch the Info icon on the lower right. This will display the last four digits of the ‘Device Account Number’. These four digits are what your retailer wants to complete the transaction, NOT the last four digits of your card number. Some retailers require this, others do not.

  • Why do I get an error when trying to use a link in the forum?

    I just tried to use the link that Varad offered in Redirect certain users with login procedure and I got an error:
    The specified thread [0] was not found.
    I got the same thing when trying to use a similar link a couple of days ago. They sound like something I might benefit from, but I can' get to them.
    The link URL looks like Re: logon username determines page that opens, how can I accomplish this?
    Any ideas?
    Thanks,
    Gregory
    P.S. I'm using Firefox 3.0.4

    Tony,
    That's what I thought, but apparently it worked for Stefan. If you go to Stefan's post (first link above) do you also see the same link as I have attempted to copy? In Stefan's post, do you see the question mark in a diamond?
    Thanks,
    Gregory

  • I have a Mac Pro. Tried to use it today and the Adobe Flash will not reinstall. After 3 years it will not take password.

    My Mac Pro is three years old. Today when trying to use the adobe flash it is not working. after trying to reinstall the program, there is no way it will take pass word to reinstall this program. Can anyone give an idea as to how this can be repaired.

    Assuming you mean you need to rest the administrative PW then:
    Forgot Mac Password? How to Reset Your Mac Password (with or without CD)
    Change the Admin Password with Mac OS X Single User Mode
    Reset mac mini admin password: Apple Support Communities

  • How to use a query in the Print Layout Designer?

    I created a query with the query generator:
    SELECT T0.[Discount], T0.[NumOfDays], T2.[DocNum] FROM CDC1 T0, OQUT T2 INNER JOIN OCTG T3 ON T2.GroupNum = T3.GroupNum WHERE T2.[GroupNum]=T3.[GroupNum] AND  T0.[CdcCode] =  T3.[DiscCode]
    The result shows the cash discout (the days and the percentage) of every record.
    I need this query, because I want to design a sales order report.
    To show the payment conditions with cash discount I need to have the table CDC1 but when I create a new database field in the report I can't see that table.
    So I queried the table CDC1....
    Then I created a new database field and in the list box "table" I made the following steps:
    extras\customizing tools\user defined values - definition\search for saved query in user defined values
    But the problem is that I don't get the result of the query into my report.
    What's the problem? I don't know what I've done wrong...
    please help me

    Hi,
    I am creating the layout for a sales order which will be send to a customer.
    In that order the customer can see the payment conditions.
    It should look like this:
    net price: 1000,00 EUR
    19,00% taxes: 190,00 EUR
    gross price: 1190,00 EUR                          
    payment conditions:
    payable within 30 days net: 1190,00 EUR
    payable within 14 days with discount of 2 %: 1166,20 EUR
    to get the bold marked digits I need to have access on the following tables:
    OCTG and CDC1
    In the OCTG table I get the days (in this example 30)
    In the CDC1 table I get the days of cash discount and the percentage (in this example 14 and 2)
    but in the sales order layout in PLD only the OCTG table is shown when I create a database field and the CDC1 table isn't.
    So what can I do to get this?

  • Getting Error Message when trying to use Software Update in the Mac App Store...

    Hello,
    I was wondering if someone knows what this error message in the Mac App Store means. I am trying to run Software Update by clicking in the Apple Menu however, I am not able to see my available updates and instead get the following message on the Mac App Store:
    I have tried to fix the error by deleting both the Mac App Store Caches and plist files in the user library and made sure that I am properly logged into the Mac App Store with my personal Apple ID.
    What else can I do?

    aayushp wrote:
    I've been having the same issue. It was all fine until yesterday when I was searching for updates.
    Since when have you been seeing this error message?
    Last time I checked for an update was about 2 weeks ago and there were no errors reported. However, today I wanted to update iTunes to version 10.7 and decided to use the standalone installer rather than the SU version. Still, I decided to run the MAS Software Update function in order to ensure that my computer had all its software up-to-date and then I get this message. I don't think that me installing iTunes is to blame. Probably, it could be an internet connection problem on Apple's end I am still submitting a bug report to Apple.
    Now one question, who is your ISP (internet service provider)? In my case I have Comcast and I am in Florida.
    Thanks for your reply!

Maybe you are looking for

  • In report painter GRR3 1VK  Actual Value picked up from previous year

    Dear Experts, In report painter GRR3 > 1VK 1. Column of Actual Quantity to take in Basic Key Figure from Statistical Quantity 2. The value is 4 (Actual) and Version is 0 I found that the Actual value appeared are actually taken from the previous fisc

  • How do I get my gmail account to show up in my emil accounts under mail

    I've now opened up a new gmail account since I'm going to possibly change Internet service providers. I've had my current provider for a LONG Time and I'm not looking forward to making changes, but money talks. When open up my mail now all my account

  • Ipad not recognized in itunes

    I'm sick of this....iPad is recognized by Windows 7 PC, but not in iTunes. Latest versions of all software - Windows 64 bit, iTunes 64 bit. I uninstall iTunes and reinstall, and it recognizes my iPad, but after computer shutdown and reboot, it's back

  • Problems using button to add an amount to another amount

    I'm trying to add an amount (field A) to another amount (field B) and keep the total in field B. I have a submit button that runs a process that has the following source: DECLARE BEGIN :P5_COSTO_ABOGADO := NVL(TO_NUMBER(:P5_COSTO_ABOGADO, 'FML999G999

  • Selecting Overset Text In InCopy CS5 [AppleScript]

    I am trying to fix the AppleScript I used in InCopy CS3 to select overset text in CS5. In my old script I tell InCopy to select the overset text in the current story. Simple command: select text of last text column of myStory In CS5 it now selects th