How to set foreach's items(wcm:idcService)

I use wcm:idcService get the service from the Oracle content server,and I set
the service as COLLECTION_GET_CONTENTS,var as contentInfo,when I use the
c:foreach tag to show my datas,how should I get the contentInfo,the code
below is not usefull.
<?xml version='1.0' encoding='UTF-8'?>
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
xmlns:wcm="http://www.oracle.com/jsp/wcm"
xmlns:c="http://java.sun.com/jsp/jstl/core">
<jsp:output omit-xml-declaration="true" doctype-root-element="HTML"
doctype-system="http://www.w3.org/TR/html4/loose.dtd"
doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN"/>
<jsp:directive.page contentType="text/html;charset=UTF-8"/>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title>homepage</title>
<link type="text/css" rel="stylesheet" href="../wcm/css/template.css"/>
<!-- <link type="text/css" rel="stylesheet" href="../../../css/template.css"/>-->
</head>
<body>
<jsp:include page="/wcm/templates/fragments/header.jspf"/>
<div id="container">
<jsp:include page="/wcm/templates/fragments/menu.jspf"/>
<jsp:include page="/wcm/templates/fragments/sidebar.jspf"/>
<wcm:idcService service="COLLECTION_GET_CONTENTS" var="contentInfo">
<wcm:idcParameter name="SortField" value="dInDate"/>
<wcm:idcParameter name="SortOrder" value="Desc"/>
<wcm:idcParameter name="hasCollectionPath" value="true"/>
<wcm:idcParameter name="dCollectionPath"
value="/Contribution Folders/root"/>
</wcm:idcService>
<c:forEach var="row" items="${contentInfo.resultSets.DOC_INFO.rows}"><!-- the items here is not getted from the var contentInfo,it is setted manually-->
<p>The content item <em>${row.dDocName}</em> is a
<u>${row.xWebsiteObjectType}</u></p>
</c:forEach>
<jsp:include page="/wcm/templates/fragments/footer.jspf"/>
</div>
</body>
</html>
</jsp:root>

Hi,
You can use session variables to set the value. There are apis available for setting and getting the session variables.
declare
persons number;
begin
p_session.set_value(
p_block_name => blk,
p_attribute_name => 'A_FLIGHTNO',
p_value => to_char(NULL)
persons := p_session.get_value_as_number(
p_block_name => blk,
p_attribute_name => 'A_NOF_PERSONS');
end;
Thanks,
Sharmila

Similar Messages

  • How to set an Application Item from PL/SQL

    I am attempting to set an Application Item
    After login to my app, I want to retrieve a row from my SETTINGS table and populate some Application Items with the settings information so that I can
    display some of that settings information on every page.
    Just to start, I created one Application Item named F106_YEAR
    I then created a Shared Components Application Process which executes on New Session: After Authentication
    I created this process as an Anynomous PL/SQL block.
    declare
    aucyr varchar(4);
    begin
    select year into auctyr
    from settings;
    :F106_YEAR := aucyr;
    end;
    I've tried a couple of other Syntax tricks attempting to reference the Application Item F106_YEAR from within PL/SQL (like V('F106_YEAR') but nothing seems to be working.
    I'm sure that I am missing something simple. Can someone tell me how to set an Application Item from PL/SQL?
    Thanks in advance.

    I'm still doing something wrong because this is not working for me.
    I've tried both of the following versions as an Application Process set to run on New Session after Authentication:
    declare
    auction_year varchar(4);
    begin
    select year into auction_year
    from PBUUC.SETTINGS where rownum < 2;
    :F106_AUCTION_YEAR:=auction_year;
    end;
    and I also tried:
    declare
    auction_year varchar(4);
    begin
    select year into auction_year
    from PBUUC.SETTINGS where rownum < 2;
    APEX_UTIL.SET_SESSION_STATE (p_name, p_value);
    end;
    F106_YEAR is a global Item (shared components).
    The select statement works just fine in SQL*PLUS so I know that it is correct.
    If I run the debugger and log into the application, here is the output. Shouldn't I see my Application Process get called if it is set to run on New Session after Validation?
    My Application process is named RETRIEVE_AUCTION_SETTINGS
    0.01: A C C E P T: Request="P101_PASSWORD"
    0.01: Metadata: Fetch application definition and shortcuts
    0.01: alter session set nls_language="AMERICAN"
    0.01: alter session set nls_territory="AMERICA"
    0.01: ...NLS: Set Decimal separator="."
    0.01: ...NLS: Set NLS Group separator=","
    0.01: ...NLS: Set date format="DD-MON-RR"
    0.01: ...Setting session time_zone to -04:00
    0.01: NLS: wwv_flow.g_flow_language_derived_from=0: wwv_flow.g_browser_language=en-us
    0.01: Fetch session state from database
    0.02: ...Check session 695371898690095 owner
    0.02: ...Check for session expiration:
    0.02: ...Metadata: Fetch Page, Computation, Process, and Branch
    0.02: Session: Fetch session header information
    0.02: ...Metadata: Fetch page attributes for application 106, page 101
    0.03: ...Validate item page affinity.
    0.03: ...Validate hidden_protected items.
    0.03: ...Check authorization security schemes
    0.03: Session State: Save form items and p_arg_values
    0.03: ...Session State: Save "P101_USERNAME" - saving same value: "jps"
    0.03: Processing point: ON_SUBMIT_BEFORE_COMPUTATION
    0.03: Branch point: BEFORE_COMPUTATION
    0.03: Computation point: AFTER_SUBMIT
    0.03: Tabs: Perform Branching for Tab Requests
    0.03: Branch point: BEFORE_VALIDATION
    0.03: Perform validations:
    0.03: Branch point: BEFORE_PROCESSING
    0.03: Processing point: AFTER_SUBMIT
    0.03: ...Process "Set Username Cookie": PLSQL (AFTER_SUBMIT) begin owa_util.mime_header('text/html', FALSE); owa_cookie.send( name=>'LOGIN_USERNAME_COOKIE', value=>lower(:P101_USERNAME)); exception when others then null; end;
    0.04: ...Process "Login": PLSQL (AFTER_SUBMIT) wwv_flow_custom_auth_std.login( P_UNAME => :P101_USERNAME, P_PASSWORD => :P101_PASSWORD, P_SESSION_ID => v('APP_SESSION'), P_FLOW_PAGE => :APP_ID||':1' );
    0.06: ...Process "Clear Page(s) Cache": CLEAR_CACHE_FOR_PAGES (AFTER_SUBMIT) 101
    0.06: Nulling cache for application "106" page: 101
    0.00:
    0.00: S H O W: application="106" page="1" workspace="" request="" session="695371898690095"
    0.01: alter session set nls_language="AMERICAN"
    0.01: alter session set nls_territory="AMERICA"
    0.01: ...NLS: Set Decimal separator="."
    0.01: ...NLS: Set NLS Group separator=","
    0.01: ...NLS: Set date format="DD-MON-RR"
    0.01: ...Setting session time_zone to -04:00
    0.01: NLS: wwv_flow.g_flow_language_derived_from=0: wwv_flow.g_browser_language=en-us
    0.01: Application 106, Authentication: CUSTOM2, Page Template: 2904114531488186
    0.01: ...Session ID 695371898690095 can be used
    0.01: ...Application session: 695371898690095, user=JPS
    0.01: ...Determine if user "JPS" workspace "1040027630222986" can develop application "106" in workspace "1040027630222986"
    0.01: ...Check for session expiration:
    0.01: Session: Fetch session header information
    0.01: ...Metadata: Fetch page attributes for application 106, page 1
    0.01: Fetch session state from database
    0.02: Branch point: BEFORE_HEADER
    0.02: Fetch application meta data
    0.02: Computation point: BEFORE_HEADER
    0.02: Processing point: BEFORE_HEADER
    0.03: Show page template header
    0.03: Computation point: AFTER_HEADER
    0.03: Processing point: AFTER_HEADER     
    0.04: Computation point: BEFORE_BOX_BODY
    0.04: Processing point: BEFORE_BOX_BODY
    0.04: Region: Auction_Title F106_AUCTION_YEAR

  • How to set a page item to either of two sources?

    Hello Folks,
    I would like some advice with the following:
    On P1 there is a text field, say p1_text. The users enters a value into p1_text. This is validated.
    If the p1_text value validates OK, and the next button is pressed, there is a branch to page 2, which has a sql query page item named p2_dest which should use :p1_text in a where clause.
    If the p1_text value does not validate OK, the user is then presented with a Select List named p1_select (p1_text is now hidden). When the next button is pressed, there is a branch to page 2, and the sql query page item, p2_dest should now use :p1_select in a where clause (instead of :p1_text).
    I have the validation and presentation of either p1_text or p1_select working OK, but would really appreciate suggestions on how to set the one item on page 2 with either of the page 1 items when the branching occurs.
    Thanks
    KIM

    I used pl/sql in a page process on P2 to implement this logic to set a P2 item. I removed the setting of items from the calling page branch process.
    Cheers
    KIM

  • How to set background ChoiceBox item color to ChoiceBox with css?

    How to set background ChoiceBox item color to ChoiceBox with css?
    I need to change items list backgound color.
    I tried with following code, but it doesnt helps:
    .choice-box .context-menu {
      -fx-backgound-color: red;
    .choice-box .menu-item{
      -fx-background-color: red;

    In Java 8, either of your selectors should work.
    In Java 7 (JavaFX 2.2), you need the following workaround:
    #choice-box-menu-item {
         -fx-background-color: red ;

  • How to set Document Library Item Limit at Site Collection level?

    Hi,
    I have SharePoint which contains one Site collection with many Sites. Each sites has many document library.
    Actually my requirement is, End Users  wants to see only 10 items per page in document library. We can manually set by using "Item Limit" option but i could not set that for around 150 document libraries.
    Is there any possible to set that in Site Collection level?
    Thanks & Regards
    Poomani Sankaran

    You can run for each loop and use below code
    http://get-spscripts.com/
    #Get the site and list
    $web = Get-SPWeb "http://portal/sites/testsite"
    $list = $web.GetList(($web.ServerRelativeUrl.TrimEnd("/") + "/Shared Documents"))
    #Get the list view to be changed
    $newview = $list.Views["Sort by modified date"]
    #Set the mobile and default mobile view properties
    $newview.MobileView = $true
    $newview.MobileDefaultView = $true
    #Update the view configuration
    $newview.Update()
    $web.Dispose()
    $web.Lists[0].Views[0].RowLimit=30
    $web.Lists[0].Views[0].Update()
    How you can get all list using powershell
    http://sharepointrelated.com/2011/11/28/get-all-sharepoint-lists-by-using-powershell/
    If this helped you resolve your issue, please mark it Answered

  • How to set an application item when report column link is clicked?

    I am trying to set the short name of a bread crumb entry when I drill into a detail from an interactive report page.
    The master report has a column link with target = detail - "page in this application"
    I can pass page items through the URL and they are set on the target page.
    How can I set an application item before the target page is called?
    Is there a way to set a process before the link is followed?

    Kenneth,
    I'm not totally sure that I understood the question but, it soounds like you want to set the value of some page items on the page that is opened when you click a link on a column in the master window. Is this right?
    If so, you can achieve what you want by creating hidden page item(s) on the target page. In the master page, on which every column provides the link, go into Report Attributes, click on the link column and scroll down to the section labeled "Column Link" Within this section, set the link text to the current column value, e.g. #MASTER_REPORT_COLUMN_NAME_HERE#. Set the target to "Page in this Application" and pick the page number for the target window.
    Underneath this you will see a section to set set the value for page items. If you click the flashlight, you can search for the hidden page item that you created above. Use the same value to set it as you did the link text, i.e. #MASTER_REPORT_COLUMN_NAME_HERE#. Do this and let APEX take care of passing the values on the URL.
    On the child page, just set whatever control you want to dynamically pick up the value from the hidden field. For example, if you hidden field where named P4_CLEARER_NAME. You could set the title attribute to "Contact Information for &P4_CLEARER_NAME."
    You need the preceeding "&" and terminating "." around the name of you hidden page item to do this.
    -Joe

  • How to set the default item showed in a h:selectonemenu

    I need to show the second, or the third, and on so.
    i tried some ways to set the default item showed in it, but failed.
    i had tried the attribute value, but it stiil showed the first item.
    Can u help me?
    in the JSP
    <h:selectOneMenu id = "companyName" rendered="true" binding="#{j03CMSyainAddBean.selectCompany}" style="width:150">
           <f:selectItems value="#{j03CMSyainAddBean.companyList2}"/>
    </h:selectOneMenu>in the back BEAN
    private UISelectOne selectCompany;
    private ArrayList companyList2;In the ArrayList companyList2, there are several selectItems.
    Thanks
    George

    Sanjeev K Sharma wrote:
    and without messing with /boot/grub/grub.cfg  ?
    I need this so that new kernels show up but do not change the default boot kernel
    Is there a way to do it by file name instead of position within the menuentry / submenu list?
    I found some ubuntu and fedora sugestions but all by position, none by name
    AND how to set the kdump kernel as the default?
    Arch is putting this kernel under a submenu - would this pose problems for setting it as the default?
    In /etc/default/grub you can use the name of your entry you wish to use as default
    GRUB_DEFAULT='Arch Linux, with Linux core repo kernel'
    You can tell grub to stop using submenus by doing:
    GRUB_DISABLE_SUBMENU=y
    Or you can just make a purely custom menuentry in /etc/grub.d/40_custom if you'd like:
    menuentry "Other Linux" {
    linux <KERNEL IMAGE HERE>
    initrd <INITRD IMAGE HERE>
    EDIT: /etc/grub/default -> /etc/default/grub
    Last edited by Slabity (2015-04-07 11:16:22)

  • Forms 10g : How to set the Database Item property for an item dynamically ?

    Hello all,
    I have a requirement where I need to set the database item property of an item to TRUE/FALSE
    dynamically at runtime based on certain conditions.
    Earlier, in forms 6i I've used,
    Set_Item_Property (<item_name>, DATABASE_ITEM, PROPERTY_TRUE);
    But in Forms 10g it doesn't recognize this Database_Item property and gives a compilation error.
    Have I overlooked something or has this property become obsolete in Forms 10g ?
    If obsoleted what is the replacement property ?
    Regards,
    Sam

    Some options:
    1. Create a database-view, including the "real" column in databases where it exists and a "dummy"-column in databases where it doesn't exist.
    If that's not possible,
    2. set database="No" for your item and
    -- create a POST-QUERY-trigger which reads the data for that column from the database, if the column exists, and
    -- create a ON-UPDATE-trigger which includes an
    UPDATE_RECORD;
    UPDATE THETABLE SET
      THECOLUMN=thevalue
    WHERE  ROWID=:THEBLOCK.ROWID;3. Base your block on either a select-from-clause, a ref-cursor or a procedure to adjust he query-part,, for saving use a procedure.

  • How to set lov criteria item dynamically

    Hi,
    pl let me know how can we set the lov criteria item programatically.
    i have 2 lov's.if the 1st lov has a null value then 2nd lov shud have a null value.
    but if 1st lov has a value then 2nd lov has to populate values based on the value in the 1st.
    pl do help me
    thanks

    Hi,
    Can you check the OAMessageLovInput
    s addLovRelations api.
    Eg.
    OAMessageLovInputBean mlib =(OAMessageLovInputBean)webBean.findChildRecursive("id of lov");
    mlib.addLovRelations(pageContext, "inputTest", // base page item
    "Empname", // lov item
    LOV_RESULT, // direction
    LOV_REQUIRED_NO);
    mlib.addLovRelations(pageContext, "inputTest", // base page item
    "Empname", // lov item
    LOV_CRITERIA, // direction
    LOV_REQUIRED_NO); // Enable Look
    Thanks.
    With Regards,
    Kali.
    OSSI.

  • How to set the menu item you want highlighted upon playing DVD

    I have a list of about 9 menu items on my main DVD menu. The 6th one is the one that is highlighted when you play the DVD. This happens in submenus as well. I want the FIRST one highlighted at all times. Is there a way to set that?
    Thanks for any help in advance.

    I was having this problem and I found a fix. It all happens in map view.
    I'm viewing my iDVD project map horizontally... Left to Right.
    Whatever object is directly to the right, will be the default. Here's a lame diagram.
    MENU-MOVIE 1
    -MOVIE 2
    -MOVIE 3
    In this example... Movie 1 is the default. It's right next to Menu. Want to change it? Got everything saved? Then select Movie 1 and hit Cmd-X to Cut.
    It will disappear in a poof of smoke. Don't panic. Notice how the other movies got "promoted?"
    MENU-MOVIE 2
    -MOVIE 3
    Now Movie 2 is the default. SO!
    Select the MENU object and hit Cmd-V to Paste.
    Movie 1 should return at the bottom of the list. Like so.
    MENU-MOVIE 2
    -MOVIE 3
    -MOVIE 1
    Now preview your work to make sure.
    Good Luck!

  • How to set different navigation items for each content tab in xMII portal

    Hi,
    Scenario : I have added three content tabs in the xMII portal.
    I want to change the items in the navigation tree when each of the content tabs are selected.
    How is this possible?
    Please help.

    Vaishali,
    The built-in navigation tree is not intended for this sort of thing, where just like with the tabs it is intended to provide role/user based content links.
    You would be better off having your content tab link pass a criteria to the default target frame and allow a web page to give you the second level of dynamics.  Your content tab links could be something quite simple like "Page.irpt?Tree=1", "Page.irpt?Tree=2", "Page.irpt?Tree=3" and your irpt page would receive the Tree property and you could react accordingly in your web page.
    Regards,
    Jeremy

  • How to set by code items selected in  listbox

    I have a listbox in which user can make multiple selections.And I have a button which make a specific action but it is clicked I want that the selected Items in the listbox remain selected.
    Due to the fact that the page is reloaded after the click on the button the listbox is populated without having any selected item.
    How can I do this please.
    Thanks in advance.

    I'm not positive I understand your question completely but I am going to take a guess that your asking how to make a command button do its action while not affecting your listbox.
    This is really a tricky problem because i'm assuming these two components are sharing the same form.
    The easiest solution would be to create two separate forms for each. The solution for a single form would be to capture the state that the listbox is in which is a little more difficult.

  • How to set particular comboBox item selected once frame loaded?

    I have a comboBox with all the items with data and labels
    (set in the parameter of comboBox). However, I can't set the
    particular comboBox item to display when the frame entered, like
    this:
    var listenerObject:Object = new Object();
    listenerObject.load = function(eventObject:Object) {
    _root.cb.selectedIndex=3;
    _root.cb.addEventListener("load", listenerObject);
    What's wrong?

    You cannot use the load event on a frame, because by the time
    the code runs the component has already been loaded. But what you
    can do is set the properties directly in that frame wihtout the
    need of a listener. Simply write this,line instead of all the
    previous code:
    _root.cb.selectedIndex=3;

  • How to set first Item in combobox

    Hi all,
    I am struggling to find out how to set the first item of the
    combobox as say "Select" because the fields i display in the
    combobox
    are optional for the user to select.
    I have in the dataprovider of combobox set to an
    arraycollection populated by a call to fill method.
    But these items should be displayed below "Select".
    Can anyone help me on this.
    Thanks,
    Lakshmi

    Hi
    Try
    yourcomboxox.prompt = "Select";
    yourcombobox.selectedIndex = -1;
    http://livedocs.adobe.com/flex/201/langref/index.html?mx/controls/ComboBox.html&mx/control s/class-list.html
    HTH
    John

  • c:foreach Don't know how to iterate over supplied "items"

    I keep getting this error (Don't know how to iterate over supplied "items" in <forEach>) whenever i run my jsp page.
    JSP Code:
    <c:set var="page_action" value="${sessionScope.httpData.find_Fix}" />
                        <c:set var="LoadedUpdates" value="${sessionScope.hotFix.fixDetails}" />
    <c:if test="${page_action != null}" >
    <div class="hot-fix">
    <table>
    <c:forEach items="${LoadedUpdates}" var="updates" varStatus="status">
    <tr>
    <td> ${status.count} </td><td><c:out  value="${updates}" /></td>
    </tr>
    </c:forEach>
    </table>
    </div>
    </c:if>JAVA Code (Backend Bean):
    import com.sun.java.util.collections.ArrayList;
    public class HotFixLoader {  
    ArrayList fixdetails = new ArrayList();
    public HotFixLoader(){
    for (int i = 0; i < 10; i++){       
    fixdetails.add("<a href=\"#\">xxxxxx</a>, xx/xx/xxxx, xyxyxyxyxy");
    public ArrayList getFixDetails(){
    return fixdetails;
    }

    Please don't post your problem multiple times http://forum.java.sun.com/thread.jspa?threadID=720679&messageID=4157979#4157979

Maybe you are looking for