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".

Tags: Database

Similar Questions

  • Cannot use the #A01 substitution variable # in dynamic list

    Greetings...

    I want to generate a dynamic list on the page.  The list will contain an indicator that specifies whether or not the entry in the list is in fact hidden from the user.  If it is hidden to the user, then I want to apply a particular to this entry from the list class when rendering.

    The dynamic list has the following SQL code:

    SELECT null lvl,

           menu.menu_nm label_value,

           q'!javascript:$s('P32_MASTER_MENU_ID', '!' ||

              menu.menu_id || q'!');!' target_value,

           null image,

           null image_attribute,

           null image_alt_attribute,

           case when menu.hidden = 'Y'

                  then 'class="hiddenNode"'

                  else null end attribute1

    from ( select 'N' hidden, vis.* from std_vw_apex_menu vis

            union all

           select 'Y' hidden, hid.* from std_vw_apex_menu_hidden hid ) menu

    where menu.menu_ty = 'MAINMENU'

    order by menu.sort_order

    I then use a list template with the following as the entrance to the "current": list

    <li class="active"><a href="#LINK#"><span #A01#>#TEXT#</span></a></li>

    ... and list the following as the "Non-Current" entry:

    <li><a href="#LINK#"><span #A01#>#TEXT#</span></a></li>

    I see in the rendered however page result is that substitution does not, as it is shown in the following snippet:

    <li><a href="javascript:$s('P32_MASTER_MENU_ID', '18893191201');"><span #a01#="">Education</span></a></li>

    We are on ApEx 4.2.1.  What I'm doing wrong as I've seen other threads indicate that it is possible for dynamic lists to use substitution variables, as in their list templates.

    Shane.

    I found the solution to the attribute replacement does not not in the models of dynamic lists.

  • Where are current issues?

    Where are current issues, so I can help someone who needs it now and not two years ago...

    Where are current issues, so I can help someone who needs it now and not two years ago...

    There is no such thing as a bad question... The best thing to do is a BAD answer!

  • 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.

  • 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

  • LIST OF KNOWN ISSUES FOR INDESIGN CC?

    I have CS3 and CS6 and also creative cloud.  Things that work on older programs do not work on the CC and I hesitate to upgrade my other computers.  Is there a list of known issues for CC?   (my preferences of color and thickness turn against zero when I do the lines and boxes).

    Hello

    This might help: http://indesignsecrets.com/avoiding-problems-installing-indesign-cc-2015.php

    Kind regards

    Sheena

  • Dynamic list fill in tabular report

    Hi all

    Could someone help / advise me to make the following requirement in Oracle APEX 4.1. I tried to use AJAX / seen DENES KUBICEK application but its gets complicated with AJAX. All quick entries will be highly appreciated

    I want to implement a dynamic list in the column in a table. Here is a typical example; If there are two list Deptno LOV, LOV name used. Based on the number of selected Department, employees pertaining to this Ministry must be filled.

    Thank you
    Ahmed


    I did this job by following the below post. Please follow the below url which contains clear steps to implement the same. Scott Merci for your kind cooperation.

    http://apex.oracle.com/pls/otn/f?p=20297:14:113540540779738:

    Thank you

  • Dynamic list size problem

    Hi friends,

    I have implemented a hierarchical dynamic list, so the list will vary depending on the user who connects, but since in my dynamic list some of the name of the organization seems to be great and this name of the organization seems to be cut from the list that half these org names are more visible.

    I have represented my example in apex.oracle.com

    http://Apex.Oracle.com/pls/Apex/f?p=4550:1:0:

    Under the dynamic list with number 28634 application name. Shortly after that u connected to the application, you can see the name of 'Governor' If you press on that pull down means you get seven departments and in it so you go with the Department 'Supervision', you will have 3 sub depts as

    Unit for coordination and supervision information system < li >
    offsite supervision < li >
    < li > supervision on site

    But my above dept name 'information system coordination and supervision unit' is cut at "coordination of information systems".

    How can I get the full name of the organization without these cuttings in the dynamic list.

    Hope you understand my question.

    Brgds,
    Mini

    Hey Mini,

    It is a setting of css.

    .dhtmlSubMenu2 now has with 200px.
    I changed it to page with a new setting of css 0

    .dhtmlSubMenu2 {width: auto !important;}
    

    Now, it works as desired.
    You probably want to change in the css file.

    Kees Vlek

  • Group voting dynamic list

    Can we have a vote of group based on a dynamic list which is the output of the previous human task? Please suggest

    Thank you

    Try switching to a comma-separated string that contains the list of Userid you captured in the previous human task in this human task.

    As you set to hear it at the same time, you want to generate the list of participants using the names and expressions. Specify that you want what he defined by user and by name and use the string separated by commas as the value.

    Dan

  • Fragment of dynamic list

    When I add any fragment to Fragment of dynamic list tab
    and capture the query and test to it its give result me, but when I add the fragment to the model of the region and you run the page its give me (no element not correspond to your search criteria)
    I need help why his Gimme that!

    Hello

    Can you check if the slot option has been checked or not:

    1. the DL, you have enabled the following option: "search scope limited to the site.

    Thank you
    Srinath

    Published by: Srinath Menon on November 8, 2012 14:32

  • 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

  • Attribute substitution does not not in the models of dynamic lists

    Hi all
    Dynamic lists were introduced at the APEX 4.1 and they can be used for drop-down menus. I try to use attribute substitution #A01 #... #A10 # in models without success.

    Here's a select sample

    < pre >
    SELECT the level,
    short_title label,
    ' f ? p = myapp:1:0:MYAPP_ID :'|| target ID,
    'NO' is_current
    NO picture,
    'm'|| Attribute1 to_char (ID)
    FROM MyTable
    START WITH parent_id =: MYAPP_ROOT_ID
    CONNECT BY PRIOR ID = parent_id
    Brothers and SŒURS of ORDER BY seq_in_parent
    < / pre >

    and here is a snippet of the model

    Model list associated

    & lt; class li = & quot; dhtmlMenuItem & quot; & gt; & lt; an id = & quot; #A01 #& quot; href = & quot; #LINK #& quot; & gt; # TEXT #& lt; /a & gt; & lt; /Li & gt;

    The substitution is not made. It looks like a bug, but maybe I'm missing something.

    Any help would be greatly appreciated.

    Regards Garry

    Hi Garry,

    Given the query you provided, it looks like you're missing two parameters in your query (marked as missing below):

     SELECT level,
            short_title label,
            'f?p=myapp:1:0::::MYAPP_ID:'||id target,
            'NO' is_current,
            NULL image,
            NULL image_attribute,                                 <----------- MISSING
            NULL image_alt_attribute,                             <----------- MISSING
            'm'||TO_CHAR(id) attribute1
       FROM mytable
      START WITH parent_id = :MYAPP_ROOT_ID
    CONNECT BY PRIOR id = parent_id
      ORDER SIBLINGS BY seq_in_parent
    

    Once you update your application, then if all goes well, you should see the correct replacement of the occurrences of #A01 # in the model of your list with the value returned by the query to youe.

    Kind regards
    Hilary

  • 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.

  • Maybe you are looking for