Inherit from data region bpf

Hi all,
We are using inherit from data region for the dimensions (entity & time) in our business process flows.
For some users, when they access to the bpf, the dimension entity isn't inherit.
This behaviour ocurrs randomly, ¿do you know how can be solve?
Thanks in advance.
Regards,
Juan

You might try to copy the package that you are requesting in the BPF as a back-up.  Then in the package you have connected to the BPF, comment out the SELECTION PROCESS text in the Advanced area of the SSIS package.  Then test the process and review the log to see if the current view or assigned view is passed as a parameter.  If not, then you may have to use a specific package, that has a broader scope defined in the package details or Script logic file itself.
That would be my first step.

Similar Messages

  • BPF dont open the data region set for Excel Template

    Hi experts, i have a BPF which contain a step where i put in the entity dimension a current view type "inherit from data region". This dimension have a security "READ ONLY". Well when i open this BPF, with a user (who is OWNER in the Entity dimension for specific member) the template open on diferent member than it assigned.
    I set in the member access profile for this user just the member i want to he see and also set the other members "denied", however it`s still open in the member which open for default in the action pane on BPC WEB.
    What i have to do to correct that?
    thanks in advance

    Hi,
    "Inherit from Data Region" means - when you open the BPF, you need to specify members for few of the dimensions. These members can be used by specifying "inherit from data region".
    For example, if, while opening the BPF, you enter USA for Entity and 2009.Total for Time. If "inherit from data region" is specified for entity dimension, then it will take USA, irrespective of the current view and the fact that the user is owner of some other dimension.
    In this case, either you can take it from CV or you can specify the member explicitly while designing the BPF. However, it will not serve your purpose.
    When you acces read access to the user for some entity, the user can still view the data. However, he wont be able to send data. So, restricting the view access is not possible in this case.
    Hoep this helps.

  • BPC 75 NW - BPF driver dimension key and description in Data region

    Hello All,
    In our BPF templates we have used Costctr as our driver dimenion. When we go to My activities to view BPF instances- we only see the Costctr Description in the data region which is the default.  In our example- we have muliple cost centers globally with the same description.. so having the key displayed in the step region is critical. Is there a way to specify the key as well?
    We are on BPC 75 NW SP07 patch 3.
    Any help is appreciated.
    Thanks,
    Shai

    Hi,
    "Inherit from Data Region" means - when you open the BPF, you need to specify members for few of the dimensions. These members can be used by specifying "inherit from data region".
    For example, if, while opening the BPF, you enter USA for Entity and 2009.Total for Time. If "inherit from data region" is specified for entity dimension, then it will take USA, irrespective of the current view and the fact that the user is owner of some other dimension.
    In this case, either you can take it from CV or you can specify the member explicitly while designing the BPF. However, it will not serve your purpose.
    When you acces read access to the user for some entity, the user can still view the data. However, he wont be able to send data. So, restricting the view access is not possible in this case.
    Hoep this helps.

  • Split Spry.Data and Spry.Data.Region from SpryData.js?

    I don't like Spry.Data.Region or anything like Spry.*.Region because it make hard to customize using javascript.
    But Spry.Data with Observer / Notify feature is great one. In fact, using SpryData.js, I can write my own "render html object" easier.
    SrpyData.js is big (127KB) even when compressed, it is still 65KB. That why, needed split Spry.Data and Spry.Data.Region from SpryData.js so who want to use Spry.Data only like me will get smaller trafic.
    I've tried remove all Spry.Data.Region content in SpryData.js. Surprise, some in Spry.Data call to Spry.Data.Region >>> Design have problem.
    Anyone can help splitting them?

    Found this in the archives:
    <div spry:if="{ds_RowCount} == 0" class="trigger" style="display:none"></div>
    Basically a hack to point the tooltip to a hidden div so no errors are thrown.

  • BPF 7.5 NW- Inherit from BPF instance

    Hi friends
    I´m work with BPF however one functinality doesn´t work, this is "inherit from BPF instance" in substep current view
    do you have any idea if there is a note that correct this issue ?
    thanks in advance

    Hi Nilanjan
    My controlling application is the same that template is,
    The driver dimension is P_DIVISIONES type User
    The identity dimension is
    Z_TIEMPO type Time
    Z_VERSION type Category
    We are following HTG and in step 3 Executing the BPF they mentioned that is a known issue,  but I dont´t know if this issue was fixed.
    However the values that we set as u2018inherit from BPF instanceu2019 have not been inherited properly -
    this is a known issue which will be corrected in future support packs.
    cheers

  • How to update data in database from different region of the same page

    Hi,
    I have pepared two regions of tabular form based on the same table,each region is selecting different columns of the same table.
    I want to update the values from different regions in the database using single submit button.
    Regards
    Shashi

    I presume that the two regions are working fine with their individual buttons and your issue is how to make them both save with one button.
    Here is how
    a. You will have 2 ApplyMRU and 1 ApplyMRD processes for each of the regions. Right? Lets say you have 2 "Save" (i.e. label=Save) buttons, one has name SUBMIT and the other SAVE ( SUBMIT and SAVE being the requests that will be sent when they are clicked , respectively)
    b. Make the Display condition on one of the buttons 'Never'. Now it won't show when you run the page. Lets say you made SAVE's conditional Display 'Never'
    c. Go and change the condition on all ApplyMRU and ApplyMRD processes from "When Button Pressed" to "Request is contains in Expression1". In Expression1 enter SUBMIT,SAVERegards

  • Java.lang.VerifyError: Cannot inherit from final class

    Hi i am trying to call a crystal report from jsp but i am getting this error
    error:-
    org.apache.jasper.JasperException: Cannot inherit from final class
         org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:460)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:355)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    root cause
    javax.servlet.ServletException: Cannot inherit from final class
         org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:841)
         org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:774)
         org.apache.jsp._1_jsp._jspService(_1_jsp.java:95)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:331)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    root cause
    java.lang.VerifyError: Cannot inherit from final class
         java.lang.ClassLoader.defineClass1(Native Method)
         java.lang.ClassLoader.defineClass(Unknown Source)
         java.security.SecureClassLoader.defineClass(Unknown Source)
         org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1853)
         org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:875)
         org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1330)
         org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1209)
         java.lang.ClassLoader.loadClassInternal(Unknown Source)
         com.crystaldecisions.reports.sdk.ReportClientDocument.open(Unknown Source)
         org.apache.jsp._1_jsp._jspService(_1_jsp.java:64)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:331)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    my jsp is
    <%@ page import="com.crystaldecisions.report.web.viewer.*" %>
    <%@ page import="com.crystaldecisions.sdk.occa.report.data.*"  %>
    <%@ page import="com.crystaldecisions.reports.sdk.ReportClientDocument" %>
    <%
        Object reportSource = session.getAttribute("reportSource");
        if (reportSource == null)
           String report = "report.rpt";
           ReportClientDocument reportClientDoc = new ReportClientDocument();
           reportClientDoc.open( "report.rpt", 0);
           reportSource = reportClientDoc.getReportSource();
           session.setAttribute("reportSource", reportSource);
        CrystalReportViewer viewer = new CrystalReportViewer();
        viewer.setReportSource(reportSource);
           viewer.setEnableLogonPrompt(false); 
        viewer.setOwnPage(true);
        viewer.processHttpRequest(request, response, getServletConfig().getServletContext(), null);
    %>
    and in my WEB-INF/lib i included jar files namely
    Concurrent.jar,CrystalCharting.jar,CrystalCommon.jar,CrystalContentModels.jar,CrystalExporters.jar,CrystalExportingBase.jar,CrystalFormulas.jar,CrystalQueryEngine.jar,CrystalReportEngine.jar,CrystalReportingCommon.jar,icu4j.jar,jrcerom.jar,keycodeDecoder.jar,log4j.jar,MetafileRenderer.jar,rasapp.jar,rascore.jar,rpoifs.jar,serialization.jar,URIUtil.jar,xml-apis.jar,xbean.jar,xercesImpl.jar,webreporting.jar,webreporting-jsf.jar
    please help me

    You can't inherit from a final class. 
    So - are you trying to inherit from a final class?
    Sincerely,
    Ted Ueda

  • ORA - 01031: insufficient privileges from report region

    Hi All,
    I'm getting below error from report region query (2 on a page and both return same error):
    failed to parse SQL query
    ORA - 01031: insufficient privileges
    When I refresh page, it does not throw error and displays proper data. Can anyone please advice what could have gone wrong here?
    Thanks.

    Hi
    It would be easy to help you if you please provide the details about your environment like Database & Apex version.
    Is the query in your report region is using tables? Are they in the same schema which your application's workspace is based on? Or are you using some DB Link or views or querying data from some other schema?
    Also trying using Debug option in Apex to get some idea what's actually executing behind it? Try that query in SQL Plus/SQL Developer and see what you are getting?
    Zulqarnain
    MaxApex Hosting
    http://www.maxapex.com

  • Referencing Report Fields from other regions

    It is possible to reference the value in a report column in another part of the page?
    I have a report region returning a single row of data, and I'd like to use the value in one of these columns to set an item in another region.
    Is there any way to reference the report column directly from another region, or do I have to do something more complicated?

    Hi,
    OK - it would depend on the template that is being used. See: [http://apex.oracle.com/pls/otn/f?p=267:80]
    In this case, I have added the following into the report region's Region Footer setting:
    &lt;script type="text/javascript"&gt;
    var region = document.getElementById('#REGION_ID#');
    var t = region.getElementsByTagName('TABLE')[1];
    &lt;/script&gt;Underneath this region, I have another region containing a P80_VALUE page item. To populate this with the first EMPNO shown in the report, I have added the following into this region's Region Footer:
    &lt;script type="text/javascript"&gt;
    function showValue()
    var r = t.rows;
    var row1 = r[1];
    var c = row1.cells;
    var v = c[0];
    document.getElementById('P80_VALUE').value = v.innerHTML;
    showValue();
    &lt;/script&gt;In this example's case, the report region actually generates two tables with the same ID (this is defined on the template, which I have not changed) - so, the first script gets a reference to the second table (items in javascript being zero-based, this is item 1). The script in the second region, then gets the second row (the first one containing data, the headers being on the first row) and then gets a reference to the first cell in that row. Finally, it sets the value of the P80_VALUE item to the contents of the cell. If required, you could loop through the rows and cells using something like:
    for (var row = 0; row &lt; r.length; row++)
    c = r[row].cells;
    for (var cell = 0; c &lt; c.length; cell++)
      do something with c[cell];
    }Andy

  • Using validation widgets within a data region

    My problem stems from the fact that when I place Spry Validation Widgets in a form within a Spry Data Region, the validation widgets do not work. When I remove the data region, all is well.
    Please help!
    This is a sample code:
    <!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>Untitled Document</title>
    <link href="SpryAssets/SpryValidationTextField.css" rel="stylesheet" type="text/css" />
    <script src="SpryAssets/xpath.js" type="text/javascript"></script>
    <script src="SpryAssets/SpryData.js" type="text/javascript"></script>
    <script src="SpryAssets/SpryValidationTextField.js" type="text/javascript"></script>
    <script type="text/javascript">
    <!--
    var dsMembers = new Spry.Data.XMLDataSet("data/members_xml.php", "export/row", {useCache: false});
    //-->
    </script>
    </head>
    <body>
    <div spry:region="dsMembers">
      <form id="editForm" name="editForm" action="">
        <table>
          <tr id="email">
            <td>E-mail:</td>
            <td>
              <input name="email_mem" type="text" id="email_mem" value="{username}" />
              <span class="textfieldRequiredMsg">The value is required.</span>
              <span class="textfieldInvalidFormatMsg">Invalid format.</span>
            </td>
          </tr>
          <tr id="password">
            <td>Password:</td>
            <td>
              <input name="password_mem" type="password" id="password_mem" value="{password}" />
              <span class="textfieldRequiredMsg">The value is required.</span>
              <span class="textfieldMinCharsMsg">The minimum number of characters not met.</span>
              <span class="textfieldMaxCharsMsg">The maximum number of characters exceeded.</span>
            </td>
          </tr>
          <tr id="site">
            <td>Website:</td>
            <td>
              <input name="website_mem" type="text" id="website_mem" value="{buswebsite}" />
              <span class="textfieldRequiredMsg">The value is required.</span>
              <span class="textfieldInvalidFormatMsg">Invalid format.</span>
            </td>
          </tr>
          <tr id="date">
            <td>Date:</td>
            <td><input name="registrationdate_mem" type="text" id="registrationdate_mem" value="{registrationdate}" />
            <span class="textfieldInvalidFormatMsg">Invalid format.</span> <span class="textfieldRequiredMsg">A value is required.</span></td>
          </tr>
          <tr>
            <td colspan="2">
              <input type="submit" name="Submit" id="Submit" value="Submit" />
              <input name="Reset" type="reset" value="Reset" />
            </td>     
          </tr>
        </table>
      <script type="text/javascript">
        <!--
        var email = new Spry.Widget.ValidationTextField("email", "email", {validateOn:["blur"]});
        var password = new Spry.Widget.ValidationTextField("password", "none", {minChars:6, maxChars:10, validateOn:["blur"]});
        var site = new Spry.Widget.ValidationTextField("site", "url", {validateOn:["blur"]});
        var date = new Spry.Widget.ValidationTextField("date", "date", {validateOn:["blur"], format:"dd/mm/yyyy", useCharacterMasking:true});
        //-->
        </script>
      </form>
    </div>
    </body>
    </html>
    Ben

    Ben,
    You need to add a function observer that will instantiate the form widgets and  add the Form Widget Init observer to the region.
    The modified code is as follows:
    <!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>Untitled Document</title>
    <link href="SpryAssets/SpryValidationTextField.css" rel="stylesheet" type="text/css" />
    <script src="SpryAssets/xpath.js" type="text/javascript"></script>
    <script src="SpryAssets/SpryData.js" type="text/javascript"></script>
    <script src="SpryAssets/SpryValidationTextField.js" type="text/javascript"></script>
    <script type="text/javascript">
    <!--
    var dsMembers = new Spry.Data.XMLDataSet("data/members_xml.php", "export/row", {useCache: false});
    //  Define a function observer that will instantiate the form widgets.
    var widgetInitObserver = function(nType, notifier, data) {
        if(nType == 'onPostUpdate'){
            var email = new Spry.Widget.ValidationTextField("email", "email", {validateOn:["blur"]});
            var password = new Spry.Widget.ValidationTextField("password", "none", {minChars:6, maxChars:10, validateOn:["blur"]});
            var site = new Spry.Widget.ValidationTextField("site", "url", {validateOn:["blur"]});
            var date = new Spry.Widget.ValidationTextField("date", "date", {validateOn:["blur"], format:"dd/mm/yyyy", useCharacterMasking:true});
    //    add the Form Widget Init observer to the region
    Spry.Data.Region.addObserver('formregion', widgetInitObserver);
    //-->
    </script>
    </head>
    <body>
    <form id="editForm" name="editForm" action="">
      <div id="formregion" spry:region="dsMembers">
        <table>
          <tr id="email">
            <td>E-mail:</td>
            <td>
              <input name="email_mem" type="text" id="email_mem" value="{username}" />
              <span class="textfieldRequiredMsg">The value is required.</span>
              <span class="textfieldInvalidFormatMsg">Invalid format.</span>
            </td>
          </tr>
          <tr id="password">
            <td>Password:</td>
            <td>
              <input name="password_mem" type="password" id="password_mem" value="{password}" />
              <span class="textfieldRequiredMsg">The value is required.</span>
              <span class="textfieldMinCharsMsg">The minimum number of characters not met.</span>
              <span class="textfieldMaxCharsMsg">The maximum number of characters exceeded.</span>
            </td>
          </tr>
          <tr id="site">
            <td>Website:</td>
            <td>
              <input name="website_mem" type="text" id="website_mem" value="{buswebsite}" />
              <span class="textfieldRequiredMsg">The value is required.</span>
              <span class="textfieldInvalidFormatMsg">Invalid format.</span>
            </td>
          </tr>
          <tr id="date">
            <td>Date:</td>
            <td><input name="registrationdate_mem" type="text" id="registrationdate_mem" value="{registrationdate}" />
            <span class="textfieldInvalidFormatMsg">Invalid format.</span> <span class="textfieldRequiredMsg">A value is required.</span></td>
          </tr>
          <tr>
            <td colspan="2">
              <input type="submit" name="Submit" id="Submit" value="Submit" />
              <input name="Reset" type="reset" value="Reset" />
            </td>     
          </tr>
        </table>
      </div>
    </form>
    </body>
    </html>
    I hope this helps.
    Ben

  • Clientgen Exception - java.lang.VerifyError:Cannot inherit from final class

    When i create a client jar from webservice ear the ant taks fails with compiler errors, such as:
    CreateProxy:
    [clientgen] Generating client jar for earname.ear(WebServiceName_WS) ...
    BUILD FAILED
    java.lang.VerifyError: Cannot inherit from final class
    at java.lang.ClassLoader.defineClass0(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:539)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
    at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:480)
    at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:182)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
    at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:224)
    at weblogic.webservice.server.WebServiceFactory.loadNonArrayClass(WebServiceFactory.java:1318)
    at weblogic.webservice.server.WebServiceFactory.loadClass(WebServiceFactory.java:1293)
    at weblogic.webservice.server.WebServiceFactory.initTypeMaps(WebServiceFactory.java:384)
    at weblogic.webservice.server.WebServiceFactory.createFromMBean(WebServiceFactory.java:184)
    at weblogic.webservice.tools.build.internal.WSDLGenImpl.getWebServiceRuntime(WSDLGenImpl.java:240)
    at weblogic.webservice.tools.build.internal.WSDLGenImpl.run(WSDLGenImpl.java:135)
    at weblogic.webservice.tools.build.internal.ClientGenImpl.doClientGenFromEAR(ClientGenImpl.java:438)
    at weblogic.webservice.tools.build.internal.ClientGenImpl.run(ClientGenImpl.java:345)
    at weblogic.ant.taskdefs.webservices.clientgen.ClientGenTask.doClientGen(ClientGenTask.java:351)
    at weblogic.ant.taskdefs.webservices.clientgen.ClientGenTask.execute(ClientGenTask.java:208)
    at org.apache.tools.ant.Task.perform(Task.java:341)
    at org.apache.tools.ant.Target.execute(Target.java:309)
    at org.apache.tools.ant.Target.performTasks(Target.java:336)
    at org.apache.tools.ant.Project.executeTarget(Project.java:1339)
    at org.apache.tools.ant.Project.executeTargets(Project.java:1255)
    at org.apache.tools.ant.Main.runBuild(Main.java:609)
    at org.apache.tools.ant.Main.start(Main.java:196)
    at org.apache.tools.ant.Main.main(Main.java:235)
    Total time: 25 seconds
    This is a ant command:
    <clientgen ear="${build}/earname.ear" onlyConvenienceMethod="true" warName="webservice.war" serviceName="WebServiceName_WS" packageName="my.package.webservices.generated" autotype="true" clientJar="${build.dist}/client/WebServiceName_WS.jar" overwrite="false" useServerTypes="true" keepGenerated="false" generateAsyncMethods="false" saveWsdl="true" j2me="false" useLowerCaseMethodNames="true" typePackageName="my.package.webservices.generated" usePortNameAsMethodName="false" />
    My webservice do not include any final class.
    I'm using WebLogic 8.1 SP4.Is there a solution for above problem?
    Thanks.
    Regards.

    Hi all,
    I m also facing quite similar problem.
    I have one sample JMX program, which i want to collect data from weblogic 9.2.
    but when i compile sample program on jdk 1.4 and run it on JDK 1.4 it throws following exception
    java.lang.VerifyError: class weblogic.utils.classloaders.GenericCl
    assLoader overrides final method .
    ERROR 02/13 09:54:03 Stderr 700100 at java.lang.ClassLoader.defineClass0(Native Method)
    ERROR 02/13 09:54:03 Stderr 700100 at java.lang.ClassLoader.defineClass(Unknown Source)
    ERROR 02/13 09:54:03 Stderr 700100 at java.security.SecureClassLoader.defineClass(Unknown Source)
    ERROR 02/13 09:54:03 Stderr 700100 at java.net.URLClassLoader.defineClass(Unknown Source)
    ERROR 02/13 09:54:03 Stderr 700100 at java.net.URLClassLoader.access$100(Unknown Source)
    ERROR 02/13 09:54:03 Stderr 700100 at java.net.URLClassLoader$1.run(Unknown Source)
    ERROR 02/13 09:54:03 Stderr 700100 at java.security.AccessController.doPrivileged(Native Method)
    ERROR 02/13 09:54:03 Stderr 700100 at java.net.URLClassLoader.findClass(Unknown Source)
    ERROR 02/13 09:54:03 Stderr 700100 at java.lang.ClassLoader.loadClass(Unknown Source)
    ERROR 02/13 09:54:03 Stderr 700100 at java.lang.ClassLoader.loadClass(Unknown Source)
    but sample program works fine if i run it on JDK 1.5..
    can someone tell me...wats reason?
    Thanks
    Nihil

  • Has anyone implemented CKEditor in a Spry Data Region?

    I have been trying to implement an HTML editor in a Spry Data Region without success.
    CKEditor is a follow up from FCKEditor and is supposed to slot into Ajax applications.
    The website is here: http://docs.fckeditor.net/CKEditor_3.x/Developers_Guide.
    Any help will be greatly appreciated.
    Ben

    Just make sure you call the
    CKEDITOR.replace('editor1'); // editor1 being the id of your text area
    everytime the region gets updated. The best way to do this is add a Spry region observer, that calls that line of code during the onPostUpdate observer.
    Read more about the observers here:
    http://labs.adobe.com/technologies/spry/articles/data_set_overview/index.html

  • Sliding panels from data - single panel

    I would like to use the spry sliding panels from data widget
    with only 1 panel at a time. The sample has two at a time.
    Most of the code makes sense, but every modification I try
    breaks the next/previous navigation.

    I modified the code from the example for you, so now it works
    with just one panel visible.
    Changes are:
    set the width of the wigdet en
    slidingpanel class to 250 instead of 500.
    var numberOfPanelsPerView = 1
    remove all the
    spry:if="{ds_RowNumber} % 2 == 0" attributes
    change
    onclick="sp1.showPanel('p{prevStartIndex}') to
    onclick="sp1.showPreviousPanel()
    change
    onclick="sp1.showPanel('p{nextStartIndex}') to
    onclick="sp1.showNextPanel()
    This all leads to the following code
    <!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>Sliding Panels Sample</title>
    <script type="text/javascript"
    src="../../widgets/slidingpanels/SprySlidingPanels.js"></script>
    <script src="../../includes/xpath.js"
    type="text/javascript"></script>
    <script src="../../includes/SpryData.js"
    type="text/javascript"></script>
    <style type="text/css">
    <!--
    .widget {
    /* width: 500px;*/
    width: 250px;
    height: 230px;
    border: solid 1px black;
    background-color: #CCCCCC;
    .SlidingPanels {
    /* width: 500px; */
    width: 250px;
    height: 230px;
    overflow: visible;
    position: relative;
    float: left;
    padding: 0px;
    .SlidingPanelsContainer {
    width:8000em;
    height:230px;
    position: absolute;
    float:left;
    margin: 0px;
    padding: 0px;
    .SlidingPanelsContent {
    width: 250px;
    height: 230px;
    float: left;
    .content {
    width: 241px;
    height: 200px;
    float: left;
    overflow: hidden;
    padding: 4px;
    border-right: solid 1px #999999;
    .panelnav {
    clear: both;
    height: 42px;
    .left {
    text-align: left;
    margin-left: 4px;
    .right {
    text-align: right;
    margin-right: 4px;
    -->
    </style>
    <link href="../../css/samples.css" rel="stylesheet"
    type="text/css" />
    <script type="text/javascript">
    <!--
    var ds1 = new
    Spry.Data.XMLDataSet("../../demos/products/products.xml",
    "/products/product");
    function TruncateStrIfNeeded(str, maxChars)
    // Decode our string so when we count characters, we aren't
    counting
    // the chars in an entity name.
    str = Spry.Utils.decodeEntities(str);
    if (str.length > maxChars)
    str = str.substr(0, maxChars - 4) + " ...";
    return Spry.Utils.encodeEntities(str);
    ds1.addObserver({ onPostLoad: function() {
    var numberOfPanelsPerView = 1; //was 2
    var rows = ds1.getData();
    var numRows = rows.length;
    // Add some custom columns to our data set.
    for (var i = 0; i < numRows; i++)
    var row = rows
    // Add a 'teaser' column which is basically the description,
    // but truncated so it can fit within our panel.
    row.teaser = TruncateStrIfNeeded(row.desc, 400);
    // Add a 'viewStartIndex' column that indicates what view
    this row
    // belongs to.
    row.viewNumber = Math.floor(i / numberOfPanelsPerView) + 1;
    row.viewStartIndex = i - (i % numberOfPanelsPerView);
    row.prevStartIndex = row.viewStartIndex -
    numberOfPanelsPerView;
    row.nextStartIndex = row.viewStartIndex +
    numberOfPanelsPerView;
    //-->
    </script>
    </head>
    <body>
    <h3>Building a Sliding Panels widget with Spry
    Data</h3>
    <p>This sample creates a Sliding Panels widget by using
    Spry Data to build the repeating markup. In this sample the content
    panels are generated dynamically and the photo in each panel comes
    from Spry Data. The text is static, which is just there for
    example.</p>
    <p>The content panel is generated in a Spry:repeat
    region. An important thing in the panel widget is that each panel
    should have a unique ID. This ID is generated with a Spry data
    reference. Using the same method, the Panel links are generated the
    same way, using the same data values. This ensures that the panel
    links and IDs match up correctly. In this sample, the visible
    window is twice as wide as the content panel. This allows for 2
    panels to show at once. The links, therefore, need to show only
    every other panel number. This will allow the panel to move by 2
    content panels each time. To do this, a spry:if is used to only
    display the even number panel numbers.</p>
    <p>Note: Since this sample depends on Spry Data for the
    content and markup, it will not degrade when JavaScript is turned
    off. This sample shows how to construct this widget with Data.
    Determine if this method fits your needs with degredation and
    accessibility in mind. Also, this sample is more complicated only
    because we are showing 2 panels at once and there are differing
    lengths of text in the panels.</p>
    <p>Page: <span spry:region="ds1"
    spry:repeatchildren="ds1"> <a href="#"
    onclick="sp1.showPanel('p{viewStartIndex}'); return
    false;">{viewNumber}</a> </span></p>
    <div class="widget">
    <div id="apDiv1" class="SlidingPanels"
    spry:region="ds1">
    <div class="SlidingPanelsContainer">
    <div id="p{ds_RowNumber}" class="SlidingPanelsContent"
    spry:repeat="ds1">
    <div class="content"> <img
    src="../../demos/products/{boximage}" width="75" height="56"
    hspace="5" vspace="5" align="left" alt="Sample Images from Spry
    Data." />
    <p>{desc}</p>
    </div>
    <div class="panelnav left"><a href="#"
    onclick="sp1.showPreviousPanel(); return
    false;">&lt;&lt;
    Previous</a>          <a
    href="#" onclick="sp1.showNextPanel(); return false;">Next
    &gt;&gt;</a></div>
    </div>
    </div>
    <script type="text/javascript">
    var sp1 = new Spry.Widget.SlidingPanels("apDiv1");
    </script>
    </div>
    </div>
    </body>
    </html>

  • Inherit from LV Web Service

    I have a created a Child Web Service class that inherits from Web Service. In my Web Service startup VI I am unable to use my class, because if I put it on the connector pane in the place of the Web Service.lvclass that is there by default, I get error −67001: LabVIEW Web Services: The Web service is undefined. This tells me the class object isn't being set correctly even though it's on the connector pane.
    Can I do what I want? It would seem kind of silly if we are able to inherit from Web Service but then not use the child class in place of the parent on the Startup VI.

    Hi Greg,
    Can you provide a little more detail about your use case? Why do you want to inherit from Web Service.lvclass? Is there a reason why Web Service.lvclass does not meet your needs? I only ask because I have not found anyone else that has reported this error so I can find no information about it.
    I tried to do something similar to what I thought you were doing and are not getting error -67001:
    Can you provide any code that shows this behavior? Where do you get this error? When you start the web service? If it inherits, I would imagine it should work as you want since it has all the necessary methods/data that LabVIEW would need, but I'm not 100% certain.
     

  • Select schemas from relational model on import from data dictionary option

    Hi All,
    I have one relational model with 3 diferent schemas,
    I want to compare one of my schemas with the data dictionary I have in a database,
    I select the import option in the general file menu, select from data dictionary option,
    select the connection from my database,swap target model checked,select a physical model and select the objects i want to compare from the database,
    My problem is that the result is the comparison between all the objects in my model and the objects in the database that I have selected,
    what I really want is to compare a list of objects in my model to a list of objects in my database,
    this could be possible? or always need to compare all the objects of the model?
    Thanks in advance

    Hi jbellver,
    there is no any development in DM 3.1.0.691 on that problem. In production release you'll be able to compare objects in subview with database or just to select several objects and compare them with database. And of course "generate in DDl" filtering still can be used - it works at "Compare dialog" level.
    Philip

Maybe you are looking for

  • Document Root for JSP...

    Hi,           Is there some way i can have more than one directory as my           DocumentRoot...??           I am trying to save my .jsp files in directory           /weblogic/myserver/public_html/jsp. But i have my root as public_html.           B

  • Content available in iTunes Store NOT available via AppleTV?

    I'm sure this has been answered a thousand times over, but it's perplexing me and I found I can get answers quickly from the folks here. Why is it that movies and TV shows that show up as available for rental or purchase in the iTunes Store, don't sh

  • EWA alert report is not generating in SMP through SDCCN !!

    Dear Techies, Kindly help me on this issue, I am generating EWA in SDCCN, it is generating fine through RFC Connections successful. But I am not getting EWA report in SMP. All steps performed successfully but no EWA report in SMP inbox ( service mess

  • Problems downloading photos on my ipad

    Why when l downlowd  pictures from my cam inmy ipad its came up blank?

  • Importing H.264 content

    Hey, I got an error when trying to import a Quicktime file compressed with the H.264 codec within Final Cut Express HD. Anyone have a problem like this? I alos had another version of this file as a LiveType document/movie and that imported just fine.