Creating a dynamic list

Need help. I am trying to create a drop-down menu that will fill up with all the dates between a start and end date
I provided.

For example:

Start date is 01/10/06
End date is 05/10/06

The drop down menu should provide the following date options:

01/10/06
02/10/06
03/10/06
04/10/06
05/10/06

I can do this when you query a table, but I can't seem to use the function date to build dynamically. Note that I use
CF 5 on the server so all the new features on CF7 version do not exist for me.

Any help will be greatly appreciated. Work on the short timeline.

Thank you.

Dempster,

Don't know how to use dateadd, but the conditional loop worked. It is now giving me the list of the days. The select part should be easy.

Thanks for your help.

Tags: ColdFusion

Similar Questions

  • creating a dynamic list of values

    Hello

    While I am trying to create a dynamic list of values on a table (table1) with h_id columns, the head_foot and the header. I gave the query to create the dynamic values as list

    Select d, r header header
    of g.fw_header_footer
    order by 1

    where d is the display value and r is the return value to get the error message

    "1 error has occurred."

    LOV query is not valid, a display and a return value is needed, the column names must be different. If your query contains a query online, the first CLAUSE in the SQL statement must not belong to the query online. »


    Can someone please suggest me if am wrong.


    Thanks in advance

    Hello

    I suggest that you check the permissions of your application of the analysis of schema has on your g.fw_header_footer table.

    It is a mistake to mislead, but I've just reproduced the same problem trying to select from a table that I didn't have SELECT permission.

    Scott

  • creating a dynamic list within a static list

    Hello

    I use 5 APEX with universal theme and so I have the static navigation on the left side menu.

    I have the following in the list:

    Orders

    Admin

    View profile

    It is a static so each link to a page of the list.

    However I want to have it so that when I click on the controls bind it then displays a dynamic list of the commands in the menu, then it should look like this,

    Orders

    Order 1

    Order 2

    Order 3

    Admin

    View profile

    So I have a dynamic list that creates the list commands. How can I "attach" it in the static so that the parent is the link of orders in the static list?

    Thanks for your help.

    Jeremy

    Jezzer says:

    I use 5 APEX with universal theme and so I have the static navigation on the left side menu.

    I have the following in the list:

    Orders

    Admin

    View profile

    It is a static so each link to a page of the list.

    However I want to have it so that when I click on the controls bind it then displays a dynamic list of the commands in the menu, then it should look like this,

    Orders

    Order 1

    Order 2

    Order 3

    Admin

    View profile

    So I have a dynamic list that creates the list commands. How can I "attach" it in the static so that the parent is the link of orders in the static list?

    If none of the entries in the list are dynamic, then the entire list must be dynamic. See using lists/Navigation Menu to universal theme APEX5 for a similar scenario.

  • How to create the dynamic list item in the designer of Site Studio?

    Hi all
    I installed the Site Studio Designer(10gR4). The dynamic list item that I added in the region of contributor runs a query to search and display all the files in a particular folder. In Contributor mode when I try to add/edit the dynamic list item, it gives an error saying:
    Cannot perform the action for the following reasons:
    [+] Failed to retrieve search results. Failed to retrieve search results. Failed to create the result set of query ' SELECT IdcColl2.dID, dDocName, dDocTitle, dDocType, dRevisionID, dSecurityGroup, dDocAuthor, dDocAccount, dRevLabel, dFormat, dOriginalName, venture, dWebExtension, dInDate, dOutDate, dCreateDate, dPublishType, dRendition1, dRendition2, VaultFileSize, WebFileSize, URL, dFullTextFormat, dFullTextCharset, DocMeta.* FROM IdcColl2, DocMeta WHERE IdcColl2.dID = DocMeta.dID AND (((xCollectionID > = 14 ET xCollectionID < = 14) AND NOT ((CONTAINS (xDontShowInListsForWebsites, '{DIPP_Sample}") > 0))) ORDER BY dDocTitle desc".) ORA-20000: Oracle text error: 10599-DRG: column is not indexed

    I activated the full text on the content server search and also included xWebsites and xWebsiteObjectType columns to be fully indexed in the fields Configuration.Is area it any other setting to do? Help, please.

    Thank you
    Nithya

    Hello

    Include the xDontShowInListsForWebsites also of the area filed and then update it. Then test it.

    It may be useful
    Srinath

  • How to create a dynamic list

    Hi all,

    I create a third party apllication almost same as shown in the integrated application for Palm Pre named like youtube.

    My list contains a photo on the left side and the details of a particular image on his right side. The content of the list varies from 10 to 100. The data will be extracted using Json.

    I also visited this: http://developer.palm.com/index.php?option=com_content&view=article&id=1742 but has not helped.

    In Mojo.Widget.List
    
    this.model = {
    listTitle: $L('List Title'),
    items : [
    {data:$L("Item 1"), year:$L("1974")},
    {data:$L("Item 2"), year:$L("1975")},
    {data:$L("Item 3"), year:$L("1972")},
    {data:$L("Item 4"), year:$L("2003")},
    {data:$L("Item 5"), year:$L("1996")},
    {data:$L("Item 6"), year:$L("1969")},
    ]
    
    I want to add two more thing in a particular row for example:
    
    {data:$L("Item 1"), year:$L("1974"), name:$L("Robert"), id:$L("12")}
    
    I also want to load a picture on the left side of a particular row in a list using a url exp:http://Photo/3731753_0.jpgWhat should I do to implement both these things?
    

    So if anyone can help me on this part will be a great help for me.

    Thank you

    Isabelle

    Not sure if you have already visited here again. http://forums.precentral.NET/Web-OS-development/ But there is little active in this region with a lot of people who may be able to help.

  • Using a subquery with a keyword 'IN' to create a dynamic list

    Hello, everyone:

    I began to dream of out of the box. I have large column of the codes that I don't want to hardcode it by hand, so I thought that a simple test of what follows would be the way to go:
    Declare
    v_code varchar2(20) := 'ZZZ';
    
    Begin
    
    IF v_code in (select GURIDEN_IDEN_CODE from Guriden) Then
    DBMS_OUTPUT.PUT_LINE("This entry is good");
    else DBMS_OUTPUT.PUT_LINE("This is not in the list");
    End if;
    End;
    Well, I had a dirty little message that said I couldn't use the query sub in this way. So how can you create something similar?

    Thank you

    Preston@large

    Published by: Preston@Large on March 1st, 2010 07:42

    Maybe something like that?

    DECLARE
            V_CODE          GURIDEN.GURIDEN_IDEN_CODE%TYPE := 'ZZZ';
            V_CODE_CNT      NUMBER;
    BEGIN
            SELECT  COUNT(*) INTO V_CODE_CNT
            FROM    GURIDEN
            WHERE   GURIDEN_IDEN_CODE = V_CODE;
    
            IF V_CODE_CNT > 0 THEN
                    DBMS_OUTPUT.PUT_LINE('This is a valid code');
            ELSE
                    DBMS_OUTPUT.PUT_LINE('This is an invalid code');
            END IF;
    END IF;
    
  • Dynamic list - is current issue

    I created a dynamic list. This works except for the IS_CURRENT parameter.
    List : dyn wizard page 11
    Template:      Wizard Progress List, Horizontal Train
    
    Query Source Type: Function Returning SQL Query
    
    Query
    
    case
    when :APP_PAGE_ID = '11' THEN
      RETURN 
      'SELECT null, progress_name label, '||
      'case WHEN NVL(:APPL_TAB_NAME,''PROJECT'')=CURRENT_TAB_NAME THEN ''Y'' else ''N'' end 
     is_current_list_entry,'||
      'null,null,id ' ||
      'FROM csrsr_req_wizard_nav '||
      'WHERE form_number_id = 3 ORDER BY 6';
    when :APP_PAGE_ID = '8' THEN
      RETURN 
      'SELECT null, current_tab_name label '||
      'FROM csrsr_req_wizard_nav '||
      'WHERE form_number_id = 1 ORDER BY 1';
    when :APP_PAGE_ID = '10' THEN
      RETURN 
      'SELECT null, current_tab_name label '||
      'FROM csrsr_req_wizard_nav '||
      'WHERE form_number_id = 2 ORDER BY 1';
    else
      RETURN 
      'SELECT null, current_tab_name label '||
      'FROM csrsr_req_wizard_nav '||
      'WHERE form_number_id = 4 ORDER BY 1';
    END CASE;
    The page I access the dynamic list is on Page 11.

    Can someone please?

    Robert
    http://apexjscss.blogspot.com

    Applications of dynamic list you generate missing a column. Your questions have 6 columns:

    SELECT
        null
      , progress_name label
      , case
          WHEN NVL(:APPL_TAB_NAME,'PROJECT') = CURRENT_TAB_NAME THEN 'YES'
          else 'NO'
        end is_current
      ,null
      ,null
      ,id
    FROM
        csrsr_req_wizard_nav
    WHERE
        form_number_id = 3
    ORDER BY
        6
    

    The examples in the list wizard have 7:

    SELECT null,
           ENAME label,
           null target,
           'YES' is_current,
           '#APP_IMAGES#del.gif' image,
           'width="20" height="20"' image_attrib,
           ENAME image_alt
    FROM  emp
    ORDER BY ename
    

    Although the target column is not used in a list of courses standard Wizard because it is not clickable, the column must always be included or the values of the column will be compensated. APEX sees your is_current as the target value column and your null image is_currentcolumn. It is advisable to include all columns and alias them:

    select
        null level
      , progress_name label
      , null target
      , case
          nvl(:appl_tab_name, 'PROJECT') = current_tab_name then 'YES'
          else 'NO'
        end is_current
      , null image
      , null image_attrib
      , null image_alt
    from
        csrsr_req_wizard_nav
    where
        form_number_id = 3
    order by
        6
    

    Also note that there are no application APPL_TAB_NAME element in this application, which will have an impact on the results of this query: nvl (: appl_tab_name, 'PROJECT') assess so always at the "PROJECT".

  • Dynamic list of members for Dimension of accounts

    Does anyone know if there is a way to create a dynamic list of members for members of a particular parent account basis? I know it is possible for entities, but it seems that it is not for the accounts. Appreciate all the guidance that can be offered.

    If HS. Dimension = 'account' then
    If HS. MemberListID = 1 Then
    aLi HS =. Account.List("","")
    For i = Lbound (aLi) to Ubound (aLi)
    If UCASE (Left (Trim (aLi (i)), 2)) = "CF" then
    HS. AddMemberToList aLi (i)
    End If
    Next
    End If
    End If

    I use this code to create a list of dynamic members for all base level cash flow account (my account have a CF prefix), you can change it according to your needs. This is part of the EnumMembersInList subroutine.

  • Failed to create a dynamic action ALERT to build a Select list when selecting a particular value.

    Hi everyone, this should be so easy, and yet I'm stuck.

    I have a form with a P110_VESSEL_ID element.   This article is a list of selection.   It is based on the query:

    Select distinct v.vessel_name, v.vessel_id

    of ships 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

    of apex_collections v, vessels

    where collection_name = "SUPVES_COLLECTION" and

    a.C002 = v.vessel_id

    If the user decides from the values in the selection list query, they can opt to SELECT all THE VALUES.  This SELECT all VALUES is a TEXT of ITEM POST on P110_VESSEL_ID.

    < a id = "popVessels" href = "#" > < font color = blue > select all < /a > ships

    It all works very well.

    The problem is that when the user selects a boat name = "UNKNOWN" and it is corresponding to the value of vessel_id, I want an ALERT to appear indicating that they should check that the boat is UNKNOWN and no one's any ship.

    I created a dynamic action

    event = change

    Select type = item

    Item = P110_VESSEL_ID

    Real ACtion #1 is the ALERT.

    Currently, I have no other logic, but can't even get this working.  All thoughts.   I also tried the SELECT TYPE = jQuery Selector = select [name = "P110_VESSEL_ID"], but that does not work either (although I am not sure if the value must be P110_VESSEL_ID or static VESSEL_ID name).

    Any help is appreciated.

    PS. the page is not submitted when the ship is changed.  There are other data that should be in this region and others and many validations run when submit to submit would not be an option.

    Thanks again,

    Karen

    Is (BOAT = UNKNOWN) a single value with a single vessel_id? If Yes and for example if the vessel_id is 99, then proceed as follows:

    Add an expression "JavaScript" in your dynamic action.

    In the Condition value, enter:

    this.triggeringElement.value == "99"
    

    -Jeff

    And I agree with Nicolette, there is something wrong with some other DA who is at the origin of the DAs after that does not work.

  • How to create a pick list in the navigation bar

    Hello

    I use apex5 universal theme and I have an obligation to create a selection list in the navigation bar (before the username and logout) and join a dynamic action. Can someone tell me please how to do this.

    Note: I have created a page zero region. But none of the region of downtown suites this obligation to show the point just before the username and logout.

    Thank you

    Stephanie.

    Guys,

    I thought about a way myself. Its works fine as well. Please find the steps below.

    • Create a region in page zero as a model "empty with attributes.
    • Create a P0_SELECTION to a P0_SELECTION class (if you do not use this class, you can still refer with ID P0_SELECTION, your choice)
    • Create a bar the entrance to the navigation list with the following properties-online class/Image = SELECTIONPOSITION, entry list Label =, Target = URL, target URL = javascript: void (0);

    When you have finished the above activities, go to a page where you would like this item placed in the navigation bar. Simply put the code below in the section JS page (Execute when the Page loads).

    $(". P0_SELECTION')

    .appendTo(".) SELECTIONPOSITION");

    The jquery above to add the item to the navigation class class. Now the best way is to designate the ID. All you need to do is change as below.

    $("#P0_SELECTION")

    .appendTo ("#SELECTIONPOSITION");

    In this way, you can position your elements from anywhere in the page. All you need to do is to create and DISPLAY or class position and adds the element using jQuery.

    Hope this information is useful for someone struggling to position elements in the Web page.

    Thank you

    Stephanie.

  • Dynamic selection of dynamic list

    Hello

    Please, help me to below scenario.

    I created the drop-down list called 'Country' and created a drop down for State. How to create the dynamic filter based on selection of the country. Need to filter according to the selected country.

    Thank you

    Vivek


    Take a look at this thread: https://community.oracle.com/thread/3779373

    Note that the drop-down list must be a list of values. See slide 27 of the bridge for an example of what it looks like at design time and the duration-features and benefits: http://www.oracle.com/technetwork/apps-tech/policy-automation/overview/opafeb2015featuresbenefits-2431219.pdf (example is very similar to yours - pick a State, then on that basis choose a particular city state)

    More details in the thread mentioned above.

    See you soon,.

    Jasmine

  • Dynamic lists for recommendation using CSElement

    Hello

    I want to know what should be in CSElement to create dynamic lists for recommendation.

    If I create just a list with two columns as asset Id and the type of assets that will suffice?

    Dynamic list recommendations requires a list named " AssetList " and 2 columns 'assetid' and 'assettype.

    We can use any method to generate this list.

    Looks like my CSElement

    I used the most basic that is hard coding as

    And it works.

    Thanks nice to point me the finger in the right direction.

  • Using #WORKSPACE_IMAGES # with the names of dynamic list of Image, not to hardcode

    I hope someone can help me with this request.

    I am developing an Apex application but I am learning as I go along by examples of Google search and read the tutorials, etc.  I am trying to create a slideshow based on a dynamic list of Image names. First, I created an apex_collection in a header containing the names of the image process, I need (view/column APEX_COLLECTIONS. C001) I then created a Page called P81_IMAGE_NAME element. I'm trying to loop through the collection and display the pictures in a slide show.   I have a HTML Page with the following code in the Source of the region (found the code in an example online)... Please can someone tell me where I can add the following PL/SQL code so that #WORKSPACE_IMAGES # nom_image may contain the names of images dynamically recoveries rather then hard-coded image names as in the < div Section of the Source region - Code I want to add somewhere, don't know where it add or even if it will work

    Declare cursor c1 is

    Select c001

    of apex_collections

    where collection_name = "CO_IMAGES";

    Start

    A1 to c1 loop

    : P81_IMAGE_NAME: = c1. C001;

    < img src = "#WORKSPACE_IMAGES & P81_IMAGE_NAME" alt = "Slideshow Image" / >

    end loop;

    end;

    -End

    -The code which displays images, I found (Harcoded in the < div section)

    < script type = "text/javascript" >

    function slideSwitch() {}

    var $active = $("#slideshow IMG.active");

    If ($active.length == 0) $active = $("#slideshow IMG:last");

    This allows to take images in their order of appearance in the tag

    var $next = $active.next () .length? $active.next)

    : $('#slideshow IMG:first');

    Uncomment the 3 lines below to shoot images in random order

    var $sibs = $active.siblings ();

    var rndNum = Math.floor (Math.random () * $sibs.length);

    var $next = $($sibs [rndNum]);

    $active.addClass('last-active');

    $next.css ({opacity: 0.0})

    .addClass ('active')

    . Animate ({opacity: 1.0}, 3000, function() {})

    $active.removeClass ('active last active');

    });

    }

    {$(function()}

    setInterval ('slideSwitch()', 3000);

    });

    < /script >

    < style type = "text/css" >

    / * the value width and height to match your images * /.

    {#slideshow}

    position: relative;

    height: 400px;

    }

    #slideshow IMG {}

    position: absolute;

    top: 0;

    Left: 0;

    z index: 8;

    opacity: 0.0;

    }

    {IMG.active #slideshow

    z-index: 10;

    opacity: 1.0;

    }

    {IMG.last - active #slideshow

    z index: 9;

    }

    < / style >

    < div id = "slideshow" >

    < img src = "" #WORKSPACE_IMAGES #Logo.png "alt =" slideshow Image 2 "/ >" "

    < img src = "" #WORKSPACE_IMAGES #Logo1.png "alt =" slideshow Image 1 "/ >" "

    < img src = "' #WORKSPACE_IMAGES #2_Burg - 1.png" alt = "Slideshow Image 2" / > "

    < img src = "" #WORKSPACE_IMAGES #Car11.jpg "alt =" slideshow Image 3 "/ >" "

    < img src = "" #WORKSPACE_IMAGES #Screen1.png "alt =" slideshow Image 4 "/ >" "

    < / div >

    < / div >

    user8016921 wrote:

    Please update your profile of the forum with a recognizable user name: Video tutorial how to change username available

    Always include the information described in these guidelines when you post a question: How to get the answers from the forum

    I am developing an Apex application but I am learning as I go along by examples of Google search and read the tutorials, etc.  I am trying to create a slideshow based on a dynamic list of Image names. First, I created an apex_collection in a header containing the names of the image process, I need (view/column APEX_COLLECTIONS. C001) I then created a Page called P81_IMAGE_NAME element. I'm trying to loop through the collection and display the pictures in a slide show.  I have a HTML Page with the following code in the Source of the region (found the code in an example online)... Please can someone tell me where I can add the following PL/SQL code so that #WORKSPACE_IMAGES # nom_image may contain the names of images dynamically recoveries rather then hard-coded image names as in the

    Depends on the number of images. How are they involved?

    With a small number (e.g. 10-20), you can simply use a page element to register the handset img reference items and she as a substitution string in the region existing HTML. For more information, it would be preferable to use a report.

    On the approach of page element:

    1. create the point P81_IMAGES of the page as an element of the display only. The value of the Condition Never element so it is not included in the rendered page and the security attribute point escape special characters No.

    2. create a page process before header (sequenced to run once the collection created if that is done at this point in the process):

    begin
    
      :p81_images := null;
    
      for img in (
        select c001 src
        from apex_collections
        where collection_name = 'CO_IMAGES')
      loop
        :p81_images := :p81_images || 'Slideshow Image '
      end loop;
    
    end;
    

    3 refer to the value of the element in the HTML source of the region

    
    
    
    
    
    &P81_IMAGES.
  • How to trigger a dynamic action of the dynamic list entry?

    Hi experts,

    I use the apex of oracle database 12 c 4.2

    I'm creating an application on jquery mobile theme 50 I need to create a script as I've shown in photo

    post.PNG

    select it user a floor and the ground must be highlighted and region tables should be updated and the corresponding

    floors tables must appear only without submitting the page

    I tried something else, but can not make it work

    I created the floor using dynamic lists how do I trigger the dynamic action to update the region of the table in the list of the selected floor

    question any help will be appreciated thanks in advance.

    Hello

    something to inspire:

    Dynamic JavaScript action

    http://www.eberapp.com/pls/Apex/f?p=blog:read:0:article:1695400346724960

    concerning

    J

  • How to make a region vertical sidebar link based on a dynamic list to a page?

    Hello
    I'm new to APEX and basically, I try to imitate the dynamic actions of the sample where you have a list on the left side of the page and on the right side are the new page. If you run this sample application and click the page turn he calls a page and display it on the right side of the page.

    If you look at the source he uses page 0 (Global) which has a static list where on every static value, you can link this page to display.

    My problem now is that I did the same thing but my list is based on a select statement and if you do this you do not have an option of page target.

    I tried to create a dynamic action but I don't see an option to call a page and I don't know javascript.

    Thanks for any help.

    user12943263 wrote:
    Hello

    Please update your forum profile with a real handle instead of 'user12943263 '.

    Basically I want to use the select below for my list, but I don't know how to get the application and not the session.

    Select list_desc, ' f? p ='|| get_app_id | ':' || page_no |': ' | get_session_id
    from table_name

    Use of SQL bind rating variable as described in the section documentation Strings of Substitution of understanding :

    select
        ...
      ,  'f?p=' || :app_id || ':' || page_no || ':' || :app_session
      , ...
    from
        ...
    

    Always consult the documentation before posting here.

    Dynamic Actions, JavaScript and all the messages of "P.Ranish" above are all unrelated to your question.

  • Maybe you are looking for

    • Toshiba Digitizer Pen does not work on Portege Z10T-A

      I have a Portege Z10T.-a. I bought new Toshiba Digitizer Pen PA5133U-1EUC. The link below, this pen is compatiable on my laptop. But it does not work. Y at - it no adjustment or the driver of this pen? http://www.Toshiba.com/us/accessorie...s/PA5133U

    • Reinstallation of my Satellite U200

      Hello. I just reinstalled my Satellite U200, but then I found I had drivers. What can I do? Download all the necessary drivers from anywhere? Could somone tell me what I need drivers? E Edit:I have installed the display driver, chipset driver, audio,

    • Satellite A200-AH1 - power light flashes blue

      Hello OK, I got an old laptop is a Toshiba A200-AH1 it is work very well then just... stop the IT Tech wannabe in my hometown, said that it was the external power adapter so we bought a brand new one now all what it flashes... If of course I'm talkin

    • How to find the program that DEP closed?

      DEP works fine, I just need to know what program had closed so I can fix.

    • Pavilion i7 h8-107uk: Asus GTX 750ti on i7 graphics card installation problem

      Pavilion i7 [email protected] (2011) Try to upgrade graphics GeForce 545 again card ASUS Geforce GTX 750Ti. HI - after the installation of the new card, I get a blank screen after the initial configuration of blue screen. I've already read of different thr