【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
【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
【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