Creating Presentations Programmatically

Hi,
I would like to know how to create presentations programmatically using PresentationBuilder, PresentationCustomizerContext and Presentation objects.
Thanks in advance
Ajesh A

Hi,
You can see an example of that in BI Beans samples - open the Java client project. You can donwload the BI Beans samples from here:
http://www.oracle.com/technology/products/bib/index.html
You can also generate a BI Beans default Java client class in JDeveloper and look at the generated code. To generate a Java client class, follow these steps:
1. In JDeveloper create a new workspace
2. Create a new project
3. Create a new BIDesigner and specify the connection details
4. Right click on BI Designer, and in the New Gallerychoose Business Intelligence Beans -> Client Tier for OLAP -> Java client class to generate a default Java client application.
Hope this helps
BI Beans PM

Similar Messages

  • Error while Creating Presentation variable

    Hi,I am new to OBIEE
    I am facing this error:
    "A numeric value was expected (received "max("Sales Measures".Dollars)").
    Error Details
    Error Codes: EHWH2A7E"
    1.I am using paint rpd.I want to use presentation variable.
    2.So i took two column in criteria 1.Region 2. Dollars
    3.In Dollars edit formula ,I created presentation variable i.e. @{Doller_presentation}{max("Sales Measures".Dollars)} in the column formula.
    4.And In the same column i use filter
    Add ->presentation variable->variable exp =Doller_presentation and default =max("Sales Measures".Dollars)
    5.I have added this request on dashboard page,but error is coming.
    6.Also i have created dashboard prompt,
    Set presentation variable to "Doller_presentation"
    and in column formula :@{Doller_presentation}{max("Sales Measures".Dollars)}
    and took that prompt on the same dashboard page.
    so promt with 2 values are coming.1.All choces 2.13087528..may be ths is max value of dollar but on click its showing error as
    "Odbc driver returned an error (SQLExecDirectW).
    Error Details
    Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65P
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 42021] The query does not reference any tables. (HY000)
    SQL Issued: SELECT 13087529 FROM Paint ORDER BY 1"
    I am confuse abt use of presentation variable
    Please Help,
    Thanks
    Kapil
    [email protected]
    Edited by: user13098263 on May 9, 2010 10:58 PM
    Edited by: user13098263 on May 9, 2010 11:01 PM
    Edited by: user13098263 on May 9, 2010 11:02 PM
    Edited by: user13098263 on May 9, 2010 11:04 PM

    Hi Rachit
    You answered my doubt.This one really works . Thanks a lot !
    But i have one more doubt i.e if have created the Presentation variable in the dashboard prompt and I want to use it in a report
    i.e the scenario is If I have created a new column i.e " Revised Salary " in the Presentation Services and want the values to be entered there dynamically upon end users choice. For ex the end user selecrts value of 1 then the report would display an increament of 500 to all the employees in the " Revised Salary " column and if the end user select value of 2 .. the report would display a decrement of 500 in the " Revised salary column".
    I am getting the following error :
    ========================================================================
    Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65P
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 59001] Binary Logical operation is not permitted on VARBINARY, INTEGER operand(s). (HY000)
    SQL Issued: SELECT "D0 Time"."T05 Per Name Year" saw_0, "D2 Market"."M04 Region" saw_1, "D4 Product"."P01 Product" saw_2, "D1 Customer"."C1 Cust Name" saw_3, "F1 Revenue"."1-01 Revenue (Sum All)" saw_4, CASE WHEN 0='1' then "F1 Revenue"."1-01 Revenue (Sum All)" +500 else "F1 Revenue"."1-01 Revenue (Sum All)" - 500 end saw_5 FROM "Sample Sales" ORDER BY saw_0, saw_1, saw_2, saw_3
    ========================================================================
    Please NOTE : The column on which I want to do an increament is : "F1 Revenue"."1-01 Revenue (Sum All)"
    Thanks

  • How to create Presentation variable for columns and to use it in Narrative?

    Hi All,
    Anybody know how to create presentation variable for a column (i.e., i need to create it in edit formula section itself). And then, I should use it in Narrative section to display that column value. Is it possible? Or do i need to use any other variable for this requirement? If so please let me know, how to create it? This is very urgent requirement.
    Thanks in Advance
    Thenmozhi

    Hi Satya,
    I just want to create a table that should horizontally display the values like below:
         SUID Tag # :123456               Year Mfg: 2007                                                                                     
         Description: computer corporation FA ID#: 4576
         Model Number: 4569 hESC: #ert
         Serial Number: 78945 Flags: c
    Department: Hematology
    User: thenmozhi
    Database: OLAP
    I think we can create this type of report using either Narrative or Static Text. But I am not sure whether it is possible or not? And also another thing is that sectioning is applied for SUID Tag # column. So, depending on the dashboard prompt if the SUID Tag # retrieves two or more values.
    Then the first value for example 123456     and the values for the other columns related to this SUID Tag # value should display in the first page (i.e., page 1). And if the next value of the SUID Tag # for example say 678901 then the values should move to second page that is like this:
         SUID Tag # :678901               Year Mfg: 2008                                                                                     
         Description: Computer Manufacturing FA ID#: 4577
         Model Number: 4570 hESC: #eth
         Serial Number: 78946 Flags: G
    Department: Hematology
    User: Rehman
    Database: OLAP
    Thanks
    Thenmozhi

  • FM for Create ASN programmatically in SNC (Supplier Network Collaboration)

    Hello,
    I am working in SNC (Supplier Network Collaboration) with version SAP SCM 7.0. I wanted to create ASN programmatically.
    Can anyone tell me the ways possible to create ASN programmatically using purchasing information?
    Thanks & Regards,
    Nitin

    HI Jens,
    In our forum, we discussed topic about BizTalk & SAP Integration before, hope it helps you.BizTalk
    & SAP Integration
    Best regards,
    Angie
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Creating Builds Programmatically LV8.0.1

    Salut.
    From LV8.0.1 help :
    QUOTE
    Creating Builds Programmatically
    You can use the BuildTargetBuildSpecification VI located in the vi.lib\AppBuilder directory to build source distributions programmatically from build specifications. If you have the Application Builder installed, you can use the VI to build stand-alone applications, shared libraries, Windows installers, and zip files programmatically. The VI is not available on the Functions palette.
    Note The LabVIEW Professional Development System includes the Application Builder. If you use the LabVIEW Base Package or Full Development System, you can purchase the Application Builder separately by visiting the National Instruments Web site.
    The BuildTargetBuildSpecification VI creates a build from a build specification that you specify in the Name of build specification input. If you do not specify a build specification, the VI creates builds from all build specifications in the specified LabVIEW project. You must specify the path and filename of the project to use in the Path to project input.
    If you want the VI to create a build from a build specification located in a target that is not My Computer, specify a target in the Name of target input.
    After you run the VI, you can view the path to the completed build files in the Generated files output.
    END QUOTE
    1-
    QUOTE After you run the VI, you can view the path to the completed build files in the Generated files output.END QUOTE
    Does someone know how to also get the created installer files? (i only get the exe output files)
    2- How can i start the build status feedback window when using the BuildTargetBuildSpecification.vi?

    Hi jacemdom,
    I hope you're doing well.  I have tested building an Installer specification on my end, and I am seeing the same results.  The correctly passes in the appropriate build specification reference, but no files are actually generated as you have noticed.  I am currently looking for more documentation for you on the BuildTargetBuildSpecification as it is a relatively new feature.  Regarding the status window with this VI, it looks like that feature is currently unsupported.  I will verify this an update you with what I find.  Have a great day!
    Thaison V
    Applications Engineer
    National Instruments

  • Can i create pdx programmatically in c# ?

    Can i create pdx programmatically in c# ? If yes, then is it must to use adobe sdk for it ?

    I did this using an unpublished API - it took some experimentation but worked great at the end. I used a page template in release 2 of Portal. the idea was that when a user added a project we would programatically create a page for that project. In that manner their portal would end up with several hundred pages, one for each project, that were created and look similar as they added project information for their company. Here is an example from the code using Oracle's API, wwpob_api_page.create_page - if you open up the specification for this package in a pl/sql browser such as TOAD you will see some comments that help explain how to use it:
              p_page_id := WWPOB_API_PAGE.create_page
    (p_id => null
    ,p_parent_id => 1
    ,p_type_id => WWPOB_API_PAGE.PAGETYPE_PORTLETS
    ,p_type_siteid => 0
    ,p_type_value => 1
    ,p_name => p_page_url_info
    ,p_title => v_page_title
    ,p_category_id => null
    ,p_site_id => p_page_group_id
    ,p_plsql_executemode => null
    ,p_username => v_user_name
    ,p_description => v_page_description
    ,p_image => null
    ,p_titleimage => null
    ,p_rolloverimage => null
    ,p_styleid => v_style_id
    ,p_style_siteid => 0
    ,p_exposure => WWPOB_API_PAGE.DONTEXPOSE_AS_PORTLET
    ,p_ispublic => WWPOB_API_PAGE.PAGE_PRIVATE
    ,p_inheritpriv => WWPOB_API_PAGE.OWN_PRIV
    ,p_isready => 1
    ,p_cachemode => WWPOB_API_PAGE.CACHE_MODE_PING
    ,p_cacheexpires => null
    ,p_template_id => p_template_id
    ,p_template_siteid => p_page_group_id
    ,p_allow_style => WWPOB_API_PAGE.NO_PAGE_STYLE
    ,p_allow_acl => WWPOB_API_PAGE.ALLOW_PAGE_ACL
    ,p_istemplate => WWPOB_API_PAGE.PAGE_TEMPLATE_NO
    ,p_dav_id => null
    ,p_init_jspfile => null
    ,p_displaybanner => WWPOB_API_PAGE.SHOW_BANNER
    ,p_region_type => WWPOB_API_REGION.region_type_portlet
    ,p_create_region => true
    ,p_navpage_id => null
    ,p_navpage_siteid => null
    ,p_uitemplate => null
    ,p_template_ispublic => WWPOB_API_PAGE.PAGE_TEMPLATE_PRIVATE
    ,p_use_def_template => false
    ,p_copy_from_template => true
    Good luck - Art

  • Creating Items Programmatically?

    Hi,
    What's the easiest way to create items programmatically? Our goal is to push new items (and later business partners & sales orders) into SAP without wasting valuable staff time on this kind of tedious stuff.
    I'm assuming it's not the obvious answer of simply INSERT'ing into the relevant tables (OITM etc)
    Do we need to buy the SDK to do what I'm asking?
    If someone can give me a pointer in the right direction, I'd really appreciate it!
    Many thanks,
    William.

    Hi there,
    I don't really undersand your question. If it is for data take on purposes, you can use DTW. You can use SDK if you need to stuff "automatically". You can write a Windows service that runs in the background, using SDK or an Add-on that will execute in the normal ways.
    Hope this helps.
    Kind regards

  • Possible to create presentation objects outside of JDeveloper?

    Is it possible to create BI presentation objects (graphs, tables, crosstabs) outside of JDeveloper? I have been searching OTN forums, BI Beans javadoc and the OLAP API guide and have not found whether this is possible. I have seen where you can programatically create BI OLAP objects like queries and calculations, but not if/how you can create presentation objects.
    Regards,
    Steve Locke

    Got it! I was able to extend the "New Presentation" sample to allow users to save their newly-created presentations back to the BI catalog. Here's how:
    1) add a menu item for "Save"; add a listener for it
    m_mnuSave = new JMenuItem("Save...");
    m_mnuSave.setMnemonic('S');
    fileMenu.add(m_mnuSave, 4);
    m_mnuSave.addActionListener(new ActionListener() {
    public void actionPerformed(ActionEvent e) {
    mnuSave_ActionPerformed(e);
    2) in mnuNew_ActionPerformed, add code to save the presentation to a module-level variable
    Dataview dv = npw.getDataview();
    m_objPresentation = npw.getDataview(); // new code
    3) write the Save action handler
    void mnuSave_ActionPerformed(ActionEvent e) {
    String sName = "";
    int result = 0;
    if (m_objPresentation == null)
    JOptionPane.showMessageDialog(null, "No presentation to be saved");
    return;
    /* Create InitialPersistenceManager */
    InitialPersistenceManager pmRoot = (InitialPersistenceManager)getPersistenceManager();
    /* Create PersistenceObjectChooser */
    PersistenceObjectChooser dialog = new PersistenceObjectChooser(pmRoot);
    JFrame frame = new JFrame();
    result = dialog.showSaveDialog(frame);
    if (result == PersistenceObjectChooser.OK_OPTION)
    PersistenceManager pmCurrent = (PersistenceManager)dialog.getCurrentDirectory();
    sName = dialog.getSelectedObjectName();
    if (sName != null)
    try
    //if name is not bound, then rebind will bind it
    pmCurrent.rebind(sName, m_objPresentation);
    catch (Exception ex) {
    showExceptionDialog(this, ex);
    } // if sName != null
    }// if result == OK_OPTION  

  • How to create Request programmatically to trigger Approval Process

    My scenario is dificult... I need to start Approval Process when the user want to assign AD Resource to other user without Request service. So I want to create Request programmatically from Event Handler to start Approval Process for Provision Resource request type.
    Is this right Way?

    If you talk of request, you will have to use RequestService. You can use code to work with the RequestService to create the request and the approval for you.
    -Bikash

  • Creating portlet programmatically

    Hi dev2dev
    I want to create portlet programmatically
    if there is any hints or package related pls do mail me
    Thanks n Regards
    Surya
    [email protected]

    Hi,
    I am sure ( although without having testet it myself ) that the administrative EJBs behind the portal administration tool could be used here.
    consult the java - doc for theese classes.
    Are you sure this is the only solution to the problem ? If you could elaborate on the problem leading to you wanting to create portlets prgrammatically perhaps the community could provide you with another solution if there are any.
    - Anders M.

  • Creating ViewAcessor programmatically

    I have created ViewObject at runtime by providing sql query. Now i want to create ViewAccessor so that i can validate one of the fields in newly created ViewObject but i could not find any help regarding creating ViewAccessor programmatically. Any Help?????

    Hi,
    I am sure ( although without having testet it myself ) that the administrative EJBs behind the portal administration tool could be used here.
    consult the java - doc for theese classes.
    Are you sure this is the only solution to the problem ? If you could elaborate on the problem leading to you wanting to create portlets prgrammatically perhaps the community could provide you with another solution if there are any.
    - Anders M.

  • Possible to limit dimensions and measures when creating presentations?

    We are trying to use OLAP/BI Beans to add BI functionality to our next-generation data warehouse application. This application has its own security framework, with the ability to define permissions/privileges for objects. We need to integrate BI Beans/OLAP with this security framework.
    One of the things we need to do is control which OLAP objects (like dimensions and measures) are available to a given user in the Items tab when creating a presentation. For example, user A might see dimensions Alpha, Bravo and measure Charlie, while user B might see dimensions Delta, Echo and measure Foxtrot.
    We need to be able to apply these dimension/measure restrictions without using different Oracle users, with each having access only to their own OLAP objects. Our data warehousing application does not use Oracle and Oracle users to control security; it has its own internal frameworks for privileges/permissions. We therefore need to find a way to restrict access to OLAP objects in some programmatic way.
    Here's an example of how this might work:
    - I am a clinical analyst. I sign on to the data warehouse application. The data warehouse knows that as a clinical analyst, I have access to a certain list of objects and functionality across the application. One of the apps I have privilege to is the BI Bean Presentation Creation Application, so I click the menu to bring this up. I can now create BI presentations, but since I am a clinical analyst my list of available dimensions and measures do not contain any of the G/L, payroll or other financial OLAP objects.
    - If I signed onto the data warehousing application as a different user, one that has a financial analyst role, I might see a different set of OLAP objects when I run the presentation application application.
    So what we need is some API way to specify which dimensions and measures are available to a given user when they launch the presentation wizard. I've been digging through the BI Beans help and javadoc and have found a few things, but they aren't what I need.
    Here's what I found:
    - setItemSearchPath: this allows you to specify which folders are to be displayed. We want control at the OLAP object level, not at the folder level, so this doesn't work for us
    - setVisibleDimensions: this controls which dimensions are available in the Dimensions tab, not which dimensions can be selected in the Items tab. Doesn't work for us
    - setDimensionContext/setMeasureContext: These might work for us but I haven't been able to get them to retrieve anything yet. It also seems to me that these might set which dimensions/members are initially selected in the Items tab, not the list of dims/measures that are available for selection.
    Any assistance on this matter would be greatly appreciated.
    s.l.

    Reply from one of our developers:
    The get/setMeasureContext and get/setDimensionContext methods are currently only used by the Thick CalcBuilder (in a few limited scenarios) and cannot be used "to scope the dimensions and measures listed in Query and Calc builder based on user access rights".
    The scoping of dimensions and measures based on user access rights should be performed at the MetadataManager/Database level.
    This may change going forward as the real issue here is the static nature of the metadata and a general issue with the GRANT option within the database. So from the database perspective it is not possible to grant select priviledges on a single column of a table.
    The metadata issue is more complex as the OLAP API reads the metadata only once on startup of a session. The list of available measures is based on the GRANT priviledge, so for relational OLAP this limits the data scoping capabilities. In 10g, the metadata for AW OLAP becomes more dynamic and contained and read directly from the AW. Therefore, with an AW OLAP implementation with 10g it could be possible to scope boht dimensions and measures quickly and easily.
    Hope this helps
    Business Intelligence Beans Product Management Team
    Oracle Corporation

  • Create PDF programmatically?

    What is the best way to create a PDF programmatically?  I want to use ASP.NET C#.  Is there an API available directly from Adobe?  Or, do I need to look to third parties?  If there is something direct, are there any tutorials on how to use the API?  Is there a way to dump a PDF to XML (or some other text based neutral format), load in the XML, manipulate the data, and then present the result to the user?
    I am looking for a solution that will allow insertion of structures more complicated than a simple line of text.  I'd like to add multiple tables of data and have them look professional.
    Thanks for any ideas and help,
    Matt

    Try the SDK forum (at least I think that is the one that deals with such scripts and such).

  • Error while creating presentation variable in Dashboard prompts.

    Hi Team
    I have been going through the guidelines and procedures to create a presentation variable to use it in the dashboard prompt ( mentioned in the previous blogs ) .I followed the below link :
    http://oraclebi.blog.com/example-of-presentation-variable-in-obiee/
    I am using the following query :
    ========================================================
    SELECT case when 1=0 then "D2 Market"."M04 Region"
    else 1
    end
    FROM "Sample Sales"
    UNION ALL
    select case when 1=0 then "D2 Market"."M04 Region"
    else 2
    end
    FROM "Sample Sales"
    =========================================================
    I just wanted to create 2 dummy choices i.e 1 and 2 .But while soing so I am getting erros in the case statements :
    =========================================================
    Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65P
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 27005] Unresolved column: "D2 Market"."M04 Region". (HY000)
    SQL Issued: SELECT case when 1=0 then "D2 Market"."M04 Region" else 1 end FROM "Sample Sales" UNION ALL select case when 1=0 then "D2 Market"."M04 Region" else 2 end FROM "Sample Sales"
    =========================================================.
    Please suggest and let me know if there is any other method to have 2 chioces in drop down i.e 1 and 2 using SQL statements while creating the dashboard prompts.
    Thanks

    Hi Rachit
    You answered my doubt.This one really works . Thanks a lot !
    But i have one more doubt i.e if have created the Presentation variable in the dashboard prompt and I want to use it in a report
    i.e the scenario is If I have created a new column i.e " Revised Salary " in the Presentation Services and want the values to be entered there dynamically upon end users choice. For ex the end user selecrts value of 1 then the report would display an increament of 500 to all the employees in the " Revised Salary " column and if the end user select value of 2 .. the report would display a decrement of 500 in the " Revised salary column".
    I am getting the following error :
    ========================================================================
    Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65P
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 59001] Binary Logical operation is not permitted on VARBINARY, INTEGER operand(s). (HY000)
    SQL Issued: SELECT "D0 Time"."T05 Per Name Year" saw_0, "D2 Market"."M04 Region" saw_1, "D4 Product"."P01 Product" saw_2, "D1 Customer"."C1 Cust Name" saw_3, "F1 Revenue"."1-01 Revenue (Sum All)" saw_4, CASE WHEN 0='1' then "F1 Revenue"."1-01 Revenue (Sum All)" +500 else "F1 Revenue"."1-01 Revenue (Sum All)" - 500 end saw_5 FROM "Sample Sales" ORDER BY saw_0, saw_1, saw_2, saw_3
    ========================================================================
    Please NOTE : The column on which I want to do an increament is : "F1 Revenue"."1-01 Revenue (Sum All)"
    Thanks

  • Displaying Session Variable on Dashboard & creating presentation variable

    Hi.
    I read a bit more on mysupport and it seems that :xdo_user_roles somehow displayes all kind of roles not the ones that the user acutally belongs to.
    Now I wonder if I can use NQ_SESSION.GROUP in the BI Publisher data model.
    (A)I figured that I can create a "list of values" in the data model and there I can select Oracle BI EE as a data source. maybe in the repository I can create a column that holds the nqsession_groups that I then use in the data model sql. assuming I can use a list of values in the sql.
    (B) or I pass it as a parameter to the report/data modell just like a normal dropdownlist parameter (presentation variable)
    Then I tried adding a text item on the dashboard with
    @{biServer.variables[NQ_SESSION.USER.displayName]}
    or
    Session Variable My Year : @{biServer.VARIABLES['v_USER_GROUPS']} *
    BUT none of them actually display any variables. :/
    *this one I created in the repository and has the correct values                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    When I remove "authenticated-role" from the BIConsumer Role in EM and visit my dashboard again I can see that the user is ONLY in role "AuthenticatedUser" now I wonder why this is the only one, I created a custom role in EM and added the user to that one but it does not show :/

Maybe you are looking for

  • FPBW-Mass Activity

    Hi, We have a requirement to extract open items for our IS-U customer on a weekly basis. This is a full extract from DFKKOPBW. The sequence of activities: 1. Run FPBWS - To mark the previous extract for Deletion 2. Run FPBWD - To delete the marked ex

  • LR windows interface vs mac

    I did see claims that virtually there was no diff between these two. However, my entire windows TITLE BAR has changed, there is no minimize or close (x) button and it only shows if I point in that direciton. Does anybody know how to revert to the way

  • Can't Sync Photos from iPhoto

    Since I got my iPod last December, I have not been able to sync photos from iPhoto 4.0.3. When I select iPhoto in the Photos preferences of my iPod, none of my albums show up and when I try to update it, I get a message: "An unknown error occurred (-

  • Idiot question for time compression in STP3

    Let me ask a dumb question. I have always worked in Pro Tools for VO. I edit in FCP and know STP pretty well. I bought a presonus firebox and want to use STP for VO, since I have it in the FCP3 suite. In VO we always have to time compress reads down

  • Master page is shown in the document

    Hello There. I have a document with one empty page (first page). I am not able to delete this page. I allready fade in the command structure (Hierarchie). By clicking on this empty page the master page is activated. Is it possible to hide the master