Setting the XDP source at runtime

Hi,
I would like to set the template source for an InteractiveForm UI element via the IWDInteractiveForm.<b>setTemplateSource</b> method in the wdDoModifyView of my view. I would like to set it to a URL or something like that.
But I always get the following exception:
com.sap.tc.webdynpro.clientserver.adobe.pdfdocument.impl.PDFDocumentRuntimeException: ResourceNotFoundException occured while creating template stream from the URL : Object could not be found in cache, key is null!
    at com.sap.tc.webdynpro.clientserver.uielib.adobe.impl.AdobeFormHelper.getTemplateStream(AdobeFormHelper.java:560)
My source is quite simple:
  public static void wdDoModifyView(...)
    //@@begin wdDoModifyView
     ((IWDInteractiveForm)view.getElement("Form01")).setTemplateSource(
      "http://localhost:53000/irj/go/km/docs/room_extensions/cm_stores/documents/workspaces/b003600e-b334-2810-4593-be953ca4873a/2005/11/22/dyn01.xdp");
    //@@end
Could anybody help me ?
Thanks in advance!
Regards,
Ferenc

Hi,
Sorry for late response. I installed BS6.5 some days ago.
Regarding localhost: The ADS is also on my local machine, so I thing that it can not be a problem.
I tried it with and without 'localhost', but it does not work. Now I use a workaround: copy first the proper template from the KM into the directory from the original template deployed with the WD can be obtained by the application. Then I set the template source using simply the name of the file.
Regards,
Ferenc

Similar Messages

  • Failed to set the EventLog source

    Hi all,
    I have encountered the following problem. During installation DS 5.2 on Windows 2000 I got message from installer: "Failed to set the EventLog source", but installaion continued. It looks that DS is installed, but I cannot start slapd and I can see the same message.
    Thanks for any help

    Thank Mayank for your reply
    I'm not clear about the concept of "directory server instance name "
    and I list the information to u:
    Server Console Login Dialog:
    User ID: cn=directory manager
    Administration URL: http://xxx.com:40001
    Information below is from Server Console:
    Directory Server(xxx) (whole computer name is xxx.com)
    Server name: Directory Server(xxx)
    product name: Directory Server
    Version: 5.2_Pathc_4
    Build number:2005.230.0301
    Security level:domestic
    Server status: Started
    Port:40000
    Administration Server
    Server name: Administration Server
    Product name:Administration Server
    Version:5.2.4
    Build number:2005.206.2139
    Security level:domestic
    Server status: Started
    Port:40001
    and it can work on my machine(windows xp with sp2), but can't on that Server(windows 2003 with sp1), and Both are using default setting when setting up the Directory.
    thanks ,
    Time here is 2007-3-1 11:05. ^_^
    Message was edited by:
    fofw2000

  • Trying to programmatically set the data-source for a Crystal reports report.

    I've got the following existing procedure that I need to add to in order to programmatically set the data-source (server, database, username, and password) for a Crystal reports report.
     I added the connectionInfo parts, but can’t figure out how to attach this to the existing
    this._report object.
    This is currently getting the connection data from the report file, but I now need to populate this connection data from a 'config.xml' text file.
    Am I trying to do this all wrong?
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using CrystalDecisions.CrystalReports.Engine;
    using WGS.Reports.Reports;
    using CrystalDecisions.Shared;
    using WGS.Reports.Forms;
    namespace WGS.Reports
    public class ReportService
    ReportClass _report;
    ParameterFields paramFields;
    ConnectionInfo connectionInfo; // <- I added this
    public ReportService()
    public void DisplayReport(string reportName, int allocationNo)
    if (reportName.ToLower() == "allocationexceptions")
    this._report = new AllocationExceptions();
    PrepareConnection(); // <- I added this
    PrepareAllocationExceptionReport(allocationNo);
    this.DisplayReport();
    private void PrepareConnection() // <- I added this
    //test - these will come from the config.xml file
    this.connectionInfo = new ConnectionInfo();
    this.connectionInfo.ServerName = "testserv\\test";
    this.connectionInfo.DatabaseName = "testdb";
    this.connectionInfo.UserID = "testuser";
    this.connectionInfo.Password = "test";
    this.connectionInfo.Type = ConnectionInfoType.SQL;
    private void PrepareAllocationExceptionReport(int allocationNo)
    this.paramFields = new ParameterFields();
    this.paramFields.Clear();
    ParameterField paramField = new ParameterField { ParameterFieldName = "@AllocationNo" };
    ParameterDiscreteValue discreteVal = new ParameterDiscreteValue { Value = allocationNo };
    paramField.CurrentValues.Add(discreteVal);
    paramFields.Add(paramField);
    private void DisplayReport()
    frmReportViewer showReport = new frmReportViewer();
    showReport.ReportViewer.ReportSource = this._report;
    showReport.ReportViewer.ParameterFieldInfo = paramFields;
    showReport.ShowDialog();
    showReport.Dispose();
    Any help would be much appreciated.

    Hi Garry,
    Please post SAP Crystal Reports questions in their own forums here:
    SAP Crystal Reports, version for Visual Studio
    We don't provide support for this control now. Thanks for your understanding.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Setting the selectOneChoice value at runtime

    Hi,
    I need to set the selectOneChoice value at runtime. On Page Load I am creating object of RichSelectOneChoice and currencyCode.setValue("USD");
    When I check on runtime it is not showing "USD" as selected item in dropdown where as in background it is sending USD to downstream application.
    How to get the show the value in SelectOneChoice which is selected at runtime in code?
    Thanks in advance.

    Hi,
    Selected value will be taken from the value property of selectOneChoice component, I guess you don't have specified value property. Create a String instance variable in bean and then set the value 'USD' to this variable and then bind it to value property of selectOneChoice component.
    Sample:
    //inside bean
    private String selectedValue;
    //Getter and Setter methods
    //Replace the currencyCode.setValue("USD"); line with the below code
    this.selectedValue = "USD"
    //Finally in jspx page bind this selectedValue to value property of bean
    <af:selectOneChoice value="#{bean.selectedValue}" ... />Sireesha

  • Unable to 'set the default source system' to Install Business Content

    Hi,
    Maars here. This is my first post hoping that in future ones I'll also be lending a helping hand.
    I am trying to 'Install Business Content' under the BUSINESS CONTENT section in txn RSA1. I am doing this after 'Transfer Data Sources' in R/3 and I can now see all the data sources (under the application component hierarchy) for the source system. But I am not able to see the Info Objects in the Business Content.
    When I try to set R/3 as the default source system (got this screen after clicking a icon in the standard tool bar), BW is not saving the settings ie., I set the R/3 as the default and then click on OK. If I go back to the same screen again, I find that my settings were NOT saved.
    Could you please help me out?
    Thank you.

    Hi,
    It seems to be a bug in version 3.5.
    Do like this:
    After you open the screen to <i>choose the dafault source system</i>
    Clcik on 3rd button(F6) available in the bottom of the scrreen.
    And then select teh tick mark for required system.
    And then click on Continue button
    You have do this step before you drop the cube to right side of the cube.
    Ok, even after all these steps , if you reopen the screen you would not see Tick mark u have done just before. DONOT WORRY ABT it.
    Drag and drop required cube with dat flow before.
    Now you can see the Transfer rules with selected Source system only in the collected Objects.
    With rgds,
    Anil Kumar Sharma .P

  • Setting the Line size at runtime

    Hi All,
        I am printing a classical report. Usually we set the
    Page width statically ie by using Line-Size.
        But I need a way to change this value at runtime.
    Is there a way out to this problem?
    Thanks & Regards,
    Abhijeet.

    Hi Abhijeet,     
    You cannot change the width of individual pages within a list level. You can only change the width of all pages of a new list level. To do so, use the NEW-PAGE statement:
    Syntax
    NEW-PAGE LINE-SIZE <width>.
    All list levels starting from the new page have a width of <width> instead of the one specified in the REPORT statement. If you set <width> to 0, the system uses the width of the standard list .
    If you set <width> to SY-SCOLS, you can adapt the width of the new list level to the window width, even if the window is smaller than the standard window. The SY-SCOLS system field contains the number of characters of a line of the current window.
    Within a list level, that is, if the next page is not the beginning of a new list level, the system ignores the LINE-SIZE option.
    Regards,
    vidya.

  • Setting the rectangle height at RUNTIME

    Hi. I am looking for a way to set a rectangle's height at runtime. Basically, I want to do a column-type chart, but by code. If have looked into the SRW package, but couldn't find any property related to that kind of item. If you know of any other way, even without using a rectangle, of doing this, please share.
    Thank you!

    Hi, thank you for taking the time to answer my question.
    not quite sure what you are trying to do .. it almost
    sounds like you wanted to draw a graph using reports
    objects. why are you not using our graphing solution
    ? The reason I want to avoid using Graphics is because:
    (1) The graph is a simple graphic and I think it would be too much waste if I use graphics.
    (2) I want to avoid the run of a second runtime (in this case, Graphics runtime).
    to answer your question .. there is no way in reports
    to programmatically change the width and/or height of
    objects. they are determined by the content of the
    object (e.g. a field).Yes, but there is no way to have a source on a rectangle, right ? Want I am thinking now is to instead of using a rectangle, use a field and make it grow vertically, so I can manage by its source. What do you think about it ?

  • Setting the defualt view at Runtime

    Hi
    I am having a scenario in which i have two views Say 'Approve' and 'Reject'.
    During execution i will send a parameter through URL.
    Based on the Parameter suppose if the parameter value is 'approve' then Approve View should be showned and if the url parameter is 'reject' then Reject view should be showned.
    so only one view should be showned at runtime
    Thanks in advance.......
    Regards
    Chandran S

    Hi ,
    you have to set one view as a default view . say 'Approve' .
    and then u have to create outbound plug in window and a inbound plug in Reject view and then create a navigation link between them  . now on the default handler of window check that paramter u r receiving , if its reject then fire the plug else do nothing , the default approve will be displayed.
    Regards
    Yash

  • Setting the data source of an External List to a WCF Web Service

    From SharePoint Online, I want to create/connect an External List to a SQL Azure data source.  This will feed a Visio diagram so I want it to be able to refresh and dynamically retrieve
    current data via Visio Services.<o:p></o:p>
    I have a published WCF Web Service in place (Azure Website) connected to this database that consolidates data from multiple tables and returns a variety of generic lists.  From
    my readings, this should bypass the need for much of the security (e.g. secure store, etc...).
    Can I do this?  I'm not seeing an option to Create an ECT as in past versions to connect to this endpoint.  Do I have to create something in Visual Studio to Import?  Any direction
    would be much appreciated.<o:p></o:p>
    Ed

    Find and increase these variables in IIS: maxRequestEntityAllowed and uploadReadAheadSize
    I had a similar issue a while back due to these settings.  They control data to and from ISAPI connections (of which CF is one) according to this article:
    http://www.iis.net/configreference/system.webserver/serverruntime
    Sorry, I cant recall off hand where exactly those settings are in IIS but a quick Google search should turn it up for you.

  • Error while changing the data source at runtime

    Hi All,
    I want to change the DB connection(from Dev to QA) in the code before viewing it to the user. I browsed through the samples and found a code. But when I', trying to use the code, I'm getting the following error.
    com.crystaldecisions.sdk.occa.report.lib.ReportSDKLogonException: Logon Error: invalid arguments in call---- Error code:-2147217393 Error code name:dbLogonFailed
    The following is the code:(Bold - problem area)
    private static void switch_tables(DatabaseController databaseController) throws ReportSDKException {
    final String DBUSERNAME = "irs_tin";
    final String DBPASSWORD = "monica30";
    final String SERVERNAME = "n3qvdb999.1dc.com";
    final String CONNECTION_STRING = "Use JDBC=b(true);Connection URL=s(oracle.jdbc.OracleDriver://n3qvdb999.1dc.com:1631);" +
                                                       "Database Class Name=s(oracle.jdbc.OracleDriver);Server=s(n3qvdb999.1dc.com);" +
                                                       "User ID=s(irs_tin);Password=;Database=s(IRSQA);Trusted_Connection=b(false);" +
                                                       "JDBC Connection String=s(!oracle.jdbc.OracleDriver!jdbc:oracle:thin://n3qvdb999.1dc.com:1631;" +
                                                       "DatabaseName={database};user=;password=!)";
    final String DATABASE_NAME = "IRSQA";
              final String URI = "!oracle.jdbc.OracleDriver!jdbc:oracle:thin://n3qvdb999.1dc.com:1631;DatabaseName=;user=;password=!";
              final String DATABASE_DLL = "crdb_jdbc.dll";
              Tables tables = databaseController.getDatabase().getTables();
    for (int i = 0; i < tables.size(); i++) {
    ITable table = tables.getTable(i);
                   //Keep existing name and alias.
                   table.setName(table.getName());
                   table.setAlias(table.getAlias());
    IConnectionInfo connectionInfo = table.getConnectionInfo();
    PropertyBag propertyBag = new PropertyBag();
    propertyBag.put("Trusted_Connection", "false");
                   propertyBag.put("Server Name", SERVERNAME); //Optional property.
                   propertyBag.put("Connection String", CONNECTION_STRING);
                   propertyBag.put("Database Name", DATABASE_NAME);
                   propertyBag.put("Server Type", "JDBC (JNDI)");
                   propertyBag.put("URI", URI);
                   propertyBag.put("Use JDBC", "true");
                   propertyBag.put("Database DLL", DATABASE_DLL);
                   connectionInfo.setUserName(DBUSERNAME);
                   connectionInfo.setPassword(DBPASSWORD);
                   connectionInfo.setKind(ConnectionInfoKind.SQL);table.setConnectionInfo(connectionInfo);
    databaseController.setTableLocation(table, tables.getTable(i));
    Thanks for your time.

    Hi Guys,
    I managed to fix my problem.
    I have used the method in the utility class at this location:
    http://code.google.com/p/struts2demos/source/browse/trunk/Struts_Demo_ThirdDemo/src/com/businessobjects/samples/JRCHelperSample.java?r=4
    -Anil

  • Setting the local/source port in SIP responses

    Oracle/Weblogic SIP server picks up 'random' local or source port when sending SIP responses. This is a problem for
    one of our load balancer. Can we make it use '5060' or some 'constant' port number instead of 'random' behavior ?
    Any help would be appreciated.
    Thanks,
    Krishna V

    Yes..
    SIP Server network channels provide a SourcePorts attribute that you can use to configure one or more static ports that a server uses for originating UDP packets.
    Snippet from config.xml
    <network-access-point>
    <name>sip</name>
    <protocol>sip</protocol>
    <listen-port>5060</listen-port>
    <public-port>5060</public-port>
    <custom-properties>SourcePorts=5060</custom-properties>
    </network-access-point>

  • Can we set the dynamic data source when using getReportParameters() ?

    Hello!
    I have a report where one of its parameters refers to a list of values (LOVs). This list of values is an SQL Query type. When the data source used in the report is defined in the BI Publisher server, I'm able to get the report parameters using the getReportParameters() function in my application. However, if the data source is not defined the function throws an exception, which is understandable.
    I decided to dynamically set the data source so that even if the data source used by the report is not defined in the BI Publisher server, it still will be able to get the LOVs for the parameter. I tried setting the JDBCDataSource of the dynamicDataSource for the ReportRequest object that I passed to the getReportParameters() function. Please see the sample code below:
    reportRequest.dynamicDataSource = new BIP10.BIPDataSource();
    reportRequest.dynamicDataSource.JDBCDataSource = new BIP10.JDBCDataSource();
    setReportDataSource(reportRequest.dynamicDataSource.JDBCDataSource, connectstr, jdbc, dc); //function to set the values for JDBCDataSource object
    reportParams = webrs.getReportParameters(reportRequest, uid, pwd); //call the getReportParameters
    I was expecting this to work as this is what I did to dynamically set the data source before calling the runReport function. So, my question is -- can we set the dynamic data source when using getReportParameters() ? I tried this both in versions 10g and 11g. It does not seem to work on both versions.
    Regards,
    Stephanie

    report_id column of apex_application_page_ir_rpt can help us uniquely identify each saved report.
    We can assign this report_id value to a page item and this page item can be put in the Report ID Item text box of the Advanced section of the Report Attributes page of the IR.
    This should load the saved report identified by report_id and you can get rid of javascript
    Regards,
    Vishal
    http://obiee-oracledb.blogspot.com
    http://www.packtpub.com/oracle-apex-4-2-reporting/book
    Kindly mark the reply as helpful/correct if it solves your problem

  • How to set the source property of image control dynamically?

    Hi,
      I have different fxg files which I want to display in a list. For each row in the List, I define which fxg file to be displayed in my database.
    I need to know how to set the image1.source = (the fxg path) as a string from database?
    Is there any conversion needed in this case? If so, can you please help me how to do this?

    Hi,
      Thank you for your response. I am new to Adobe Flash Builder, Flex and action script. I don't get your answer straight away.
    What I basically need is, I need to set image1.source = strFXG. Right now, this does not show the image. I don't understand fxgObject.pathid.source => how to give this?
    Moreover, when I did google search, there is somethink like fxg converter which converts the fxg to a component. I thought this is a very simple problem on how to convert the fxg string to an object format. But now, it looks like it might be a big problem. Can anyone help me in this?
    import spark.components.Image;
                                  protected function view1_creationCompleteHandler(event:FlexEvent):void
      // TODO Auto-generated method stub
      var strFXG:String = 'assets.DB_Actief_Graphics';
                                            var image1:Image = new Image();
                                            image1.x = 100;
                                            image1.y = 100;
                                            image1.source = strFXG;
                                            addElement(image1);
    Regards,
    Chella

  • Is there a way to set a default "Source Range" in AME when exporting from Premiere Pro CC?

    When exporting a sequence from Premiere Pro CC, you are able to toggle between 4 drop down options within Adobe Media Encoder on what Source Range you'd like to export (Work Area, Sequence In/Out, Entire Sequence, Custom) as seen here:
    Is there a way to set the default Source Range to something besides Sequence In/Out?
    My reason for asking is that sometimes I export multiple sequences at once using AME's Queue. I add my custom presets to each Sequence and hit export, but SOMETIMES I may have accidentally marked an in point on my timeline and by default it's set to export only that In-to-Out part of the sequence.
    I know what you may be thinking...well, just don't add any In/Out points to your sequence on the timeline or clear them first. The trouble is that I often don't see them or catch them when working quickly. In Premiere Pro CC, I use the "Lighter Brightness" Appearance setting because it's easier on my eyes after editing 10 hours a day, 6 days a week. Sure, darker looks cooler, but it kills my eyes for some reason. Anyway, PPro CC has a troublesome appearance issue in CC where it's not "optimized" for editing when you change it to a lighter appearance like it was in CS6. I've already contacted Adobe about this and another appearance issue (involving highlighted clips when in Lighter Appearance setting) and they are "actively working on fixing this appearance issue asap". 
    For reference, here's Premiere Pro CC in/out points in default dark appearance (notice the slightly lighter grey area):
    Now here's that same in/out in "Lighter Appearance":
    Not exactly optimized. Can hardly see it. Good luck spotting that little guy on a long timeline. Sadly, this affects in/out points in the Source Window as well. Really hard to see.
    Conversly, CS6 looked the best (the blue REALLY stands out making things easy to see):
    So my question again...is there a way to set the default "Source Range" to something else besides Sequence In/Out so that I don't end up doing what I just did and leaving for several hours while batch exporting only to come back and find that I exported only a "portion" of one of my big sequences?
    Thank you!

    shooternz wrote:
    Here is the solution:  Slow down. Give your project some love. Smell the roses.
    Agreed about the roses but alas my next project always calls. Actually, I think what happens is I give each project SO much love that when it comes to exporting, I've run out of time.
    shooternz wrote:
    Then it would not be a default...it would be an option and you already have that option.
    Semantics aside, I would love to be able to have it at least default to whatever option was last chosen. Or, perhaps I shouldn't use the word default again...I'd love it to simply remember my preferred setting. That's all.

  • Stored Procedure With Multiple Result Sets As Report Source : Crosspost

    Hello Everyone,
    I have an issue where i have created a stored procedure that returns multiple result sets
    /* Input param = @SalesOrderID */
    SELECT * FROM Orders TB1
      INNER JOIN OrderDetails TB2 ON  TB1.ID = TB2.ID
    WHERE TB1.OrderID = @SalesOrderID
    SELECT * FROM Addresses
      WHERE Addresses.OrderID = @SalesOrderID AND Addresses.AddressType = 'Shipping'
    SELECT * FROM Addresses
      WHERE Addresses.OrderID = @SalesOrderID AND Addresses.AddressType = 'Billing'
    This is just a quick sample, the actual procedure is a lot more complex but this illustrates the theory.
    When I set the report source in Crystal X to the stored procedure it is only allowing me to add rows from the first result set.
    Is there any way to get around this issue?
    The reason that I would prefer to use a stored procedure to get all the data is simply performance. Without using one big stored procedure I would have to run at least 6 sub reports which is not acceptable because the number of sub reports could grow exponentially depending on the number of items for a particular sales order.
    Any ideas or input would be greatly appreciated.
    TIA
        - Adam
    P.S
    Sorry for the cross post, I originally posted this question [here|/community [original link is broken];
    but was informed that it might be the wrong forum
    Edited by: Adam Harris on Jul 30, 2008 9:44 PM

    Adam, apologies for the redirect, but it is better to have .NET posts in one place. That way anyone can search the forum for answers. (and I do not have the rights to move posts).
    Anyhow, as long as the report is created, you should be able to pass the datasets as:
    crReportDocument.Database.Tables(0).SetDataSource(dataSet.Tables("NAME_OF_TABLE"))
    Of course alternatively, (not sure if this is possible in your environment) you could create a multi-table ADO .NET dataset and pass that to the report.
    Ludek

Maybe you are looking for