Programmatic openPanels and Dynamic Accordion Content

I have been trying to add links to programmatically open
panels in my accordion, which is successfully populated with an XML
dataset. It doesn't seem to work, (tried using both "simple
navigation" and "panel index" links).
This does work when the data in the accordion is hard-coded.
I created a test page directly from the AccordionSample2 page
in the samples with Spry 1.5 (all of my files are 1.5).
I added the programmatic links to open each of the 2 methods
of populating the accordion on that page, and they don't seem to
work, either.
Test Page is here:
www.imagicdigital.com/spry/AccordionSample2test.html
I thought perhaps the dynamically created accordion is using
a different id, so that's why the programmatic linking doesn't
work, but when I viewed the generated markup with the debugger, it
appears to use the given id.
Any thoughts or help? Thanks in advance.

http://labs.adobe.com/technologies/spry/samples/utils/URLUtilsSample.html
that might help u out. the bottom example is a tabbed widget
that gets activated by clicking a link.
and this;
http://labs.adobe.com/technologies/spry/articles/data_api/apis/collapsible_panel.html#meth ods
might help u out to.
also, u might want to add the
<script type="text/javascript">
var a1 = new Spry.Widget.Accordion("Acc2");
</script>
part, becouse that is missing, and its giving errors. and if
u have firebug installed u will see those errors on firefox.
getfirefox.com <-- firefox
getfirebug.com <-- firebug

Similar Messages

  • Spry:state and dynamic accordion

    When I use a dynamic accordion (i.e. populated by a dataSet),
    the accordion functionality disappears. Here is my code. Am I doing
    something wrong, or is this just a bug?
    Thanks
    Andy
    <div spry:region="dsOrders">
    <div spry:state="loading">Data is
    loading...</div>
    <div spry:state="error">Error loading
    data...</div>
    <div spry:state="ready">
    <div id="orders" class="Accordion">
    <div class="AccordionPanel" spry:repeat="dsOrders">
    <div class="AccordionPanelTab"><h3
    spry:content="{ORDERNUM}"></h3></div>
    <div class="AccordionPanelContent"><span
    spry:content="{ORDERDATE}"></span></div>
    </div>
    </div>
    </div>
    </div>

    This might also be helpful to some. Not only do we have
    states in SPRY... but events! Here is how I did it on a site that
    has a dataset called dsOpportunities. The following HTML/Javascript
    was added to the head tags of the HTML. Then the on <body
    onload="afterReady()" > was used to make sure it was run.
    Remember that your section you are hiding needs to have a class
    with the same senario. (Or if it is unique you could do something
    simular with ID rather than class.
    <script>
    function afterReady() {
    $('pageContent').style.visibility = 'hidden';
    var iSPRY = new Object;
    iSPRY.onPostLoad = function(dataSet,data) {
    $('pageContent').style.visibility = 'visible';
    dsOpportunities.addObserver(iSPRY);
    </script>
    <style>
    .pageContent {
    visibility: hidden;
    </style>

  • Print Specific Frames and Dynamic XML content

    Hello, I am trying to print specific frames of my Flash movie
    with the dynamic text loaded from an XML file. The code below only
    prints the current frame I am on and does not print the XML text.
    The dataOK that is commented out is a function I have before that
    loads the XML content. The XML content is loaded to dynamic text
    boxes. Any help on this would be greatly appreciated.

    I am still having difficulty loading the XML data and the
    frameNum parameter does not seem to work. Argghhhh....
    function printTut(myevent:MouseEvent):void{
    var myPrintJob:PrintJob = new PrintJob();
    var mySprite:Sprite = new Sprite();
    var printArea:Rectangle = null;
    var options:PrintJobOptions = null;
    var frameNum:int = 2;
    mySprite.addChild(stage);
    mySprite.rotation=90;
    mySprite.scaleY=.80;
    mySprite.scaleX=.80;
    myPrintJob.start();
    myPrintJob.addPage(mySprite,printArea,options,frameNum);
    myPrintJob.send();
    print_btn.addEventListener(MouseEvent.CLICK,printTut);

  • Dreamweavers CS5 and Dynamically related content.

    Why do the web pages look empty on the Dremaeaver design view? When I preview them in a browser they look fine. And when I imported the pages to Dreamweaver from the Local Server I thought it was the same thing. Its not the same? Can anyone help with the dynamic related files and how to discover them? I think it will work if the server set up details are correct. Its probably the document root or server root and FTP connection. These are free opensource sccripts that do not go any further to use in dreamweaver.

    Please give us a link to the live page so we can see the underlying code.

  • Spry Tabbed panels + Progressive Enhancement and Dynamic Loading of Content With Spry

    Is there any way to combine tabbed panels together with "Progressive Enhancement and Dynamic Loading of Content With Spry"?
    Visit: http://labs.adobe.com/technologies/spry/articles/best_practices/progressive_enhancement.ht ml#updatecontent
    And click on the "Using Spry.Utils.updateContent()"
    The 3rd example shows how to use a fade transition whenever the content changes.
    I already have tabbed panels. My menu contains buttons (on tabs) and my Content div contains the panels.
    Tabs code;
    <ul class="TabbedPanelsTabGroup">
              <li class="TabbedPanelsTab">
                   <table class="Button"  >
                        <tr>
                        <td style="padding-right:0px" title ="Home">
                        <a href="javascript:TabbedPanels1.showPanel(1);" title="Home" style="background-image:url(/Buttons/Home.png);width:172px;height:75px;display:block;"><br/></a>
                        </td>
                        </tr>
                   </table>
              </li>
    etc
    etc
    etc
    and the panel code:
    <div class="TabbedPanelsContent" id="Home">
         CONTENT
    </div>
    I hoped i can use the example code from the link into my tabbed panels.
    I thought this code:
    onclick="FadeAndUpdateContent('event', 'data/AquoThonFrag.html'); return false;"
    could be added to the tab code like this:
    <a href="javascript:TabbedPanels1.showPanel(1);" onclick="FadeAndUpdateContent('event', 'data/AquoThonFrag.html'); return false;" title="Home" style="background-image:url(/Buttons/Home.png);width:172px;height:75px;display:block;"><br/></a>
    But the content doesnt fade...
    I know i need to change the header etc.
    The following is from the link:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xmlns:spry="http://ns.adobe.com/spry">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Aquo Events</title>
    <script src="../../../includes/SpryEffects.js" type="text/javascript"></script>
    <script src="../../../includes/SpryData.js" type="text/javascript"></script>
    <script type="text/javascript">
    <!--
    function FadeAndUpdateContent(ele, url)
    try {
         Spry.Effect.DoFade(ele,{ duration: 500, from: 100, to: 0, finish: function() {
              Spry.Utils.updateContent(ele, url, function() {
                        Spry.Effect.DoFade(ele,{ duration: 500, from: 0, to: 100 });
    }catch(e){ alert(e); }
    -->
    </script>
    <style type="text/css">
    /* IE HACK to prevent bad rendering when fading. */
    #event { background-color: white; }
    </style>
    </head>
    So i changed my header etc, put the SpryEffects.js and SpryData.js into position and nothing changed...
    Is there a way to keep my tabbed panel (or change as less as possible) and let
    A. The fade work
    B. The loading work.
    The problem now is that it loads all pages instead of only the home. Therefore i wanted this Progressive Enhancement.
    And the fading part is just because its nice...

    It doesnt show in the post but off course i changed this link;
    "data/AquoThonFrag.html"
    into;
    "javascript:TabbedPanels1.showPanel(1);"
    I must say i dont know if this even works...

  • Mixing static and dynamic content in a single outputText value causes NPEs

    Hi,
    I am having a problem and I'm wondering if it is a result of my error or if this is a bug.
    I am mixing dynamic and static content in the value attribute of tags (e.g., outputText). On initial page load, everything works fine. However, if the same view is reloaded (e.g., after a failed validation) I get an NPE from JSF:
    [#|2006-10-24T08:49:03.756-0500|SEVERE|sun-appserver-pe8.2|javax.enterprise.system.container.web|_ThreadID=12;|StandardWrapperValve[Faces Servlet]: Servlet.service() for servlet Faces Servlet threw exception
    java.lang.NullPointerException
            at com.sun.faces.el.MixedELValueParser.getNextToken(MixedELValueParser.java:140)
            at com.sun.faces.el.MixedELValueParser.parse(MixedELValueParser.java:123)
            at com.sun.faces.el.MixedELValueBinding.getValue(MixedELValueBinding.java:60)
            at javax.faces.component.UIOutput.getValue(UIOutput.java:147)
            at com.sun.faces.renderkit.html_basic.HtmlBasicInputRenderer.getValue(HtmlBasicInputRenderer.java:82)
            at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.getCurrentValue(HtmlBasicRenderer.java:201)
            at com.sun.faces.renderkit.html_basic.LabelRenderer.encodeBegin(LabelRenderer.java:128)
            at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:683)
            at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:443)
            at com.sun.faces.renderkit.html_basic.GridRenderer.encodeChildren(GridRenderer.java:233)
            at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:701)
            at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:445)
            at com.sun.faces.renderkit.html_basic.GroupRenderer.encodeChildren(GroupRenderer.java:130)
            at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:701)
            at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:445)
            at com.sun.faces.renderkit.html_basic.GridRenderer.encodeChildren(GridRenderer.java:233)
            at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:701)
            at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:445)
            at com.sun.faces.renderkit.html_basic.GroupRenderer.encodeChildren(GroupRenderer.java:130)
            at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:701)
            at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:445)
            at com.sun.faces.renderkit.html_basic.GridRenderer.encodeChildren(GridRenderer.java:233)
            at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:701)
            at javax.faces.webapp.UIComponentTag.encodeChildren(UIComponentTag.java:609)
            at javax.faces.webapp.UIComponentTag.doEndTag(UIComponentTag.java:546)
            at com.sun.faces.taglib.html_basic.PanelGridTag.doEndTag(PanelGridTag.java:460)
            at org.apache.jsp.registration_jsp._jspx_meth_h_panelGrid_0(registration_jsp.java:324)
            at org.apache.jsp.registration_jsp._jspx_meth_h_form_0(registration_jsp.java:223)
            at org.apache.jsp.registration_jsp._jspx_meth_f_view_0(registration_jsp.java:157)
            at org.apache.jsp.registration_jsp._jspService(registration_jsp.java:118)
            at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:105)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
            at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:336)
            at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:297)
            at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:247)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
            at sun.reflect.GeneratedMethodAccessor188.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:585)
            at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249)
            at java.security.AccessController.doPrivileged(Native Method)
            at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
            at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282)
            at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:257)
            at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:55)
            at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:161)
            at java.security.AccessController.doPrivileged(Native Method)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
            at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:723)
            at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:482)
            at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:417)
            at org.apache.catalina.core.ApplicationDispatcher.access$000(ApplicationDispatcher.java:80)
            at org.apache.catalina.core.ApplicationDispatcher$PrivilegedForward.run(ApplicationDispatcher.java:95)
            at java.security.AccessController.doPrivileged(Native Method)
            at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:313)
            at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:326)
            at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:132)
            at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87)
            at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:248)
            at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
            at javax.faces.webapp.FacesServlet.service(FacesServlet.java:194)
            at sun.reflect.GeneratedMethodAccessor202.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:585)
            at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249)
            at java.security.AccessController.doPrivileged(Native Method)
            at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
            at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282)
            at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:257)
            at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:55)
            at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:161)
            at java.security.AccessController.doPrivileged(Native Method)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
            at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:263)
            at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
            at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:225)
            at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:173)
            at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
            at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
            at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
            at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:132)
            at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
            at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:933)
            at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:189)
            at com.sun.enterprise.web.connector.grizzly.ProcessorTask.doProcess(ProcessorTask.java:604)
            at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:475)
            at com.sun.enterprise.web.connector.grizzly.ReadTask.executeProcessorTask(ReadTask.java:371)
            at com.sun.enterprise.web.connector.grizzly.ReadTask.doTask(ReadTask.java:264)
            at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:281)
            at com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:83)My code looks like this:
    <h:outputText escape="false"
              value='<link href="#{myBean.styleSheet}" rel="stylesheet" type="text/css"  />' />If I replace this with a much more convoluted set of tags, it works:
    <h:outputText escape="false"
              value='<link href="' /><h:outputText escape="false" value="#{myBean.styleSheet}"
              /><h:outputText escape="false" value='" rel="stylesheet" type="text/css" />' />So is the problem that I am mixing dynamic and static content with a single value? If so, why does it work on the first view, and not after?
    If it matters, I'm using the reference implementation version 1.1 (as included with NetBeans 5.5RC2) on SuSE 10.0 w/ JDK 1.5_09.
    Thanks,
    Bill

    Yes, that's how I originally had it, but then changed it to the outputText approach since a single tag could do what I wanted, as long as I was allowed to mix static and dynamic content within a single value.
    I think this is a bug in JSF 1.1, since if what I am doing is illegal, it should throw an exception on the first page view, not work on first view and throw an exception on subsequent views. I'm guessing that this has something to do with the fact that on first page view it only runs the restore view and render response JSF phases, while on subsequent requests all of the phases will be run, and it's in one of those other phases that the exception is thrown.
    For now, multiple tags is the work-around, I guess.
    Thanks,
    Bill

  • Spry:Content and Dynamic Spry Data

    Is there a way to get the spry:content attribute to work well
    with dynamic data generated from PHP/MySQL? I have read the
    progressive enhancement article and I am totally lost on it.
    The provided examples in the documentation deal with static
    data but there are so example of using spry:content and dynamic
    data.
    Can anyone help?
    Thanks

    Hi Arnout
    These are the urls:
    http://www.grafikkaos.co.uk/pages/front/test_home.php
    - this one displays the spry:content properly, but in the source,
    it does not show the 5 articles.
    http://www.grafikkaos.co.uk/pages/front/test_home_2.php
    - I applied a PHP repeat region here. In the source, it shows 5
    articles being shown but on page view, each title and date is
    repeated 5 times.
    Any ideas?
    Thanks

  • Combining image and text in accordion content panel

    Hello,
    I'm having difficulty displaying image and text together within an accordion content panel.  What I need is a thumbnail photo of a staff member plus a short bio.  I've put a panel together so it displays as needed in Live View, but not in IE8, Foxfire8, or Chrome.  I'm using Dreamweaver 5.5, Spry 1.6.1, Windows 7.
    Here's the code for the panel that includes an image not displaying:
    <div class="AccordionPanel">
    <div class="AccordionPanelTab">Stan Swiercz, Training Manager</div>
    <div class="AccordionPanelContent">
    <div class = "PanelImage"> <img src="/images/StanSwiercz.jpg"/></div>
    Bio text goes here</div>
    </div>
    Here's a link to a test page (ignore funky color variations, still settling those).  The panel that is set to open should display an image floating left with text wrapping, as it does in Live View.
    http://cet-training.org/Test%20folder/people.html
    I''ve double-checked documentation, help, and done searches, but can't find any information about what should be an easy thing to do.  Any help out there?
    Thank you very much,
    George

    The location of the image is http://cet-training.org/Test%20folder/images/StanSwiercz.jpg (click the link to see the image)
    This is the markup from your document <img src="/images/StanSwiercz.jpg"/> which means that the image is located in the images folder which is located in the root directory.
    Hence the image cannot be found by your document.
    The following are possible solutions, please choose one only
    change the location of the images folder to reside in the root directory
    delete the leading slash from the link as in <img src="images/StanSwiercz.jpg"/>
    change the link to an absolute value as in <img src="http://cet-training.org/Test%20folder/images/StanSwiercz.jpg"/>
    Gramps

  • Variable Substitution and Dynamic Configuration

    Hi All,
    In Variable Substitution , the name that should be given the the receiver payload should be part of the Source Payload unlike the Dynamic Configuration wherein the file name can be generated dynamically during mapping.
    I have the following questions
    1.Dont we need to write the UDF for the Variable substitution?
    2.Cant we do the Dynamic configuration without writing UDF?If so then how?
    3.In Dynamic Configuration the file name is generated dynamically.But where does the file name come from if it is not the part of the source payload?
    Thanks in advance

    Hi Shwetha,
    1.Dont we need to write the UDF for the Variable substitution?
    No. Here we are accessing the contents of the payload to the target. So no UDF required.
    2.Cant we do the Dynamic configuration without writing UDF?If so then how?
    Yes and No.
    Because we can set only few Dynamic configuration  values without UDF.
    If both source and target are File, then check ASMA on both sender and receiver. Then u can get the source directory name and source file name for target also without any UDF.Also some other parameters.
    3.In Dynamic Configuration the file name is generated dynamically.But where does the file name come from if it is not the part of the source payload?
    The file name comes along with the source in the payload as a attribute in header. U can view this in SXMB_MONI, and Dynamic Configuration.
    In Dynamic Configuration the file name is generated dynamically.
    No the file name is taken as it is from the source, if u want to change dynamically that u have to do in a UDF.
    I hope this will clear all doubts,
    If nt pl post
    Babu

  • Dynamically Updating Content Server Portlets

    [urlHi, I am currently having difficulty dynamically updating content server portlets.  I have a portlet of the following form:[/url]
    ArticleName Author Title Date mystory author1 title1 04/05/01
    story2 author2 title2 06/07/04
    story author3 title3 01/02/03
    So I have this table where each one of the line items is an article in the content server. So, for example the first line item is an article "mystory" by "author1", with title "title1" and date "04/05/01" additionally there is an article text field, but this isn't displayed unless I click on the article name.
    I can set up the basics of this portlet, but when I try to add any real functionality I run into one of two problems.
    First Problem: Passing Information
    I cannot find a way to pass information between content portlets. For instance, if the user would like to "re-sort" this table based on "date", I would like to have the user click on the "date" column heading and then reload the page. To do so, I would have to pass the section name back to the page so that it could resort based on this data. I have not found anyway to effectively pass information to a content server portlet. I am building these pages through use of the presentation template framework (so I can have access to the content items) but that seems to change the way portlets are handled.
    I got around this limitation with a regular portlet by creating an intermediary page which captures passed information and stores it to the session state. Once the information was in the session state, it is accessible to the portlet on the first page. However, this only works because remote portlets do not change their session id once loaded. Content Server portlets, on the other hand, change their session id after every reload of the browser or page change. I can send information from a content server portlet to an intermediary page, but I cannot send it back to the portlet because the session id has changed so I have no idea of knowing where to send the information. I can write it to a session state, but by the time I return to the portal page, the content server has changed its session id so it does not know where to look any longer.
    I suppose it would be possible to create an application state variable and append it with some static token (if there is some static variable per portal session) but I would rather not have to deal with application variables if at all possible.
    Second Problem: Dynamically Updating PCS Tags
    Even if I were able to the pass information back to my content server portlet, I run into another issue. The easiest way to sort content server items is using the filter command in the pcs:foreach tag. So, if I wanted to sort by author name, I could do something like the following <pcs:foreach var="item" expr="filter(folderByName('content'), filtered.name == '"name")" or something like that (the syntax may be incorrect, I just wrote this off the top of my head). However, it appears that the way the presentation templates are compiled goes in the order of PCS tags THEN JSP. So I would have no way of dynamically changing the variable on which I sort. For example, if I clicked on "Date" above in my table, I would like to be able to dynamically change my code so that I sort on date, and not name. I cannot find a solution to this problem.
    My workaround is to use the pcs tags to write out all the possible sortings to java array objects. This gives me access to the data on a JSP level and based on whatever the user will chose, I could then display that array. While this works, it is extremely ghetto and inefficient. Any help or suggestions would be fantastic.
    Thanks a lot,
    Jason Grauel

    You can use just about any javascript you want in any Content Server presentation template including ones that are used for portlets.
    However, you should be careful to name javascript functions and global variables uniquely so that they do not conflict with any other javascript on the page. To do this, you can append the item id to function and variable names, for example,
    function doSomething<pcs:value expr="pcs_id"></pcs:value>() {
    return true;
    Randy

  • Is there a way to autoscroll the current accordion content to top of browser window?

    So this is a topic I have seen brought up but never solved….
    I have an accordion on my site which displays content larger than the browser window, so when you scroll down to the bottom of the content box and get to the next accordion topic and click on it stays in the same place in the broswer window however since the prior accordion content closes it leaves you scrolled half way down on the current content.
    So is there a way to bind an action where it autoscrolls and brings the browser to the top of the clicked accordion content?
    here you see the window scrolled to the bottom of the first accordion content and the second showing its hover state…. when you click on the "So i made.." content it leaves you with this...
    the middle of the second accordion content, causing you to have to scroll up to the top of it to continue reading….
    I found this jquery scrpit which supposedly would do it.  However since Muse exports is scripts differently it doesnt apply.
    $('.ui-accordion').bind('accordionchange', function(event, ui) {
                ui.newHeader // jQuery object, activated header
                ui.oldHeader // jQuery object, previous header
                ui.newContent // jQuery object, activated content
                ui.oldContent // jQuery object, previous content
                $('html, body').animate({scrollTop: $(ui.newHeader).offset().top}, 1);
    So now I need some help...
    Thx
    -Eric

    Hello,
    You can achieve this using the Anchors feature of Muse. Please follow the steps below :
    - Click on Anchor option in the toolbar as shown in the image :
    - Now click on the location on the webpage which you want to be the top of the page when click on Accordian panel triggers.
    - It will place the Anchor on that location. Now it will ask you to rename the anchor. Please rename the anchor to something convenient.
    - Now click on the first Accordian trigger and in the "Hyperlink" option in  the toolbar at the top, from the dropdown select the Anchor which you have added.
    - Do same for all the Accordian triggers.
    Now preview in a browser to see the results. Whenever you click on the Accordian trigger it will move to the location on the page where you have placed the anchor.
    Note : There is a known issue with the Anchors feature not working with Safari 6 (The latest version of Safari). It is a known bug and is likely to get fixed in future versions. You can test it using other Browsers.
    Hope this helps.
    Regards,
    Sachin

  • Dynamic accordion with dynamic datagrid

    I’m trying to create a dynamic accordion with embedded
    datagrids in each accordion area. I have the base working but have
    2 problems I can’t seem to figure out.
    Bases; the accordion uses a repeater and vbox with a custom
    component from a webservice result set to create the accordion. The
    custom component has another webservice that gets a value from the
    repeater to pass it to the custom component.
    My 2 problems:
    1. how do I prevent the custom component from running the
    webservice until the accordion item is clicked or the area is
    visible? Otherwise I end up will a bunch of queries hitting the DB
    and if there is several items for the accordion and many items from
    the datagrid its slower.
    2. how can I get the datagrid query to refresh when the
    accordion item is clicked? Because the data may change I am not
    able to see the updated data unless I reload the entire
    application.
    1 thing I did try. With the tab control you can use the
    show() event and the data will refresh just fine, but with the
    accordion, the show() event does not seem to fire. Its as if they
    are all visible.
    Any help here would be much appreciated, I’ve been
    racking my brain for days now and I sure it is something simple
    that I am missing. Thanks in advance.
    See the example code below.
    the application code:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="absolute"
    width="100%"
    height="100%"
    initialize="ws.getMethod1.send()"
    xmlns:output="com.comp.*">
    <mx:Script>
    <![CDATA[
    import mx.controls.Alert;
    [Bindable]
    public var thisWsdl:String = '
    http://localhost/webservice/service.cfc?wsdl';
    ]]>
    </mx:Script>
    <mx:WebService id="ws"
    wsdl="{thisWsdl}"
    useProxy="false"
    showBusyCursor="true"
    fault="Alert.show(event.fault.faultString, 'Error');"
    concurrency="multiple" requestTimeout="30">
    <mx:operation name="getMethod1">
    <mx:request>
    <param1>{param1data}</param1>
    <param2>{param2data}</param2>
    <param3>{param3data}</param3>
    </mx:request>
    </mx:operation>
    </mx:WebService>
    <mx:Accordion width="100%" height="100%"
    fillColors="[#808080, #808080]">
    <mx:Repeater id="rp"
    dataProvider="{ws.getMethod1.lastResult}">
    <mx:VBox label="{String(rp.currentItem.catname)}"
    backgroundColor="#C0C0C0" width="100%" height="100%"
    paddingRight="10">
    <output:comp catid="{rp.currentItem.catid}"/>
    </mx:VBox>
    </mx:Repeater>
    </mx:Accordion>
    </mx:Application>
    the component code:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:VBox xmlns:mx="
    http://www.adobe.com/2006/mxml"
    width="100%"
    height="100%"
    focusIn="ws.getMethod.send()"
    horizontalAlign="center"
    backgroundColor="#FFFFFF">
    <mx:Script>
    <![CDATA[
    import mx.controls.Alert;
    [Bindable]
    public var thisWsdl:String = '
    http://localhost/webservice/service.cfc?wsdl';
    [Bindable]
    public var catid:int;
    ]]>
    </mx:Script>
    <mx:WebService id="ws"
    wsdl="{thisWsdl}"
    useProxy="false"
    showBusyCursor="true"
    fault="Alert.show(event.fault.faultString, 'Error');"
    concurrency="multiple" requestTimeout="30">
    <mx:operation name="getMethod2">
    <mx:request>
    <catid>{catid}</catid>
    </mx:request>
    </mx:operation>
    </mx:WebService>
    <mx:DataGrid id="itemGrid"
    dataProvider="{ws.getMethod2.lastResult}" width="700"
    height="250">
    <mx:columns>
    <mx:DataGridColumn width="100" dataField="itemid"
    headerText="Item Id"/>
    <mx:DataGridColumn wordWrap="true" dataField="itemname"
    headerText="Item Name"/>
    </mx:columns>
    </mx:DataGrid>
    </mx:VBox>

    Perhaps you could use the change event of the accordion, or
    the show event of the child containers?
    Tracy

  • Read Dynamic Selection contents of a Variant for QE51N

    Hi Folks,
    Need your help here !
    In my report, I wish to read the Variants along with their contents created for transaction QE51N.
    I tried using function module RS_VARIANT_CONTENTS and its working good, but not to my requirements. The function module returns only the selection screen contents of a given variant. It does not return the contents in 'Dynamic Selection' (Free Selection).
    I read somewhere that the function module returns dynamic selection contents only if the report use Logical Database. To my understanding, the program for QE51N (SAPLQEES) do not use LDB.
    So is there any way by which I can get dynamic selection contents of a variant?
    Any suggestions / pointers would be a great help.
    Thank you.
    Regards,
    Sud.

    Hi,
    Did you find somethings? I have the same issue.
    I would like to add some new fields on Dynamic Selection screen of QE51N.
    Thanks in advance.
    KR,
    Arnaud

  • Dynamic email content

    Is it possible to place an email activity within a process flow and dynamically pass a subject/message to it.
    We are currently using OWB 9.0.4 and are in the process of upgrading to 9.2.0.2.8.
    Thanks,
    Dave

    At the moment, there is no way to dynamically change the content of the message (you have to type it in when defining the e-mail operator parameters.
    Regards:
    Igor

  • Dynamic Portal Content

    Dear All
    I am creataing a page on Portal will be used to display advertisements.
    Advertisments have many paragraphs. How can I manage the web content of such type on Portal.
    Using Webdynpro to fetch text from database is an expensive task.

    hi adnan,
    Web Content Management in the Enterprise Portal -
    The future of traditional Web Content Management (WCM) systems is uncertain. Businesses
    are increasingly implementing enterprise portal solutions that are primarily focused
    on application and business process integration. However, existing Web Content
    Management systems that concentrate on the creation, maintenance and provision of
    web-based content, for example for intranet operation, have become established in today’s
    enterprise. This development presents a new challenge for enterprise IT departments:
    These two very separate system worlds must be unified both in design and technology.
    Enterprise portals represent a direct advancement for intranets and dynamic websites,
    mainly due to the user-specific integration of applications and information in a single,
    unified user interface. In order to make a clear distinction, the terms “intranet” and “portal”
    should be defined:
    An intranet provides employees with information using static HTML pages and/or a Web
    Content Management System. Access to individual web-based applications from the
    intranet is made possible by simple links. Consequently, an intranet is designed mainly
    for the purpose of information distribution and is only marginally involved in process optimization.
    Since there is no logical connection between the applications, users are forced
    to log in separately to various applications with different user registration data. The required
    user names and passwords are usually not consistent throughout a company. Furthermore,
    roles are not part of intranet design and it is not possible to customize the
    user interface (“user customizing”).
    An enterprise portal is a complex integration infrastructure that consolidates application
    systems, services and information from a variety of different sources within an enterprise
    into a central, unified user interface (e.g. web browser) that is individually adapted for
    each employee and accessible from every desktop. Enterprise portal content is individually
    adapted for every employee or group; this is made possible by corresponding role
    concepts.
    Enterprise portals have opened a single point of entry for a variety of different business
    applications. So why not simply present the complex content required directly within the
    enterprise portal and completely replace existing extranet or intranet solutions? Most
    new generation portal software products neglect this concept. The Content Management
    they offer out of the box is rudimentary at best. Unfortunately, many IT decision makers
    are either partially or completely unaware of this shortcoming.
    On the other hand, there are highly sophisticated Web Content Management systems and
    products on the market – functionalities range from Internet building blocks for creating
    simple homepages to adequate workflow integration within the Information Lifecycle.
    Moreover, these systems include additional tools for generating navigational structures
    as well as editing and authoring tools for managing content on websites. Link management,
    approval workflows and access controls for designated areas of the web-based
    solution are practically taken for granted. A Web Content Management system delivers
    the technologies, tools and methods for creating, managing, storing, preserving and providing
    electronic content throughout the entire enterprise. This generally recognized defnition originates from AIIM International (Association for Information and Image Management
    International). Unlike document management, which can be described as a database-
    supported management system for electronic documents, Web Content Management
    encompasses web publishing, publishing intranet or internet pages and provides
    structured publication of web-based information.
    At first glance, deploying Web Content Management systems allows enterprises to unify
    web-based content and application-based information within a single enterprise portal,
    regardless of the format in which the information is available.
    Some WCM software manufacturers have already taken action and provide – specifically
    for the SAP NetWeaver™ Portal – comprehensive integration packages that integrate
    their high-performance Web Content Management systems in the portal software.
    But how do companies manage and supply the content to be published in an enterprise
    portal created on the basis of business-oriented portal software? At a time when users
    are already confronted with heterogeneous environments in their day-to-day work, every
    additional system is simply another burden. Integrating a high-performance, technologically
    advanced Web Content Management system in an enterprise portal is problematic
    because, to a great extent, both software solutions implement competing concepts and
    technologies which must be further explained.
    Both systems require their own server infrastructure and rely on their own, completely
    proprietary software architecture based on a separate database and/or data storage system.
    As a result, additional expenditure is incurred for all of the following aspects:
    · Parallel expenditure for hardware
    · Parallel expenditure for operation and monitoring
    · Parallel expenditure for backup & restore
    · Parallel expenditure for security design and implementations
    · Parallel expenditure for performance optimization
    · Parallel expenditure for administrator training
    From the perspective of an enterprise portal infrastructure, a Web Content Management
    system is a third-party system which must be integrated via interfaces. Thus, the following
    issues must be addressed:
    (1) Parallel existence of two navigational structures: a) navigational structures, pages
    and roles within the enterprise portal and b) menu items and storage structures
    within the external WCM system.
    (2) Editors are required to learn how to work with two different tools and user interfaces.
    (3) A search function must be developed that can be utilized for both systems; access
    rights for both systems must be given special attention here.
    (4) Parallel existence of two authorization concepts. Defining access rights in an enterprise
    portal is generally possible on the basis of users, groups, and portal roles in
    particular. Access rights management in a WCM system has its own administrator interfaces
    and authorization objects which need to be aligned.
    (5) Parallel workflow concepts: An enterprise portal has application-oriented workflow
    procedures that are usually based on the user administration integrated into the portal
    (users, roles and groups). A WCM system often uses its own staging concept for
    approving web pages based on its own workflow which exists parallel to the portal
    workflow.
    (6) Parallel user registration data management: Enterprise portals offer powerful features
    for user administration which must be used in addition to or in competition
    with the WCM system user administration. It makes sense to use a single LDAP interface
    for both systems. However, this does not solve the key problem: both systems
    have their own administration tools for user management.
    (7) Parallel security concepts: Enterprise portals offer very powerful security design concepts
    and functions; a WCM system has its own design concepts and these must also
    be managed and taken into consideration.
    (8) Some external WCM systems generate portal objects (e.g. menu items in portal
    roles) via interfaces. Changes to these generated objects are overwritten during
    each generation process making it impossible to use all of the functionality of the
    portal tools. Only the features that are generated and/or supported by the WCM system
    can be fully leveraged.
    (9) Parallel concepts for link management: There are different methods for creating and
    managing links in both software systems. A particular problem is posed by targets
    that affect the role-based navigational structure of the enterprise portal which generally
    cannot be conveniently selected as most editors would expect.
    (10) Parallel page creation and layout concepts (look & feel): Both systems have their
    own concept of performance-optimized page presentation. Similarly, both systems
    offer different methods and tools for editing the “look & feel” of the pages.
    Taking the above issues into consideration, serious thought should be given to integrating
    an external Web Content Management system in an enterprise portal. From a longterm
    perspective and when taking the Total Cost of Ownership into consideration, operating
    two IT systems as complex as these parallel to one another is impractical, even if the
    WCM system manufacturers offer portal-specific integration packages for their software.
    A closer look at these packages shows that many of the interface problems and design
    redundancies detailed above will nevertheless continue to persist.
    From the author’s perspective, every project involving Web Content Management in enterprise
    portals should question whether or not the desired editing processes and WCM
    requirements could be served with the standard features of the enterprise portal or covered
    by an expansion package or implementation and project work. This solution path is
    further explained in the following practical example.
    Practical example: Web Content Management in the SAP NetWeaver™ Portal
    With its SAP NetWeaver™ Portal, SAP not only provides the basis for a successful
    backend system for business process optimization, but also delivers basic Web Content
    Management functionalities. In order to structure the content, the SAP NetWeaver™ Portal
    utilizes a central tool - the Portal Content Studio.
    The Portal Content Studio offers a central environment for developing and managing all
    types of portal content, such as portlets (iViews), pages, layouts, worksets, roles, and
    packages.
    Figure 1: Portal Content Studio for the SAP NetWeaver™ Portal (source: btexx Portal)
    The most important object in the Portal Content Catalog is the role, which serves two
    purposes: First of all, the role is assigned to users or user groups, achieving the typical
    personalization required of an enterprise portal, secondly, the role in the SAP portal defines
    the menu structure that is linked to the role at the same time.
    A role can be implemented as a hierarchical tree structure with an infinite number of
    nested objects. The tree structure is formed by creating folders. Pages or iViews can be
    positioned at any level within the hierarchy. There are different types of iViews; typical
    examples of iViews are R/3 transactions, eBusiness applications, Internet/intranet applications,
    or content-based iViews (HTML content, text, graphics). iViews are typically positioned
    and arranged on pages but they can also be independently built into roles.
    Within a role, so-called Entry Points must be defined which are then included as a menu
    item in both of the top navigation bars of the portal menu. The portal menu is generally
    comprised of multiple roles (with corresponding Entry Points). However, the order of the
    menu items can be defined (using the Attribute Priority).
    Additionally, SAP provides an Internet platform that offers a selection of ready-to-use
    portal contents in a general catalog that can be imported into the Portal Content Studio.
    SAP calls these out-of- the-box solutions SAP Business Packages. Partners and other
    software manufacturers are able to provide solutions and/or interfaces based on this
    platform and have them certified by SAP (SAP offers a certification program especially
    designed for these solutions). The iView list for the so-called Portal Content Portfolio
    (formally iView Studio) includes thousands of iViews.
    The SAP Portal Content Portfolio can be accessed here:
    https://www.sdn.sap.com/irj/sdn/developerareas/contentportfolio
    In many aspects, the tools and capabilities of the Portal Content Studio are comprehensive
    and advanced yet they are not sufficient for comprehensive Web Content Management.
    First and foremost, the Portal Content Studio supports the establishment of rolebased
    navigational structures and the definition of portal pages on which iViews can be
    positioned and arranged. This method of content creation is comparatively complex and
    not suited for the daily business of an editor, who is typically less involved in changing
    content structures and more involved in changing the content elements contained therein
    (text, graphics, flash files, links, documents, etc.). Pragmatic methods and simple
    mechanisms are desired for the management of this content. The material in the content-
    based iViews must be freely definable through simple and intuitive means and editors
    should be able to create content themselves.
    The SAP Knowledge Management (KM) component is available for storing content and
    documents in SAP NetWeaver™. The content to be presented can be stored and managed
    via a folder structure that must be managed parallel to the Portal Content Directory.
    However, in the standard feature set of the SAP NetWeaver™ Portal, the KM folder where
    this content is later to be saved must be defined for every content-based KM iView. An
    automatic link between the current role position and the KM location is not created. Simple
    shifting between read and edit mode is another feature that is not available in the
    standard version despite the fact that this functionality is extremely important for editors.
    Despite the multitude of existing functions, the standard SAP NetWeaver™ Portal offers
    insufficient capabilities for comfortable Web Content Management. Editing capabilities for
    XML forms, so-called docs iViews, URL-iViews or TREX searches are offered but their use
    is anything but intuitive and involves a great deal of administrative expenditure. This
    makes a high level of knowledge in building web content within the SAP NetWeaver™
    Portal a prerequisite. Above all, there are little or no possibilities for using Web Content
    Management functionality such as the construction of generic content structures, link
    management, multi-language support or a navigational context available from the search
    results without the relevant programming or HTML knowledge.
    This is where an enhancement from btexx business technologies GmbH, the Business
    Package easyWCM for Web Content Management in SAP NetWeaver™ Portal comes in. It
    uses the Portal Content Studio as a central tool yet significantly accelerates editing processes.
    It allows content elements to be linked effectively with portal objects that are created
    automatically through the use of easyWCM iViews. Every authorized user can create,
    publish and edit information.
    This Business Package automatically stores the content elements in the KM component
    assigned in the navigation structure in the background and makes them available for further
    editing on portal pages, greatly simplifying subsequent content management work.
    This is why the editor no longer requires technical knowledge of where the content is
    stored in the KM. Thanks to easyWCM, both the editor and the end-user work with the
    same portal role and costly multiple management of the navigation and content storage
    structure is unnecessary. Using the “Inplace Editing” feature, the editor is able to edit
    content directly on the portal pages on which the content is presented and visualized.
    The Business Package is based 100% on the SAP NetWeaver™ Portal and Knowledge
    Management Components; no third-party servers or additional software products are required.
    The portal server is solely responsible for providing the runtime platform.
    A third-party Content Management System may be able to offer a larger selection of features
    than easyWCM but it implementing and operating the additional solution will require
    a great deal more resources. The easyWCM Business Package for the SAP Net-
    Weaver™ Portal provides Web Content Management simply and effectively while supporting
    the following essential requirements:
    Complete integration for SAP Portal Content Studio
    An editor does not need any tools other than the SAP Portal Content Studio. The desired
    navigational structures are provided as SAP portal roles in the SAP Portal Content Studio
    - the application of easyWCM iViews is thereby possible anywhere within portal roles,
    worksets and pages. The main advantage of this solution is that the editors enter content
    in a single environment in which all web content and navigational structures are stored
    and administered.
    Inplace editing:
    End-users and editors work with the same portal roles. Therefore, no separate portal
    roles for providing and maintaining the content are required! As an editor, easyWCM
    iView offers you the ability to add and work on content components directly within the
    portal (Inplace Editing). Furthermore, the editor is able to use SAP KM standard functions
    (e.g. authorization assignment, workflow, feedback, rating, etc.) directly within the content
    component.
    Automatic creation of KM folders
    A general standard is that everyone must indicate the respective KM file path in which
    the content components are to be stored. This requires a great deal of effort when maintaining
    portals with a large number of web content elements. easyWCM automatically
    produces the necessary listings with the desired KM authorizations at runtime and simultaneously
    activates the desired KM services (life span, manual arrangement, history,
    workflow). During shifting or copying processes in the SAP Portal Content Studio, the
    elements are automatically moved and copied within the KM!
    Preview functionality from Portal Content Studio
    A preview function for each form is easily accessible with a single click. It is also possible
    to preview items directly from the Portal Content Studio in order to view the complete
    portal page, for example. easyWCM iViews were designed in a way that also enables users
    to enter and edit content directly from the SAP Portal Content Studio preview function.
    Multiple use of content elements
    easyWCM iViews may be adjusted in such a way as to allow content to be used more
    than once. Using this option, the content is not stored by the role and/or page, but is
    linked centrally within the easyWCM iView. The multiple use of content components is
    important, for example, if the right column of the portal presentation is exactly the same
    for several pages (e.g. for contact data, partners, advertisements, etc.).
    Approval workflow
    If desired, the SAP KM approval workflow may be activated in order to manage content
    elements. Changes to content elements will only be visible after the approval. All XML
    forms provided by easyWCM support the SAP KM approval workflow and indicate the
    permission status by using traffic lights.
    Version management
    If desired, the SAP KM version management may be activated in order to manage content
    elements. An editor with the proper authorization can specify the portal pages on
    which version management should be activated. When version management is activated,
    it is possible to replace older content components or to cancel incorrect modifications.
    With each change, a new version is automatically stored and documented including the
    date and the person who made the change.
    Life span
    If desired, the SAP KM life span function may be activated in order to manage content
    elements. An editor with the proper authorization can specify the portal pages on which
    the life span function should be activated. Activating the life span function makes it possible
    to publish a content component for a specific period (this is useful for news or
    events, for example).
    Authorization-based search functionality
    The SAP NetWeaver™ standard component TREX is used for the search function. One of
    the key advantages of easyWCM compared to external WCM solutions is that the search
    is implemented completely on the basis of the SAP NetWeaver™ platform and, in particular,
    that it is dependent on the authorization status. A separate search machine with its
    own user and authorization administration is not required.
    Multi-language support
    easyWCM automatically detects the language of the editor and stores the content in
    separate folders. Folders for content in different languages are created based on the active
    portal language.
    Ready-to-use forms and pages
    easyWCM contains a set of immediately useable portal roles and pages which may be
    used for your desired menu structures and page layouts. As such, easyWCM provides the
    ability to create and maintain Internet pages without special HTML programming knowledge.
    easyWCM also contains more than 30 XML forms based on the XML forms builder
    (SAP standard) which can be used for content creation. These XML forms may also be
    custom designed to fit your needs.
    Personalized user interface
    easyWCM determines the user interface depending on portal authorizations of the
    user/editor and the corresponding authorizations of the respective KM folders. The
    easyWCM package contains different KM layout sets which may be activated via customization,
    if desired. Working on content is simple; an editor with the appropriate KM writepermissions
    regards
    karthik
    reward me points if it helps you

Maybe you are looking for