Dynamically modify data sources

We have a need to dynamically modify our data sources and I need to know if this is possible and what the syntax is?  Can we do this as a transaction and/or in the javascript / jquery logic of the UI?  I know that basically everything is configurable as a transaction or as a script.  I need a little assistance in configuring the below items for a data source.
DaysRetention   
Description   
IP   
MaxRetryCount   
Port   
QueryTimeout   
RetryInterval   
ServerPackage   
Writable

Data server configuration properties are easily modifed from the editor page in the Menu, and is typically an initial or configuration setting made before building application content (query templates). 
At runtime overloading the Server property within or in addition to a query template is quite easy, but no standard provisions are in place for modifying the data server configuration itself.
Why would you have a need to modify them dynamically through code?

Similar Messages

  • Question on Dynamic Query Data Source and Form Folders in Oracle Forms 6i

    Hi there -
    I have one interesting requirement in Oracle Forms.
    This is what I wanted to do.
    1. Have a LOV and Go button on Form.
    2. From LOV, I will select a pre-defined custom table and click Go.
    3. Based on the selected custom table, I have to populate the Block (Tabular Format).
    4. User should be able to do update, delete, insert on this block.
    5. User should be able to use the Oracle Form folders functionality (select only necessary column and save views etc. Std folder functionality).
    6. If user selects a different custom table name in the LOV on top, I need to refresh the data from the block based on this new table. Remaining functionality should be as it is (steps 3 to 5).
    You can see here, I am going to have dynamic query data source (Table Name as well as column mapping) on the block. I do not know before hand how many columns the user selected table has!
    This is what I have planned for this so far but I have some major questions before I can move on with this design:
    1. I am going to create a table structure with fixed number of column in form (40 cols assuming that the custom table will not have more that 40 cols). (Kind of limitation but it's okay as of now).
    2. Dynamically populate the block based on the table name selected by the user from LOV. Dynamically change the table column names based on the table selected etc.
    3. Perform insert, update, delete using PL/SQL package.
    So far it looks okay.
    Now my real question is,
    Can user still be able to user "Folders" functionality here? I have never done this kind of development before and I doubt the dynamic column naming, dynamic column data source will really work for "folders"!
    Also, I am not really sure whether user will be able to save these "folder" queries?
    Okay so form experts, can you ppl suggest me if this is really going to work? Are there any better ways to do this?
    Initially I tried to do this in OA Framework but I got stuck at because as per OAF developer guide "I cannot user OAF personalization for dynamic items, regions etc".
    For more info on that thread see this link...
    Re: setUserCustomizable issue!
    Thanks in advance for the help.

    Any suggestion anyone?

  • Dynamic parameters data source

    Database: Sybase ASA 9
    Crystal: Developer 11 SP4 , activex viewer
    Application: Powerbuilder 11
    I am embedding crystal reports into a powerbuilder 11 application. The crystal reports (.rpt files) are created in Crystal reports developer 11 sp4. The application programmatically change the DSN for the crystal reports to connect to the database that the customer is using. This works fine except when the report contains dynamic parameters (parameter select values from table in database to select from). The dynamic parameter(s) still references the DSN used in development as appose to the new (changed) DSN , although the rest of the report use the "new" DSN. I have spend many many hours on this and are at a lost on how to fix this ?
    Following is in short the code I use:
    FOR li_table = 1 TO iole_crx_report.database.tables.count
    // get connection properties collection for this table
    iole_crx_connection_info = iole_crx_report.database.tablesli_table.connectionproperties
    iole_crx_connection_info.DeleteAll()
    iole_crx_connection_info.add("DSN",itrx_database_info.Lock )
    iole_crx_connection_info.add("User ID",itrx_database_info.userid)
    iole_crx_connection_info.add("Password", itrx_database_info.dbpass)
    iole_crx_connection_info.add("UseDSNProperties",TRUE)
    iole_crx_connection_info.add("AllowCustomConnection", TRUE)
    NEXT
    iole_crx_Database.Verify()

    Hi Ludek,
    Thanks for the reply.
    The machine that I am testing on have an installed version of CR 11 SP4 development. I can change the report source for any report that does not have dynamic parameters. At the moment the reports that I am testing does not have subreports. It is a very simple two table report using dynamic parameters.
    Changing the datasoure programmatically with both data sources (DB servers) running on the machine eveything works fine. When I refer to the two data sources I mean the data source that was used to create the report and the datatsource that I want to change to in the application to retrieve data from.
    Does reports with dynamic parameters auto create subreports for the dynamic parameter(s) ?
    I have tested this and it does not seem so. That could have possibly explained this.
    I hope this gives you a clearer idea of what is happening?

  • Dynamic Recipients Data Source LOST

    BO 4.0
    I am losing my mind.  I have lots of publications, some Crystal reports with Crystal Dynamic Recipients, some WEBI with WEBI Dynamic Recipients.
    For no apparent reason, publications will just lose their dynamic recipient report mapping and start failing.  I know it's not because they are too large.  Today's was only 7 recipients.
    Then when you try to fix it, it always takes multiple tries to get the list of reports to display when selecting WEBI as a Dynamic Recipients data soiurce.  Then when I am finally able to get the list to display and select one, I click OK and never get the 'Use Entire List' box, so the request never registers.  That means there is no report to map personalization to.  This is a MAJOR problem.
    Why do mappings get lost?
    Why does the report list not display?
    Why does the List from the recipients report not display?
    Why is it happening with WEBI but not Crystal?
    Is there a publication service setting that needs to be adjusted?

    Can you check out "ADAPT01718815
    Description:
    When a user promotes or migrates a publication, certain personalized fields (such as specific document names or dynamic recipient information) are not preserved at the destination. This problem occurs in both enterprise recipient and dynamic recipient publications.
    New Behavior:
    The issue is resolved." from BI4.1 SP4 release note if your publication dynamic recipient information is lost after promotion/migration?
    Hope this helps,
    Jin-Chong

  • Crystal Reports dynamic parameters data source

    Database: Sybase ASA 9
    Crystal: Developer 11 SP4 , activex viewer
    Application: Powerbuilder 11
    I am embedding crystal reports into a powerbuilder 11 application. The crystal reports (.rpt files) are created in Crystal reports developer 11 sp4. The application programmatically change the DSN for the crystal reports to connect to the database that the customer is using. This works fine except when the report contains dynamic parameters (parameter select values from table in database to select from). The dynamic parameter(s) still references the DSN used in development as appose to the new (changed) DSN , although the rest of the report use the "new" DSN. I have spend many many hours on this and are at a lost on how to fix this ?
    Following is in short the code I use:
    FOR li_table = 1 TO iole_crx_report.database.tables.count
    // get connection properties collection for this table
    iole_crx_connection_info = iole_crx_report.database.tables[li_table].connectionproperties
    iole_crx_connection_info.DeleteAll()
    iole_crx_connection_info.add("DSN",itrx_database_info.Lock )
    iole_crx_connection_info.add("User ID",itrx_database_info.userid)
    iole_crx_connection_info.add("Password", itrx_database_info.dbpass)
                                                  iole_crx_connection_info.add("UseDSNProperties",TRUE)
                                  iole_crx_connection_info.add("AllowCustomConnection", TRUE)
    NEXT
    iole_crx_Database.Verify()

    Hi, Johan;
    There is no SDK option to change the datasource that the dynamic parameters are based on. Your only option would be to change the DSN itself to point to the new database. Or, not use dynamic parmeters.
    Regards,
    Jonathan

  • Dynamic data source on 10g requires valid data source associated in report

    I'm currently using the dynamic JDBC data source feature of PublicReportService_v11 in BI Publisher 10.1.3.4.1 (March 2011 patch applied) and it seems that the BIP report still requires a valid JDBC data source associated with it before the specified dynamic one can be properly used.
    Using SoapUI, I tried sending a runReport request with a dynamic JDBC data source for a BIP report that is associated to an invalid/dummy JDBC data source and got the following fault string:
    oracle.apps.xdo.webservice.exception.OperationFailedException: PublicReportService::generateReport failed: due to java.sql.SQLException: ORA-01017: invalid username/password; logon deniedAssociating the BIP report to a valid JDBC data source but different from the specified one on the runReport request does make this feature work - data in the BIP report does come from the specified dynamic JDBC data source. I'm just wondering if this is the right behavior for this feature? It seems a little counter intuitive because you already specified a JDBC data source in the request message which I'm assuming will be used by the report you're requesting instead of whatever is the currently associated data source on the report.

    If it is open, then try
    Named range: ConsolLink = Range("Consol File.xlsm'!Source_OpexConsol")
    And if it is not currently open, then try
    Dim W As Workbook
    Set W = Workbooks.Open("R:\Root\Sub1\Sub2\Consol
    File.xlsm")
    Named range: ConsolLink =
    Range("Consol File.xlsm'!Source_OpexConsol")
    W.Close False

  • How to select column dynamically with sharepoint list as data source in ssrs report

    Hi all,
    I am creating reports from SharePoint list but i have requirements to select the column name dynamically with SharePoint list as data source. I didn't find any way of doing this.. 
    Can anyone help me to resolve this issue..
    There is no way of specifying column name dynamically here in data set query
    <RSSharePointList xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
      <ListName>test list</ListName>
      <ViewFields>
        <FieldRef Name="ID" />
        <FieldRef Name="ContentType" />
        <FieldRef Name="Title" />
        <FieldRef Name="Modified" />
        <FieldRef Name="Created" />
        <FieldRef Name="Author" />
        <FieldRef Name="Editor" />
        <FieldRef Name="_UIVersionString" />
        <FieldRef Name="Attachments" />
        <FieldRef Name="Edit" />
        <FieldRef Name="LinkTitleNoMenu" />
        <FieldRef Name="LinkTitle" />
        <FieldRef Name="DocIcon" />
        <FieldRef Name="ItemChildCount" />
        <FieldRef Name="FolderChildCount" />
        <FieldRef Name="test_x0020_date" />
        <FieldRef Name="title2" />
      </ViewFields>
    </RSSharePointList>

    Hi MNRSPDev,
    Sorry for the delay.
    According to the current description, I understand that you want to specify column name in dataset query designer dynamically when using SharePoint list data source.
    Based on my research, this is not supported by default. As a workaround, you can use XML data source. The XML content can be embedded directly within the query. This lets you use the expression capabilities within the processing engine to build queries and
    data dynamically within the report. And it can be used for retrieving XML data directly from an external data source, passing it using parameters, and embedding it within the query.
    Reference:
    http://www.codeproject.com/Articles/56817/Dynamic-Reports-with-Reporting-Services
    Hope this helps.
    Regards,
    Heidi Duan
    Heidi Duan
    TechNet Community Support

  • When to call DSDisposeHandle when you have a DLL function acting as a repeating DS dynamic data source?

    Hi 
    I have a DLL function acting as a dynamic data source within a LabVIEW application (see attachment) - I am using DSNewHandle to dynamically allocate 2D array handle storage via the LV memory manager for the arbitrary size data arrays to be passed into the application. I had assumed that these memory blocks would (magically) be disposed when appropriate by the LabVIEW built in processing blocks that sit downstream, however this is not the case and the LabVIEW system memory usage keeps increasing until LabVIEW environment is exited (not simply if just the offending application is stopped or closed).
    So my question is how and where to mop up the used up array buffers in the application processing chain and how do I know when the buffers are actually exhausted and not being reused downstream (for instance the two 2D arrays are first combined into a complex 2D array by the re+im to complex labview operator - is the data memory out of this stage totally different from the inputs or is it some modified version of the input arrays - if totally different and the input 2D arrays are not wired into any other blocks why does the operator not dispose the input data stores?)
    Perhaps Im going about this the wrong way having the DLL data source dynamically allocate the data space arrays? Any advice would be gratefully received
    Regards
    Steve
    Solved!
    Go to Solution.
    Attachments:
    DataGetFloat.PNG ‏23 KB

    Then instead of doing:
    DLLEXPORT int32_t DataGetFloatDll(... , Array2DFloat ***p_samples_2d_i, ...)
    if ( p_samples_2d_i )
    // *p_samples_2d_i can be non NULL, because of performance optimization where LabVIEW will pass in the same handle
    // that you returned in a previous call from this function, unless some other LabVIEW diagram took ownership of the handle.
    // Your C code can't really take ownership of the handle, it owns the handle for the duration of the function call and either
    // has to pass it back or deallocate it (and if you deallocate it you better NULL out the handle before returning from the
    // function or return a different newly allocated handle. A NULL handle for an array is valid and treated as empty array.
    *p_samples_2d_i = (Array2DFloat **) DSNewHandle( ( sizeof(int32_t) * 2 ) + ( sizeof(float) * channel_count * sample_count ) );
    // Generally you should first try to insert the data into the array before adjusting the size
    // the most safe would be to adjust the size after filling in the data if the array gets bigger in respect to the passed in array
    // and do the opposite if the adjusted handle happened to get smaller. This is only really important though if your C code can
    // bail out of the code path because of error conditions between adjusting the handle size and adjusting the array sizes.
    // You should definitely avoid to return from this function with the array dimensions indicating a bigger size than what the
    // handle really is allocated for, which can happen if the array was resized to a smaller size and you then return because of errors
    // before adjusting the dimension sizes in the array.
    (**p_samples_2d_i)->Rows = channel_count;
    (**p_samples_2d_i)->Columns = sample_count;
     you should be doing:
    DLLEXPORT int32_t DataGetFloatDll(... , Array2DFloat ***p_samples_2d_i, ...)
    MgErr err = NumericArrayResize(fS /* array of singles */, 2 /* number of dims */, (UHandle*)p_samples_2d_i, channel_count * sample_count);
    if (!err)
    // Fill in the data somehow
    // Adjust the dimension sizes
    (**p_samples_2d_i)->Rows = channel_count;
    (**p_samples_2d_i)->Columns = sample_count;
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • How to dynamically populate data from a data source

    What I am trying to do:
    I am building a simple blog reader application with two screens, 'Home' and 'FeedR'.
    The data needed for this to work is an excel table 'Blogs'; which has the following columns:
    BlogName, image, Source
    I have created about 6 REST data sources from the RSS feeds of these blogs and added their names into the excel table.
    The home has an "Image Gallery with Text", which has the blog image and BlogName on it. On the select event, I want to navigate to the second screen and populate the text gallery with the feed details.
    The Problem:
    So, when I have only feed, I can do something like:
    'Navigate(FeedR, ScreenTransition!UnCover);Collect([@blogposts], rss_aspx!channel!item)'.
    When I have more than one feed; I would like to be able to do something like:
    'Navigate(FeedR, ScreenTransition!UnCover);Collect([@blogposts],
    (Blogs!Source)!channel!item)'.
    The Question:
    Is dynamically populating the name of the data source work? If yes, how do I do it? If no, is there a way around it?
    I was looking at UpdateContext(), but does not seem like a feasible option.
    Thanking you...
    Hemanth

    you wanted a onchange for a htmlb:inputfield which would also trigger server event. try the following code.
    <htmlb:inputField id            = "test"
                                alignment     = "LEFT"
                                size          = "6"
                                required      = "TRUE"
                                doValidate    = "TRUE"
                                type          = "INTEGER"
                                 />
    <bsp:htmlbEvent id="myid" onClick="myonclick" name="ValueChanged" />
      <script for="test" event=onchange type="text/javascript">
    alert(this.value);
    ValueChanged();
    </SCRIPT>
    if the value in the inputfield is changed it would trigger a alert at the client side and also trigger a server event. now you can caputre the value in oninputprocessing.
    Hope this helps.
    do let us know if you need help in how to capture this value in oninputprocessing.
    Regards
    Raja

  • Can we set the dynamic data source when using getReportParameters() ?

    Hello!
    I have a report where one of its parameters refers to a list of values (LOVs). This list of values is an SQL Query type. When the data source used in the report is defined in the BI Publisher server, I'm able to get the report parameters using the getReportParameters() function in my application. However, if the data source is not defined the function throws an exception, which is understandable.
    I decided to dynamically set the data source so that even if the data source used by the report is not defined in the BI Publisher server, it still will be able to get the LOVs for the parameter. I tried setting the JDBCDataSource of the dynamicDataSource for the ReportRequest object that I passed to the getReportParameters() function. Please see the sample code below:
    reportRequest.dynamicDataSource = new BIP10.BIPDataSource();
    reportRequest.dynamicDataSource.JDBCDataSource = new BIP10.JDBCDataSource();
    setReportDataSource(reportRequest.dynamicDataSource.JDBCDataSource, connectstr, jdbc, dc); //function to set the values for JDBCDataSource object
    reportParams = webrs.getReportParameters(reportRequest, uid, pwd); //call the getReportParameters
    I was expecting this to work as this is what I did to dynamically set the data source before calling the runReport function. So, my question is -- can we set the dynamic data source when using getReportParameters() ? I tried this both in versions 10g and 11g. It does not seem to work on both versions.
    Regards,
    Stephanie

    report_id column of apex_application_page_ir_rpt can help us uniquely identify each saved report.
    We can assign this report_id value to a page item and this page item can be put in the Report ID Item text box of the Advanced section of the Report Attributes page of the IR.
    This should load the saved report identified by report_id and you can get rid of javascript
    Regards,
    Vishal
    http://obiee-oracledb.blogspot.com
    http://www.packtpub.com/oracle-apex-4-2-reporting/book
    Kindly mark the reply as helpful/correct if it solves your problem

  • Dynamic File Name in Data Source?

    In Data Model, there is a option "File" as Type. My question is can file name be dynamic, say I set a parameter "ReportID", can this parameter be part of file name. something like
    {$ReportID}.xml
    or
    {:ReportID}.xml
    If yes, what is the syntax.
    Thanks.

    I don't think you can do that. When you speficy 'File' as the type for the Data source, it expects an existing XML data file stored in the directory that has been set up by the Administrator.
    There is no way to define a parameter for the file name and then use this instead..
    Thanks!
    Edited by: BIPuser on Mar 1, 2010 1:10 PM

  • Dynamic data source in Excel Pivot Table

    Hello there,
    I am trying to have dynamic data source in pivot table using INDIRECT but getting the error "Reference not valid". Here is how I setup the reference:
    Named range: ConsolLink = "'R:\Root\Sub1\Sub2\Consol File.xlsm'!Source_OpexConsol"
    "Source_OpexConsol" is defined in the source file as a dynamic name using offset formula.
    In the pivot data source, I have tried "=INDIRECT(ConsolLink)" as the data source but that does not work.
    I have also tried using INDIRECT in ConsolLink and just referencing "ConsolLink" as the data source. That does not work either.
    I am not using Power Pivot. Appreciate it if someone can help.
    Thanks.

    If it is open, then try
    Named range: ConsolLink = Range("Consol File.xlsm'!Source_OpexConsol")
    And if it is not currently open, then try
    Dim W As Workbook
    Set W = Workbooks.Open("R:\Root\Sub1\Sub2\Consol
    File.xlsm")
    Named range: ConsolLink =
    Range("Consol File.xlsm'!Source_OpexConsol")
    W.Close False

  • Using an Excel file as a dynamic data source? Opinions needed...

    I have posted this topic before, but as always; in order to get the relevant correct answer you have to ask the correct question.
    I'm trying to create a number of Pricelists linked to an Excel/CSV file. I have a Excel file that contains Pricelist information which is Product specific.
    I have had a number of suggestion that follow:
    A direct link to the Excel file. PROs: Excel file can be uploaded on FTP and overwritten if (and when) amended. Linking this is easy peasy in Dreamweaver. Person browsing can download info straight away on request - no hassle. CONs: Simply, not everyone has Excel and those who don't can not access the information.
    Import Excel file as tabular data. PROs: Fairly easy to do in Dreamweaver. Person browsing can see info straight away. CONs: Can be time consuming on larger Excel files. NOT amendable (so a number of price changes becomes a big job). Can't simply overwrite Excel file on FTP. Larger Excel files can take a lot of page space and thus require tonnes of scrolling).
    Use the Excel file as a dynamic data source. --Not entirely sure how I would go about doing this (any suggestions/links/tutorials etc)-- PROs: ? CONs: Contributor added this suggestion is not a good idea as it performs poorly on the web.
    Create a dynamic page using a database and import the Excel file to that....or maintain the price list in the database rather than an Excel file. --Again not entirely sure how I would go about doing this (any suggestions/links/tutorials etc)-- My understanding of this option is that it will require XML data and SPRY work. Is this correct? Can this be someone who is not an advanced user?
    If once again, I'm off the mark and better suggestions can be thought - please do so.
    As you can see I'm at a bit of a crossroads so an suggestions, comment, help, links, tutorials or applause would be greatly received.
    Thanks in advance and looking forward to seeing the comments this throws up!

    Hi
    Although not everyone has excel just about everyone can open csv files in some way, if not offer the option to download "open office" which is free for the pc, as for the mac they have a program installed by default to use csv files.
    The import tabular data is not really an option for the reasons stated.
    Use excel as data source - not a good idea, requires asp.net to work correctly otherwise it does run slow and is not recommended if you are expecting more than a very small number of users.
    As for the dynamic with database, this can be done with xml and spry but if you have a large amount of data this is almost as bad as the option above. You are probably better creating a database and importing your excel spreadsheet into this, for tutorials on creating a php/mysql database and set-up of testing server see - http://www.adobe.com/devnet/dreamweaver/application_development.html.
    No matter which way you go with the last option it will require a fair amount of knowledge and experience to do correctly, efficiently and securely.
    PZ
    www.pziecina.com

  • Identify modified date/time and name of SOURCE file

    I can't seem to find a way to store/retrieve the last-modified date/time of the SOURCE file (as well as filename) used to create a PDF. I looked into the default metadata, but it seems to store only the last-modified date of the PDF.

    I'm sorry, maybe I'm a little slow, but I would need more detailed specs on how to solve the problem. Is this something you have implemented yourself? If so, how?

  • Modifying Standard Data Source

    Hi All,
               I am using standard data sources in CRM (0crm_oppt_i and 0crm_oppt_h).I need to modify these standard DS by adding some field in Extract structure.Can any one please provide me detailed step by step approach for doing this.If there is any code to be written can anyone send a skeleton of that code .Please provide detailed approach as I am new to this BW aspect.Thanks in advance.
    Regards
    Souresh

    Hi sarkar
    yes you have to write an ABAP code to fill the data in the newly added field in the extract structure.
    1)Go to RSA6 and find the data source you need to enhance.--> Display
    2)Double click on the Extract structure.
    3)Now click on the append structure button to add the required field on to the existing structure.
    4) add your required fields with ZZ appended to your field.
    5) Save & Activate the append structure. Then go back and make sure you activate the extract structure also.
    6) Now again go back to RSA6 and select your Data Source. But this time go to change Data Source to remove the hide option to the enhanced fields. By default they’ll be in hide mode. If you don’t remove the hide field then this field will not be seen in BW side.
    7) Now go to SE38 to write the logic to populate the data into the enhanced field. Program name to write the logic is ZXRSAU01.
    8) Check + Save + Activate.
    9) Check in RSA3 if data is populated as per your requirement.
    10) Replicate your Data Source.
    11) Now go to Data Source/ Trans. Structure screen. Now you can see the enhanced field on the right hand side.
    Go to CMOD.
    1. To  Save&#61664; give Description &#61664; create&#61664;create new project—give the project name
    2. Select the radio button Enhancement Assignment and give the Enhancement name you want and press Enter.
    3. If the Enhancement is already assigned to some other project it will display the same message saying it is already assigned it some other project.
    Click on&#61664;4. If the Enhancement is not assigned to any project save.
    5. Give RSR00001 (For Variable Exits)
    6. Activate the Project.
    7.  and click on the components button.&#61664;Now go to Display
    8. Now Double click on EXIT_SAPLRRS0_001. In that you can see an include ZXRSRU01.
    9. Double click on that include, it will say program name ZX…… are reserved for includes of exit Functions groups.
    10. Just Press Enter.
    11. It’ll Pop-Up a window  Create Object.&#61664;saying Include ZX…. Does not exits
    modify according to your requirements.
    Hope it will help u.
    Thanks & Regards
    KK

Maybe you are looking for