Calling and scheduling existing publication by SDK with promt value

Calling and scheduling existing publication by SDK with different promt values, included document in publication are Webi.
I can call and shedule publication with different promp values, however some promts are multivalue with various value count. (For example there is value 111 in first case and values 222 and 333 in second case).  Problem is i can fill such a many values how i set in publication by GUI (to understant i can change value but i can;t add/delete another value in one promt).
Here is some example of my code:
IProperties oInfoDocumentsProp = publication.getProcessingInfo().properties().getProperties("SIPROCESSINFO_PER_DOC");
IProperties     oInfoDocumentProp = oInfoDocumentsProp.getProperties("1"..."N");
IProperties     oWebiPrompts     = oInfoDocumentProp.getProperties("SI_WEBI_PROMPTS");
IProperties     oWebiPrompt     = oWebiPrompts.getProperties("1"... "N");
//to get Values collection
IProperties      oWebiPromptValues     = oWebiPrompt.getProperties("SI_VALUES");
//to get N value
IProperty      oWebiPromptValue     = oWebiPromptValues.getProperty(1...N);
//to set prompt value
_publication.schedule/save.... .
for now it is good, however when i do this
oWebiPromptValues. add(x,x,x) or oWebiPromptValues.removeLocal(n) it do almost nothing when i look into publicaiton by GUI.
Any idea how to change promt values count ?
Thanks in advance.

You can use the following code to add prompt values to a webi report :
<%@ page import="com.crystaldecisions.sdk.framework.*" %>
<%@ page import="com.crystaldecisions.sdk.exception.SDKException" %>
<%@ page import="com.crystaldecisions.sdk.occa.infostore.*" %>
<%@ page import="com.crystaldecisions.sdk.plugin.CeKind" %>
<%@ page import="com.businessobjects.sdk.plugin.desktop.webi.*" %>
<%@ page import="*" %>
<%@ page import="java.util.*" %>
<%@ page import ="com.businessobjects.rebean.wi.* "%>
<%@ page import ="com.businessobjects.sdk.ceutils.prompts.* "%>
boolean loginSuccessful = false;
IEnterpriseSession boEnterpriseSession = null;
String username = "Administrator";
String password = "";
String cmsname  = "localhost:6400";
String authenticationType = "secEnterprise";
try {
//Log in.
boEnterpriseSession = CrystalEnterprise.getSessionMgr().logon( username, password, cmsname, authenticationType);
if (boEnterpriseSession == null) {
  out.print("<FONT COLOR=RED><B>Unable to login.</B></FONT>");
} else {
  loginSuccessful = true;
} catch (SDKException sdkEx) {
out.print("<FONT COLOR=RED><B>ERROR ENCOUNTERED</B><BR>" + sdkEx + "</FONT>");
if (loginSuccessful) {
IInfoObject boInfoObject = null;
String docname = "New Web Intelligence Document5";
//Grab the InfoStore from the httpsession
IInfoStore boInfoStore = (IInfoStore) boEnterpriseSession.getService("", "InfoStore");
ReportEngines repEngines = (ReportEngines)boEnterpriseSession.getService("ReportEngines");
ReportEngine widocRepEngine = (ReportEngine)repEngines.getService(ReportEngines.ReportEngineType.WI_REPORT_ENGINE);
//Query for the report object in the CMS.  See the Developer Reference guide for more information the query language. 
String query = "SELECT TOP 1 * " +
       "WHERE SI_INSTANCE = 0 And SI_Kind = '" + CeKind.WEBI + "' " +
       "AND SI_NAME='" + docname + "'";
IInfoObjects boInfoObjects = (IInfoObjects) boInfoStore.query(query);
if (boInfoObjects.size() > 0) {
  // This will schedule the first WebI document in the collection
  IWebi boWebi = (IWebi) boInfoObjects.get(0);
  int ID = boWebi.getID();
  boWebi.setTitle(boWebi.getTitle() + " - Set Prompt Test");
  DocumentInstance wiDoc = widocRepEngine.openDocument(ID);
  Prompts prompts = wiDoc.getPrompts();
            for(int j =0, m = prompts.getCount();j<m; j++)
               Prompt prompt = prompts.getItem(j);
               String name = prompt.getName();
               String str[] = prompt.getPreviousValues();
               String [] values = {"US","Holland"};
               String s[] = prompt.getCurrentValues();
               out.println("success prompts");
  //Retrieve the ISchedulingInfo Interface for the Report object and set the schedule
  //time (right now) and type (run once)
  ISchedulingInfo boSchedulingInfo = boWebi.getSchedulingInfo();
  out.println("WebI document scheduled.");
} else {
  out.println("WebI document not found!");
Please let me know if you need any more details.
Shreyans Surana
Edited by: shreyans_7 on Dec 9, 2011 3:39 PM

Similar Messages

  • I have € 0.09 in my account and I can not buy anything with this value. I want to undo (give up) this value. What do I do?

    I have € 0.09 in my account and I can not buy anything with this value. I want to undo (give up) this value. What do I do?

    Click here and request assistance.

  • How can i do with labview program,when i have 20 different values,and 1 want to add it with constant value.and how to get the results?

    how can i do with labview program,when i have   20 different values,and 1 want to add it with constant value.and how to get the results?

    Why do the 20 values have to be different? The same code should work even if some are equal.
    What do you mean by "get the result"? The result is available at the output terminal and all you need is a wire to get it where you need it. That could be an indicator, another operation, or even a hardware device.
    What is the data type of the 20 values? An array? A cluster? A bunch of scalars? A waveform? Dynamic data?
    LabVIEW Champion . Do more with less code and in less time .

  • Create and schedule iBot to seed cache with  the saved query

    Hi all,
    May I know how to Create and schedule i Bot to seed cache with the saved query((iBot to run right a daily load to reseed the cache)

    Here is the documentation:

  • Calling a sequence in a new thread with different values

    I have a sequence that I want to call that runs in parallel (seperate thread). The question I have is that I want to run this sequence from a lot of different places, but with different values of the variables going into the steps inside the sequence.
    If I change the values inside the sequence (running on seperate thread), then I will have to duplicate this sequence over and over. What I really want to be able to do is run a step in a seperate thread, and not wait for it to complete. Is this possible? Or a method of passing step values into a seperate thread. I don't want to use globals unless I really have to.

    Hi ADL,
    I have attached an example which I hope will illustrate an answer to your question.
    Ray Farmer
    Ray Farmer
    Sequence_File.seq ‏34 KB

  • ABT1N and parallel depreciation area, receiving Asset with zero value

    This is the case, ABT1N, same Chart of Depreciation. Transfer from Company A to B.
    Values are copied for Depreciation Area 01 in Company B but not for Area 90 (Parallel Depreciation Area).  Zero Amounts in Area 90.
    Dep Area
    01     =>  Main Ledger 0L
    90     =>  Parallel Ledger L1
    91     =>  Delta 01-90
    I will appreciate any idea/clue.
    Thanks in advance for your help.

    Found it, Transfer Method in Transfer Variant should be '4' (Gross method with transfer of values to dependent areas).

  • Scheduling a web intelligence report with year and month in report name

    How to schedule a webi report so that it's name contains the schedule date in format "Reportname_YYYY_MM".I selected the option Date And Time in Formats and destinations tab under scheduling options but it displays system time as well.I need only in the above mentioned format.Can anybody let me know if thisis possible at all?

    YOu may want to try to create a publication with dynamic recipients and "abuse" the email or user name of your recipient to pass add the date in the desired format in the name of the instance.
    Just use aWebI report as source for the dynamic recipient that displays the current date in the format you want and use this column as the ID of the dynamic recipient.
    Check the publication guide for more information on how to create and schedule a publication (I assume oyu are using BO XI 3.1 SP3)

  • Asset Acquisition with Asset Value Date earlier than GI

    Dear all,
    I am curently using SAP ECC 6.0. We are not creating AuC assets but directly capitalizing assets from investment accounts.
    If a material is issued with a date in March and i try to acquire it with asset value date from a previous period, for example in February, the system doesnt issue any message and lets me post the transaction. The accountants claim that this hadnt been possible in the earlier version of SAP 4.6 that we had been using and that the system had issued an error message - "Posting not possible (Value date earlier than capitalization date)"
    The accounting logic is that you cant capitalize an asset with a date earlier than the date when it has been in use, i.e. in our case it`s the date the material has been issued from the warehouse.
    Does someone know what logic does SAP follow in this case - and if i can set a validation control that will check and compare the two dates?
    Any opinion would be appreciated
    Severina Koleva

    We are on ECC 5.0 and we do get that message, but it is a warning.
    that said, you can setup a validation using GGB0 and asset accounting

  • How Can I Modify an Existing Schedule using the WS-SDK?

    I'm trying to modify the scheduling info of a pre-existing schedule. I've got the schedule details from the database and modifying them, and then called BIPlatform.Schedule with the modified infoObject. However what it does is create a new schedule with the new schedule details, leaving the old one unchanged. Is it possible to modify the old instance, or do I need to delete the old instance andjust create a new one?

    Hiya Adam,
    Thanks for the clarification.

  • Photoshop Elements 11 installed on Mac Mini OS X 10.9.5. Application running successfully on bot main user and administrative accounts for considerable time with no warning messages. When established a new user account on same computer and try to call up

    Photoshop Elements 11 installed on Mac Mini OS X 10.9.5. Application running successfully on bot main user and administrative accounts for considerable time with no warning messages. When established a new user account on same computer and try to call up elements receive message “Some ot the application components are missing from the Application directory. Please reinstall the application.” How do I correct this problem without disturbing application in main user account?

    Brooks lansing if you create a new Administrator account does the same issue occur?  If so then it is likely that there is a file permission failure and file permissions have been set for the existing Users instead of the groups they belong to.
    Have you removed and reinstalled Photoshop Elements 11?  This may reset the file permissions to the correct state to allow it to work under new accounts.

  • Apps and app updates submitted to the App Store must be built with Xcode 5.1.1 or later, and iOS 7 or later SDK.

    Hi Guys,
    i am receiving this error since last 3 days please help me resolve this.
    i am already using XCode 5.1.1 and iOS 7 SDK i have regenerated my app store provisioning profile twice after this issue.
    my app gets validated by Xcode and also gets uploaded successfully through Application Loader (i.e. latest one 2.9.1 i believe)
    but in itunes connect when i try to submit my app for review i receive this error.
    "Apps and app updates submitted to the App Store must be built with Xcode 5.1.1 or later, and iOS 7 or later SDK."

    I'm getting the same error as well, using Xcode 6.1 (6A1042b) on OSX 10.9.5.  My project settings in Xcode have “Deployment Target” as “7.0” and “Base SDK” as “Latest iOS (iOS 8.1)”.  I uploaded the app via Xcode, not with the application loader and I've tried re-generating my distribution provisioning profile.
    This is an update to an existing app which was previously built against iOS 6.0 sdk but all attempts to submit the update now produce the error message "Apps and app updates submitted to the App Store must be built with Xcode 5.1.1 or later, and iOS 7 or later SDK."

  • JIT calls and JIT Schedule release

    Dear All,
    How to create JIT calls and also let me know how to release JIT schedules for delivery.

    Check this
    [Scheduling Agreement with Summarized JIT Calls |]
    G. Lakshmipathi

  • I have a mobleme account and an existing iweb website. I would like to create a second website with a registered domain name. How do I do this?

    I have a mobleme account and an existing iweb website. I would like to create a second website with a registered domain name. How do I do this?

    All you need to do is create your second site in iWeb, move it to the top of lhe list of sites in the left hand pane and publish to your MobileMe account. You must make sure the second site has a different name from the first.
    Then setup domain name forwarding to the second site following Apple's instructions here: iWeb: Using your own domain name. You will need to setup forwarding at your domain name provider also. 
    The key is that the second site (with the domain name) must the top top size in iWeb.
    Note:  with MobileMe scheduled to be discontinued on June 30, 2012, you might begin looking into obtaining another host.  When you do you'll find that both sites will need to have a domain name. 
    When the time comes take a look at  I've had excellent results with it. They have a couple of packages that offer free domain names.  And most important they have outstanding 24/7, ear-to-ear customer support.

  • Click to Call and Presence Options with Sharepoint

    Hi everyone,
    What options are there for providing click to call (CTC) and presence with Sharepoint? I have the following options (and thoughts) so far.
    Deploy CUPC (Not going to happen, we're happily a Lync 2010 house but would provide CTC and unsure about presence for sharepoint)
    Deploy CUCILync (Seems overkill, but would provide CTC and presence)
    Deploy CUPS and use RCC via Lync (I keep on hearing that RCC was meant to be killed off in Lync 2010 and probably won't exist in future. Would provide CTC, unsure about presence)
    Deploy click to call widget (Would be great to avoid another desktop application. Would only provide CTC)
    Deploy Quad (Don't expect the Sharepoint guys buying in to that one...)
    Use WebDialer API (Sounds like it would provide CTC)
    Use existing JTAPI integration (This should be a given... Provides CTC and presence).
    We currently have an existing Intranet, which provides click to call abilities/phone presence information using JTAPI. A team is completing a Sharepoint proof of concept and the question has come up how they can complete click-to-call and phone presence.

    The first suggest to fix this error is to make sure that CIPC is running properly and that
    a phone is selected to use with the Click to Call application.
    This message is often presented unnecessarily when the ser invokes Click to Call but has not
    entered their username and password into Click to Call Preferences then the user is
    presented with the error "Click to Call cannot find Cisco IP Communicator.  Please ensure
    it is running or select another phone."  rather than "Click to Call is not fully
    If you have configured the user options correctly then you need to check the Click to Call log
    files to try and diagnose the problem you're having. They are located at:
    * Windows XP - C:\Documents and Settings\[Windows User Account Name]\Application
    Data\Cisco\Click to Call\Log
    * Windows Vista - C:\Users\[Windows User Account Name]\AppData\Roaming\Cisco\Click
    to Call\Log
    Please rate all useful posts

  • New FIOS customer with dropped VOIP calls and Internet connection

    I am a new FIOS customer. Got my 50/25 connection a week ago, switching from a TWC 6/1 connection. Ever since the new connection, I've had numerous issues.
    My VOIP (Ooma) connection constantly drops and re-connects during conversations
    I've had random Internet connection losses, which picks up again after a few minutes
    My home alarm starts chirping every once in a while
    I've contacted Verizon several times due to these problems and have received varying answers with no resolution of the problem.
    The first time I spoke with support, the tech logged into my router and changed the WiFi channel saying that would fix the problem. It didn’t.
    The second time I contacted them, the tech ran a bunch of diagnostics and said everything looked fine so it must be an IP address conflict with my devices, because I had a couple devices using static IP addresses. He said everythinf should be DHCP and the last two digits could not be higher than 99 ( He said FIOS does not support 3-digit numbers at the end.
    So I changed all my devices to DHCP and ran some online VOIP tests. It showed a packet loss of 2-5% and MOS score of 1 (which is bad). I was still getting dropped connections, so I disconnected all devices and connected just one computer to the router and tested again. I was still getting packet loss.
    Then I called support a third time, this time the tech said there were no 2-digit IP restrictions and that he was detecting there was no UPS baterry backup for the ONT which was probably causing the problem, so he dispatched a field tech to my house.
    Today the field tech came (same guy as before), he took one look at the box and said it was too close to my Electric meter and the RF from the meter was causing interference to the FIOS connection and resulting in dropped connection.
    He moved the ONT to another location and said that should fix it.
    Well, I'm still seeing packet loss and low MOS score when I run the VOIP test.
    I don't know how much of what the techs are saying is true and how much is made up stuff.
    Has anyone had similar issues and have thoughts on solutions or likely causes for dropped VOIP calls and connections? Could RF be causing this?
    I thought going from a 6/1 Cable connection to a 50/25 FIOS connection would be awesome, but this has turned out to be a nightmare, and I may have to switch back to cable if the problem is not resolved.
    I would appreciate any help.

    Don't know where the packet loss is happening. I ran the VOIP test on and it shows a packet loss of 2-5% at different times and a MOS score of 1.
    The report says MOS should be around 4 for good VOIP calls.
    The Verizon tech who came to the house just blamed the electric meter box for RF interference and move the ONT farther away.
    My concern is that I'm getting different answers from different techs at Verizon.
    Regarding IP addresses. The Router shows a DHCP range from to as available for devices on the network. So, if I need to assign a static IP to a device should I use a number below 99 or above 151?

Maybe you are looking for

  • How do i change icloud accounts on my phone

    My phone is synced to my computer at work and I have my own icloud with my email and my husbands phone is synced to the computer at home and he has his own icloud with his email...  My husband did the new update for his phone last night and once he l

  • What is the reason for query take more time to execute

    Hi, What is the reason for the query take more time inside procedure. but if i execute that query alone then it excute within a minutes. query includes update and insert.

  • Activating photoshop cs5.1

    im trying to activate  my photoshop cs5 after inserting the serial num. but it keeps saying that my conection to adobe has failed ... what do i need to do?? thanks a lot

  • Some webpage's fonts are bold now?

    Hi, yesterday around 3-4 in the afternoon I got on my pc, went to Facebook and the font was extremely bold! So I went to google, and it's font was fine, my on personal website was fine, but my email client for my personal website had the same huge fo

  • Panic kernal trap

    Hi my macbook came up with this, please help! Anonymous UUID:   F870381A-1949-A1A5-FD11-2785C6DDCF97 Sat Jul 12 21:30:47 2014 panic(cpu 0 caller 0xffffff800f2dbf5e): Kernel trap at 0xffffff800f2c68c0, type 14=page fault, registers: CR0: 0x00000000800