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  

Similar Messages

  • Possible to create an object from a String?

    Hi,
    is is somehow at all possible to create an object from a String ?
    If we have etc.
    String txt = "Carrot()";
    Is it then possible to somehow cast that String and interpret it as a class type that it should make an object of ?
    Like
    new txt; - would then give me the same as new Carrot(); ?
    Hope you understand what i mean.
    Martin From... :-)

    Class.forName("some.package.Carrot");

  • Possible to generate DDL from outside of JDeveloper?

    Hi:
    I was wondering if it is possible to have a build script somehow generate the DDL for a database from the model files that JDeveloper creates (in the same way one would run a SQL Plus script from the command line passing a .sql file for it). This is desirable because my project wants to keep a database schema under CM but not multiple files that have to be kept in sync (like the model files AND the DDL).
    Thanks.

    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  

  • Is it Possible to create custom Object type in configuration Tab

    Hi ,
    We have object type for table in Development Tab in SOLAR02 , is it possible to create a custom object type to represent the table object type in Configuration Tab.
    Please let me know the steps , if it is possible.
    Best Regards,
    Saravana

    Hi
    You answer for you problem exists and its a common problem but you need to go for this development as mentioned below
    /people/andreas.diebold/blog/2007/02/13/extend-sap-solution-manager-to-manage-new-object-types
    We did long time back
    Hope ur problm and doubt is resolved now
    Regards
    Prakhar

  • Is it possible to create vector objects as compound shapes as you draw them (automatically)?

    I'd like to start utilizing Illustrator more frequently for web and user interface design projects, but I still like taking everything into Photoshop for final rendering and compositing (and the simple fact that most developers want psds, not ai files). However, I find that the only way to successfully transfer all of the vector artwork from Illustrator and preserve it as vector objects in Photoshop (when exporting) is to manually convert every individual vector object in Illustrator to a Compound Shape (by selecting the shape and clicking Make Compound Shape from the Pathfinder palette menu). This can be very tedious if it has to be done after the design is complete, and very inefficient if you convert every object as you draw it.
    Is there a way to set Illustrator to automatically create every vector object drawn as a Compound Shape without having to manually convert it?
    A little background on this issue...
    Adobe Illustrator allows you to export your Illustrator document as a Photoshop document. However, Compound Paths (not Compound Shapes - see this article for not-so-great explanations comparing the two) – which is the default attribute applied to all of Illustrator's basic vector objects – do not convert into vector objects when the exported document is opened in Photoshop. Rather, the vector objects drawn in Illustrator get flattened into raster layers in Photoshop, making them poor candidates for refining the design in Photoshop.

    Two possibilities:
    Start with a simple Compound Shape and use it as the beginning of each new path:
    Polygon Tool: Mousedown. Drag. Tap the down arrow key until you have a triangle. Mouseup.
    White Pointer: Click one of the sides of the triangle. Delete. (Now you have a 2 segment open path.)
    Fill: Any color. Stroke: None.
    Pathfinder palette flyout menu: Make Compound Shape.
    Drag the path to just beyond the artboard origin (or some other convenient location).
    Copy.
    Each time you begin a new path, start it by either doing a Paste (Ctrl V), or by AltDragging a copy of the original. Then start modifying the pasted path, which is already a Compound Shape.
    OR
    Use an Action (macro) to apply the Make Compound Shape after you have drawn the paths:
    Draw two paths. Select the first one.
    Actions palette: Start recording.
    Pathfinder palette flyout menu>Make Compound Shape.
    Select>Next Object Above.
    Stop recording.
    Now when you've finished a drawing:
    Layers palette: Select the bottom object.
    Actions palette: Repeatedly click the Action Run button (or put the palette in Button Mode and repeatedly click its button).
    As with everything in Illustrator, caveats abound:
    Why there's no loop command for Actions is beyond me. So if you want, you can duplicate the two steps in the Action, say, nine times so it will convert 10 paths per click.
    Using the Action method, the Select>Next Object Above command will not jump between Layers. So if the paths are on various Layers, you'll have to manually do the bottom object select for each Layer.
    As you probably know, if the Illustator Compound Shapes have strokes, not just fills, the resulting Photoshop Shape Layers have the paths, but loose the fills and strokes. So either method above works best if the Illustrator paths are filled and unstroked before converting to Compound Shapes.
    Illustrator's Javascript considers a Compound Shape a PluginItem. So it's conceivable that one could script the conversion of a simple path to a Compound Shape by using the sendScriptMessage() method of the app object. But you'd have to know the appropriate parameters for the plugin, which I don't.
    If only you could invoke an Action from an Illustrator Javascript, you could simply use a Javascript to intelligenty loop through the objects and run the Action for each...but that's another big "if only".
    JET

  • How do I create an object (Installation Fact) using a FM?

    Hello all,
    Is it possible to create an object (An Installation Fact to be more precise) using FM  ISU_S_INSTLN_CHANGE ?
    The x_auto structure is populated as follows :
    x_auto~ factsfacts_autoiquant~operand : the new operand
    x_auto~ factsfacts_autoiquant~season : blank
    x_auto~ factsfacts_autoiquant~auto_use : blank
    x_auto~ factsfacts_autoiquant~auto_insert : checked (i.e. X)
    x_auto~ factsfacts_autoiquant~auto_merge : blank
    The structure x_auto~ factsfacts_autoiquant~ivalue is populated as usual.
    “Ok Codes” are correctly filled in : X and SAVE.
    Nothing happens after the run? Any idea please ?
    Your help is much appreciated.
    Message was edited by: GA
            Goharjou ardavan

  • How do I create an object on the fly

    Hello there,
         I was wondering if it is possible to create an object on-the-fly. For example:- I have a class called Customer which holds the name, address and phone number of a customer. While the program is running I get a new customer, Mr Brown. How can I create a new Customer object which will hold the details of Mr Brown.
    yours in anticipation
    seaview

    If I understood you right, you are thinking far too complicated.
    So, when you click a button, a new object shall be created and stored. So basically you write a listener to your button that contains a method like this:
    public void actionPerformed(ActionEvent e){
       Customer newCustomer = new Customer(textfield.getText());
       listOfCustomers.add(newCustomer);
    }Maybe what got you confused is the object's name. Remember this: variables and field names DON'T exist anymore at runtime! They are just meant to help you when programming. If you want Mr. Brown as a customer, you have to provide a field in the customer class for the name. If a field is required for the existence of an object, you usually write a custom constructor for it, which accepts an according parameter.

  • Why r we allowed to create String objects with & without using new operator

    While creating any object, usage of the new operator is a must...but only for the string object we can create it with and also without new operator how is it possible to create an object without using new operator.

    Because Mr. (Dr.?) Gosling is a kindly soul who realizes that programmers have deadlines and, when he designed Java, was not so rigid or unbending as not to realize that from time to time, certain shortcuts are warranted, even in a relatively pure language such as Java. The direct String literal assignments are a shortcut over using the new operator making Java programming (and execution; there's also a performance benefit) more streamlined.
    So look not the gift horse in the mouth, but simply bask in the simplification and ease on the eyes and directly assign your little literals to your heart's content.

  • Is it possible to create a Report Object in a menu?

    Hi all,
    I 'm working on an oracle report wherein the user will not give any parameter.
    They would like to view the report by clicking on the menu option for this report and it should then open the report in an new browser window
    in pdf format.
    My question:
    Is it possible to create a report object in the menu?how can we do this?
    I'm working on Oracle reports version Report Builder 10.1.2.0.2
    TIA

    Thanks for your prompt reply.
    Through form I'm able to create report object and report is displayed successfully.
    I'm using the following code:
    DECLARE
              report_id Report_Object;
              ReportServerJob VARCHAR2(100);
              rep_status VARCHAR2(50);
    BEGIN
              report_id:= find_report_object('Report1');
              SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_OTHER,'vouno='||:vouno||' paramform=no');
              ReportServerJob:=run_report_object(report_id);
              rep_status:=REPORT_OBJECT_STATUS(ReportServerJob);
              WHILE rep_status in ('RUNNING','OPENING_REPORT','ENQUEUED')
              LOOP
                        rep_status := report_object_status(ReportServerJob);
              END LOOP;
              IF rep_status = 'FINISHED' THEN
              WEB.SHOW_DOCUMENT('http://sushma:8889/reports/rwservlet/getjobid'||
              substr(ReportServerJob,instr(ReportServerJob,'_',-1)+1)||'?'||'server=rep_sushma','_blank');
              ELSE
                        message('Error when running report');
              END IF;
    END;
    I'm not able to use the same code in Menu, as there is no way to create report object "Report1"
    Or is there any was to create object.
    So in place of report_id:= find_report_object('Report1');
    I used report_id:= find_report_object('c:\.... *.RDF');

  • Is it possible to create a rotating object in Muse?

    Is it possible to create a rotating object in Muse? I have a round logo and I want it rotating.

    HI
    If you are looking for an animated logo, which rotates in 360 degree, it is not possible in Muse. You can create an animation in Edge animate and import the animation in Adobe muse.,

  • Is it possible to create a development object from the development tab?

    Hello All,
    One the central concepts of SAP Solution Manager is that you perform almost all activities starting in Solution Manager. As I understand, it is not possible to create a customer development such as a program from the development tab in SSM. You first have to logon to the 'satelite' development system and create the object. Then you can register this object at the development tab. 
    Is this correct?
    Thanks in advance.

    Hi,
    You are right, you have to create your objects in your satellite system (its obvious).
    This object can be against any servicedesk message or any requirement for a particular business process, thus keeping track of all the developments process wise, request wise.
    Hope this solves your problem.
    Feel free to revert back.
    --Ragu

  • Is it possible to create a file object from a resource?

    Hi all
    Is it possible to create a File from a resource call rather than from a path
    e.g.
    File myFile= new File("C:/j2sdk/sampledir/mypage.htm");is how im doing it now
    how can i call it from a resource something like
    File myFile= new File(this.getClass.getResource("mypage.htm"));

    you may be right
    im trying to load a file into a string then display that string
    my resource thingy isnt working anyway :s
    [code[
    URI pTURI=null;
    URI pBURI=null;
    try
    pTURI= new URI(this.getClass().getResource("/resources/prev_header.htm").toString());
    pBURI= new URI(this.getClass().getResource("/resources/prev_fullpac.htm").toString());
    catch(URISyntaxException e)
    warnUser("URI Error");
    File previewTop = new File(pTURI);
    File previewBtm = new File(pBURI);
    im getting this error
    java.lang.NullPointerException
    at cssCreator.cssCreator.setPreview(cssCreator.java:1263)
    at cssCreator.cssCreator.<init>(cssCreator.java:48)
    at cssCreator.cssCreator.main(cssCreator.java:1681)

  • Resuse existing object (Sp,tables etc)or create new object if that is possible?

    Hello Everyone,
    Is it a good practice to create new objects (stored procedures, tables etc.) or modify and reuse the existing object if that can be done?
    Regards
    Regards

    If you need simple add a new column to the SELECT statement so there is no need to create a new stored procedure/view for this
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

  • Using a local catalog outside of JDeveloper?

    Is it possible to establish a local catalog connection from outside of JDeveloper; that is as part of a deployed application?
    I have tried including the catalog XML files in my JAR file and specifying the relative path to the files in the BI configuration file (i.e., PersistenceType="FILE" RootFolder="bidefs/BIDesigner/"). However, it seems that whatever combination of file location and configuration setting that I try I receive a catalog root cannot be found error.
    Does anyone know if this is possible, and if so can you point me to an example?
    (Note: I realize that in an actual production application that it is much better to use the database catalog, however, currently I’m simply working on a proof of concept and may not be able to create the catalog schema on my target database instance.)
    Best Regards,
    Matt
    BI Beans Diagnostics(v1.0.2.0) 2/23/05
    ===============================================================================
    JDEV_ORACLE_HOME .......................... = C:\oracle\ora92Dev
    JAVA_HOME ................................. = C:\bea\jdk141_05
    JDeveloper version ........................ = 9.0.4.0.1407
    BI Beans release description .............. = BI Beans 9.0.4 Production Release
    BI Beans component number ................. = 9.0.4.22.0
    BI Beans internal version ................. = 2.7.5.31
    Connect to database ....................... = Successful
    JDBC driver version ....................... = 9.2.0.4.0
    JDBC JAR file location .................... = C:\oracle\ora92Dev\jdev\lib\patche
    s
    Database version .......................... = 9.2.0.4.0
    OLAP Catalog version ...................... = 9.2.0.4.1
    OLAP AW Engine version .................... = 9.2.0.4.1
    OLAP API Server version ................... = 9.2.0.4.1
    BI Beans Catalog version .................. = 2.7.5.31
    OLAP API JAR file version ................. = 9.2
    OLAP API JAR file location ................ = C:\oracle\ora92Dev\jdev\lib\ext
    Load OLAP API metadata .................... = Successful
    Number of metadata folders ................ = 3
    Number of metadata measures ............... = 0
    Number of metadata dimensions ............. = 0
    Metadata output location .................. = C:\oracle\ora92Dev\bibeans\bi_chec
    kconfig\bi_metadata.txt

    If you download the latest BI Beans 10g samples from the BI Beans section on OTN there is a sample called Analyzer. This sample uses a local filestore to save and retrieve all reports, calcs, saved selections etc created by the user during a session.
    Hope this helps
    Business Intelligence Beans Product Management Team
    Oracle Corporation

  • 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

Maybe you are looking for

  • Windows 7 error code = 0xa

    I have a windows 7 professional 64 bit operating system and once i try to upgrade it to sp-1 It stuck so i force shutdown my pc and after i restarted my pc it automatically goes to windows startup repair wizard and the system repairs fails by giving

  • My microphone line-in jack isn't working.

    I want to use an external microphone for online gaming conversations. I have a headset with both mic and earphones. I can hook the earphone jack up and can hear fine, however when i hook the microphone jack i can't get it to work. Yes, i have gone in

  • Error during miro

    While i am doing return to vendor using movement type 161, system is giving following message. Account 700020 requires an assignment to a CO object  . I am returning full stock qty to vendor against return Po, since plant has been closed. Here 700020

  • File Upload / ENCTYPE Problem - Please HELP !!!!!!

    Please HELP !!! I have following config. MS Windows Server 2003 with Coldfusion 7. Everything is working fine. But now I want to upload a file, and there is the problem that I have the wrong content type on my action page, and so my form field "FileC

  • Lumia 920 Flash Glare Issue

    Hi, I just bought a Lumia 920 but I've noticed a problem while taking pictures in total darkness. I can clearly see a coloured reflection moving on the screen while the camera tries to focus (with the assist led) and then, that glare, is visible in t