Sliding divs and XML content

I was asking if the sliding panels can be populated with an XML repeating region. I used Donald Booths tutorial about sliding panels and loaded an XML 'table' like this:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns:spry="http://ns.adobe.com/spry">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>XML Slide</title>
<script type="text/javascript"
    src="../SpryAssets/SprySlidingPanels.js"></script>
<script src="../SpryAssets/xpath.js" type="text/javascript"></script>
<script src="../SpryAssets/SpryData.js" type="text/javascript"></script>
<link type="text/css" rel="stylesheet"
    href="../SpryAssets/SprySlidingPanels.css">
<style type="text/css">
.SlidingPanelsContentGroup {
position: relative;
width: 600px;
margin: 0px;
padding: 0px;
border: none;
.SlidingPanelsContent {
width: 300px;
height: 300px;
float:left;
overflow: hidden;
margin: 0px;
padding: 0px;
border: none;
</style>
<script type="text/javascript">
var dsLet = new Spry.Data.XMLDataSet("LetItSlide_Exp_02.xml", "slide/row");
dsLet.setColumnType("order", "html");
dsLet.setColumnType("link", "html");
</script>
</head>
<body>
<a href="#" onclick="sp1.showFirstPanel();">First Panel</a> | <a
    href="#" onclick="sp1.showPreviousPanel();">Previous
    Panel</a> |
<a href="#"  onclick="sp1.showNextPanel();">Next Panel</a> | <a
    href="#" onclick="sp1.showLastPanel();">Last Panel</a> |
<a href="#" onclick="sp1.showPanel('p4');">Panel 4</a>
<div id="panelwidget" class="SlidingPanels" spry:region="dsLet">
  <div class="SlidingPanelsContentGroup" spry:repeat="dsLet">
    <div class="SlidingPanelsContent" id="p{order}">{link}</div>
  </div>
</div>
<script type="text/javascript">
var sp1 = new Spry.Widget.SlidingPanels("panelwidget");
</script>
</body>
</html>
I put {order} in the SlidingPanelsContent identity to number/name these Div containers. Viewing in Live Code, the code looks like I would expect it to. But when I select the next link the 'next' panel doesn't show content. What do I need to know to make this work? Is there a tutorial about this combo?

Have a look here http://labs.adobe.com/technologies/spry/samples/slidingpanels/SlidingPanelsFromData.html
Gramps

Similar Messages

  • Nested sliding panels and xml

    In this picture I try to explain my data set and the result I'm trying to obtain.
    I can't however figure out how to do this without nested regions.
    My code looks like this:
    <!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>CPS</title>
    <script src="SpryAssets/xpath.js" type="text/javascript"></script>
    <script src="SpryAssets/SpryData.js" type="text/javascript"></script>
    <script src="SpryAssets/SpryCollapsiblePanel.js" type="text/javascript"></script>
    <script src="SpryAssets/SpryNestedXMLDataSet.js" type="text/javascript"></script>
    <script type="text/javascript">
    <!--
    var ds_ents = new Spry.Data.XMLDataSet("data2.xml", "ents/ent");
    var ds_servs = new Spry.Data.NestedXMLDataSet(ds_ents, "servs/serv");
    var ds_conts = new Spry.Data.NestedXMLDataSet(ds_ents, "conts/cont");
    var ds_stats = new Spry.Data.NestedXMLDataSet(ds_ents, "stats/stat");
    //-->
    </script>
    <link href="SpryAssets/SpryCollapsiblePanel.css" rel="stylesheet" type="text/css" />
    <link href="css/style.css" rel="stylesheet" type="text/css" />
    </head>
    <body>
    <div id="CP_ents" class="CollapsiblePanel">
         <div class="CollapsiblePanelTab" tabindex="0">
              <table>
                   <tr>
                        <td spry:when="{ds_CurrentRowID} == {ds_RowID}"
                                 spry:setrow="ds_ents"
                                       spry:select="select"
                                       spry:hover="hover"
                                       spry:selected="">+</td>
                        <td>{ds_ents::id}</td>
                   </tr>
              </table>
         </div>
         <div class="CollapsiblePanelContent" spry:region="ds_ents">
              <table>
                   <tr spry:repeatchildren="ds_servs" spry:choose="">
                        <td> </td>
                        <td><div id="CP_servs" class="CollapsiblePanel">
                                  <div class="CollapsiblePanelTab" tabindex="1">
                                       <table>
                                            <tr>
                                                 <td width="50">+ servs</td>
                                                 <td width="50">id</td>
                                                 <td width="50">att1</td>
                                                 <td width="50">att2</td>
                                            </tr>
                                       </table>
                                  </div>
                                  <div class="CollapsiblePanelContent" spry:region="ds_servs">
                                       <table>
                                            <tr spry:repeatchildren="ds_servs">
                                                 <td width="50"> </td>
                                                 <td width="50">{id}</td>
                                                 <td width="50">{att1}</td>
                                                 <td width="50">{att2}</td>
                                            </tr>
                                       </table>
                                  </div>
                             </div>
                             <div id="CP_conts" class="CollapsiblePanel">
                                  <div class="CollapsiblePanelTab" tabindex="2">
                                       <table>
                                            <tr>
                                                 <td width="50">+ conts</td>
                                                 <td width="50">id</td>
                                                 <td width="50">att1</td>
                                                 <td width="50">att2</td>
                                            </tr>
                                       </table>
                                  </div>
                                  <div class="CollapsiblePanelContent" spry:region="ds_conts">
                                       <table>
                                            <tr spry:repeatchildren="ds_conts">
                                                 <td width="50"> </td>
                                                 <td width="50">{id}</td>
                                                 <td width="50">{att1}</td>
                                                 <td width="50">{att2}</td>
                                            </tr>
                                       </table>
                                  </div>
                             </div>
                             <div id="CP_stats" class="CollapsiblePanel">
                                  <div class="CollapsiblePanelTab" tabindex="3">
                                       <table>
                                            <tr>
                                                 <td width="50">+ stats</td>
                                                 <td width="50">id</td>
                                                 <td width="50">att1</td>
                                                 <td width="50">att2</td>
                                            </tr>
                                       </table>
                                  </div>
                                  <div class="CollapsiblePanelContent" spry:region="ds_stats">
                                       <table>
                                            <tr spry:repeatchildren="ds_stations">
                                                 <td width="50"> </td>
                                                 <td width="50">{id}</td>
                                                 <td width="50">{att1}</td>
                                                 <td width="50">{att2}</td>
                                            </tr>
                                       </table>
                                  </div>
                             </div></td>
                   </tr>
              </table>
         </div>
    </div>
    <script type="text/javascript">
    <!--
    var CP_ents = new Spry.Widget.CollapsiblePanel("CP_ents");
    var CP_servs = new Spry.Widget.CollapsiblePanel("CP_servs");
    var CP_conts = new Spry.Widget.CollapsiblePanel("CP_conts");
    var CP_stats = new Spry.Widget.CollapsiblePanel("CP_stats");
    //-->
    </script>
    </body>
    </html>
    and this is the XML data set:
    <?xml version="1.0" encoding="UTF-8"?>
    <ents>
         <ent>
              <id>0</id>
              <att1>pippo</att1>
              <servs>
                   <serv>
                        <id>A</id>
                        <att1>blah</att1>
                        <att2>bla</att2>
                   </serv>
                   <serv>
                        <id>B</id>
                        <att1>bloh</att1>
                        <att2>blo</att2>
                   </serv>
                   <serv>
                        <id>C</id>
                        <att1>bluh</att1>
                        <att2>blu</att2>
                   </serv>
              </servs>
              <conts>
                   <cont>
                        <id>a</id>
                        <att1>hwrtfgh</att1>
                   </cont>
                   <cont>
                        <id>b</id>
                        <att1>asdf</att1>
                   </cont>
              </conts>
              <stats>
                   <stat>
                        <id>1</id>
                        <att1>FDSA</att1>
                        <att2>OIUY</att2>
                   </stat>
                   <stat>
                        <id>2</id>
                        <att1>Bm76g</att1>
                        <att2>87f5r6</att2>
                   </stat>
                   <stat>
                        <id>3</id>
                        <att1>iugy</att1>
                        <att2>TY765</att2>
                   </stat>
                   <stat>
                        <id>4</id>
                        <att1>YT d</att1>
                        <att2>f865f</att2>
                   </stat>
              </stats>
         </ent>
         <ent>
              <id>1</id>
              <att1>pluto</att1>
              <servs>
                   <serv>
                        <id>A</id>
                        <att1>muuh</att1>
                   </serv>
                   <serv>
                        <id>B</id>
                        <att1>mooh</att1>
                   </serv>
                   <serv>
                        <id>C</id>
                        <att1>meeh</att1>
                   </serv>
              </servs>
              <conts>
                   <cont>
                        <id>a</id>
                        <att1>uff</att1>
                   </cont>
                   <cont>
                        <id>b</id>
                        <att1>aff</att1>
                   </cont>
              </conts>
              <stats>
                   <stat>
                        <id>1</id>
                        <att1>KJHGKJGH</att1>
                        <att2>TRSDYTRD</att2>
                   </stat>
                   <stat>
                        <id>2</id>
                        <att1>TRUTFC</att1>
                        <att2>POJNC</att2>
                   </stat>
                   <stat>
                        <id>3</id>
                        <att1>EWZYT</att1>
                        <att2>OUYTFSA</att2>
                   </stat>
                   <stat>
                        <id>4</id>
                        <att1>XGBUI</att1>
                        <att2>IUGDS</att2>
                   </stat>
              </stats>
         </ent>
    </ents>

    Step by step I'm closing in.
    I'm using the {ds_currentRowId} variable to increment the div panel ID (see code below)
    The only issue is that since I have 1 master dataset and three detail dataset nested, I need to calculate the ID, taking the {ds_CurrentRowID} for each dataset and perform some math, to ensure they nicely grow until all the XML is consumed.
    Anyone would be so nice to point me in the right direction?
    <!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>CPS</title>
         <script src="SpryAssets/xpath.js" type="text/javascript"></script>
         <script src="SpryAssets/SpryData.js" type="text/javascript"></script>
         <script src="SpryAssets/SpryCollapsiblePanel.js" type="text/javascript"></script>
         <script src="SpryAssets/SpryNestedXMLDataSet.js" type="text/javascript"></script>
         <script type="text/javascript">
         <!--
              var ds_ents = new Spry.Data.XMLDataSet("data/data2.xml", "ents/ent");
              var ds_srvs = new Spry.Data.NestedXMLDataSet(ds_ents, "servs/serv");
              var ds_cnts = new Spry.Data.NestedXMLDataSet(ds_ents, "conts/cont");
              var ds_stts = new Spry.Data.NestedXMLDataSet(ds_ents, "stats/stat");
         //-->
         </script>
         <link href="SpryAssets/SpryCollapsiblePanel.css" rel="stylesheet" type="text/css" />
         <link href="css/style.css" rel="stylesheet" type="text/css" />
    </head>
    <body>
      <div class="panel" spry:repeat="ds_ents" spry:region="ds_ents ds_cnts ds_srvs ds_stts">
         <script type="text/javascript">
              <!--
              var CP_ents = new Spry.Widget.CollapsiblePanel{ds_ents::ds_CurrentRowID}
              //-->
         </script>
              <div id="CP_ents{ds_ents::ds_CurrentRowID}" class="CollapsiblePanel">
                   <div class="panel-title" tabindex="{ds_ents::ds_CurrentRowID}">
                        <table class="table-title">
                             <tr>
                                  <td width="150">+</td>
                                  <td width="150">{id}</td>
                                  <td width="150">{att1}</td>
                             </tr>
                        </table>
                   </div>
                   <div spry:even="table-even" spry:odd="table-odd">
                        <table>
                             <tr>
                                  <td> </td>
                                  <td>
                                       <script type="text/javascript">
                                            <!--
                                            var CP_srvs = new Spry.Widget.CollapsiblePanel{ds_srvs::ds_CurrentRowID};
                                            var CP_cnts = new Spry.Widget.CollapsiblePanel{ds_cnts::ds_CurrentRowID};
                                            var CP_stts = new Spry.Widget.CollapsiblePanel{ds_srvs::ds_CurrentRowID};
                                            //-->
                                       </script>
                                       <div id="CP_srvs{ds_srvs::ds_CurrentRowID}" class="CollapsiblePanel">
                                            <div class="subtable-title" tabindex="{ds_srvs::ds_CurrentRowID}">
                                                 <table>
                                                      <tr>
                                                           <td width="150">+ srvs</td>
                                                           <td width="150">id</td>
                                                           <td width="150">att1</td>
                                                      </tr>
                                                 </table>
                                            </div>
                                            <div spry:even="subtable-even" spry:odd="subtable-odd">
                                                 <table>
                                                      <tr spry:repeat="ds_srvs">
                                                           <td width="150"> </td>
                                                           <td width="150">{ds_srvs::id}</td>
                                                           <td width="150">{ds_srvs::att1}</td>
                                                      </tr>
                                                 </table>
                                            </div>
                                       </div>
                                       <div id="CP_cnts{ds_cnts::ds_CurrentRowID}" class="subtable">
                                            <div class="subtable-title" tabindex="{ds_cnts::ds_CurrentRowID}">
                                                 <table>
                                                      <tr>
                                                           <td width="150">+ cnts</td>
                                                           <td width="150">id</td>
                                                           <td width="150">att1</td>
                                                           <td width="150">att2</td>
                                                      </tr>
                                                 </table>
                                            </div>
                                            <div spry:even="subtable-even" spry:odd="subtable-odd">
                                                 <table>
                                                      <tr spry:repeat="ds_cnts">
                                                           <td width="150"> </td>
                                                           <td width="150">{ds_cnts::id}</td>
                                                           <td width="150">{ds_cnts::att1}</td>
                                                           <td width="150">{ds_cnts::att2}</td>
                                                      </tr>
                                                 </table>
                                            </div>
                                       </div>
                                       <div id="CP_stts{ds_stts::ds_CurrentRowID}" class="CollapsiblePanel">
                                            <div class="subtable-title" tabindex="{ds_stts::ds_CurrentRowID}">
                                                 <table>
                                                      <tr>
                                                           <td width="150">+ stats</td>
                                                           <td width="150">id</td>
                                                           <td width="150">att1</td>
                                                           <td width="150">att2</td>
                                                      </tr>
                                                 </table>
                                            </div>
                                            <div spry:even="subtable-even" spry:odd="subtable-odd">
                                                 <table>
                                                      <tr spry:repeat="ds_stts">
                                                           <td width="150"> </td>
                                                           <td width="150">{ds_stts::id}</td>
                                                           <td width="150">{ds_stts::att1}</td>
                                                           <td width="150">{ds_stts::att2}</td>
                                                      </tr>
                                                 </table>
                                            </div>
                                       </div>
                                  </td>
                             </tr>
                        </table>
                   </div>
              </div>
         </div>
    </body>
    </html>

  • Sliding panels and xml

    Hi,
    My basic problem is this:
    Where should I nest the script tag containing the js for
    making the widget when using spry:repeat="data" so that my links to
    move the panels work first time? Currently they need to be clicked
    once to settle things down, and then they function normally.
    My code looks like this:
    <div id="slidingPanel_1" class="SlidingPanels"
    spry:region="ds1">
    <div class="SlidingPanelsContentGroup">
    <div id="content{ds_RowID}" class="SlidingPanelsContent
    {function::backgroundFunc}" spry:repeat="ds1">
    Do you know what {lang1word} means?
    </div>
    </div>
    </div>
    <script>
    sp1 = new Spry.Widget.SlidingPanels("slidingPanel_1")
    </script>
    I have tried nesting it as suggested on the overview page
    like this:
    <div id="slidingPanel_1" class="SlidingPanels"
    spry:region="ds1">
    <div class="SlidingPanelsContentGroup">
    <div id="content{ds_RowID}" class="SlidingPanelsContent
    {function::backgroundFunc}" spry:repeat="ds1"
    style="text-align:center;">
    Do you know what {lang1word} means?
    </div>
    </div>
    <script>
    sp1 = new Spry.Widget.SlidingPanels("slidingPanel_1");
    </script>
    </div>
    However I still have the same problem. However, if I opt for
    the rather ghetto method of setting the creation of the widget on a
    timer, everything works just fine. I have tried looking at the
    sample, but I cannot fathom what the differences are!
    Thanks,
    Ben
    PS I did notice a similar unresolved thread, I wanted to
    append this post to it but I couldn't find it again.

    Hi Ben,
    Look at this sample, it shows you 2 methods of invoking your
    constructor for a widget built-up with data:
    http://labs.adobe.com/technologies/spry/samples/accordion/AccordionSample2.html
    Personally, the approach that I think is the best is to
    register an onPostUpdate observer ... that way the constructor is
    only ever called after the region is updated.
    --== Kin ==--

  • POST http(s) request with xml content in Power Query

    I have a POST http request which works good in HttpRequester (Firefox plugin). I know that it is possible to call POST request in Power Query but cannot find working solution. Here is the original request:
    POST https://svcs.ebay.com/FeedbackService
    X-EBAY-SOA-OPERATION-NAME: createDSRSummaryByPeriod
    X-EBAY-SOA-SERVICE-VERSION: 1.0.0
    X-EBAY-SOA-SERVICE-NAME: FeedbackService
    X-EBAY-SOA-APP-NAME: ***
    X-EBAY-SOA-SITEID: 0
    X-EBAY-SOA-SECURITY-TOKEN: ***
    Content-Type: text/xml
    <?xml version="1.0" encoding="UTF-8"?>
    <createDSRSummaryByPeriodRequest xmlns="http://www.ebay.com/marketplace/services">
    <dateRange>
    <dateFrom>2013-12-01T00:00:00.000Z</dateFrom>
    <dateTo>2013-12-31T23:59:59.999Z</dateTo>
    </dateRange>
    <dateRangeEventType>ListingDate</dateRangeEventType>
    </createDSRSummaryByPeriodRequest>
    Power Query WebContent() function is capable to handle headers and xml content, however, there is no any documentation about its syntax.
    In Power Query I use this request:
    = Xml.Tables(Web.Contents(“https://svcs.ebay.com/FeedbackService”,
    [Headers =[" X-EBAY-SOA-OPERATION-NAME"= "createDSRSummaryByPeriod",
    "X-EBAY-SOA-SERVICE-VERSION="1.0.0",
    "X-EBAY-SOA-SERVICE-NAME"="FeedbackService",
    "X-EBAY-SOA-APP-NAME"="***","X-EBAY-SOA-SITEID"="0",
    "X-EBAY-SOA-SECURITY-TOKEN"="***"],
    Content=["<?xml version="1.0" encoding="UTF-8"?>
    <createDSRSummaryByPeriodRequest xmlns="http://www.ebay.com/marketplace/services">
    <dateRange>
    <dateFrom>2013-12-01T00:00:00.000Z</dateFrom>
    <dateTo>2013-12-31T23:59:59.999Z</dateTo>
    </dateRange>
    <dateRangeEventType>ListingDate</dateRangeEventType>
    </createDSRSummaryByPeriodRequest>"]]))
    However, it returns "Expression.SyntaxError: Invalid identifier." Maybe anyone has at least examples of analogous working syntax?

    Task is solved. First of all I updated PowerQuery since previous version does not support Headers option for Web.Contents function. Here is a correct syntax:
    =Xml.Document(Web.Contents("https://api.ebay.com/ws/api.dll",[Headers=[#"X-EBAY-API-COMPATIBILITY-LEVEL"= "871",#"X-EBAY-API-SITEID"="0",#"X-EBAY-API-CALL-NAME"="GetMyeBaySelling",#"CONTENT-TYPE"="text/xml"], Content=Text.ToBinary("<?xml version="&Character.FromNumber(34)&"1.0"&Character.FromNumber(34)&" encoding="&Character.FromNumber(34)&"utf-8"&Character.FromNumber(34)&"?>
    <GetMyeBaySellingRequest xmlns="&Character.FromNumber(34)&"urn:ebay:apis:eBLBaseComponents"&Character.FromNumber(34)&">
    <RequesterCredentials><eBayAuthToken>***</eBayAuthToken></RequesterCredentials><SoldList><DurationInDays>60</DurationInDays><Pagination><EntriesPerPage>100</EntriesPerPage><PageNumber>1</PageNumber></Pagination></SoldList></GetMyeBaySellingRequest>")]))

  • How to create a text file or XML file  and add content through  code into it...

    Hi Everyone,
    How to create a text file and add content through the code to the text file eform javascript ......orelse can we create a text file in life cycle designer...
    Else say how to create a new XML file through the code and how some content like Example "Hello World".

    You can create a text file as a file attachment (data object) using the doc.createDataObject and doc.setDataObjectContents:
    http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/JS_API_AcroJS.88.450.html
    http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/JS_API_AcroJS.88.528.html
    You can then export the file with the doc.exportDataObject method:
    http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/JS_API_AcroJS.88.463.html
    This won't work with Reader if it hasn't been given the file attachment usage right with LiveCycle Reader Extensions.

  • Import of XML file failed in portal using XML Content and Action

    Hi Friends,
    I am trying to import the simple XML file which is just creating the folder in the PORTAL_CONTENT using XML CONTENT AND ACTIONS  which is one way of creating the portal content. GO TO SYSTEM ADMINISTRATION > TRANSPORT > XML CONTENT AND ACTIONS > IMPORT.
    The reason for using this import tool is to upload the backend Business roles, which is not not working on our corporate portal. To test the import functionality I used the following xml file (I got this XML file by exporting the test folder in the portal using the same tool)
    <GenericCreator author="XML Creator" version="XML Automatic Creation" mode="clean,execute" report.level="success" createMode="1" default.locale="en" ignore="false">
    <Context name="portal_content" objectClass="com.sap.portal.pcd.gl.GlContext"></Context>     <Property name="parent1" value="pcd:portal_content"/>
         <Context name="com.dri.fldr.im" objectClass="com.sap.portal.pcd.gl.GlContext" create_as="0" parent="$">
              <Attributes>
                   <Attribute name="com.sap.portal.pcm.Description" type="text">
                        <AttributeValue value="" locale=""/>
                        <Attribute name="administration" type="string">
                             <AttributeValue value=""/>
                        </Attribute>
                        <Attribute name="Inheritance" type="string">
                             <AttributeValue value="NONFINAL"/>
                        </Attribute>
                   </Attribute>
                   <Attribute name="com.sap.portal.pcm.Title" type="text">
                        <AttributeValue value="test" locale=""/>
                        <AttributeValue value="test" locale="en"/>
                        <Attribute name="administration" type="string">
                             <AttributeValue value=""/>
                        </Attribute>
                        <Attribute name="mandatory" type="string">
                             <AttributeValue value="true"/>
                        </Attribute>
                        <Attribute name="Inheritance" type="string">
                             <AttributeValue value="NONFINAL"/>
                        </Attribute>
                   </Attribute>
              </Attributes>
         </Context>
    </GenericCreator>
    SDN BLOCKED THE XML The above XML file works fine in other portal in the landscape but not in corporate portal ( which is freshly build recently).Following error message is display when i am trying to upload the file
    Status Name Action Type Comment
    General Extracting root node E:\usr\sap\EPD\JC00\j2ee\cluster\server0\%USERPROFILE%\AppData\Local\Temp\tmp_masscontent4135391959047431276.xml Failed to extract root node
    General Extracting root node E:\usr\sap\EPD\JC00\j2ee\cluster\server0\%USERPROFILE%\AppData\Local\Temp\tmp_masscontent4135391959047431276.xml Parsing failed .
    Dont know is there a service/ configurations needs to be done to enable this feature?.
    Thanks
    Edited by: hammad on Sep 4, 2009 5:48 PM
    Edited by: hammad on Sep 4, 2009 5:49 PM

    The problem statement is not very clear.
    Try following this how to guide [https://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/207a2141-c870-2910-e080-90c920b24f47&overridelayout=true|How-To]
    Best Regards,
    Prasanna K

  • Pass parameter through standard page "import xml content and actions"

    Dear Portal experts,
    As you know, a standard portal page is configured to allow the import of XML file. It is located in the portal in the path system admin -> transport -> xml content and actions -> import
    I configured a quick link u201Cimportu201D to the page so now the link http://myserver:port/irj/portal/import allows me to access directly to this screen.
    What I would like to do now is to pass the parameter related to u201Cfile nameu201D through this screen meaning that I would like that http://myserver:port/irj/portal/ import/filename=C:\test.xml  fills automatically the fields u201CXML fileu201D with  C:\test.xml 
    Please do you know how to achieve this ?
    Thank you very much and regards

    hi,
    @Maksim :
    When user launch an URL like http://myserver:port/irj/portal/ import/*filename=C:\test.xml, he is requested to provide username and password; as this link is a shortcut for the upload xml page, there is a check of authorization and only portal admin that have authorization and permission on this page/iview will be able to upload xml file through the URL. Hope this clarify.
    @Kumar :
    thank you for your answer. What a pity to not be able to pass parameter through standard portal page/iview particularly knowing that we can pass paramater through many kinds of iviews (transactional iview, url iview, VC iview...). I explored some option on file com.sap.portal.ivs.init.par but this was unsuccessful. However, thanks to this [link bellow|http://wiki.sdn.sap.com/wiki/display/Snippets/ComponenttouploadXMLfilewithPCD+objects], I was able to upload through URL the XML file.
    The problem is that I can upload only XML file that are stored in the server not in the local user computer. My requirement is to be able to upload local XML file stored on user's computer.
    If someone could provide and idea/solution, I would be very grateful.
    Cheers

  • 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);

  • Business Intelligence and Analysis capabilities on XML content

    On page 99 of Oracle XML DB Basic Demonstration pdf doc it si said: "Even though Business Intelligence, such as rollup and cube, are not XML aware they are able to process XML content exposed through a relational view"
    is this true ? if so, how can i create a cube and/or
    dimension from XML content exposed through a relational view ?
    Unfortunately, Oracle 9i does not allow me to build materialzed views from XML content (Oracle objects)
    Thanks in advance,

    The intention of the documentation maybe that anything you can query using SQL, you can expose as XML. For instance, you could create an analytic workspace, expose it through views, query the views through SQL, and return the results as XML.

  • Business Intelligent and Analysis capabilities on XML content

    On page 99 of Oracle XML DB Basic Demonstration pdf doc it si said: "Even though Business Intelligence, such as rollup and cube, are not XML aware they are able to process XML content exposed through a relational view"
    is this true ? if so, how can i create a cube and/or
    dimension from XML content exposed through a relational view ?
    Unfortunately, Oracle 9i does not allow me to build materialzed views from XML content (Oracle objects)
    Thanks in advance,

    Thanks for your reply,
    The problem is that Oracle 9i, as far as i know, cannot build materialized views from XML data. The only thing i've been able to achieve are simple relational views and indexes.
    So, is it possible to build DW structures (cubes, dimensions,hierarchies, etc) using Oracle 9i from standard views instead of tables ? I believe not (or at least i haven't been able to)
    Thanks again

  • Having problems when aligning footer div and content div close together, in the browsers they are wi

    My problem is when I paste text or paste anything in div tag. I have a container that contains everything. I have a content div that contains content. I also have a footer. When I align the footer at the end to content div which is in the container, it looks good until I look at it in a the different browsers, the content and footer are so wide apart. I've tried everything I could to make the browsers look as close as what I do in dreamweaver cs4. Is there a solution to this problem?
    This is the link to page working on.
    http://www.nlclv.org/truenewwebsite/html/doctrine.htm
    The footer and content div are align very close in dreamweaver but very far apart in the browsers.
    Also if you click on this link and click on calendar of events page you will see the samething.
    Thanks for your help.

    Absolutely positioned divisions are NOT a good primary layout method. Here's why:
    http://www.apptools.com/examples/pagelayout101.php
    You should use a CSS with default CSS positioning (which is no positioning at all).  And then use margins, padding and floats to align elements on the page.  Also, if you want the page height to flex to content (as it should), remove the height property from divisions containing text.
    Something like this:
    http://alt-web.com/TEMPLATES/2-col-fixed-flash-holder.html
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    http://alt-web.com/
    http://twitter.com/altweb
    http://alt-web.blogspot.com

  • CSS, Main content div and sidebar length

    I'm using DW CS4 and am using the 2 column fixed left sidebar with header and footer.
    I want to make sure the main content div is never shorter than the length of the sidebar. I've got a coloured background, but want the bottom of the sidebar and main content div to be the same, if that makes sense?
    Thanks

    For equal height columns, create a 2-colored background image and repeat-y (vertically).  This technique is called Faux Columns.  See examples below.
    3-Col Layout Before -
    http://alt-web.com/TEMPLATES/3-col-fixed-layout.shtml
    3-Col Layout After -
    http://alt-web.com/TEMPLATES/3-col-white-gray.shtml
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    http://alt-web.com/
    http://twitter.com/altweb
    http://alt-web.blogspot.com

  • Render xml and html content type in single jsp

    I have 2 jsps, one jsp(a.jsp) is throwing content-type as HTML and other JSP(b.jsp) is throwing content-type as xml. I am making use of xsl to render the xml content in html format. But the problem is that i want to include b.jsp in a.jsp, and when i do so b.jsp doesn't make use of xsl for its rendering rather it displays the contents haphazardly.
    Plese help if somebody knows the solution.

    Below the following line ..
    <html:form action="addContact">Add this new form field..
    <html:hidden name="flag" value="0"/>Needless to say that this String variable flag should be defined in your ActionForm.
    Next, instead of ...
    <html:submit property="parameter"><bean:message key="ok.company" /></html:submit>Put this ...
    <input type="button" name="xyz" onClick="callSubmit(1);" value='<bean:message key="ok.company" />'>Then add a JS function as below ...
    <script>
    function callSubmit(flg)
         document.forms[0].flag.value=flg;
         document.forms[0].submit();
    </script>Finally in your ActionServlet, you need to find the value of the ActionForm variable flag via request.getParameter("flag").
    In case the value is set to 1, then it means that you need to send the particular row to DB. You may add additional flag values to correctly identify theparticular row which you may want to send to DB.
    Hope you got it.
    -Rohit

  • How to move some xml element and its content to a new frame

    Hi All,
    How to move some xml element and its content to a new frame.

    Hi Chinnadk,
    Sorry my code its comment some lines. Now only I check the forum thread, you just try one more time.
    #target InDesign;
    #include "/Program Files (x86)/Adobe/Adobe InDesign CS5.5/Scripts/XML Rules/glue code.jsx"
    var myDoc = app.activeDocument;
    //____________________ XML RULE SET
    var myRuleSet = new Array (new margintag);
    with(myDoc){
        var elements = xmlElements;
        __processRuleSet(elements.item(0), myRuleSet);
    function margintag(){
        this.name = "margintag";
        //this.xpath = "//margintag[@type='mn2']";
        this.xpath = "//margintag";
        this.apply = function(myElement, myRuleProcessor){
            with(myElement){
                app.select(myElement);
                try{
                    var myPrePara = app.selection[0].paragraphs[-1].parentTextFrames[0].paragraphs.previousItem(app.selection[0].paragraphs[-1]);
                    if(myPrePara.characters[-1].contents=="\r"){
                        myPrePara.characters[-1].remove();
                    var myTextframe = myElement.placeIntoInlineFrame(["7p9","6p"]);
                    myTextframe.appliedObjectStyle= myDoc.objectStyles.item("MN1");
                    myTextframe.fit(FitOptions.FRAME_TO_CONTENT);
                    myTextframe.parentStory.paragraphs.everyItem().appliedParagraphStyle = app.activeDocument.paragraphStyles.itemByName("MN1");
                    }catch(e){}
                app.selection = null;
            return true;
    thx,
    csm_phil

  • How to read XML content from IPortalComponentRequest and parse them

    Hi ,
    I have a portal application.The application has 2 components(Comp1,comp2).
    Comp1 is JspDynpage and Comp2 is AbstractPortalComponent.
    Comp1- has a iframe element which point to the external url and has a parameter return_url.
    retrun_url has a value as url to Comp2(http://ibm0343:50000/irj/servlet/prt/portal/prtroot/NewUrlProj.NewUrlComp)
    When an event occurs in the external site,i suppose to receive XML content in return_url(ie Comp2),how can i check using the request if the received content is XML and how do i parse them.
    I have already seen blogs from Prakash singh in which it refers a xml fixed location in webserver.

    Hi Detlev,
    i am reposting this once again as the previous
    reply didnt align good.
    Thanks for your reply.The scenario is that
    My portal application has to communicate with external GIS(Graphical information system)
    service provider client application.
    They say that i have to use iframe in my portal application.
    Here is the snipet of the iframe tags.
    <iframe
    id="Nedbrowser"
    name="Nedbrowser"
    width="100%"
    height="100%"
    frameborder="no"
    marginheight="0"
    marginwidth="0"
    scrolling="no"
    style="position:absolute; top:0; left:0; width:800; height:400; z-index:100; visibility:visible"
    src="http://nbg.nedg.nl/nbgint/NBG_INT_main.asp?action=CHART&datasource=NBGMV&product=INTERNET&size_x=300&size_y=300&result_frame=Results&
    result_url=http://ibm0343:50000/irj/servlet/prt/portal/prtroot/NewUrlProj.NewUrlComp&
    default_centre_x=256000&default_centre_y=471000&default_width=0.5">
    </iframe>
    <iframe
    id="Results"
    name="Results"
    width="100%"
    height="100%"
    frameborder="no"
    marginheight="0"
    marginwidth="0"
    scrolling="no"
    style="position:absolute; top:400; left:0; width:800; height:200; z-index:100; visibility:visible"
    src="about:blank">
    </iframe>
    When my portal application is started, comes the GIS map in the iframe with in my portal application.
    When the user clicks in the area of the map,Gis application returns xml data to the return_url.
    The reurn_url is my PortalAbstractComponent in which i have to parse the xml and use it for further processing in R3 system.

Maybe you are looking for