[Layout] Specify width with parameters

Hi,
I created some specific layouts using NWDS.
Now, my requirements are to provide a solution to create new layouts (essentially, new values for widths between the various columns) in the Portal.
As a solution, I tried to parameterize these values using component-profile and passed it to the jsp.
It almost works since the ratios between columns are rendered as expected, but the parameters do not show up when I edit the layout in the PCD.
Am I missing something here ??
<%@ taglib uri="prt:taglib:com.sap.portal.reserved.layout.TagLibHtmlb" prefix="hbj" %>
<%@ taglib uri="prt:taglib:com.sap.portal.reserved.layout.TagLibLayout" prefix="lyt" %>
<%
IPortalComponentRequest currentRequest   = (IPortalComponentRequest) pageContext.getAttribute(javax.servlet.jsp.PageContext.REQUEST);
IPortalComponentContext componentContext = currentRequest.getComponentContext();
IPortalComponentProfile profile          = componentContext.getProfile();
String widthColumn1                      = profile.getProperty("com.mycompany.dyna_layout.column1.width");
String widthColumn2                      = profile.getProperty("com.mycompany.dyna_layout.column2.width");     
%>
<lyt:template>
    <hbj:content id="myContext" >
        <hbj:page title="Portal Page">
            <hbj:gridLayout   id="GridLayout1"  width="100%" cellSpacing="2">
                <hbj:gridLayoutCell rowIndex="1" columnIndex="1" width="<%=widthColumn1%>" verticalAlignment="top">
                    <lyt:container id="column1" />
                </hbj:gridLayoutCell>
                <hbj:gridLayoutCell rowIndex="1" columnIndex="2" width="<%=widthColumn2%>" verticalAlignment="top">
                    <lyt:container id="column2" />
                </hbj:gridLayoutCell>
            </hbj:gridLayout>
        </hbj:page>
    </hbj:content>
</lyt:template>
Thanks in advance.
Best regards,
Guillaume

Hi,
Here is the portalapp.xml part :
<!-- 2 Columns Dynamic -->
    <component name="Casino_2Col_Dyna">
      <component-config>
        <property name="ClassName" value="com.sapportals.portal.pb.layout.PageLayout"/>
        <property name="ResourceBundleName" value="pagebuilder_nls"/>
        <property name="SafetyLevel" value="no_safety"/>
      </component-config>
      <component-profile>
        <property name="ComponentType" value="com.sapportals.portal.layout"/>
        <property name="com.sap.portal.pcm.Title" value="Casino 2 Columns Dynamic"/>
        <property name="com.sap.portal.pcm.Description" value="Two-column layout with parameterized widths"/>
        <property name="com.sap.portal.reserved.layout.TagLibLayout" value="/SERVICE/com.sap.portal.pagebuilder/taglib/layout.tld"/>
        <property name="com.sap.portal.reserved.layout.TagLibHtmlb" value="/SERVICE/com.sap.portal.htmlb/taglib/htmlb.tld "/>
        <property name="com.sap.portal.reserved.layout.TemplateFile" value="Casino_2Col_Dyna.jsp">
          <property name="administration" value="NONE"/>
        </property>
        <property name="AuthScheme" value="anonymous"/>
        <property name="com.sap.portal.reserved.layout.Cont1" value="column1">
          <property name="administration" value="NONE"/>
          <property name="title" value="Column 1"/>
          <property name="orientation" value="vertical"/>
          <property name="designClass" value="prtlPageConL"/>
        </property>
        <property name="com.sap.portal.reserved.layout.Cont2" value="column2">
          <property name="administration" value="NONE"/>
          <property name="title" value="Column 2"/>
          <property name="orientation" value="vertical"/>
          <property name="designClass" value="prtlPageConR"/>
        </property>
        <property name="com_sap_webdynpro_mandatory_app_namespace" value="sap.com/pb_lyt">
          <property name="administration" value="NONE"/>
        </property>
        <property name="com_sap_webdynpro_mandatory_app_id" value="com.sap.portal.pb.layout.narrowwide.NarrowWideLayout">
          <property name="administration" value="NONE"/>
        </property>
        <property name="fr.group-dummy.dyna_layout.column1.width" value="38%"/>
        <property name="fr.group-dummy.dyna_layout.column2.width" value="62%"/>
      </component-profile>
    </component>
Thanks.
Best regards,
Guillaume

Similar Messages

  • [svn] 3411: * Change layout-related width/height, explicit width/height, measured width/height properties from post-scale to pre-transform.

    Revision: 3411
    Author: [email protected]
    Date: 2008-09-29 16:44:01 -0700 (Mon, 29 Sep 2008)
    Log Message:
    * Change layout-related width/height, explicit width/height, measured width/height properties from post-scale to pre-transform. yay!
    * Flex3 containers are updated to support the new behavior.
    * Repeatedly scaling a component can differ from before, since we no longer accumulate rounding errors.
    * The change is gated by a version flag, in compatibility mode these properties don't change.
    Reviewed by Glenn, Ely
    Modified Paths:
    flex/sdk/trunk/frameworks/projects/flex4/src/flex/layout/LayoutItemUIC.as
    flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/Accordion.as
    flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/Box.as
    flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/DividedBox.as
    flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/FormItem.as
    flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/Tile.as
    flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/utilityClasses/BoxLayout.a s
    flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/utilityClasses/CanvasLayou t.as
    flex/sdk/trunk/frameworks/projects/framework/src/mx/core/Container.as
    flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as
    Added Paths:
    flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/utilityClasses/PostScaleAd apter.as

    I am sorry to have to point out to you that you have changed SpryMenuBasicSkin.css so much that it is impossible to render any assistance.
    To start with, the menubar has an ID of MenuBar, yet in the CSS I only see this referenced as a CLASS as in
    .MenuBar  {
    background-color:#cccccc;
    font-family: Arial, Helvetica, sans-serif; /* Specify fonts on on MenuBar and subMenu MenuItemContainer, so MenuItemContainer,
    MenuItem, and MenuItemLabel
    at a given level all use same definition for ems.
    Note that this means the size is also inherited to child submenus,
    so use caution in using relative sizes other than
    100% on submenu fonts. */
    font-weight: normal;
    font-size: 16px;
    font-style: normal;
    padding:0;
    border-color: #ffffff #ffffff #ffffff #ffffff;
    border-width:0px;
    border-style: none none none none;
    I would suggest to start again.
    Once you have done that, supply a link to your site and we will assist you further.
    Gramps

  • Reporting off oracle stored procedure with parameters error

    Erorr message: Error in File xxx.rpt: Failed to retrieve data from the database. Details: [Database Vendor Code: 907 ]
    Asp.net 2.0 web application.
    CR XI R2 sp2 in BOE XI R2 sp2 on Solaris 10.
    Database: Oracle 10g on Solaris 10. Oracle stored procedure defined in package.
    Happens with reports reporting off stored procedure with parameters.
    The sp is used in the crystal report.
    The web application passes parameters to crystal report, which then passes the parameters to stored procedure.
    Encountered error if:
    r.PromptOnDemandViewing = false;
    r.UseOriginalDataSource = false;
    r.CustomServerType = CeReportServerType.ceServerTypeOracle;
    Report can retrieves data if:
    r.PromptOnDemandViewing = false;
    r.UseOriginalDataSource = true;
    r.CustomServerType = CeReportServerType.ceServerTypeOracle;
    In addition
    The steps are:
    1)     Create oracle package and stored proc.
    2)     In CR Designer, select the stored proc as datasource.
    3)     The parameters names were "generated" by the CR Designer.
    4)     Rename the parameter names.
    5)     Drag the fields onto report.
    We noticed the following with different setting of database logon info:
    When previewing from BOE, get error when "Use custom database logon information specified here"
    However, no error when "Use original database logon information from the report". 
    Am i missing something?

    Please re-post if this is still an issue to the Data Connectivity - Crystal Reports Forum or purchase a case and have a dedicated support engineer work with you directly

  • Chart with parameters in SSRS 2012

    Hello,
      I want to do a chart (line chart particularly, but I will take an answer for any chart as they all probably work similarly) with one parameter passed (hospitalid) and two values returned (BedDays and MonthYear).  MonthYear is how the horizontal
    line is divided, by each month, and the BedDays should be the number of patient stays in beds in that month.  Doesn't matter if it's sum of bed days or bed days, because a sum is made in the stored procedure, and MonthYear is unique.
      I have spend a few days on this problem, working a lot on it, and I keep running into errors, trying various methods.  I don't know where all my errors could be coming from, it could be in the aspx, it could be in the report design, or it could
    be in the code behind, so I am hoping someone can give me a step by step solution to this problem which should be simple, but apparently is not because there is no worthwhile help that I can find on the internet.  It should work for SSRS 2012, I do not
    have a choice of using an earlier version for this project.  Please include everything I need to do in the report GUI, in the aspx file, and in the code behind, as any little error in any of these could keep this from working and make it very difficult
    for me to pinpoint what is going wrong.
      Please help!

    I'm using Visual Studio 2013.  According to what I read, there is no report preview in newer versions?
    I created a report and then added a line chart.
    I used my connection and under Data Set Name I put: AllevantReportDataSetB
    Under Choose the Dataset, I selected AllevantReportDataSetB as the data source. 
    For "Name" I chose DataSetB
    The stored procedure works (that is all you need to know, because the inner detail shouldn't make a difference), and when a parameter @facilityid is passed to it, it returns a table with the first column named MonthYear which is a date of all of the months,
    years, and the first of each month from the beginning to end of the data - and the second column is BedDays, the number of total stays in a bed for all of the patients at the facility.
    In Category groups, I have MonthYear, and in Values I have BedDays (actually [Sum(BedDays)], but the sum shouldn't matter, because the MonthYears are unique so there is only one MonthYear, there is not more than one of the same month in the whole data set)
    My .aspx is the following:
    <rsweb:ReportViewer ID="ReportViewer1"
    runat="server"
    ProcessingMode="Remote"
    Font-Names="Verdana"
    Font-Size="8pt"
    InteractiveDeviceInfos="(Collection)"
    WaitMessageFont-Names="Verdana"
    WaitMessageFont-Size="14pt"
    Width="95%"
    Height="99%" ShowDocumentMapButton="False"
    ShowPromptAreaButton="False" Visible="true">
    <LocalReport ReportEmbeddedResource="MySolution.Report5.rdlc">
    <DataSources>
    <rsweb:ReportDataSource DataSourceId="Report1DataSource" Name="DataSetB" />
    </DataSources>
    </LocalReport>
    </rsweb:ReportViewer>
    And my VB code behind is the following:
    Protected Function GetReportDataTable() As DataTable
    Dim Conn As New SqlConnection(ConfigurationManager.ConnectionStrings("sql").ToString)
    Dim Command As New SqlCommand("BedDays", Conn)
    Dim BedDaysDataTable As New DataTable()
    BedDaysDataTable.Columns.Add("MonthYear", GetType(DateTime))
    BedDaysDataTable.Columns.Add("BedDays", GetType(Int32))
    Command.CommandType = CommandType.StoredProcedure
    Command.Parameters.Add("@facID", SqlDbType.Int).Value = 20
    Command.Connection = Conn
    Conn.Open()
    Dim DataReader As SqlDataReader = Command.ExecuteReader()
    BedDaysDataTable.Load(DataReader)
    Conn.Close()
    Return BedDaysDataTable
    End Function
    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
    If Not IsPostBack Then
    FillMetricsDDL()
    FillFacilityDDL()
    Dim rds As ReportDataSource
    rds = New ReportDataSource("Report1DataSource", GetReportDataTable)
    Dim ReportParameters As New List(Of ReportParameter)
    ReportParameters.Add(New ReportParameter("@facID", 20))
    ReportViewer1.LocalReport.DataSources.Add(rds)
    ReportViewer1.LocalReport.ReportPath = "Report5.rdlc"
    ReportViewer1.LocalReport.Refresh()
    End If
    Common.Chosen(Me)
    End Sub
      I am getting the error where the report should be
    Unable to connect to the remote server, no connection could be made because the target machine actively refused it.                                        
    But I suppose once this error is resolved, there will be more, because I really do not quite know exactly how SSRS charts with parameters in SSRS 2012 are suppossed to work, in code behind, in aspx, and in the charting, and how it all ties together.  So
    some complete guidance to show ALL the places where I am going wrong here would be much appreciated, not just an attempt to solve the one error I have above, which may not be the sum total of all of my problems here.
    Unless, of course, it IS the only error which would be GREAT.

  • Mandatory Condition with parameters

    I am trying to enforce a rule that a date range must be specified whenever querying a particular table. I tried using a mandatory condition with parameters, but it appears that parameters can only be used in workbooks, not in business areas. Have I got this right ? If so, is there any other way the administrator can enforce this rule ?

    You are right that parameters are not supported by Discoverer Administrator. But on metalink there are documents on how to accomplish it manually: note 282249.1 and 304192.1
    Regards,
    Sabine

  • You cannot have command as the datasource with parameters that get passed?

    I wrote a Crystal Report using a SQL command shown below. The SQL in effect creates a table called Command with the specified fields. This CR works exactly as we requested. Now I am told that they are using some kind of Interface, written in VB6, not sure exactly of all this, but that it cannot accept this Command as the datasource. The developer says that the interface is expecting SQL Server tables. Does this sound right? The interface is a repository of all reports with parameters.
    SELECT
    IV00101.ITMGEDSC,
    IV00101.ITEMDESC,
    RM00101.CUSTNAME,
    RM00101.CPRCSTNM,
    RM00101.CUSTNMBR,
    IV40600.UserCatLongDescr,
    CATS.UserCatLongDescr,
    SOP10200.ITEMNMBR,
    SOP10200.SOPNUMBE,
    SOP10200.QUANTITY,
    SOP10200.OXTNDPRC,
    SOP10200.SOPTYPE,
    SOP10100.DOCDATE,
    'Current' as source
    FROM ((((PBS.dbo.SOP10200
    SOP10200 INNER JOIN PBS.dbo.IV00101 IV00101 ON
    SOP10200.ITEMNMBR=IV00101.ITEMNMBR)
    INNER JOIN
    PBS.dbo.SOP10100 SOP10100 ON
    (SOP10200.SOPTYPE=SOP10100.SOPTYPE) AND
    (SOP10200.SOPNUMBE=SOP10100.SOPNUMBE))
    INNER JOIN
    PBS.dbo.IV40600 IV40600 ON
    IV00101.ITMGEDSC=IV40600.USCATVAL)
    INNER JOIN
    PBS.dbo.IV40600 CATS ON
    IV00101.USCATVLS_2=CATS.USCATVAL)
    INNER JOIN
    PBS.dbo.RM00101 RM00101 ON
    SOP10100.CUSTNMBR=RM00101.CUSTNMBR
    UNION ALL
    SELECT
    IV00101.ITMGEDSC,
    IV00101.ITEMDESC,
    RM00101.CUSTNAME,
    RM00101.CPRCSTNM,
    RM00101.CUSTNMBR,
    IV40600.UserCatLongDescr,
    CATS.UserCatLongDescr,
    SOP30300.ITEMNMBR,
    SOP30300.SOPNUMBE,
    SOP30300.QUANTITY,
    SOP30300.OXTNDPRC,
    SOP30300.SOPTYPE,
    SOP30200.DOCDATE,
    'History' as source
    FROM ((((PBS.dbo.SOP30300
    SOP30300 LEFT OUTER JOIN PBS.dbo.IV00101 IV00101 ON
    SOP30300.ITEMNMBR=IV00101.ITEMNMBR)
    INNER JOIN
    PBS.dbo.SOP30200 SOP30200 ON
    (SOP30300.SOPTYPE=SOP30200.SOPTYPE) AND
    (SOP30300.SOPNUMBE=SOP30200.SOPNUMBE))
    LEFT OUTER JOIN
    PBS.dbo.IV40600 IV40600 ON
    IV00101.ITMGEDSC=IV40600.USCATVAL)
    LEFT OUTER JOIN
    PBS.dbo.IV40600 CATS ON
    IV00101.USCATVLS_2=CATS.USCATVAL)
    INNER JOIN
    PBS.dbo.RM00101 RM00101 ON
    SOP30200.CUSTNMBR=RM00101.CUSTNMBR

    Hi,
    I've used the SQL Command quite a bit in Crystal. It simply replaces the SQL that Crystal would create for your Designer query with the SQL you specify in the Command. Therefore I would not expect using Command to make any difference. So I suspect the problem lies elsewhere - e.g. is the report being called correctly and are the correct parameters and database login credentials being passed?

  • Layout space issues with IE7

    Hi Everyone,
    I have a website that I created that is a two column fixed
    width with header and footer. When you look at the site in Firefox
    the spacing between the sidebar on the left and the main content is
    correct but when you view the same site in IE7 there is a huge
    amount of white space between the sidebar and the main content. I
    cannot figure out how to get rid of that so that it view as it does
    in Firefox. You can view the site at www.ebcardiac.com.
    Any help will be great.
    Thanks,
    Robert

    I am hoping that someone can give me some idea of what I need
    to adjust so that the layout in Internet Explorer will display
    properly. - Robert

  • Equal spacing between the images of uniformed height but variable widths with AS3?

    I have to figure out how to insert images with variable width with equal spacing intervals.
    Here is where I got so far:
    function buildScroller(imageList:XMLList):void{
              trace("build Scroller");
              for (var item:uint = 0; item<imageList.length();item++) {
                        var thisOne:MovieClip = new MovieClip();
      var currentX = 90;
                        var spaceBetween = 20;
      var currentImageWidth = Number(imageList[item].attribute("width"));
    thisOne.x = currentX;
    thisOne.x = (currentImageWidth+spaceBetween)*item;
    I can see that my images are being spread out on the page and if I change the number in var spaceBetween it affects the spacing. However the spacing is not uniformed. I can not figure why. Perhaps because I can not properly retrieve the image widths from the xml file. I assigned a width in xml file in the following manner:
    <images>
    <image src="appThmb_imgs/A-illuminatorUpLit_xsm.jpg" title="UpDownGlowingVase" url="http://www.888acolyte.com" width="132"/>
    <image src="appThmb_imgs/ATI-1-bgpA_xsm.jpg" title="CoolingReflections" url="http://www.888acolyte.com" width="117"/>
    <image src="appThmb_imgs/ATI-2-zenC_xsm.jpg" title="OrchidsUnderGlass" url="http://www.888acolyte.com" width="263"/>
    <image src="appThmb_imgs/SilverBloom_RGB_xsm.jpg" title="SilverBloom" url="http://www.888acolyte.com" width="148"/>
    </images>
    they correspond to actual image width. I do however want them to be scaled at 50% of their actual width.
    Any ideas if I am missing a line of code or don't call out images properly?

    Thank You for your reply.
    I tried to implement it but images are still jambled together.
    Perhaps it has something to do with the fact that I specify the actual width of the image in the XML file but then define it as a scaled value in the code later on (11th line at the bottom of the code):
        mc.height = 110;
    This height definition will just give the width proportional to the height. Does it mean that I can not specify the height as it is?
    Also can be there a mistake in the XML file? I just assigned the width number as it is in pixels for each image. Here is an example:
    <images>
    <image src="appThmb_imgs/RosesGallasGalore_RGB_xsm.jpg" title="RosesGallasGalore" url="http://www.888acolyte.com" width="131"/>
    <image src="appThmb_imgs/SangriaBling_RGB_xsm.jpg" title="SangriaBling" url="http://www.888acolyte.com" width="233"/>
    <image src="appThmb_imgs/SilverBloom_RGB_xsm.jpg" title="SilverBloom" url="http://www.888acolyte.com" width="148"/>
    </images>
    There were no errors in the output or compiler errors tabs.
    Here is my code in its entirety:
    import com.greensock.*;
    import com.greensock.easing.*;
    //load xml
    var xmlLoader:URLLoader = new URLLoader();
    /////Parse XML
    var xmlData:XML = new XML();
    var xmlPath:String = "app_thmbs_imgsModfd.xml";
    xmlLoader.load(new URLRequest(xmlPath));
    trace("loading xml from: " + xmlPath);
    xmlLoader.addEventListener(Event.COMPLETE, LoadXML);
    function LoadXML(e:Event):void {
              trace("xml load complete");
              xmlData = new XML(e.target.data);
              buildScroller(xmlData.image);
    /////Build Scroller MovieClip to Contain Each Image
    var scroller:MovieClip = new MovieClip();
    this.addChild(scroller);
    scroller.y = 30;
    /////Parse XML
    //build scroller from xml
              var spaceBetween:int = 20;
              function buildScroller(imageList:XMLList):void{
              trace("build Scroller");
              var nextX:int=spaceBetween; //not sure where you want to start;
              for (var item:uint = 0; item<imageList.length();item++) {
                        var thisOne:MovieClip = new MovieClip();
                        thisOne.x=nextX;
                        nextX=int(imageList[item].attribute("width"))+spaceBetween;
                        //outline
                        var blackBox:Sprite = new Sprite();
                        blackBox.graphics.beginFill(0xFFFFFF);
                        blackBox.graphics.drawRect(-1, -1, 124, 107);
                        thisOne.addChild(blackBox);
                        thisOne.itemNum = item;
                        thisOne.title = imageList[item].attribute("title");
                        thisOne.link = imageList[item].attribute("url");
                        thisOne.src = imageList[item].attribute("src");
                        thisOne.alpha = 0;
                        //Loading and Adding the Images
                        //image container
                        var thisThumb:MovieClip = new MovieClip();
                        //add image
                        var ldr:Loader = new Loader();
                        var url:String = imageList[item].attribute("src");
                        var urlReq:URLRequest = new URLRequest(url);
                        trace("loading thumbnail "+item+" into Scroller: " + url);
                        //assign event listeners for Loader
                        ldr.contentLoaderInfo.addEventListener(Event.COMPLETE,completeHandler);
                        ldr.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, errorHandler);
                        ldr.load(urlReq);
                        thisThumb.addChild(ldr);
                        thisOne.addChild(thisThumb);
                        //create listeners for this thumb
                        thisOne.buttonMode = true;
                        thisOne.addEventListener(MouseEvent.CLICK, clickScrollerItem);
                        thisOne.addEventListener(MouseEvent.MOUSE_OVER, overScrollerItem);
                        thisOne.addEventListener(MouseEvent.MOUSE_OUT, outScrollerItem);
                        //add item
                        scroller.addChild(thisOne);
              trace("termination of build scroller");
    function clickScrollerItem(e:MouseEvent):void{
              trace("clicked item " +e.currentTarget.itemNum + " - visit url: " +e.currentTarget.link);
    function overScrollerItem(e:MouseEvent):void{
              trace("over"+e.currentTarget.title);
    function outScrollerItem(e:MouseEvent):void{
              trace("out"+e.currentTarget.title);
    function completeHandler(e:Event):void{
              //trace("thumbnail complete "+e.target.loader.parent.parent.title)
              TweenMax.to(e.target.loader.parent.parent, .5, {alpha:1});
              //size image into scroller
              resizeMe(e.target.loader.parent, 140, 105, true, true, false);
    function errorHandler(e:IOErrorEvent):void{
              trace("thumbnail error="+e);
    function resizeMe(mc:DisplayObject, maxH:Number, maxW:Number=0, constrainProportions:Boolean=true, centerHor:Boolean=true, centerVert:Boolean=true):void{
        maxH = maxH == 0 ? maxW : maxH;
        mc.width = maxW;
        mc.height = 110;
              mc.scaleX=mc.scaleY
              if (centerHor) {
                        mc.x = (maxW - mc.width) / 2;
              if (centerVert){
                        mc.y = (maxH - mc.height) / 2;

  • Calling stored procedures with parameters with the Database Connectivi​ty Toolkit

    Hi all,
    I am new to the forum and am having difficulty finding a solution to a particular problem I am having regarding using the LabVIEW Database Connectivity Toolkit on a project I am currently working on at my job.  I have a database in which I have tables and stored procedures with parameters.  Some of these stored procedures have input, output, and return parameters.
    I have been trying to follow this example but to no avail:  http://digital.ni.com/public.nsf/allkb/07FD1307460​83E0686257300006326C4?OpenDocument
    One such stored procedure I am working on implementing is named "dbo.getAllowablePNs", which executes "SELECT * from DeviceType" (DeviceType is the table).  In this case, it does not require an input parameter, it has an output parameter that generates the table [cluster], and has a return parameter which returns an integer value (execution status code) to show if an error occurred.  The DeviceType table has 3 columns; ID (PK, int, not null), PN (nvarchar(15), null), and NumMACAddresses (int, null).  I have gone over many examples and have talking to NI support to try to implement this and similar stored procedures in LabVIEW but have not been successful.  I am able to connect to the database with the Open Connection VI without error, but am running into some confusion following this step.  I am then trying to use the Create Parameterized Query VI to call the stored procedure and set the parameters.  I assume I would then use the Set Parameter Value VI for each parameter that is wired into the parameters input on the previous Parameterized Query VI?  I am also having some confusion during and following these steps as well.  I would greatly appreciate any advice or suggestions anyone might have in regards to this situation as I am not a SQL expert.  Also, I would be happy to provide any more information that would be helpful.
    Regards,
    Jon
    Solved!
    Go to Solution.

    Also, I don't know if this would be helpful but here is the actual stored procedure in SQL:
    CREATEPROCEDURE [dbo].[getLastSequenceNumber]
    @p1 nvarchar(10)='WO-00000'
    AS
    BEGIN
    -- SET NOCOUNT ON added to prevent extra result sets from
    -- interfering with SELECT statements.
    SETNOCOUNTON;
    -- Insert statements for procedure here
    selectmax(SequenceNumber)from Devices where WorkOrderNumber= @p1
    END
    GO

  • Discoverer report with parameters and functions

    I am new to Discoverer. Is there a way to create a report (with parameters) of one line per customer such that the following data will be displayed for each customer?
    Among the parameters is: from_date (month & year) ,to_date
    The basic query gives totals for each date (month & year) for every customer.
    Among the fields displayed:
    1-customer_id,
    2-balance until from_date,
    3-total activity between from_date and to_date
    I have a function to calculate the total balance until from_date, but then I cannot get the total activity on the same line. I tried using another function and I tried using a total calculation but to no success.
    Is this possible?
    Thanks.

    Hi Markus
    You need to determine whether you can in fact call a Discoverer report using a URL before linking it in Portal. You need to run the report in Viewer first and then see copy the URL from the address line of the browser. Then you open another browser and paste the URL. You may well be prompted for a username and password but hopefully the correct report with the right parameters will then execute.
    Assuming this works you then paste the same URL link into Portal and you should be able to get the report to run.
    Best wishes
    Michael

  • How to call PDF Report with parameters in jdeveloper 10.1.3

    Hi all,
    how to call PDF Report with parameters in jdeveloper 10.1.3
    for example I have Report name is repdept.pdf with parameter as deptno
    and I want call this Report from JSP page ?
    thanks
    frank

    Hi all,
    how to call PDF Report with parameters in jdeveloper 10.1.3
    for example I have Report name is repdept.pdf with parameter as deptno
    and I want call this Report from JSP page ?
    thanks
    frank

  • I cann't execute javac with parameters. please help !!

    Hi All!!
    I can't understand how to execute application or bat file (javac.exe for example) WITH parameters correctly.
    I can execute javac.exe or bat file - WITHOUT parameters :
    Process p = Runtime.getRuntime().exec(WIN_PATH + " " + WIN_FLAG + " " + "javac.exe");
    But I can't execute correctly the command like:
    "javac.exe -classpath C:\Alex; Test.java"
    I tried to use exec(str,env[]) and exec(cmd[]) methods, but there were different errors as a result :(((
    How can I execute the command "javac.exe -classpath C:\Alex; Test.java" ? Is it possible?
    Please help me by a good idea.
    Thank you.

    right you are! That's why we use "\\" instead "\" :)
    If i try to execute this command -
    cmd=WIN_PATH + " " + WIN_FLAG + " " + "c:/j2sdk1.4.0/deleteMe/javac.exe -classpath C:/WORK/jboss-3.0.3/client/jboss-j2ee.jar;S:/Alexander/jars/sys.jar;S:/Alexander/jars/ejb_conf_dev.jar;S:/Alexander/jars/; C:/j2sdk1.4.0/deleteMe/aaBean.java";
    my OS Windows 2000 returns na error - "Error opening icon..."
    What's wrong?
    Thank you...

  • List view - filter with parameters

    Hi,
    I need to define a list view to filter data with parameters.
    I saw how to do it with the SPD in another post
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/92271aa4-6582-4ea5-a10f-deaf02d2b62c/filtering-the-list-view-by-passing-date-parameters-using-sharepoint-desginer-2010?forum=sharepointcustomizationprevious
    But  need to do it in visual Studio (via definitins or Object Model).
    How can I do that in Visual Studio?
    Help is really appreciated.
    Many thanks,
    DD

    Hi,
    According to your description, you might want to create a list definition with the filter value from query string from URL. Then when you create a list instance with this list
    definition, you will be able to filter the list view page by appending parameters to the URL in the address bar.
    You can achieve this through modifying the Schema.xml file in the list definition project in Visual Studio like this:
    How to create custom list definition
    http://msdn.microsoft.com/en-us/library/office/gg276355(v=office.14).aspx
    http://www.codeproject.com/Articles/412429/SharePoint-Create-List-Definition-and-Instanc
    CAML Query Schema
    http://msdn.microsoft.com/en-us/library/office/ms467521(v=office.15).aspx
    Then we can filter the list with such an URL:
    http://sp/Lists/List1/AllItems.aspx?Param1=2014-08-24&Param2=2014-08-28
    Best regards,
    Patrick
    Patrick Liang
    TechNet Community Support

  • SSRS cube report with parameters...and more

    Hi,
    I have created some basic SSRS reports in the past with parameters, but I was just given the following project by my manager and I would like to find out 2 things:
    1.  Can this be accomplished using SSRS
    2.  If yes, what are the High-Level steps needed to get this accomplished
    First off, the SSRS report(s) will be connecting to an SSAS cube, so there will be some MDX involved.  The cube is fairly simple, 1 measure group and 3 dimensions.
    The main piece of this project will be 4 parameters that will be displayed to the user; Quarter, Division, Operations, and ReportList.
    The Quarter is just the Quarter that the user wants to run the report for (Q1-2012, Q1-2013, etc..).  This will come from the Date Dimension  The Division will be a list of all of our internal divisions that we have setup in our Client Dimension
    table (Eastern Division, Western Division, etc...).  The Operations will be list of operations for each division selected in the Division parameter (Boston Ops, NY Ops, etc...).  This list will also come from the Client Dimension.  The ReportList
    will be a list of all reports that are related to the Division and Operations Selected.  For example, Eastern Division and Boston Ops could have 3 reports, Western Division and San Francisco Ops has 5 reports, etc...
    The final piece to this is that when the user selects the reports to be generated, they will have to be created into 1 report.  This way the user can convert the report to 1 single PDF file or print the report.  So if 3 reports were selected, each
    report would be a separate page and could then be converted to a single PDF file or printed.
    I know that SSRS has the ability to create cascading parameters, so that should take care of dynamically generating the Operations parameter drop down as well as the REportList drop down.  Of course, using MDX to accomplish this will tricky since I
    haven't done much with MDX.
    I guess my last concern is how to generated multiple reports given the parameters selected and have them be combined into 1 report?  I was thinking subreports, but not sure if that would work.
    Any feedback or concerns/ideas on how this can be accomplished using SSRS?
    **Using SSRS 2012
    thanks
    Scott

    Do you have a question? The title doesn't provide sufficient information what you are after.

  • How to call a AM method with parameters from Managed Bean?

    Hi Everyone,
    I have a situation where I need to call AM method (setDefaultSubInv) from Managed bean, under Value change Listner method. Here is what I am doing, I have added AM method on to the page bindings, then in bean calling this
    Class[] paramTypes = { };
    Object[] params = { } ;
    invokeEL("#{bindings.setDefaultSubInv.execute}", paramTypes, params);
    This works and able to call this method if there are no parameters. Say I have to pass a parameter to AM method setDefaultSubInv(String a), i tried calling this from the bean but throws an error
    String aVal = "test";
    Class[] paramTypes = {String.class };
    Object[] params = {aVal } ;
    invokeEL("#{bindings.setDefaultSubInv.execute}", paramTypes, params);
    I am not sure this is the right way to call the method with parameters. Can anyone tell how to call a AM method with parameters from Manage bean
    Thanks,
    San.

    Simply do the following
    1- Make your Method in Client Interface.
    2- Add it to Page Def.
    3- Customize your Script Like the below one to Achieve your goal.
    BindingContainer bindings = getBindings();
    OperationBinding operationBinding = bindings.getOperationBinding("GetUserRoles");
    operationBinding.getParamsMap().put("username", "oracle");
    operationBinding.getParamsMap().put("role", "F1211");
    operationBinding.getParamsMap().put("Connection", "JDBC");
    Object result = operationBinding.execute();
    if (!operationBinding.getErrors().isEmpty()) {
    return null;
    return null;
    i hope it help you
    thanks

Maybe you are looking for