XI R2 Webi Ranking with the SDK

Hi all,
Using the default universe eFashion I get an java.lang.UnsupportedOperationException.
The code is very simple (attached to the message).
private static void addRankCondition(DocumentInstance iDocInstance, Podium iPodium, int iSize,
          String iFilteredDimension, String iBasedOnMeasure) {
     DataProviders lDataProviders = iDocInstance.getDataProviders();
     DataProvider lDataProvider = lDataProviders.getItem(0);
     DataSource lDataSource = lDataProvider.getDataSource();
     if (!lDataSource.isRankConditionSupported()) {
          throw new AuiException("Data source does not support ranking.");
     DataSourceObject lFilteredDimension = lDataSource.getClasses().getChildByName(iFilteredDimension);
     DataSourceObject lBasedOnMeasure = lDataSource.getClasses().getChildByName (iBasedOnMeasure);
     Query q = lDataProvider.getQuery();
     ConditionContainer lConditionCont = q.createCondition(LogicalOperator.AND);
     lConditionCont.createRankCondition(iPodium, iSize, lBasedOnMeasure, lFilteredDimension);
     lDataProvider.runQuery();
- Is there any example on the Ranking feature?
- Is there any documentation on the possible restrictions?
Please keep in mind that I am using XI R2 and not 3.0. The code doesn't work with document using eFashion eventough it works on Infoview.
Thanks a lot for any input.
David

package com.sap.analytics.aui.bi.webi;
import com.businessobjects.rebean.wi.BlockAxis;
import com.businessobjects.rebean.wi.ConditionContainer;
import com.businessobjects.rebean.wi.DataProvider;
import com.businessobjects.rebean.wi.DataProviders;
import com.businessobjects.rebean.wi.DataSource;
import com.businessobjects.rebean.wi.DataSourceObject;
import com.businessobjects.rebean.wi.Decoration;
import com.businessobjects.rebean.wi.DocumentInstance;
import com.businessobjects.rebean.wi.LogicalOperator;
import com.businessobjects.rebean.wi.OutputFormatType;
import com.businessobjects.rebean.wi.PaginationMode;
import com.businessobjects.rebean.wi.Podium;
import com.businessobjects.rebean.wi.Query;
import com.businessobjects.rebean.wi.Report;
import com.businessobjects.rebean.wi.ReportBlock;
import com.businessobjects.rebean.wi.ReportBody;
import com.businessobjects.rebean.wi.ReportContainer;
import com.businessobjects.rebean.wi.ReportDictionary;
import com.businessobjects.rebean.wi.ReportEngine;
import com.businessobjects.rebean.wi.ReportEngines;
import com.businessobjects.rebean.wi.ReportExpression;
import com.businessobjects.rebean.wi.StyleType;
import com.businessobjects.rebean.wi.Table;
import com.businessobjects.rebean.wi.TableAxis;
import com.businessobjects.rebean.wi.XMLView;
import com.crystaldecisions.sdk.exception.SDKException;
import com.crystaldecisions.sdk.framework.CrystalEnterprise;
import com.crystaldecisions.sdk.framework.IEnterpriseSession;
import com.sap.analytics.aui.core.AuiException;
public class TestBOBJDirect {
      * @param args
     public static void main(String[] args) {
          IEnterpriseSession lEnterpriseSession = null;
          try {
               System.out.println("Beginning");
               lEnterpriseSession = CrystalEnterprise.getSessionMgr().logon( "user", "password", "CMS_Name", "secEnterprise");
               ReportEngines lRepEngines
                    = (ReportEngines) lEnterpriseSession.getService("ReportEngines");
               ReportEngine lWebiReportEngine
                    = lRepEngines.getService(ReportEngines.ReportEngineType.WI_REPORT_ENGINE);
               String lUniverseID = "AX3cE9nWhMBLtXyWJ56OoDQ";
               //Create new Web Intelligence document from universe.     
               DocumentInstance lDocumentInstance = lWebiReportEngine.newDocument("UnivCUID=" + lUniverseID );
               //Get the name of the default data provider created when the Web Intelligence document was created.
               DataProviders lDataProviders = lDocumentInstance.getDataProviders();
               DataProvider lDataProvider = lDataProviders.getItem(0);
               String lDataProviderName = lDataProvider.getName();
               System.out.println("Adding fields");
               //Week = DS0.DO104 - Year = DS0.DObc - Revenue = DS0.DO93
               addDataSourceObjectWithID(lDocumentInstance, lDataProviderName, "DS0.DO104");     
               addDataSourceObjectWithID(lDocumentInstance, lDataProviderName, "DS0.DObc");     
               addDataSourceObjectWithID(lDocumentInstance, lDataProviderName, "DS0.DO93");     
               System.out.println("Run query");
               lDataProvider.runQuery();
               addRankCondition(lDocumentInstance, Podium.TOP, 4, "DS0.DO104", "DS0.DO93");
               //Now create a new report and define the report's formatting.
               buildReportWithAllFields(lDocumentInstance, "My Report");
               Report lReport = lDocumentInstance.getReports().getItem(0);
               lReport.setPaginationMode(PaginationMode.Listing);
               XMLView lXmlView = (XMLView)lReport.getView(OutputFormatType.XML);
//               BinaryView lXlsView = (BinaryView)lReport.getView(OutputFormatType.XLS);
               System.out.println(lXmlView.getContent());
//               System.out.println(lXlsView.getContent());
          } catch (SDKException e) {
               // TODO Auto-generated catch block
               e.printStackTrace();
     private static void addRankCondition(DocumentInstance iDocInstance, Podium iPodium, int iSize,
               String iFilteredDimension, String iBasedOnMeasure) {
          DataProviders lDataProviders = iDocInstance.getDataProviders();
          DataProvider lDataProvider = lDataProviders.getItem(0);
          DataSource lDataSource = lDataProvider.getDataSource();
          if (!lDataSource.isRankConditionSupported()) {
               throw new AuiException("Data source does not support ranking.");
          DataSourceObject lFilteredDimension = lDataSource.getClasses().getChildByName(iFilteredDimension);
          DataSourceObject lBasedOnMeasure = lDataSource.getClasses().getChildByName (iBasedOnMeasure);
          Query q = lDataProvider.getQuery();
          ConditionContainer lConditionCont = q.createCondition(LogicalOperator.AND);
          lConditionCont.createRankCondition(iPodium, iSize, lBasedOnMeasure, lFilteredDimension);
          lDataProvider.runQuery();
     private static void buildReportWithAllFields(DocumentInstance iDocumentInstance,
               String iReportName) {
          ReportContainer lReport = iDocumentInstance.createReport(iReportName);
          ReportBody lReportBody = lReport.getReportBody();
          ReportDictionary lDictionary = iDocumentInstance.getDictionary();
          ReportBlock lTableBlock = lReportBody.createBlock();
          BlockAxis lHAxis = lTableBlock.getAxis(TableAxis.HORIZONTAL);
          //Add each object in the query to the table.
          for (int lIdx=0; lIdx < lDictionary.getChildCount(); lIdx++) {
               ReportExpression lExpression = lDictionary.getChildAt(lIdx);
               lHAxis.addExpr(lExpression);
          //Modify the table decoration.
          Table lTableRepresentation = (Table)lTableBlock.getRepresentation();
          //Set the table's header and body decoration.
          modifyDecoration(lTableRepresentation.getHeaderDecoration(), "Arial", 8,
                    StyleType.BOLD, java.awt.Color.RED);
          modifyDecoration(lTableRepresentation.getBodyDecoration(), "Tahoma", 8,
                    StyleType.PLAIN, java.awt.Color.LIGHT_GRAY);
          iDocumentInstance.applyFormat();
     private static void modifyDecoration(Decoration iDecoration, String iFontName, int iSize, int iStyle,
               java.awt.Color iBkgColour) {
          iDecoration.getFont().setName(iFontName);
          iDecoration.getFont().setSize(iSize);
          iDecoration.getFont().setStyle(iStyle);
          iDecoration.getAttributes().setBackground(iBkgColour);
     private static void addDataSourceObjectWithID(DocumentInstance iDocumentInstance,
               String iDataProviderName, String iDataSourceObjectID) {
          DataProviders lDataProviders = iDocumentInstance.getDataProviders();
          DataProvider lDataProvider = lDataProviders.getItem(iDataProviderName);
          DataSource lDataSource = lDataProvider.getDataSource();
          Query lQuery = lDataProvider.getQuery();
          DataSourceObject lDataSourceObject = lDataSource.getClasses().getChild(iDataSourceObjectID);
          if (lDataSourceObject == null) {
               throw new AuiException("Object [" + iDataSourceObjectID
                         + "] not found in the universe.");
          } else {
               lQuery.addResultObject(lDataSourceObject);

Similar Messages

  • Have published iweb site for five years with no problems and just opened a new site and get - 404: Page not found  This error is generated when there was no web page with the name you specified at the web site.-is the problem with iweb or with hosting?  T

    I am sorry if thie is republished-My first time doing this and I am not sure what goes where and where to hear feedback.
    Have published iweb site for five years with no problems and just opened a new site and get -
    404: Page not found 
    This error is generated when there was no web page with the name you specified at the web site.-
    Troubleshooting suggestions:
    Ensure the page you are linking to exists in the correct folder.
    Check your file name for case sensitivity . Index.htm is not the same as index.htm!
    Temporarily disable any rewrite rules by renaming your .htaccess file if it exists
    is the problem with
    iweb or with hosting?
    One Apple tech started to fix Iweb and had to end session and the next said problem with hosting at Network Solutions as it published
    to local folder. NWS has checked sttting a few times-
    Any help would be extremely appreciated as trying to fix this for about five weeks
    Thanks VG
    <Email Edited by Host>

    It's a really bad idea to post your email address - it's an invitation to spam - and I've asked the Hosts to remove it. (Even though I've now noticed you mis-spelled it! - anyway, never post your address in a forum.)
    You have a site here: http://virginiagordon.com/www.virginiagordon.com/WELCOME.html
    If that's not the page you are having trouble with, what is that page's URL?

  • In Indesign CS6 I export an artboard to  TIFF with the sdk's funtion SnapshotUtilsEx- ExportImageToTIFF(iStream) and, the resulting file is one pixel too large in the X, leaving a transparent strip on one edge. Any idea if there is a bug in the sdk?

    In Indesign CS6 I export an artboard to  TIFF with the sdk's funtion SnapshotUtilsEx->ExportImageToTIFF(iStream) and, the resulting file is one pixel too large in the X, leaving a transparent strip on one edge. Any idea if there is a bug in the sdk?

    An easy example to prove this bug of Indesing CS6:  I create a psd with Photoshop CS6, with width 505 pixels, height 317 pixels and a resolution of 300 pixels per inch. This psd is placed on a page in InDesign CS6. Then I try to export it as a tiff with the functions:
    fSnapshotUtilsEx->Draw(flags,fullResolutionGraphics,greekBelowPtSize,enableAntiAliasing,tr ansparencyQuality,abortCheck,pVPAttrMap,bDrawNonPrintingObjects);
    and
    SnapshotUtilsEx-> ExportImageToTIFF (iStream)
    The resulting tiff has a width of 506 pixels (one pixel more in width). It will happen the same if we start with a width of 507 pixels, etc.
    This error does not occur with Indesign CS5, nor Indesing CC.

  • Deploy a web service with the deploy tool (J2EE)

    Hi!
    I want to deploy a web service with the Deploy Tool (J2EE 1.4).
    (For info, I'm working on Win 2000.)
    I have the following error when I'm trying to deploy:
    distribute: C:\monHello2\monApp.ear
    Deploy action running...
    Deployment failed on target localhost:4848_server : Fatal Error from EJB Compiler -- jaxrpc compilation exception
    !!! Operation Failed !!!
    Someone can help me, please? What's the problem?
    Other question: when I create the WAR file, I have to add : my interface class, my implementation class, my others java classes, my WSDL file and my mapping.xml file.
    Should I add the .jar that is used by one of my class???? I think yes, but...
    thank you and excuse me for my english... ;o)

    Only primitive types can be returned? Is thatcorrect????
    true - for more details check out section 3.4.1.3 of
    this book which is available for purchase or online
    http://java.sun.com/blueprints/guidelines/designing_w
    ebservices/I meant to say primitive type and "special POJOs" called "JAXRPC Value Types" - check out the reference I listed

  • Hi, I have a CS6 design and web premium with the product number. I need the serial number to activate my product. Where can I get it please?

    Hi, I have a CS6 design and web premium with the product number. I need the serial number to activate my product. Where can I get it please?

    Yes i did! with the prrof of the payment etc...
    Kind regards
    Meilleurs salutations
    Mit freundlichen Grüssen
    De Oliveira Claudia
    2014-11-21 16:21 GMT+01:00 Beverley Gray <[email protected]>:
        Hi, I have a CS6 design and web premium with the product number. I
    need the serial number to activate my product. Where can I get it please?
    created by Beverley Gray <https://forums.adobe.com/people/Beverley+Gray>
    in Downloading, Installing, Setting Up - View the full discussion
    <https://forums.adobe.com/message/6951051#6951051>

  • How to view Picasa web albums with the new Apple TV

    Apple TV 2010
    Is there a way to view (stream) Picasa web albums with the new Apple TV? Thanks, IM

    ljwsin wrote:
    will there be a chance that picasa web will be supported in future IOS update to apple TV?
    no-one here will know, but seeing as apple and google aren't exactly best of buds at the moment i can't see it happening.

  • Administering with the SDK

    Hi all,
    Do you know if it is possible to program with the SDK a basic webpage for administering users and folders? Any documentation?
    Regards,
    Bea

    Hi Bea,
    Yes you can do those things.
    documentation
    http://devlibrary.businessobjects.com/BusinessObjectsXIR2SP2/en/devsuite.htm
    goto
    BusinessObjects Enterprise SDK
       Java developer guide (if java)
           Tutorials    
               Client and Admin Desktop Tutorials
                   - How to manage user accounts
                   - How to manage user groups
                   - How to create a new folder in BusinessObjects Enterprise
             etc.....
    Above link is open of the best documentations.
    Thanks,
    Praveen.

  • Why will safari not load web pages with the prefix "fhp"?

    Why will safari not load web pages with the prefix "fhp"?

    Because it doesn't recognise them as valid addresses - just as the error message  says.
    Firefox is similar : Firefox doesn't know how to open this address, because the protocol (fhp) isn't associated with any program.
    Where are you seeing this problem ?.

  • To anyone with the SDK and the skills required

    Now that we have the App Store, how long until someone makes an "Adblock" for iPod Safari, or even a version of Firefox (with extension computability) for iPod Touch?

    how long until someone makes an "Adblock" for iPod Safari
    Never. Because you can't make Safari Plugins with the SDK
    or even a version of Firefox (with extension computability)
    Why? Safari is a better browser, and Firefox would become unstable, bloated and a memory-hog with extensions.

  • Is there a way to change usage right with the SDK?

    Working on a web application that populates a PDF form based on interview questions using a third party tool. Everything works correctly except when there is a signature field on the form. Looking at the document properties, the Signing right has been changed from allowed before data population to not allowed after data population. Is there a way to reset this right back to allowed using the tools in the SDK?
    Thanks,
    Chuck

    Next question, if AFORMAUTLib is used to populate the data, instead of the third party tool, and the filled out PDF is written out to a memory stream to be displayed in the browser, would this change the rights of the document?
    Thanks for your help.

  • Can you do that with the SDK?

    I have a question concerning the SDK. In a project, we want to automate some Editing-Functions and the "Premiere_SDK_Guide.pdf" leaves some questions:
    1) Is it possible to write a plugin, that read pathes from ressources (for example Images and Audio from an XML-file) and put these at specific places on the timeline?
    2) With video- and audio-transitions?
    Even if the above is not possible, than can you automatically:
    3) Set Chapter-Markers?
    4) Export to Encore or directly as a DVD?
    Thanks in advance,
    Hans

    Hi Hans,
    1) For this I would recommend you generate an FCP XML, which can be imported into Premiere Pro.  The SDK doesn't provide control over project items.
    2) You can see supported transitions and effects here: http://help.adobe.com/en_US/premierepro/cs/using/WSd9957a95a81082eb28f05af5126718c47be-800 0.html#WSd9957a95a81082eb28f05af5126718c47be-7ffd
    3) Markers in the FCP XML can't currently be imported directly as Encore Chapter markers, but once the markers are brought in, it is fairly simply to switch them from regular markers to Encore Chapter markers.  Bringing them in directly as Encore Chapter markers could be a good feature request, if you decide to use the FCP XML route - http://www.adobe.com/go/wish
    4) Triggering an Export to Encore is not something a plug-in or external application can do.  But by generating the FCP XML in advance, that should save a ton of time with the editing up front.
    Regards,
    Zac

  • How to create web applications with the LabVIEW web server

    Wonderful Forum,
    I've noticed that sometimes it can be tricky for LabVIEW users to learn how to create their own custom web clients using the LabVIEW web server. I created a LabVIEW web development community group and wrote some tutorials to teach the basics of creating web clients using HTML, Javascript, and AJAX. The idea is that LabVIEW users without any web background can quickly look at some tutorials and examples to get started on their own projects.
    https://decibel.ni.com/content/groups/web-services
    What do you think?
    Joey S.
    Software Product Manager
    National Instruments

    Hi Joey,
    A great idea! I recently presented at a local user group meeting about my WebSockets API (see the links in my signature). I've uploaded the presentation and the demo code I gave to our UG here.
    I think the barrier to entry is with needing to know the web languages (e.g. html/css/js) as well as writing your LabVIEW code. I have joined the group and look forward to seeing some interesting content on there! Certainly some demos of using AJAX to make requests to Web Services and do something with the data (e.g. display on a graph) would be a good place to start.
    Certified LabVIEW Architect, Certified TestStand Developer
    NI Days (and A&DF): 2010, 2011, 2013, 2014
    NI Week: 2012, 2014
    Knowledgeable in all things Giant Tetris and WebSockets

  • Problem deploying web service with the deploy tool (J2EE)

    Hello,
    I am trying to deploy a sample Web Service on the Sun Java System Application Server Platform Edition 8.1 2005Q1.
    I run into a deployment problem ("jaxrpc compilation exception") when I have one of the web methods declared (in the endpoint interface) to throw a service-specific exception. The problem disappears when I change the declaration to throw an Exception.
    Here is the exception class:
    public class StockNotFoundException extends Exception {
    private String message;
    public StockNotFoundException(String message) {
    super(message);
    this.message = message;
    public String getMessage() {
    return message;
    the endpoint interface:
    public interface StockServiceIF extends Remote {
    // the service methods
    public boolean sellStocks(String ticker, int quantity)
    throws RemoteException, StockNotFoundException;
    and here are the error messages I am seeing:
    in the deploy tool dialog:
    distribute: C:\Beginning J2EE 1.4\Ch13\StockServiceApp\StockServiceApp.ear
    deployment started : 0%
    Deploying application in domain failed; Fatal Error from EJB Compiler -- jaxrpc compilation exception
    ; requested operation cannot be completed
    !!! Operation Failed !!!
    !!! With The Following Failure Messages !!!
    Deploying application in domain failed; Fatal Error from EJB Compiler -- jaxrpc compilation exception
    ; requested operation cannot be completed
    Fatal Error from EJB Compiler -- jaxrpc compilation exception
    and in the server log:
    [#|2005-02-01T18:30:47.856-0600|INFO|sun-appserver-pe8.1|javax.enterprise.system.tools.deployment|_ThreadID=12;|DPL5109: EJBC - START of EJBC for [StockServiceApp]|#]
    [#|2005-02-01T18:30:47.856-0600|INFO|sun-appserver-pe8.1|javax.enterprise.system.tools.deployment|_ThreadID=12;|Processing beans ...|#]
    [#|2005-02-01T18:30:47.936-0600|INFO|sun-appserver-pe8.1|javax.enterprise.system.stream.out|_ThreadID=12;|
    error: incorrect fault part name for fault "StockNotFoundException" of operation "sellStocks": "StockNotFoundException"|#]
    [#|2005-02-01T18:30:47.966-0600|INFO|sun-appserver-pe8.1|javax.enterprise.system.tools.deployment|_ThreadID=12;|Total Deployment Time: 1001 msec, Total EJB Compiler Module Time: 0 msec, Portion spent EJB Compiling: 0%|#]
    [#|2005-02-01T18:30:47.966-0600|SEVERE|sun-appserver-pe8.1|javax.enterprise.system.tools.deployment|_ThreadID=12;|Exception occured in J2EEC Phase
    com.sun.enterprise.deployment.backend.IASDeploymentException: Fatal Error from EJB Compiler -- jaxrpc compilation exception
         at com.sun.enterprise.webservice.codegen.JaxRpcRICodegen.accept(JaxRpcRICodegen.java:206)
         at com.sun.enterprise.deployment.EjbBundleDescriptor.visit(EjbBundleDescriptor.java:584)
         at com.sun.enterprise.deployment.Application.visit(Application.java:1333)
         at com.sun.enterprise.webservice.codegen.JaxRpcRICodegen.run(JaxRpcRICodegen.java:103)
         at com.sun.ejb.codegen.IASEJBC.doCompile(IASEJBC.java:785)
         at com.sun.ejb.codegen.IASEJBC.ejbc(IASEJBC.java:563)
         at com.sun.enterprise.deployment.backend.EJBCompiler.preDeployApp(EJBCompiler.java:340)
         at com.sun.enterprise.deployment.backend.EJBCompiler.compile(EJBCompiler.java:209)
         at com.sun.enterprise.deployment.backend.AppDeployer.runEJBC(AppDeployer.java:284)
         at com.sun.enterprise.deployment.backend.AppDeployer.deploy(AppDeployer.java:176)
         at com.sun.enterprise.deployment.backend.AppDeployer.doRequestFinish(AppDeployer.java:107)
         at com.sun.enterprise.deployment.phasing.J2EECPhase.runPhase(J2EECPhase.java:146)
         at com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:71)
         at com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentService.java:633)
         at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:188)
         at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:520)
         at com.sun.enterprise.management.deploy.DeployThread.deploy(DeployThread.java:143)
         at com.sun.enterprise.management.deploy.DeployThread.run(DeployThread.java:171)
    |#]
    I would appreciate any pointers to resolving this issue.
    Thanks,
    Satyen

    Can you post the WSDL that was generated by the tool
    for this interface ?I generate the WSDL using "wscompile -define -nd . -classpath ..\build\classes -f:wsi service-config.xml", and here it is:
    <?xml version="1.0" encoding="UTF-8"?>
    <definitions name="StockService" targetNamespace="urn:stockService" xmlns:tns="urn:stockService" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/">
    <types>
    <schema targetNamespace="urn:stockService" xmlns:tns="urn:stockService" xmlns:soap11-enc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns="http://www.w3.org/2001/XMLSchema">
    <complexType name="StockNotFoundException">
    <sequence>
    <element name="message" type="string" nillable="true"/></sequence></complexType>
    <element name="StockNotFoundException" type="tns:StockNotFoundException"/></schema></types>
    <message name="StockServiceIF_sellStocks">
    <part name="String_1" type="xsd:string"/>
    <part name="int_2" type="xsd:int"/></message>
    <message name="StockServiceIF_sellStocksResponse">
    <part name="result" type="xsd:boolean"/></message>
    <message name="StockNotFoundException">
    <part name="StockNotFoundException" element="tns:StockNotFoundException"/></message>
    <portType name="StockServiceIF">
    <operation name="sellStocks" parameterOrder="String_1 int_2">
    <input message="tns:StockServiceIF_sellStocks"/>
    <output message="tns:StockServiceIF_sellStocksResponse"/>
    <fault name="StockNotFoundException" message="tns:StockNotFoundException"/></operation></portType>
    <binding name="StockServiceIFBinding" type="tns:StockServiceIF">
    <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="rpc"/>
    <operation name="sellStocks">
    <soap:operation soapAction=""/>
    <input>
    <soap:body use="literal" namespace="urn:stockService"/></input>
    <output>
    <soap:body use="literal" namespace="urn:stockService"/></output>
    <fault name="StockNotFoundException">
    <soap:fault name="StockNotFoundException" use="literal"/></fault></operation></binding>
    <service name="StockService">
    <port name="StockServiceIFPort" binding="tns:StockServiceIFBinding">
    <soap:address location="REPLACE_WITH_ACTUAL_URL"/></port></service></definitions>
    ---------------------------------------------------------------------------------------------------------

  • Is it possible with the SDK?

    Is it possible to use the Illustrator's tools while making an extension/plug-in? What I mean is: Can I "take" the Illustrator Scissors to cut a path at some point/anchor? Can I "ask" Simplify tool to simplify some path with some parameters? Can I use Pathfinder to crop some object? etc.
    I look at the SDK/Scripting manual and I see no way to use the tools. I see objects and their properties. It is possible to do only basic operations like "move, reflect, change color". How about using the tools?!
    In my imagination the scripting/plug-in development should be similar to Actions creation, but more advanced. Like:
    1. Create a rectangle.
    2. Apply "round corners" effect.
    3. Crop with another rectangle.
    4. Duplicate.
    5. Move.
    6. Unite.
    7. Apply ZigZag effect.
    8. Simplify, 80%, ...
    And I am surprised to see that SDK does not have/show the way to use the standard/built-in tools.
    Please point me in the right direction. How to use the tools? Any sample source code?

    The ActionManagerSuite contains lots of useful stuff you may be able to use. Look through the header files in Adobe Illustrator CS6 SDK / illustratorapi / illustrator / actions /
    Particularly "AIObjectAction.h"
    A properly set up AIActionParamValueRef will allow you to use a lot of Illustrator core functionality that may not be available through the other Suites. The name of the action you want can be found in the action palette by creating an action and adding the function you want to use.
    It's been a while since I used this, but I think I got the enumerated value by watching the returned integer "value" in:
    ASErr ASAPI(* AIActionManagerSuite::AIActionGetEnumerated)(AIActionParamValueRef param, ActionParamKeyID key, char *name, ai::int32 *value) while stepping through in the debugger.
    This did a merge of selected art, I think. It may help get you started.
    AIActionParamValueRef
    crop_VPB = NULL;
    char
    crop_name[] = "Crop";
    AIErr
    result = kNoErr;
    result = sAIActionManager->AINewActionParamValue(&crop_VPB);
    result = sAIActionManager->AIActionSetEnumerated (crop_VPB, 'name', crop_name, 9);
    result = sAIActionManager->AIActionSetBoolean(crop_VPB, 'objt', true);
    result = sAIActionManager->AIActionSetBoolean(crop_VPB, 'fill', true);
    result = sAIActionManager->AIActionSetBoolean(crop_VPB, 'strk', true);
    result = sAIActionManager->AIActionSetBoolean(crop_VPB, 'smth', true);
    result = sAIActionManager->AIActionSetInteger(crop_VPB, 'step', 256);
    result = sAIActionManager->AIActionSetUnitReal(crop_VPB, 'thck', unitPoints, (AIReal).0072);
    result = sAIActionManager->AIActionSetUnitReal(crop_VPB, 'prec', unitPoints, (AIReal).0072);
    result = sAIActionManager->AIActionSetBoolean(crop_VPB, 'remv', true);
    result = sAIActionManager->AIActionSetBoolean(crop_VPB, 'extr', true);
    result = sAIActionManager->PlayActionEvent( "ai_plugin_pathfinder", kDialogNone, crop_VPB);
    if(crop_VPB != NULL) result = sAIActionManager->AIDeleteActionParamValue(crop_VPB);

  • Can't print web sites with the epson printer just installed. It wants to print with the old HP printer

    I just installed a new printer, an Epson Stylus NX 420. The old printer is A HP photosmart 4580. I can not print with the new printer. If I want to print an e-mail it keep referring to the old printer.Same thing with an article of the web. I am able to print when I use the internet explorer browser.Please tell me what to do to make this work. Thanks

    Tech guy is probably correct. We don't usually see reports about trouble with Epson printers, but ID is not the best behaved application when it comes to printing. The usual workaround is to export to PDF and print that instead.

Maybe you are looking for