Schedule webi with prompts problem

I want to schedule a webi document that has prompts.
If the data of the webi document is purged, I have a problem when scheduling that webi document. Before the schedule starts, the values of the webi document must be set. But if the data is purged, the list of the prompts is empty.
String query = "select * from ci_infoobjects where si_id = 3427";
IInfoObjects infoObjects = iStore.query(query);
IWebi webi = (IWebi) infoObjects.get(0);
List prompts = webi.getPrompts();
In the above example prompts is empty.
In [http://www.forumtopics.com/busobj/viewtopic.php?t=87466&sid=1e70a1f434d279a78a0f8935bd245951] I see that I can use the following:
ReportEngines reportEngines = (ReportEngines) session.getService("ReportEngines");
ReportEngine reportEngine = reportEngines.getService(ReportEngines.ReportEngineType.WI_REPORT_ENGINE);
DocumentInstance docInstance = reportEngine.openDocument(webi.getID());
PromptsUtil.populateWebiPrompts(docInstance.getPrompts(), webi);
After doing this, webi.getPrompts() isn't empty any more.
But PromptsUtil is deprecated.
So I wonder if there isn't a better way to make this possible.

PromptsUtil isn't deprecated.  The documentation should be corrected.
Sincerely,
Ted Ueda

Similar Messages

  • Scheduling Webi with Prompts

    Hello,
    I am trying to schedule a Webi report with Prompts through the .NET sdk.  I get the report, set the prompts and then schedule the report.  Unfortunately when i look at the report in InfoView it is not filtered by the parameters.  They show up as instance parameters, but don't seem to have any effect on the report.  When i run the report in InfoView and set the prompts to the same values the report comes out correctly.  I have read several places that I need to Refresh the report, but I don't see any methods that would allow me to do that.  My code is below.  Any help would greatly be appreciated.
    Thanks!
    Pat
    var query = string.Format(@"SELECT SI_ID, SI_NAME, SI_PROCESSINFO FROM CI_INFOOBJECTS WHERE SI_ID=''", reportId);
    infoObjects = _infoStore.Query(query);
    var infoObject = (Webi)infoObjects[1];
    var schedulingInfo = infoObject.SchedulingInfo;
    schedulingInfo.Type = CeScheduleType.ceScheduleTypeOnce;
    schedulingInfo.RightNow = true;
    var formatOptions = infoObject.WebiFormatOptions;
    formatOptions.Format = CeWebiFormat.ceWebiFormatPDF;
    if(infoObject.HasPrompts)
            var prompts = infoObject.Prompts
            for (var i = 0; i < prompts.Count; i++)
                 prompt<i>.Values.Clear();
                 prompt<i>.Values.Add(value);
    _infoStore.Schedule(infoObjects);

    Open WebI using ReportEngine.NET, Refresh, set the prompts, then copy the prompts over to the InfoObject using ReportParameterUtility.PopulateWebiPrompts, then schedule the InfoObject.
    [NET-CS2005_Enterprise_BE12_Schedule_Multi-Value-Parameter-Webi|http://www.sdn.sap.com/irj/scn/index;jsessionid=%28J2EE3417500%29ID1375977850DB21110242120609333586End?rid=/library/uuid/20c5615a-4353-2c10-5986-958a7e074cd3]
    Sincerely,
    Ted Ueda

  • What sql is run In Webi with prompt while refresh data

    In inforview, create a Webi Document with prompt.
    prompt's proverty is "Prompt with List of values" and "Keep last values selected"
    while click "Refresh Data",  sometimes it may take long time until prompt appear.
    Are there any SQLs  running during the process from clicking "Refresh Data" to prompt 's appear?
    whether the sqls are to get  the prompt's value list or others else?

    Junchuan,
    Yes an SQL is ran to generate the list for the prompt.  Most likely the SQL is a "select distinct" on the value.  The amount of time for this to complete depends on the number of rows that must be read before a distinct list can be obtained, the number of other users accessing the database at the same time, and the load on the application server.  There are a couple of stragegies for speeding up the "select distinct" process, to include the use of a lookup table to the column so that the "select distinct" goes against a smaller data set (the lookup table) versus the production table.
    Thanks,
    John

  • OpenDoc(hyperlink) in webi with prompt's value

    Hi
    I want to know that if a hyperlink(Open DOC) in webi in BOXIR2 works with the parameters or not.
    To be more precise, suppose I have a master report which has a prompt on the Status ('High','Low',and 'Medium') and user runs the report for one or more choices, he then need to go to detail of the report with same prompt selection values that he chose for status in the master report.
    A) The report can show the detail report in hyperlink, and that part can be done by hyperlink.
    B) Please help me out if the detail report should run for the same parameter value as of master report (the parameter value should be taken automatically from the master report),when we use hyperlink and is it mandatory to show the prompt to user in detail report cause main aim is to just run the master report with showing the parameter and allowing user to choose the value and then showing the detail report with same prompt value as of master using the hyperlink!
    Thanks & Regards
    Rahul

    Hi Rahul,
       Good Day,
    Happy Independence day,
    i came to know from your reply you solved your problem. congrats, but my problem is still not solved bro, i will explain my problem here clearly.
    i have one master document it contains the the sales values for country wise for particular period of time.so in the master document i set the one filter for period of time ie. date between <from> <to>, so in the master document while running i need to enter the values in user prompt in the place of from and to. so my master document display the country wise sales details. if customer select the particular country in the country list then control need to transfer to child document, that document contains the state wise sales details for selected country for the same period of time(the date, which i selected in the master document).I stored from and to values in two variables in master document.
    The child document contain two filters , that is one for country name and one for Date between <from><to>
    so my user response is looking like this,
    Country Name:
    From:
    To:
    for me up to open the user prompt for child document is not a pblm. bt my selected country is not passed as argument and the corresponding date as well.
    I m totally confused where is the problem, bcoz i tried with lsS and lsM as well, bt no use. i know i am making small mistake some where in the URL.
    U r rite i am using Java platform
    ="<a href=http://<webserver>:8080/businessobjects/enterprise115/desktoplaunch/opendoc/openDocument.jsp?sPath=HomeMyFoldersFavorites&sDocName=TESTSS&sDocType=wid&sRefresh=Y&lsMURLEncode(Country Name:)="URLEncode([Country])"&lsMURLEncode(From)="URLEncode([From])"&lsMURLEncode(To)="URLEncode([To])">"[Country]+"</a>"
    Thanks lot,
    Regards,
    -B-

  • How to schedule Webi Documents with Prompts with RESTful Web Services

    Hello,
    I am trying to schedule Webi Documents with Prompts using RESTful Web Services with prompts. I am using Simple Rest Client app provided by Google Chrome. We have Business Objects SP6 Patch 1.
    However the documentation for RESTful Web Services has only examples for the following
    1. Schedule Documents without any Prompts to various destinations and recurrences.
    2. Refresh Documents with Prompts.
    Is there any example for scheduling documents with prompts? Please advise
    Thanks in advance

    Hi Peter,
    With Rest Client, on BI4.0 SP6, you can schedule Webi documents with prompts using the following:
    URL: http://<servername>:6405/biprws/raylight/v1/documents/<docid>/schedules
    Method:POST
    Request Body:
    <schedule>
    <name>Enter values for City:</name>
    <format type="webi"/>
    <destination>
    <inbox/>
    </destination>
    <once retriesAllowed="2" retryIntervalInSeconds="60">
    <startdate>2013-08-26T15:58:51.000+02:00</startdate>
    <enddate>2013-08-27T15:58:51.000+02:00</enddate>
    </once>
    <parameters>
    <parameter optional="false" type="prompt" dpId="DP0">
    <id>0</id>
    <technicalName>Enter values for City:</technicalName>
    <answer constrained="false" type="Text">
    <values>
    <value>Austin</value>
    </values>
    </answer>
    </parameter>
    </parameters>
    </schedule>
    Using the above request you can schedule the Webi document with prompts to inbox destination  and set for once.
    The schedule can be sent in different formats to several destinations and set just for once, daily,
    hourly or monthly.
    You can also check the example for this on page 275 of SAP Webi RESTful SDK user guide for BI4.0 SP6 below:
    http://help.sap.com/businessobject/product_guides/boexir4/en/xi4sp6_webi_restful_ws_en.pdf
    Regards,
    Swati
    Message was edited by: Swati Ikhe

  • Docs with prompts can schedule to WebI, not Excel, pdf or CSV

    I have built Custom Access levels but am having problems with scheduling.
    I believe I have given the correct rights in the CAL, but even the standard "Schedule" access level gives this error:
    Sorry, you do not have the right to 'Add objects to the folder' (ID: 1) for 'reportname' (ID: 86429). Please contact your administrator if you require this right.
    This happens for Excel, PDF and CSV formats. WebIntelligence is fine.
    I have checked half a dozen reports in different folders a number of times and results are the same.
    - Users with Schedule rights can refresh reports to webi format
    - Users with Schedule rights can refresh reports WITHOUT prompts to excel / pdf /csv
    - Users with Schedule rights can NOT refresh reports WITH prompts to excel / pdf /csv
    To get Excel, PDF and CSV files created, I have to give "Add objects to folder" access which allows users to save documents which is not wanted for this role.
    It is also not a right granted in the standard "Schedule" role.
    Have added user group with Full Control at root level over all applications and all other folder trees including Temporary Storage, no change.
    BO XI SP 3     BuildVersion=12.3.0.601.BOE_Titan_SP_REL
    BO XI SP 3 FP1     12.3.1.684
    LCM           BuildVersion=12.3.0.601.
    LiveOffice     BuildVersion=12.3.0.601.LO_Titan_SP_REL
    Widgets          BuildVersion=12.3.0.601.

    HI Ralph,
    Were you able to solve this problem?
    Do you know if this is a known bug by SAP?
    thanks,
    Alejandro

  • Problem scheduling webi reports with XI3.1 pending forever

    Hello,
    I've got a problem scheduling webi reports with XI3.1 scheduler.
    After confiming scheduling job (loggin in with "administrator" user), status remains "pending" forever(using Infoview or CMC).
    I tried different job recurrence a modalities (attachment formats, destination user etc).
    I also try to add (-javaArgs "Xmx900m,Xincgc,server") wich is the SAP solution found on its portal but it does not work.
    I use BO XI 3.1 in Windows 2003 server, after the install I reduced the maximum memory of Java in the tomcat 5.5.2 server from 1024 to 512 because the server never started with the initial size.
    Please I need Help.
    thanks in advance,
    Samy

    Hi,
    Below SAP solution found found in BOB Forum.
    I applied this solution and now everything works fine !!
    I just add  this -javaArgs "Xmx900m,Xincgc,server"  in the command line of the server
    Hope this helps:
    Symptom
    Scheduled WebIntelligence reports remain stuck in 'pending' status after installing Microsoft windows patches of April 2009. Restarting the Adaptive Job Server, Central Management Server or Server Intelligence Agent has no effect.
    The Event Viewer logs show the following entry: Unable to start the sub-process (Job Server Child). Cause : Couldn't get IJob interface or writing IAudit: Pipe exception. Reason: jobserverchild (WebIJavaSchedulingService ReplicationSchedulingService, 0, Timeout waiting for Child [4716] to register ([120]seconds).
    Reproducing the Issue
    Install Business Objects Enterprise XI 3.x on a French Windows 2003 SP2 32bits server
    Install the following Microsoft windows update patches of April 2009:
    KB923561, KB925336, KB952004, KB956572, KB959426, KB960225, KB960803, KB961373, KB967715
    Schedule a WebIntelligence report
    The report remains in Pending status
    Business Objects Enterprise XI 3.1
    Windows 2003 SP2 32bit (French)
    Microsoft windows patches of April 2009
    Cause
    With Microsoft windows patches of April 2009, the maximum Heap Size for java processes has been reduced to under 1000MB.
    Resolution
    Apply the following steps to fix the issue:
    Launch the Central Management Console
    Select Servers
    Right click on <server_name>.Adaptive Job Server and select Properties
    Add the switch -javaArgs "Xmx900m,Xincgc,server" in the command line of the server
    Click on Save and Close
    Restart the <server_name>.Adaptive Job Server
    Regards .
    Sam.
    Edited by: samouber on Aug 21, 2009 2:54 PM

  • SAP BO 4.1 Webi report sample with prompts to try Restful api

    I was not able to find, in the report demo samples available in the SAP BO 4.1 installation, a Webi report with prompts.
    I found many Webi reports samples but all are without prompts.
    I need at least one Webi report sample with prompts to try the Restful API http://localhost:6405/biprws/raylight/v1/documents/7090/parameters and http://localhost:6405/biprws/raylight/v1/documents/7090/schedules with parameters body.
    Where can I found such webi sample?
    Thanks,
    Riccardo

    As you have BI 4.1 installed, you could design a sample webi report using Webi Rich Client tool.
    Open Webi rich client, select the sample eFashion universe drag few objects in the query and a filter. Set the filter as a prompt and save the report to Enterprise.
    Now you could now use this sample report for your handson on REST SDK.
    -Bhushan

  • A problem in WEBI with the hierachy After updated to BO 4.1 sp03

    IN the BW , I have a hierachy Char. in my Qeury. I build a OLAP connection to BO, then created a webi with BEX.
    In the old BO (version 4.0 SP 03) is OK. but when updated to new BO (version 4.1 SP 03). The hierachy in prompt can't be unfold. like this
    but if i input "*" to search . there is no different.
    in the 4.1 sp 03 if i deleted the hierachy in the prompt.when i get into the webi(with data),then, i added a filter with the hierachy. It's OK, too.
    WHY???? and how can i resolve the problem.

    Hi Arie,
    Yes I installed 4.1 on september 2nd and the installation guide was alreadly corrected.
    I ran without any errors :
    DECLARE
    ACL_PATH VARCHAR2(4000);
    ACL_ID RAW(16);
    BEGIN
    -- Look for the ACL currently assigned to '*' and give APEX_040100
    -- the "connect" privilege if APEX_040100 does not have the privilege yet.
    SELECT ACL INTO ACL_PATH FROM DBA_NETWORK_ACLS
    WHERE HOST = '*' AND LOWER_PORT IS NULL AND UPPER_PORT IS NULL;
    -- Before checking the privilege, ensure that the ACL is valid
    -- (for example, does not contain stale references to dropped users).
    -- If it does, the following exception will be raised:
    -- ORA-44416: Invalid ACL: Unresolved principal 'APEX_040100'
    -- ORA-06512: at "XDB.DBMS_XDBZ", line ...
    SELECT SYS_OP_R2O(extractValue(P.RES, '/Resource/XMLRef')) INTO ACL_ID
    FROM XDB.XDB$ACL A, PATH_VIEW P
    WHERE extractValue(P.RES, '/Resource/XMLRef') = REF(A) AND
    EQUALS_PATH(P.RES, ACL_PATH) = 1;
    DBMS_XDBZ.ValidateACL(ACL_ID);
    IF DBMS_NETWORK_ACL_ADMIN.CHECK_PRIVILEGE(ACL_PATH, 'APEX_040100',
    'connect') IS NULL THEN
    DBMS_NETWORK_ACL_ADMIN.ADD_PRIVILEGE(ACL_PATH,
    'APEX_040100', TRUE, 'connect');
    END IF;
    EXCEPTION
    -- When no ACL has been assigned to '*'.
    WHEN NO_DATA_FOUND THEN
    DBMS_NETWORK_ACL_ADMIN.CREATE_ACL('power_users.xml',
    'ACL that lets power users to connect to everywhere',
    'APEX_040100', TRUE, 'connect');
    DBMS_NETWORK_ACL_ADMIN.ASSIGN_ACL('power_users.xml','*');
    END;
    COMMIT;
    Thnks

  • Scheduling WebI reports in BusinessObjects 4.0 date prompts

    will SAp Business Objects 4.0 include some kind of feature to allow people to schedule webi reports in an easier way if the report conatins date prompts? For example if my report has 2 dates start date and end date prompts, it's logical if I want to schedule it to be refreshed every month I don't want to keep it scheduling with the same start date and end date for ever.  I want them to change depending on the month.
    I know there are some things that can be done at universe level, but what if a user doesn't have rights to modify the universe? It would be more useful to have some option in the schedule window to make the values change depending on some basic conditions.
    Or at least if profiles settings could help to do that by selecting in the list objects instead of fixed values from the list, it could help too.

    Hi,
    This looks like to be a request for future product enhancements.
    You need to log an Enhancement Request via Idea Place for the feature/functionality you would like to see in BI4.0.  Please follow steps in the attached SAP note [1515837 - How To: Enhancement Request Process - Idea Place |https://bosap-support.wdf.sap.corp/sap(bD1lbiZjPTAwMQ==)/bc/bsp/sno/ui_entry/entry.htm?param=69765F6D6F64653D3030312669765F7361706E6F7465735F6E756D6265723D3030303135313538333726]. If this idea is already submitted, you will need just to add your vote to it.
    Regards,
    Jeff

  • BICS Conection problem with prompts

    Hi, All.
    I have one problem with prompts in Webi 4.0. I build BEx query on the Infoset, create OLAP Connection in IDT. And then I try build webi reports appear one problem, I try create prompt on key field, but I cannot do this. Earlier, then I do report on universe I can do this. Can anybody give me advise by this problem?
    Regard.
    Fanil

    Hi Jothi.
    I agree with you but Bex do not allow you to have a restiction to certain values and then a variable on top of that. I have to build the filter in the Webi report and I cannot build it on the description. I have to build it on the key.
    Koos.

  • Scheduling WEBI Prompts

    Hi,
    Is it possible to schedule prompts of webi report? Please let me know if there is anyway to achieve this.
    Thanks,
    Shweta.

    In currently available products it is not possible to schedule prompt LOV's for a webi report. It is possible to schedule webi report with prompts.
    Webi LOV scheduling, similar to BV LOV scheduling might be available in the next version of the product.

  • 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?

  • When I navigate web with Firefox my Thinkpad trackpoint center button is not working. With other web browsers it works well. Where is the problem in firefox, how to enable TrackPoint center button?

    When I navigate web with Firefox my Thinkpad trackpoint center button is not working. With other web browsers it works well. Where is the problem in firefox, how to enable TrackPoint center button?

    I have exactly the same settings in Options (in both computers)
    for history, these 2 add-ons and all other stuff in Options. The only difference is that on 1 pc sessions can be saved and closed tabs can be reopened, on other main pc they stopped to work. + no any other add-on that does similar things works on this pc.
    It is also interesting that I can reopen closed visited sites from History Panel, but not by pressing the Button. For now I only manually bookmark links to a temporary folder.
    Recently (some 2 month ago) I pressed x and Firefox closed all tabs without saving them without displaying save & quit pop up.
    so I changed 4 settings in about.config
    browser.tabs.warn on close true
    browser.warn on quit true
    browser.warn on restart true
    browser.show.quit warning true
    but the problem with sessions appeared only 1 week ago.
    So I guess the problem is not with the History settings or other settings. Seems that something responsible for button or for storing info about tabs/sessions got corrupted. :(

  • Changing Webi Report Data Provider With Prompt

    Hi All,
    I am trying to change Data Source of a Webi Report using RESTful Web Services. Fo this I have referred code on Changing Dataproviders for a Webi Report using RESTful Web Services Post.
    I am able to change data source for Webi Reports without Prompts but it is not working for Webi Reports with Prompts.
    Can anybody help me??
    Thanks & Regards
    Swapnil Kulkarni

    Hello Swapnil,
    In order to perform a change data source, you have to answer the prompts (like in the regular Webi UI). In this kind of case, RESTful webservice will send back the list of parameters needed after you submitted your target mappings. Then, you have to answer prompts and send all the information (mappings + prompts answers).
    Does it make sense?
    Best regards,
    Anthony

Maybe you are looking for