Populate select list when a date selected from date picker in tabular form

Hi Guys,
I have a situation where user picks a date from a date picker in tabular form.
So as soon as he picks a date say 05/31/2011 from the date picker I want to populate a select list with 2 values : Tuesday AM , Tuesday PM.
I have gone through the forums a lot and figured we can write a Dynamic Action using JQuery Selector. But I am not sure how to figure out the day from a date picker.
I appreciate if some one can give your thoughts on how to proceed. It seems to be simple but looks like a tricky one. I am not familiar with writing Java Script.
Thanks ,
Raj

I was thinking your date selected from CALENDAR ended in a list_item.
I don't know I thinking that
well,
:master_block.itemdate is your text_item where calendar return date selected.
and then , following Gerd's step
Create a WHEN-MOUSE-DOUBLECLICK on the date-item of CALENDAR and write :
begin
:master_block.itemdate := calendar (.........);
go_block ('master-block');
execute_query;
end;
or set a global or parameter variable date selected from calendar :parameter. xxxxxx
in a PRE-QUERY
:master_block.itemdate := :parameter. xxxxxx
and
Create a WHEN-MOUSE-DOUBLECLICK on the date-item of CALENDAR and write :
begin
:parameter. xxxxxx := calendar( ....);
go_block ('master-block');
execute_query;
end;
regards

Similar Messages

  • Msg 116, Level 16, State 1, Line 6 Only one expression can be specified in the select list when the subquery is not introduced with EXISTS.

    Hello,
    Can anyone help me?
    select year(po.rdata) as 'Ano', 
    sum(etotal) as 'Valorp' ,
    (select year(fo.data),Sum(etotal) 
    FROM fo (nolock) 
    where  not exists ( select 1 from pl (nolock) where pl.adoc = fo.adoc and pl.cm = fo.doccode ) 
    group by year(fo.data))as 'Valorap'   
    from po 
    group by year(po.rdata)
    order by year(po.rdata)
    Error 
    Msg 116, Level 16, State 1, Line 6
    Only one expression can be specified in the select list when the subquery is not introduced with EXISTS.
    Consultora

    Hi Prashanth,
    select year(po.rdata) as 'Ano',
    sum(etotal) as 'Valorp' ,
    (select Sum(etotal)
    FROM fo (nolock)
    where not exists ( select 1 from pl (nolock) where pl.adoc = fo.adoc and pl.cm = fo.doccode )
    group by year(fo.data))as 'Valorap'
    from po(nolock)
    group by year(po.rdata)
    order by year(po.rdata)
    Gives me the error: 
    Msg 512, Level 16, State 1, Line 1
    Subquery returned more than 1 value. This is not permitted when the subquery follows =, !=, <, <= , >, >= or when the subquery is used as an expression.
    Thanks
    Consultora

  • Only one expression can be specified in the select list when the subquery is not introduced with EXISTS.

    hi all
    i have a table that name is:
    TiketsHeader 
    but i used this code
    SELECT TicketsHeaderId, Active, TH.PersonRef,P.Fname + ' ' + P.Lname AS NF, Serial, TicketsCnt, StartSerial, EndSerial, KindDate, StratDate, EndDate,
    MonthsRef1,(SELECT * FROM dbo.Months M WHERE M.MonthsId= MonthsRef1 ) AS MonthsName1 , MonthsRef2, MonthsRef3, WeekDaysRef,
    PoolTimesRef, TH.Descreption
    FROM dbo.TiketsHeader TH
    INNER JOIN Person P ON P.PersonId= TH.PersonRef
    i see this error:
    Msg 116, Level 16, State 1, Line 2
    Only one expression can be specified in the select list when the subquery is not introduced with EXISTS.
    how to solve it
    please help me
    Name of Allah, Most Gracious, Most Merciful and He created the human

    SELECT TicketsHeaderId, Active, TH.PersonRef,P.Fname + ' ' + P.Lname AS NF, Serial, TicketsCnt, StartSerial, EndSerial, KindDate, StratDate, EndDate,
    MonthsRef1,(SELECT * FROM dbo.Months M WHERE M.MonthsId= MonthsRef1 ) AS MonthsName1 , MonthsRef2, MonthsRef3, WeekDaysRef,
    PoolTimesRef, TH.Descreption
    FROM dbo.TiketsHeader TH
    INNER JOIN Person P ON P.PersonId= TH.PersonRef
    A Sub query like this can only return one column, not serveral like here with the star *. Replace the star by one column Name that you want to query.
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

  • Select List based on other select List

    Hi
    I have 2 select lists when a selection is made in one I want the second list to be limited but when nothing is selected in the first list I want the second list to display all. Apolgies if this is really a plsql thing .
    Heres what I have so far
    if :P52_ORGNAME is null
    then
    return 'select unique surname d,id r from com_contact';
    else
    return 'select unique forename||surname d,id r from com_contact where orgname = :P52_ORGNAME order by id';
    end if;
    the else is fine but I cant get the null condition to work.
    :P52_ORGNAME is a select list where show null is yes and there is no NULL value
    thanks in advance
    Kirk

    Hi,
    you can try 2 things.
    1)try putting a null display value and keep null return value as blank. dont put any value in the default value also,and see if this works,
    2)else try putting a null return value(like BLANK) and check for that value in the condition insted of null. i.e
    if :P52_ORGNAME ='BLANK'
    then
    return 'select unique surname d,id r from com_contact';
    else
    return 'select unique forename||surname d,id r from com_contact where orgname = :P52_ORGNAME order by id';
    end if;
    Hope it works..

  • How to compare to date and From date in XSLT

    Hi,
    I have to check in my process "*To date*" and "*From date*" and make "*To date*" greater than or equlas to "*From date*"..
    Is there any function which performs this task.
    I will appreciate if someone can provide any Solution on the same..
    Thanks in advance..

    Hi,
    You can compare dates in XSLT as in BPEL and in XPath using &lt; and > and =, you can even add a duration in days or months to your date using xp20:add-dayTimeDuration-to-dateTime()
    The only but is all the dates have to be in ISO 8601 Format...
    http://www.w3.org/TR/NOTE-datetime
    For example:
    *1994-11-05T08:15:30-05:00* corresponds to November 5, 1994, 8:15:30 am, US Eastern Standard Time.
    *1994-11-05T13:15:30Z* corresponds to the same instant.
    The following will return true if $dateFrom is less than $dateTo...
    <xsl:value-of select="$dateFrom &lt; $dateTo"/>Cheers,
    Vlad

  • Why do I only see grayscale values when I add color from color picker? This happens occasionally, but I don't know what triggers it.

    Why do I only see grayscale values when I add color from color picker? This happens occasionally, but I don't know what triggers it.

    We can't know. You have not provided any system information, not told us what version of AE, details about your artwork, color management and whatnot.
    Mylenium

  • How to populate a list box linked to selection in combo box?

    Hi All,
    I am a beginner in Xcelsius. I am having problem on how to populate a list box based on the selection on my combo box.
    I have a combo box and a list box.  The combo box value consist of Countries. Values are:
    Singapore
    Indonesia
    Thailand
    When I select, for i.e. Indonesia, I want to populate the list box with all the Postal Code of Indonesia. When I select Thailand, i want to do the same.
    Can anyone shed some lights on how to achieve this?
    My spreadsheet data is as follow
    Country         Postal Code
    Singapore     680123
    Singapore     680124
    Singapore     680125
    Indonesia     155123
    Indonesia     155124
    Indonesia     155125
    Indonesia     155126
    Thailand       333123
    Many Thanks,
    Harianto

    Hi,
    I am detailing the complete steps below:
    In the combobox select the entire range of Country while seeing the records from the Combobox, Xcelsius will automatically show the unique values in the selection.
    After that in the "Data Insertion" section for Combobox select the "Insertion Type" as "Filtered Rows" (please click on the question mark beside this option and it will show how the selection works).
    In the source select the postal code, in the destination select the range which will be used as a data source for the list box.
    This will resolve the concern. Please remember to select the question mark beside the "Insertion Type" option, it explains the working in specific details.
    Best of luck.
    Regards,
    Gourav

  • Unable to create a dynamic action ALERT to be generated on a Select List when particular value is selected.

    Hi everyone, this should be so easy, yet I am stuck.
    I have a form region with an item P110_VESSEL_ID.   This item is a select list.   It is based on the query: 
    select distinct v.vessel_name, v.vessel_id
    from vessels vessels v, frequent_fishermen ff
    where ff.dea_permit_id = :G_PERMIT_ID and
    ff:vessel_id = v.vessel_id
    UNION
    select v.vessel_name, v.vessel_id
    from apex_collections a, vessels v
    where collection_name = 'SUPVES_COLLECTION' and
    a.c002 = v.vessel_id
    If the user decides against the values in the select list query, they may opt to SELECT ALL VALUES.  This SELECT ALL VALUES is a POST ELEMENT TEXT on P110_VESSEL_ID.
    <a id="popVessels" href="#"><font color=blue>Select from ALL Vessels</a>
    This all works fine.
    The issue is that when the user selects a vessel name = 'UNKNOWN' and it's corresponding vessel_id value, I would like an ALERT to appear indicating that they should double check that the vessel is UNKNOWN and not that the is no vessel. 
    I created a dynamic action
    event= change
    select type = item
    item = P110_VESSEL_ID
    True ACtion #1 is the ALERT.
    I currently have no other logic, but cannot even get this to work.  Any thoughts.   I have also tried the SELECT TYPE = jQuery Selector = select[name='P110_VESSEL_ID'] but that does not work either (though I am not certain if the value should be P110_VESSEL_ID or the static name of VESSEL_ID).
    Any help is appreciated.
    ps.  the page is not submitted when the vessel is changed.  There is other data that needs to be entered both in this region and others and many validations run when submit, so the submit would not be an option.
    thanks again,
    Karen

    KarenH,
    KarenH wrote:
    I created a dynamic action
    event= change
    select type = item
    item = P110_VESSEL_ID
    True ACtion #1 is the ALERT.
    This should work.  Sometimes I've see where there is other javascript on the page that may have some errors and is causing the dynamic action code to not be executed.  Use your favorite browser script console to try and determine if this may be the case.
    --Jeff
    P.S. Your jQuery selector can be: select#P110_VESSEL_ID

  • Finding this error when running the below query - Only one expression can be specified in the select list when the subquery is not introduced with EXISTS.

    select 
    min(h.[Spcl Order]),
    (select (case when sum(pro.[Quantity]) is null then 0 else sum(pro.[Quantity]) END))
    +
    (select (case when sum(A.[Quantity]) is null then 0 else sum(A.[Quantity]) END),
    min(b.[Posting Date]),min(c.[Order No]),min(d.[Prod_Order No]),min(e.[No]),
    min(f.[Item Category Code]),min(g.[Location Code]),min(i.[Spcl Order_Purch])
    from [tablename2] A 
    inner join [sample].[dbo].[Posting Date_PRL] as b on a.[Posting Date]=b.[Posting Date]
    inner join [sample].[dbo].[Order No_PRL] as c on a.[Order No_]=c.[Order No]
    inner join [sample].[dbo].[Prod_ OrderNo_PRL] as d on a.[Prod_ Order No_]=d.[Prod_OrderNo] 
    inner join [sample].[dbo].[No_PRL] as e on a.[No_]=e.[No]
    inner join [sample].[dbo].[Item Category Code_PRL] as f on a.[Item Category Code]=f.[Item Category Code]
    inner join [sample].[dbo].[Location Code_PRL] as g on a.[Location Code]=g.[Location Code]
    inner join [sample].[dbo].[Spcl Order_PRL] as i on a.[Spcl Order]=i.[Spcl Order_Purch]
    where ((A.[Item Category Code] = 'STYLES') and (A.[Prod_ Order No_]='') and ( A.[Buy-from Vendor No_] in ('S02052')) AND (A.[Quantity]>0) 
    AND ( A.[Posting Date] = pro.[Finished Date])))
    from [tablename1] pro 
    inner join [sample].[dbo].[Spcl Order_PO] as h on Pro.[Spcl Order]=h.[Spcl Order]
    where ((pro.[Status]=4) and (pro.[Finished Date] ='2013-10-10' )) group by pro.[Finished Date]

    As other suggested, please find the column list...there are many columns in your subquery...
    eg:
    Select *,(Select 1,2) From (Values(1),(2))A(MonthID) -- will not work
    where as 
    Select *,(Select 1) From (Values(1),(2))A(MonthID) --will work
    Your case:
    select 
    min(h.[Spcl Order]),
    (select
    (case when sum(pro.[Quantity]) is null then 0 else sum(pro.[Quantity]) END))
    +
    (select (case when sum(A.[Quantity]) is null then 0 else sum(A.[Quantity]) END),
    min(b.[Posting Date]),min(c.[Order No]),min(d.[Prod_Order No]),min(e.[No]),
    min(f.[Item Category Code]),min(g.[Location Code]),min(i.[Spcl Order_Purch])
    from [tablename2] A 
    inner join [sample].[dbo].[Posting Date_PRL] as b on a.[Posting Date]=b.[Posting Date]
    inner join [sample].[dbo].[Order No_PRL] as c on a.[Order No_]=c.[Order No]
    inner join [sample].[dbo].[Prod_ OrderNo_PRL] as d on a.[Prod_ Order No_]=d.[Prod_OrderNo] 
    inner join [sample].[dbo].[No_PRL] as e on a.[No_]=e.[No]
    inner join [sample].[dbo].[Item Category Code_PRL] as f on a.[Item Category Code]=f.[Item Category Code]
    inner join [sample].[dbo].[Location Code_PRL] as g on a.[Location Code]=g.[Location Code]
    inner join [sample].[dbo].[Spcl Order_PRL] as i on a.[Spcl Order]=i.[Spcl Order_Purch]
    where ((A.[Item Category Code] = 'STYLES') and (A.[Prod_ Order No_]='') and ( A.[Buy-from Vendor No_]
    in ('S02052')) AND (A.[Quantity]>0) 
    AND ( A.[Posting Date] = pro.[Finished Date])))
    from [tablename1] pro 
    inner join [sample].[dbo].[Spcl Order_PO] as h on Pro.[Spcl Order]=h.[Spcl Order]
    where ((pro.[Status]=4) and (pro.[Finished Date] ='2013-10-10' )) group by pro.[Finished Date]

  • Display select list from query on manual tabular form

    Hello,
    I'm trying to display a select list from query on a manual tabular form. I'm using a collection to store the data. I can't seem to get the query to work. I can display the item as a text item. Any help would be appreciated. Thanks, Elizabeth.
    SELECT
    -- Notice how I'm keeping the idx value the same as the column value in the collection. This helps to keep things organized
    -- I also apply an id to each entry
    -- I append the error value to the empname and sal
    -- The Seq_id. Usefull when hiding rows (for delete) and then submitting from
    apex_item.hidden(1,x.seq_id, null, x.seq_id || '_seq_id') ||
    -- The Primary Key of the column
    apex_item.hidden(2, x.ceah_people_id, null, x.seq_id || '_ceah_people_id') || x.ceah_people_id ceah_people_id,
    -- Employee Name
    case when x.seq_id = -1
    then
    apex_item.select_list_from_query (3,
    NULL,
    'select distinct language_name d, '
    || 'language_id r from foreign_language',
    'style="width:170px" ' ,
    'YES',
    '0',
    '- Select Language -',
    'x.seq_id_' || LPAD (9900 + LEVEL, 4, '0'),
    NULL,
    'NO'
    else
    apex_item.text (3,(select language_name from foreign_language where x.language_id = foreign_language.language_id),
    80,
    100,
    'style="width:170px" readonly="readonly"',
    'f32_' || LPAD (ROWNUM, 4, '0')
    end
    || err.language_id language_id,
    /* apex_item.text(3,x.language_id,null, null, null, x.seq_id || '_language_id') || err.language_id language_id,
    -- Employee Salary
    apex_item.text(4,x.proficiency, null, null, null, x.seq_id || '_proficiency') || err.proficiency ||
    -- Store the sql action type as well.
    apex_item.hidden(50,x.sql_action_typ, null, x.seq_id || '_sql_action_typ_id') proficiency,
    -- Last but not least the row error
    err.row_error
    FROM (SELECT ac.c001 seq_id,
    ac.c002 ceah_people_id,
    ac.c003 language_id,
    ac.c004 proficiency,
    ac.c049 modifiable_flag,
    ac.c050 sql_action_typ
    FROM apex_collections ac
    WHERE ac.collection_name = 'DATA_COLLECTION'
    ORDER BY ac.seq_id) x,
    -- Error Collection
    (SELECT ac.seq_id seq_id,
    ac.c002 ceah_people_id,
    ac.c003 language_id,
    ac.c004 proficiency,
    ac.c050 row_error -- Useful when individual data is correct, however the row of data is not. Ex: start/end dates
    FROM apex_collections ac
    WHERE ac.collection_name = 'ERROR_COLLECTION'
    ORDER BY ac.seq_id) err
    WHERE x.seq_id = err.seq_id(+)

    I got so frustrated I started over. I'm following the how to create a manual form.
    http://www.oracle.com/technology/products/database/application_express/howtos/tabular_form.html#MANUAL
    The problem I'm now having is even though I display items as hidden, there is a column holder on the report for them. If I go into the report attributes and toggle the show attribute off I cannot reference an items value in my logic. I used /&nbsp/ for the column heading but I still get the little sort arrow where the column heading should be. I tried to toggle the sort attribute off but the sort arrow still shows up. How can I use the apex_item.hidden and not get a place holder for the column on a report? Thanks, Elizabeth
    Here is the code I'm using to generate the report:
    select x.ceah_people_lang_id,
    x.language_id,
    x.proficiency,
    x.ceah_people_id
    from (
    select apex_item.hidden(1,ceah_people_lang_id) ceah_people_lang_id,
    apex_item.select_list_from_query(2,language_id,'select language_name, language_id from foreign_language') language_id,
    apex_item.select_list_from_query(3,proficiency,'select name, id from proficiency') proficiency,
    apex_item.hidden(4,ceah_people_id) ceah_people_id
    from ceah_people_language where ceah_people_language.ceah_people_id = :P152_person_id
    union all
    select apex_item.hidden(1,null) ceah_people_lang_id,
    apex_item.select_list_from_query(2,null,'select language_name, language_id from foreign_language') language_id,
    apex_item.select_list_from_query(3,null,'select name, id from proficiency') proficiency,
    apex_item.hidden(4,null) ceah_people_id
    from dual) x

  • PB backup file (bbb) not listed when trying to 'Select a backup file to restore'

    I am running Desktop Manager 7.1.0.32.
    I backed up my PB and an upgrade to 2.0.1.358 wiped out all the data and apps on my PB.
    When I try to restore, the backup file is not listed for me to select to restore. Backup path is correct.
    Any ideas?
    Thank you in advance!

    Not necessarily. In v7x they changed the BlackBerry backups to bbb but the Playbook was always bbb. it used to be that bbb files from the Playbook were merely .zip files and it was possible to change the extension and then unzip the files and see what was in it. I think that has changed but the bbb extension didn't change.
    1. Please thank those who help you by clicking the "Like" button at the bottom of the post that helped you.
    2. If your issue has been solved, please resolve it by marking the post "Solution?" which solved it for you!

  • How come cookies are no longer visible in the cookies list when I've selected 'Accept Cookies'?

    I always run Firefox in private browsing mode. Normally I don't accept cookies, but turn on the 'Accept cookies from sites' when necessary. Until recently when I've selected 'Accept cookies from sites', cookies have shown up in the 'cookies list'. Now they don't. As far as I can tell, I'm not doing anything differently. Resetting Firefox makes no difference.

    Firefox no longer shows the cookies in the Cookie Manager in you are in Private Browsing mode.
    *Bug 823941 - Cannot see cookies stored in private window with using cookie viewer
    <i>(please do not comment in bug reports: [https://bugzilla.mozilla.org/page.cgi?id=etiquette.html])</i>

  • How to populate 'Select List' based on Radiogroup selection?

    Hi,
    I've a Radiogroup and on the selection of any of its item, I've to populate a 'Select List' from DB, what is the best way to do this?
    I'm on APEX 2.1.0.00.39, and the Radiogroup & Select List are part of a Form Region.
    To be honest, I don't even know whether to use Radiogroup with submit or redirect :-)
    Thanks for the help,
    -Hozy

    Hi,
    I have never worked on ver 2 of APEX so i dont know wheter these functionality will work or not..
    Option 1)
    1) Make the Radiogroup as Radiogroup(with submit)
    2) Create a select list with query something similar to
    select display_value d , return_value r from myTable where someColumn = :P1_MY_RADIO_BUTTON;
    Option 2) Use AJAX.. htmldb_Get()
    Regards,
    Shijesh

  • FireFox Select List not working with Spry XML Data set.

    I am having a problem with FireFox.  I have a set of related select lists that allows a user to pick a state and then a market.  The work in all browsers except FireFox.  I'm totally stumped.  Here is the link. Any assistance greatly appreciated!
    http://myxpertise.pointinspace.com/create.php
    Thanks,
    Joe

    <span spry:region="dsCities dsStates dsStates" id="citySelector">
         <select spry:repeatchildren="dsCities" id="citySelect" name="citySelect" tabindex="5" >
          <option spry:if="{ds_RowNumber} == {ds_CurrentRowNumber}" value="{name}" selected="selected" tabindex="5" >{name}</option>
          <option spry:if="{ds_RowNumber} != {ds_CurrentRowNumber}" value="{name}" tabindex="5" >{name}</option>
        </select>
    that should be a spry:detailregion, and you have a double dsStates
    And when you are using multiple datasets inside a region, it might wise to prefix you template tags with the correct dataset
    {ds_RowNumber} => {dsStates::ds_RowNumber}

  • How to add Check box to a static Drop down list (bases on a selection list) and allow mulity select in it?

    Dear All,
    I created a text field in my project (Light switch 201, C#), this text field has a static list which I filled manually. when I click in this text box I get a dropp down list which allow me to chose only one value from it.
    Now what I want to do is to add a check box in this drop down list and allow mulity selection from this list. My list looks as follow:
    Can anyone help me :) ? 
    Thanks all,
    Zayed

    Something like this:
    http://www.codeproject.com/Tips/452756/Add-checkbox-inside-combobox-in-Silverlight

Maybe you are looking for

  • My iPad 2 will not update apps after upgrading to the new ios

    MMy apps will not update nor can I install new apps. Anyone have a solution?

  • Baseline Date in batch execution

    Dear Experts, I am trying to execute a batch input session and I am getting message saying Base line date field missing. I am able to do the posting in Foreground by pressing enter whenever that message comes but when I try to do that in background i

  • Work Flow  for OWB 10.2.0.4.36

    Hi All, Can anybody please tell me where I can download work flow for OWB 10.2.0.4.36? Thanks, Siva

  • How to compile the Java classes generated in JAXB

    I am using Windows 2000 Operating System. I found a xjc batch file on the sun's java forum. I used that to generate classes from XML. After generating the classes I could not compile the classes each depends on other AND THEY REQUIRE BOTH CLASS FILES

  • Field Unknown error message in program node

    I'm brand new to SAP and trying to get to grips with Smartforms. This is a very basic question I'm afraid but hope someone will answer it. I'm trying to perform the following in a program node SELECT SINGLE * FROM MARC INTO WA_MARC   WHERE IT_VBDPA-M