Programmatically creating iBots

We are use OBIEE to display reports on an external-facing site using an IFrame'd Go URL and would like the ability to notify users by email when a certain report contains data based on a user defined thresholded value (e.g., if sales for a particular item go above %200)
Normally this could be done by having the user use Answers to create their own filtered report, have them create an iBot, etc. I was curious if there was a way to programmaticly create the customized reports/iBots of if there was another way of doing this? I'm making the assumption that I'll have to create the UI that takes in the threshold value, which would then be passed on to OBIEE.
thanks

I am working on the creating script component programmatically.
The code has been created is shown in the following,
Dim SourceCodeValue(3) As String
Dim scriptPropType As PipeLineWrapper.IDTSComponentMetaData90 = _
CType(CType(dataflowTask, TaskHost).InnerObject, PipeLineWrapper.MainPipe).ComponentMetaDataCollection.New()
scriptPropType.Name = "Transform Property Type"
scriptPropType.ComponentClassID = "{BF01D463-7089-41EE-8F05-0A6DC17CE633}"
scriptPropType.Description = "Transform Property Type"
Dim instance2 As PipeLineWrapper.CManagedComponentWrapper = scriptPropType.Instantiate()
instance2.ProvideComponentProperties()
SourceCodeValue(0) = "dts://Scripts/" & "ScriptComponent_9ddf9eba6f5b488f9710b95e4d7e7c74" & _
"/" & "ScriptComponent_9ddf9eba6f5b488f9710b95e4d7e7c74" & ".vsaproj"
SourceCodeValue(1) = My.Resources.ScriptComponentProjFile
SourceCodeValue(2) = "dts://Scripts/" & "ScriptComponent_9ddf9eba6f5b488f9710b95e4d7e7c74" & _
"/ScriptMain.vsaitem"
SourceCodeValue(3) = My.Resources.ScriptComponentCode
Dim anIDTSDesigntimeComponent90 As Microsoft.SqlServer.Dts.Pipeline.Wrapper.IDTSDesigntimeComponent90 = _
CType(instance2, Microsoft.SqlServer.Dts.Pipeline.Wrapper.IDTSDesigntimeComponent90)
anIDTSDesigntimeComponent90.SetComponentProperty("SourceCode", SourceCodeValue)
anIDTSDesigntimeComponent90.SetComponentProperty("PreCompile", False)
When debugger reach to “anIDTSDesigntimeComponent90.SetComponentProperty("SourceCode", scriptValue)”, NullReferenceException. “Use the “New” keyword to create an object instance” was shown.
Could you please give me some help or suggestion?
Thank you so much in the advance

Similar Messages

  • Programmatically creating a Rendezvous : missing variable in Result container

    Hi everybody,
    For my tests purpose, I need to programmatically create a sequence. In this sequence, I need to insert Rendezvous steps.
    Everything works fine when creating them, but when I execute the sequence / steps created this error always show up for rendezvous step : 
    Unknown variable 'TimeoutOccured' ; Error accessing item 'Result.TimeoutOccured'
    According to the TS help, this variable should be created when I configure the step for the rendezvous operation. Drag and dropping the step from the TS insertion palette works fine, and the variable is created when chosing the operation 'rendezvous'. But when doing the same thing through programmation, the variable is not created.
    Here are the steps executed to create the RDV step :
    I create a new step using method Engine.NewStep
    I set the step name using Step.Name
    I set the rendezvous properties using a statement (Parameters.BranchesRendezVous.RDVStep is the variable holding the the step reference) :
    Parameters.BranchesRendezVous.RDVStep.AsStep.Operation = 1, //A value that specifies the operation for the step to perform. The valid values are 0 = Create, 1 = Rendezvous, and 2 = Get Status
    Parameters.BranchesRendezVous.RDVStep.AsStep.NameOrRefExpr = Parameters.BranchesRendezVous.RefName, //Contains the Rendezvous Name expression for the Create operation and the Rendezvous Name or Reference expression for all other Rendezvous operations
    Parameters.BranchesRendezVous.RDVStep.AsStep.TimeoutEnabled = False, //The Timeout Enabled setting for the Rendezvous operation
    Parameters.BranchesRendezVous.RDVStep.AsStep.ErrorOnTimeout = True, //The Timeout Causes Run-Time Error setting for the Rendezvous operation
    Parameters.BranchesRendezVous.RDVStep.AsStep.RendezvousCountExpr = Parameters.NbBranches, //The Number of Threads Per Rendezvous expression for the Create operation
    Parameters.BranchesRendezVous.RDVStep.AsStep.Lifetime = 3, //A value that specifies the Lifetime setting to use for the Create operation. The valid values are 0 = Same as Sequence, 1 = Same as Thread, 2 = Use Object Reference, and 3 = Same as Execution
    4. Then I insert the step in my current sequence using method Sequence.InsertStep
    Everything works fine, the rendezvous step is perfectly created and all properties are set finely. However, the variable TimeouOccured is missing in the Step.Result container (TS help says that this propoerty exists when the step is configured as a rendezvous operation (cf. Operation = 1)).
    Am I doing something wrong somewhere ? Why is this variable missing ?
    Solved!
    Go to Solution.

    Hi Doug,
    TS help says that this property exists when the step is configured as a rendezvous operation (cf. Operation = 1)... So shouldn't it be created when I create / insert the step ?
    I find it very weired to add a subproperty to a StepType, in the Result container...

  • Programmatically create objects and formulas in Crystal Reports XI Developer edition?

    <p>Is it possible to programatically/dynamically create a text, line, formula field object, etc. in Crystal XI Developer edition?  I have been programming with the Crystal .Net reports component that came with VS 2005 for the past 6 months and know for a fact you can&#39;t programmatically create those objects although you can programmatically control their properties.  My intention is to create a dynamic report that can be reused extensively.  My current work-around for this was to create a generic report with about 40 formula field objects which draws data from 40 corresponding formula fields that I can programmatically set it&#39;s formula thus imitating a report field.  I want to update to the developer edition because I heard with this edition we can programmatically create and manipulate these objects but I found no reference or examples anywhere that proves we can do this?  Does anyone know for a fact or point me to the right place to look for documentation?  TIA</p>

    Hi,
    How can I programmatically refresh list of values status on CR server XI R2?
    Currently, after I modified the data source in the data connection, some of the LOVs in the report prompt window became empty when I tried to generate the report. I have to use Business View Manager to log onto the Crystal reports server XI R2, find and double click the list of values object to bring up the Edit LOV window, and then click on "Refresh Status" button to make the LOV available in the report prompt window.
    What SDK should I use to create a simple application (preferable a desktop application) to find all LOV objects on CR server XI R2 and to refresh their status? That is an application similar to the "Refresh Status" function in Business View Manager.
    I found Report Engine SDK has the Lov.Refresh function to refresh LOV. On the other hand, Report Engine SDK seems to be for BusinessObjects Enterprise, not for Crystal Reports Server. Can this or other function achieve what I want, i.e. to refresh list of values status on CR server XI R2? If yes, can I use it to develop a self-contained desktop application instead of a web application? I only need to run this application after I modify the data source in the data connection, so I prefer not need to deploy it as a web service.
    Thanks for your help.
    C.T.

  • How do I programmatically create and save an empty project?

    I can programmatically create an empty project, but when I drop an
    invoke node on the project, select "Save", and wire in the desired
    path, it results in an "Error 1".  I am getting the error on the "Save"
    invoke node (An input parameter is invalid.)  The only input is the
    path, which is correct.  What am I doing wrong?  Also, how can I
    specify a name for the project?
    Greg

    I think the problem is that you use the current path and strip off the path the current VI's name.  This leaves you with a path that has no filename to save it to.  Put in a build path after it where you build in a project name with a .lvproj extension.  When I did that, the error went away.
    Message Edited by Ravens Fan on 08-08-2007 11:36 PM
    Attachments:
    Create%20and%20Save%20New%20Project[1].png ‏4 KB

  • Data Logging a programmatically created shared variable of cluster or array datatype into citadel DB

    Hi,
    Is there a way to log a programmatically created shared variable of cluster or array datatype into citadel DB?
    I have attempted to programmatically create a shared variable of type 'double' and was able to successfully log the same into Citadel DB. In the attachment, Please refer to the attached project SV_TC.lvproj and specifically to SV_W.vi for the code that i have used (W.png file shows the dB in MAX and shared variable in NI Distributed System Manager)
    However when i tried the same approach to create a shared variable 'array of double', i noticed that traces are not getting created and hence data logging isn't happening into the Citadel DB. I was however able to write and read the shared variable array without issues. The same is true with cluster datatype also. Please refer to SN_NW.vi for the code that i have used - only difference from SV_W.vi is that i have tried to create a shared variable of type 'array of double'
    One observation is that if i create an 'array of double' or cluster in a shared variable library using the project explorer and deploy, i could see that these being logged into Citadel DB.
    Hence i want to understand what could be done to achieve the same programmatically? Could you please advice?
    Regards,
    Sridhar
    Attachments:
    SV_TC.zip ‏3925 KB

    Why is the transaction happening over remote?
    Because we need the information to be on our database immediately when they submit it.
    I don't know anything about streams or replication.....
    The web database is run by the company that hosts our web site. We use PL/SQL to show the pages and output the html. It fetches the data the customer is requesting from our database, but I'm struggling to get the best way to insert into our database from there.

  • Programmatically creating a new database

    Is there a way to programmatically create a new database?
    I am on a RH Linux 7.3 box using MySQL with mm.mysql driver.
    Thank you,

    whatever you command u exec at the DB to create a new DB u can run it over JDBC using a CallableStatment. I guess that what you should be doing.

  • Programmatically create custom attributes in KM

    Hi all,
    We are implementing an application which uploads/downloads files to/from KM content of a portal user. The application will also display the list of files for the portal user. The file list displays the standard file attributes: filename,  created_date, size.
    Additionally to these attributes we want to store  some custom attributes (e.g. last sent to, received from...) for files in the KM.
    We need to create these custom attributes programmatically at runtime, if the file is stored/updated in the KM content.
    How can we programmatically create these kind of custom attributes in KM and read/write these custom attributes at runtime?
    Thanks,
    Yasar

    hi,
    General example on how to code KM
    http://wiki.sdn.sap.com/wiki/display/Snippets/UpdateKnowledgeManagementusingWebDynproJavaApplication
    Coding custom attributes, look into Properties section
    https://media.sdn.sap.com/html/submitted_docs/nw_kmc/howto/rf/client_api/rf_client_api.html
    Coding custom renderer.
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/f7b176eb-0701-0010-2b84-8edb1f76771d?QuickLink=index&overridelayout=true
    Srini

  • Programmatically create array from common cluster items inside array of clusters

    I have seen many questions and responses on dealing with arrays of clusters, but none that discuss quite what I am looking for. I am trying to programmatically create an array from common cluster items inside array of clusters. I have a working solution but looking for a cleaner approach.  I have an array of clusters representing channels of data.  Each cluster contains a mixture of control data types, i.e.. names, types, range, values, units, etc. The entire cluster is a typedef made up of other typedefs such as the type, range and units and native controls like numeric and boolean. One array is a “block” or module. One cluster is a channel of data. I wrote a small vi to extract all the data with the same units and “pipe” them into another array so that I can process all the data from all the channels of the same units together.  It consists of a loop to iterate through the array, in which there is an unbundle by name and a case structure with a case for each unit.  Within a specific case, there is a build array for that unit and all the other non-relevant shift registers pass through.  As you can see from the attached snapshots, the effort to add an additional unit grows as each non-relevant case must be wired through.  It is important to note that there is no default case.  My question:  Is there a cleaner, more efficient and elegant way to do this?
    Thanks in advance!
    Solved!
    Go to Solution.
    Attachments:
    NI_Chan units to array_1.png ‏35 KB
    NI_Chan units to array_2.png ‏50 KB

    nathand wrote:
    Your comments made me curious, so I put together a quick test. Maybe there's an error in the code (below as a snippet, and attached as a VI) or maybe it's been fixed in LabVIEW 2013, but I'm consistently getting faster times from the IPE (2-3 ms versus 5-6ms for unbundle/index). See if you get the same results. For fun I flipped the order of the test and got the same results (this is why the snippet and the VI execute the tests in opposite order).
    This seems like a poster child for using the IPES!  We can look at the index array + replace subset and recognize that it is in place, but the compiler is not so clever (yet!).  The bundle/unbundle is a well-known "magic pattern" so it should be roughly equivalent to the IPES, with a tiny penalty due to overhead.
    Replace only the array operation with an IPES and leave the bundle/unbundle alone and I wager the times will be roughly the same as using the nested IPES.  Maybe even a slight lean toward the magic pattern now if I recall correctly.
    If you instantly recognize all combinations which the compiler will optimize and not optimize, or you want to exhaustively benchmark all of your code then pick and choose between the two to avoid the slight overhead.  Otherwise I think the IPES looks better, at best works MUCH better, and at worst works ever-so-slightly worse.  And as a not-so-gentle reminder to all:  if you really care about performance at this level of detail: TURN OFF DEBUGGING!

  • How Programmatically Creating a Free Label in LabVIEW

    I know that I can change the text of existing free text (decorations) in LabVIEW.  Can I programmatically create a free label in LabVIEW.  like adding a copyright notice to a bunch of VI's
    Thanks in advance
    Stu
    Stu McFarlane
    Viewpoint Systems, Inc.

    Not with the stock LabVIEW. If you have a license to use scripting then you can do it that way.

  • How to use Powershell to programmatically create a three-tier enumeration list?

    Hi,
    I'm tasked with creating an MP, say AdvantageLevelEnum.
    It has, say, four Tier 1 values: Platinum,Gold,Silver, Bronze.
    Each Tier 1 has, say, 4 Tier 2 values: Red,Green, Yellow.
    Each Tier2 has 3 Tier 3 values: A, B, C.
    What Service Manager Powershell example  can you provide that would create, programmatically create such a 3-Tier list?

    Hi,
    As far as I know you can't create a Service Manager enumerator with PowerShell cmdlets (default ones). You can create an XML file using PS and import it to SCSM but I hardly can imagine the reason.
    Instead you could try this
    solution.
    P.S. Using SMlets you can add new List Item.
    Add-SCSMEnumeration
    Cheers,
    Marat
    Site: www.scutils.com 
    Twitter: LinkedIn:
    Graveyard:

  • Programmatically create a bar graph (ADF DVT) at run time...

    Can someone show me how to programmatically create a bar graph (ADF DVT) at run time..
    Thanks in advance.
    Minh

    Hi Briston,
    You can make the column selected by setting "selected" property of column to true
    Sireesha

  • Programmatically creating a page with portlets in it

    Hello!
    I need a little help figuring out how to programmatically create a page and add a couple portlets to it. I have figured out how to create the PageDefinition and that code works great. How can I add 2 portlets (the portlet definitions already exist in the Portal Library) to that page definition?
    I just need a couple hints & maybe some pseudo-code to get me going in the right direction.
    I'm stuck with using BEA 8.1 SP2 at the moment.
    Thanks for any help,
    John

    If you want to add the portlets to the page in the library and effect all instances of the page use the PageDefinitionManager.addPlaceable(...) EJB.
    javadoc
    http://edocs.beasys.com/wlp/docs81/javadoc/com/bea/netuix/application/manager/IPageDefinitionManager.html#addPlaceable(com.bea.netuix.application.manager.CustomizationContext,%20com.bea.netuix.application.identifier.PageDefinitionId,%20com.bea.netuix.application.identifier.PlaceableDefinitionId,%20com.bea.netuix.application.identifier.PlaceholderDefinitionId,%20int)
    If you want to just effect that page on a particulr desktop use the PortalCustomizationManager.addPlaceable(...) EJB
    http://edocs.beasys.com/wlp/docs81/javadoc/com/bea/netuix/application/manager/IPageInstanceManager.html#addPlaceable(com.bea.netuix.application.manager.CustomizationContext,%20com.bea.netuix.application.identifier.DesktopDefinitionId,%20com.bea.netuix.application.identifier.PageInstanceId,%20com.bea.netuix.application.identifier.PlaceableDefinitionId,%20com.bea.netuix.application.identifier.PlaceholderDefinitionId,%20int)
    Chris Jolley
    Portal Architect

  • HELP: Problem when programmatically creating a proxy portlet

    All,
    I am programmatically creating a proxy portlet from a registerd WSRP Producer portlet. The problem is that when I create the proxy portlet, and then add the portlet to the page I don't get any mode icons in the portlet (i.e. maximize/minimize icons). Everything else works okay in the portlet though. When I create the same proxy portlet from the Admin Portal and add it to a page, I get the maximize/minimize icons so therefore I assume it's something in my code. Here is the method I wrote to create the proxy portlet:
    public String registerPortlet (HttpServletRequest request, String producerHandle, WSRPPortlet portlet) throws Exception
        ProxyPortletManager portletManager = ProxyPortletManager.Factory.getAdapter ();
        PortletDescription portletDescription = PortletDescription.Factory.newInstance ();
        portletDescription.setPortletHandle (portlet.getHandle ());
        LocalizedString lString = LocalizedString.Factory.newInstance ();
        lString.setLang ("en");
        lString.setValue (portlet.getName ());
        portletDescription.setTitle (lString);
        portletDescription.setDoesUrlTemplateProcessing (true);
        portletDescription.setTemplatesStoredInSession (true);
        log.info ("Registering portlet for producer: " + producerHandle);
        log.info ("+++++ Portlet Handle: " + portlet.getHandle ());
        log.info ("+++++ Portlet Name: " + portlet.getName ());
        int portletId = portletManager.createProxyPortlet (producerHandle, portletDescription, ProxyPortletManager.LocaleHelper.findLocale ("en"), request, PORTAL_NAME);
        return String.valueOf (portletId);
    }Any help you can offer is very much appreciated. Thank you.
    - T.C.

    I dug into this a little more myself, and THOUGHT I found the answer, but it didn't work. I saw that the PortletDescription object has a method called:
    setMarkupTypesArray (MarkupType[])
    ...and MarkupType has a method called:
    addWindowStates (String)
    So I added the following code portion before i call portletManager.createProxyPortlet (...):
    MarkupType mt = MarkupType.Factory.newInstance();
    mt.setMimeType("text/html");
    mt.addWindowStates("maximized");
    mt.addWindowStates("mimimized");
    portletDescription.setMarkupTypesArray(new MarkupType [] {mt});...and still when I add the proxy portlet to a page it doesn't have the proper maximize/minimize icons. Can anyone help???
    Thank you.
    - T.C.

  • How to programmatically create an employee with BAPI

    Is there a BAPI to programmatically create an employee number? What parameters must be provided?

    HI Chris,
    You can check the follwing links
    Re: BAPI for creating a BP in Employee role
    http://www.sapbapi.com/bapi-list/
    Regards,
    Sandip

  • Programmatically created ViewDefImpl and application module releasing

    Hello!
    What will happen with a programmatically created ViewDefImpl instance after module releasing (for Stateful release mode, I mean if module will do passivation)? How I see it gone away.
    As workaround I'm using a distinct module with Reserved relese mode, but it's no good.
    Don't inspect closely, but I think the error during actiovation caused by this reason:
    java.lang.NullPointerException
    at oracle.jbo.server.Serializer.activateDynamicVO(Serializer.java:425)
    at oracle.jbo.server.ApplicationModuleImpl.activateVOs(ApplicationModuleImpl.java:7145)
    at oracle.jbo.server.ApplicationModuleImpl.doActivateState(ApplicationModuleImpl.java:6962)
    at oracle.jbo.server.ApplicationModuleImpl.doActivateAMState(ApplicationModuleImpl.java:6927)
    at oracle.jbo.server.Serializer.activate(Serializer.java:272)
    at oracle.jbo.server.DBSerializer.activateRootAM(DBSerializer.java:330)
    at oracle.jbo.server.ApplicationModuleImpl.activateState(ApplicationModuleImpl.java:5519)
    at oracle.jbo.server.ApplicationPoolMessageHandler.doPoolMessage(ApplicationPoolMessageHandler.java:171)
    at oracle.jbo.server.ApplicationModuleImpl.doPoolMessage(ApplicationModuleImpl.java:7735)
    Code fragment from module for wich activation failed:
    >>>>>>>>>>>>>>>>>>>>>>>>>>>
    viewDef = new ViewDefImpl(QUERY_RESULTS_VO_DEF_NAME);
    for (...) {
    ViewDefHelper.addUpdateableTransientViewAttr(viewDef,
    attr.getFirstChild().getNodeValue(),
    String.class);
    viewDef.resolveDefObject();
    viewDef.registerDefObject();
    resultsVO = (SimpleXMLViewObjectImpl)createViewObject(QUERY_RESULTS_VO_NAME, viewDef);
    <<<<<<<<<<<<<<<<<<<<<<<<<<<<<
    Thanks in advance.
    Ilya.

    application module1 is for table1, table4 and table5 and Application module 2 is for different tables say table2,table3 now I got 1 requirement where I need to do insertion in table1 after insertion in table2,table3 from applicaiton module2

Maybe you are looking for

  • Safari 6.0.5 on OSX 10.7.5 crashing consistently

    Safari 6.0.5 crashing on my iMac running 10.7.5 and I'm a little stumped by them. After an automatic update Safari now crashes consistently on entering any password/username/search box entries. Safari doesn't crash on other User Accounts, with or wit

  • Can't Play DVD (with VLC, Totem, Xine, MPlayer), But Works in Windows

    I have a DVD that I can't play for the life of me in Arch. I've tried VLC, Totem, Xine, and MPlayer. And I do have libdvdcss installed. Other DVDs work fine. With VLC the DVD menu comes up, but when I hit play I get choppy sound and no picture. And I

  • Officejet 7000 networking problems with usb printer

    connected up my new officejet 7000, replacing my deskjet 1280 on my pc, running xp sp3, networked on my work network. set up as shared printer. Showing on shared printer list on network, but when I try to install network printer on another machine on

  • XML file in the Application server

    Hi all I am transferring the XML data in to application server but it is not transferring complete data . why it is not transferring complete data please tell me. Points will  be rewarded . Thanks. Prasad.

  • Strange Grub-problem

    Hi I installed kernel25-lqx from AUR but when I try to boot it I get "Error 15 file not found". Grub not installed or wrong menu.lst you think? now check this: menu.lst: # (0) Arch Linux title Arch Linux root (hd1,0) kernel /boot/vmlinuz26 root=/dev/