Calling and scheduling existing publication by SDK with promt value

Hi
Context
Calling and scheduling existing publication by SDK with different promt values, included document in publication are Webi.
Issue
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
oWebiPromptValue.setValue("something")
_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.

Hi,
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="com.crystaldecisions.sdk.properties.*" %>
<%@ 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 * " +
       "FROM CI_INFOOBJECTS " +
       "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();
               out.println(name);
               out.println(str[1]);
               String [] values = {"US","Holland"};
               prompt.enterValues(values);
               String s[] = prompt.getCurrentValues();
               out.println(s[0]);
               wiDoc.save();
               out.println("success prompts");
  PromptsUtil.populateWebiPrompts(prompts,boWebi);
  //Retrieve the ISchedulingInfo Interface for the Report object and set the schedule
  //time (right now) and type (run once)
  ISchedulingInfo boSchedulingInfo = boWebi.getSchedulingInfo();
  boSchedulingInfo.setRightNow(true);
  boSchedulingInfo.setType(CeScheduleType.ONCE);
  boWebi.schedule();
  out.println("WebI document scheduled.");
} else {
  out.println("WebI document not found!");
boEnterpriseSession.logoff();
%>
Please let me know if you need any more details.
Regards,
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.
    (68968)

  • 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:
    10g
    http://download.oracle.com/docs/cd/E10415_01/doc/bi.1013/b31767.pdf
    11g
    http://download.oracle.com/docs/cd/E21764_01/bi.1111/e10544/delivers.htm#i1060405

  • 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.
    Regards
    Ray Farmer
    Regards
    Ray Farmer
    Attachments:
    Sequence_File.seq ‏34 KB

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

    Hello,
    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)
    http://help.sap.com/businessobject/product_guides/boexir31SP3/en/xi31_sp3_publisher_en.pdf
    Regards,
    Stratos

  • Asset Acquisition with Asset Value Date earlier than GI post.date

    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
    KR
    Severina Koleva

    We are on ECC 5.0 and we do get that message, but it is a warning.
    AA348...
    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.
    Cheers,
    Jack

  • 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.
    Regards,
    Mullairaja

    Check this
    [Scheduling Agreement with Summarized JIT Calls |http://help.sap.com/bp_autov1600/Auto_JP/html/A67_EN_JP.htm]
    thanks
    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 HostExcellence.com.  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.
    OT

  • 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.
    Thanks,
    Mark

    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
    configured."
    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 (192.168.1.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.
    Thanks!

    Don't know where the packet loss is happening. I ran the VOIP test on myspeed.visualware.com 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 192.162.1.2 to 192.168.1.254 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?
    Thanks!

Maybe you are looking for

  • Handling unexpected errors/situations in an ABAP program

    Hi, if i come across a situation where i need to handle a runtime error unexpectedly what should be my approach. for eg. if i build a dynamic select statement and if my logic goes wrong the program flow should proceed normally as if nothing has happe

  • Need information on the API

    Hi All, We have been using "gmipapi.inventory_posting" API in one of our interfaces. Now we upgraded to R12 and I am looking for equivalent Inventory APIs which I may need to replace this one to make the interface working in R12. Does any one have an

  • Starting Xnest on Solaris 10 Sparc

    I cannot get an Xnest server to start under CDE or java/gnome on a Sun Blade running Solaris 10. I keep getting errors related like: Fatal server error: Failed to establish all listening sockets My $DISPLAY is :0.0 I have tried many commands includin

  • Is there a way to set pixels at 20ppi?

    I'm using AI to produce tactile graphics [for the blind] on a 20dpi dot-matrix embosser. With so few available dots, aligning elements with the pixels is essential for consistent lines. I know how to set up a new doc for pixels, align with pixels, pr

  • Shopping Cart with Service Items

    Hello SRM Experts, We are implementing SRM40 in Extended Classic Mode. When we create SRM PO using Service Item Category with multiple items with different Account Assignment Category, it copies the PO in R/3 grouping together all services belonging


HashFlare