【BO BOE-SDK】临时记录
关于BOE上参数的默认值[@more@]1.同一个rpt文件,在Designer中打开,多次以不同名称.rpt重命名保存到BOE上,对同一个para(有相同的name),只能有一个可以成功(此处的成功是指只生成一个BV,即para的默认值(BOE界面上看到的)只能在第一次保存的rpt文件中存在),如果换成其他名字的para继续可以。(但后面的例子好像相冲突,待测)如:123.rpt以boerpt01.rpt保存到BOE后,mypara177默认值会出现上图的记录;重新打开123.rpt文件,mypara177修改默认值如00000000178,重新保存,此时BOE上打开boerpt01.rpt,mypara177默认值改为了 178.重新打
关于.rpt: view或schedule时的连接界面及Prompts是否显示的设置
BVM修改DC参数[@more@]通过BVM设置DC(即当前rpt所所用的DC):结果:没有设置的情况下:有一个连接参数输入界面,如上图。出现prompts,如下图:修改后:SDN论坛参考:Dynamic Parameters. You'll want to get all your report designers up on this topic.When you create a dynamic parameter in a Crystal Report, and then publish it to the Enterprise, you are creating a Business View, with all it's underlying necessary layers. Dynamic Parameters exist to be able to use the same LOV (a list of current customers) from a
【BO-SDK】-(RAS) 关于Parameters
parameters的值[@more@]1.通过托管RAS SDK操作parameters:Fields parameterFields =myClientDocument.getDataDefController().getDataDefinition().getParameterFields();ParameterField parameterField = (ParameterField)parameterFields.getField(i);System.out.println(parameterField.getDisplayName(FieldDisplayNameType.fieldName, Locale.ENGLISH));//注:System.out.println("getCurr:"+parameterField.getCurrentValues().size());System.out.println("getInitial:"+parameterField.getInitialValues().si
【BO-SDK】-(RAS) DB_Connection Changing _@Z01
DB_Connection with RAS (not customer con changing which can be done by boe sdk)[@more@]....IInfoObjects oInfoObjects=null;IInfoObject oInfoObject=null;IEnterpriseSession boEnterpriseSession;ReportClientDocument myClientDocument=null;try {boEnterpriseSession = CrystalEnterprise.getSessionMgr().logon( username, password, cmsName, authType);IInfoStore boInfoStore = (IInfoStore) boEnterpriseSession.getService("", "InfoStore");oInfoObjects = (IInfoObjects) boInfoStore.query("
【BO-SDK】-(RAS) Unmanaged RAS Session get_@old_devlib_05
for Unmanaged[@more@]//Create a new Report Application SessionReportAppSession reportAppSession = new ReportAppSession();//Create a Report Application Server ServicereportAppSession.createService("com.crystaldecisions.sdk.occa.report.application.ReportClientDocument");//Set the RAS Server to be used for the service. You can also use "localhost" if the RAS server is running on your local machine.reportAppSession.setReportAppServer("127.0.0.1");//Initialize RASreportA
【BO-SDK】-(RAS) Adding a new parameter_@old_devlib_04
Adding a new parameter[@more@]IParameterField parameterField = new ParameterField();//parameterField.copyTo(newParameterField, true);parameterField.setAllowCustomCurrentValues(false);parameterField.setAllowMultiValue(false);parameterField.setAllowNullValue(false);parameterField.setDescription("Description for a discrete string parameter");parameterField.setParameterType(ParameterFieldType.queryParameter);parameterField.setValueRangeKind(ParameterValueRangeKind.discrete);parameterField.
【BO-SDK】-(RAS) Add summary to a group_@old_devlib_03
Add new Summaries[@more@]void addSummary(ReportClientDocument reportClientDocument, IField fieldToSummarize)throws TutorialException{ try { /* * Get a DataDefController object for the given report. This controller is needed * in order to get the summary controller. It is also used to access the report's * groups, although groups can be accessed for reading without this controller. */ DataDefController dataDefController = reportClientDocume
【Java】get SystemProperties
get SystemProperties[@more@]Properties pros=System.getProperties(); Enumeration enumer=pros.propertyNames(); int i=1; while(enumer.hasMoreElements()) { String ddle=(String) enumer.nextElement(); System.out.print(i+":"+ddle+"___"); System.out.println(System.getProperty(ddle)); i++; }----------------------------------------------1:java.runtime.name___Java(TM) 2 Runtime Environment, Standard Edition2:sun.boot.library.path___C:Program F
【BO-SDK】-(RAS) Get all Available and Userd Fields_@old_devlib_02
Get all Available and Userd Fields[@more@]--------------------call side-----myClientDocument = myReportfactory.openDocument(oInfoObject, 0, Locale.ENGLISH);Fields usedF = null;usedF=getUsedDatabaseFields(myClientDocument);for(int j=0;j<usedF.size();j++){System.out.println(usedF.getField(j).getLongName(Locale.ENGLISH));}System.out.println("*************");Fields availableF = null;availableF=getAvailableDatabaseFields(myClientDocument);for(int j=0;j<availableF.size();j++){System.ou
【BO-SDK】-(RAS) Using the RAS SDK in BusinessObjects Enterprise_@old_devlib_01
managed scenarios: simple for modify[@more@]String username = "Administrator";String password = "***";String cmsName = "***:6400";String authType = "secEnterprise"; IInfoObjects oInfoObjects=null;IInfoObject oInfoObject=null;IEnterpriseSession boEnterpriseSession;Fields resultFields = null;ReportClientDocument myClientDocument=null;try {boEnterpriseSession = CrystalEnterprise.getSessionMgr().logon( username, password, cmsName, authType);IInfoStore boInfoSt
【BATCH】BOESDK-Upload Deploy Tool
SDK-Upload Deploy tool (路径均为反斜杠,|为反斜杠,使用时将|全部替换成反斜杠即可)[@more@]rem 不显示命令行@ echo.@echo off@ echo Please input the BOE HOME_Path:@ echo. @ echo Default(Y): C:|Program Files|Business Objects@ echo New (N): Input by yourself@ echo.:startset/p choosed=Choose: Y or N:if %choosed%==Y goto 11if %choosed%==N goto 22@ echo Sorry.Please input 'Y'or'N'.goto start: 11set apphome="C:|Program Files|Business Objectsset contest=|Tomcat55|webapps|InfoViewAppset apphome=%apphome
【BATCH】BATCH-Copy
Copy files and folders with batch.[@more@]rem 不显示命令行rem copy文件@echo offxcopy C:/Upload/Batch D:/delete/ /s /e(xcopy C:'反杠'Upload'反杠'Batch D:'反杠'delete'反杠' /s /e)类型:外部命令格式:Xcopy [源盘:]〈源路径名〉[目标盘符:][目标路径名][/S][/V][/E]使用说明:(1)XCOPY是COPY的扩展,可以把指定的目录连文件和目录结构一并拷贝,但不能拷贝隐藏文件和系统文件;(2)使用时源盘符、源目标路径名、源文件名至少指定一个;(3)选用/S时对源目录下及其子目录下的所有文件进行COPY。除非指定/E参数,否则/S不会
【BO-SDK】Update Database information for .rpt
import com.crystaldecisions.sdk.exception.SDKException;import com.crystaldecisions.sdk.framework.CrystalEnterprise;import com.crystaldecisions.sdk.framework.IEnterpriseSession;import com.crystaldecisi...
【红花红颜】
红花遇清风,聚散更离别.回首伤情处,正是情太切......近些天脑海突然老是出现这首歌的旋律...[@more@]红花红颜94版《书剑恩仇录》片尾曲歌手:禹胧,毛阿敏红花遇清风,聚散更离别回首伤情处,正是情太切尘缘多分扰,寸心意难决天涯归乡路,相煎对残月红颜坠迷梦,芳魂绕宫阙寂寞香冢后,谁来空悲切故国已在望,不过是错觉千年浪迹后,再和君相约一朵红花在今夜,走进一卷残破书页一抹红颜在今夜,匆匆带走残阳如血一朵红花在今夜,任凭风雨不再凋谢一曲红颜在今夜,划过青史苍穹呜咽红颜红花,生离死别情怨情仇,谁来了结红花红颜,阴晴圆缺千秋功罪,谁来
【BO-SDK】Retrieve parameter values _static prompts (BOE SDK Java Applicati
Retrieve parameter values (static)[@more@]连接参数...String reportName = "Sales Dashboard";int reportID = 0;// Logon and obtain an Enterprise SessionIEnterpriseSession boEnterpriseSession = null; IInfoObjects boInfoObjects=null;IInfoObject boInfoObject=null;IInfoStore boInfoStore=null;IReportSource boReportSource=null;IReportSourceFactory boReportSourcefactoryPageServer=null;try {boEnterpriseSession = CrystalEnterprise.getSessionMgr().logon( username, password, cmsName, authType);boInf
【BOE-SDK】Architecture Overview
Architecture Overview Pic[@more@]架构图摘取:
【BO-SDK】SSO InfoView_1 (BOE SDK Java Applications @_2)
Demonstrates how to Single Sign-On to XI 3.0 Java InfoView by logging onto BusinessObjects Enterprise and passing a serialized Enterprise Session.【for JSP】[@more@]初始界面;Demonstrates how to Single Sign-On to XI 3.0 Java InfoView by logging onto BusinessObjects Enterprise and passing a serialized Enterprise Session.Required infoCMS Name:User Name:Password:Authentication Type: Enterprise LDAP Windows ADInfoView Start Page:InfoView Start Page:http://host:port/InfoViewApp/listing/main.do主要代码
【BO-SDK】Update Database information for .rpt     (BOE SDK Java Applications @_1)
简单修改BOE上数据库连接参数,替代CMC的手动修改,此处不涉及LOV动态列表,非RAS-SDK操作。【for Java】[@more@]import com.crystaldecisions.sdk.exception.SDKException;import com.crystaldecisions.sdk.framework.CrystalEnterprise;import com.crystaldecisions.sdk.framework.IEnterpriseSession;import com.crystaldecisions.sdk.occa.infostore.IInfoObject;import com.crystaldecisions.sdk.occa.infostore.IInfoObjects;import com.crystaldecisions.sdk.occa.infostore.IInfoStore;import com.crystaldecisions.sdk.plugin.de
【BO-SDK】 BO InfoView embed apps (内嵌应用界面) 从InfoView登陆界面获取logonToken获得连接session: [EnterpriseSession][I
request ——> InfoViewConstants.INFOVIEW_SESSION——>CrystalIdentity——>LogonTokenMgr[@more@]具体代码:<%@ page import="com.crystaldecisions.sdk.occa.infostore.IInfoStore" %><%@ page import="com.crystaldecisions.sdk.occa.infostore.IInfoObject" %> <%@ page import="com.crystaldecisions.sdk.occa.infostore.IInfoObjects" %> <%@ page import="com.crystaldecisions.sdk.exception.SDKException" %> <%@ page import="com.crystal