Multiple data sources for one datagrid?

Hello Everyone,
I have a page that has a datagrid called dgMainGrid. I have
it bound to an HTTPService and it updates fine. But I need to
dynamically bind it to another HTTPService when the user clicks a
button. How can I do that?
Thanks,
Anthony

Come to think of it, is this even possible? How does a datagrid use its dataField parameter to lookup data? I am guessing data_array[row_index][col.dataField] would determine the value of a single cell at row_index and col. If so, my naive approach would require me to override the bracket operator so that the appropriate value is returned..
e.g. when a simple array of objects is used, you have [{name:John, lastname:Smith}], datagridcolumns dataField is then set to "name". Now I will have two separate arrays:
arr1: [{name:John, lastname:Smith}]
arr2: [{name:Smith, lastname:John}]
mergedarray will have a reference to both of them. Then when getKey("name", 1) is called, it will return a special key which can be used to access the name property from array 1, something like "name1". If I cannot override the bracket operator, mergedarray[0][name1] will return nothing.
I remember reading somewhere that this kind of override is not possible. Any ideas?

Similar Messages

  • Multiple Data Sources In One Logical Table

    I am new to OBIEE and I have came accross an issue. I appologize if this information is in the forum somewhere but I have searched and cannot find it.
    My situation is that I would like to have one logical table that contains multiple data sources which have all the same columns. I already have session variables setup to differentiate the user's security through a row-wise variable for a specific column and a session variable for another column which determines the user's association to the data source in which they belong to. This security works well when the data sources are seperated in the Business Model and Mapping portion but the issue that arises is that the user's cannot share reports when the data sources are seperated in the BM&M.
    I have dragged and dropped a table from the Physical model to the BM&M, I then dragged the second data source (with same meta data structure) over to the "Sources" folder in the first data source table in the BM&M. On the Content tab or each data source table I have defined the WHERE clause as such, where VALUEOF(NQ_SESSION."SCHOOL") session variable is my row-wise column filter and the VALUEOF(NQ_SESSION."GROUP") filter is my data source determinative:
    sandbox."".SANDBOX.OBIEE_CROSS_ENROLLMENTS.HOME_SCHOOL = VALUEOF(NQ_SESSION."SCHOOL") AND sandbox."".SANDBOX.OBIEE_CROSS_ENROLLMENTS.DATA_SOURCE = VALUEOF(NQ_SESSION."GROUP")
    Unfortunatley this only returns values in the BI Answers for the first drag and drop Pysical table in the BM&M layer and not the second Physical table drug into the "Sources" folder. I have also tried to create a new logical table and drag both tables into the "Sources" folder to no avail. I have experimented with the Fragmentation content on the "Content" tab of the seperate logical tables, checking the "This source should be combined with other sources at this level", which gives me an error in BI Answers that a column does not exist which really does.
    What could I be missing? Advanced thanks to those who reply.
    Thank you,
    Kyle

    Stijn,
    Thank you for the article link. That was very helpful! It seems that I had a few things off as you do need the "This source should be combined with other sources at this level." checked. In my two table source columns for DATA_SOURCE I defined a literal ('086496' and '085597' for the other) in the Column Mapping tab. I pasted the following in the Fragmentation content, checking the "This source..." box on the Content tab:
    eSIS.SANDBOX4_SCHOOLS.DATA_SOURCE = '086496'
    And pasted the following into the WHERE clause, checking "Select distinct values" on the Content tab:
    sandbox4."".OBIEE.NWOCA_SCHOOLS.SCHOOL_CODE = VALUEOF(NQ_SESSION."SCHOOL") AND sandbox4."".OBIEE.NWOCA_SCHOOLS.DATA_SOURCE = VALUEOF(NQ_SESSION."GROUP")
    This took care of my user's security, utilizing the session variables in the WHERE clause. I am now able to generate reports that only one user can access from one data source and share that same report with another user who can only see data from the other data source.
    Many thanks!!!

  • Multiple data sources for 1 info object

    hi all,
    i am working with ods 0fiap_003 info source overview u can see for 0comp_code
    Company Code: Attributes and Tests (Flexible Update) this is a transaction data  data source.
    G/L Account: Attributes (Flexible Update) this is a transaction data  data source
    G/L Account: Texts (Flexible Update) 0GL_ACCOUNT_TEXT   this is a transaction data  data source
    and there r master data data sources for these objects
    G/L Account  hierarchy text  attributes r available.
    so only for 0gl_account  5 data sources available.
    3 master data ds.2 flexible data trans data data sources.same for comp code.
    so how can we map for these 5 dsources  in this scenario.
    i am going to create process chains for master data(3) transaction data(1).
    should i put trans .data  info packages in the transaction data process chain
    ex: G/L Account: Attributes (Flexible Update) this one.
    plz suggest me
    regards
    sridhar

    Hi Sri,
    There can be multiple datasources assigned to a single master object. Only they should be unique per source system.
    Regarding process chain, u should include the infopackage for transaction data in trans data process chain. This is because ur job scheduling for master and transaction load would differ. So the process chains should be separate.

  • PROBLEM  TRANSFERRING   MULTIPLE   DATA  ENTRIES    FOR  ONE KEY-FIELD.

    DEAR   EXPERTS ,
       I  HAVE  TRANSFERRED  DATA  FROM  THE  FINAL  INTERNAL  TABLE  OF  MY  ABAP REPORT (NOT ALV)  TO  CUSTOM  Z-TABLE  CREATED  IN  SE11.
    BUT  MY  PROBLEM  IS  :  I   COULD  NOT   TRANSFER  MULTIPLE   DATA  ENTRIES   FOR  A  PARTICULAR  FIELD.
    FOR  EXAMPLE :  IN  TABLE  EKKO  THERE  ARE   FOUR  EBELN-4900006375  AND  FOR  THAT  DIFFERENT  EBELP S  ARE
    PRESENT.  I  COULD  TRANSFER  ONLY  THE  FIRST  ENTRY ,  THAT  IS :  EBELN -  4900006375  AND   EBELP - 0010,
    AFTER  THAT  THE  ZTABLE  IS  NOT  GETTING  UPDATED  TO  EBELN-4900006375 FOR  EBELP - 0020  AND  SO ON.
    I  HAVE  TRIED  ALL  THE  '  MODIFY, INSERT,  UPDATE  '  STATEMENTS.  I  HAVE  USED  AT - USERCOMMAND - HIDE  AND  CHECKBOXES.
       PLEASE   SUGGEST   A   SAMPLE   CODE   FOR   THIS.
    Moderator message: please post again, but not in all upper case.
    [Rules of engagement|http://wiki.sdn.sap.com/wiki/display/HOME/RulesofEngagement]
    Edited by: Thomas Zloch on Jun 19, 2011 10:05 PM

    There are actually 5 queries in this report now. From what I understand about a union query, I don't think it will work here because the data being returned in each of the queries is so different. I basically need to know how to make all the criteria for each individual to be displayed before proceeding to the next data set, which will include the same data as the first, but for the next employee, and so on. I need to basically create a repeating frame with each individual's respective data I guess, but every time I do, it tells me that it's referencing an invalid group.

  • Multiple data sources for a (advanced)datagrid?

    Hi all,
    I have two arrays of objects coming in from two different sources keyed on a single column called "id". They have the exact same column structure. I want to show these in a grouped column structure in advanced data grid. The question is can I do that without manually merging the two arrays?
    Concrete example:
    Array1: [{id:1, name:"Cooper", zip:"94536"},
                 {id:2, name:"Corolla", zip:"94404"}]
    Array2: [{id:1, name:"One", zip:"94555"},
                 {id:2, name:"Camry", zip:"94403"}]
    This will look like:
    Id
    Name
    Zip
    Source1
    Source2
    Source1
    Source2
    1
    Cooper
    One
    94536
    94555
    2
    Corolla
    Camry
    94404
    94403
    I would like to do this without creating an array like:
    [{id:1, name1:"Cooper", name2:"One", zip1:"94536", zip2:"94555"},
    {id:1, name1:"Corolla", name2:"Camry", zip1:"94404", zip2:"94403"}]
    Charts are quite good at this since you can assign different data sources to different series and the axis defines the key on which the data will be merged. However, I could not find anything similar for tables.
    Any pointers?
    Thanks so much!

    Come to think of it, is this even possible? How does a datagrid use its dataField parameter to lookup data? I am guessing data_array[row_index][col.dataField] would determine the value of a single cell at row_index and col. If so, my naive approach would require me to override the bracket operator so that the appropriate value is returned..
    e.g. when a simple array of objects is used, you have [{name:John, lastname:Smith}], datagridcolumns dataField is then set to "name". Now I will have two separate arrays:
    arr1: [{name:John, lastname:Smith}]
    arr2: [{name:Smith, lastname:John}]
    mergedarray will have a reference to both of them. Then when getKey("name", 1) is called, it will return a special key which can be used to access the name property from array 1, something like "name1". If I cannot override the bracket operator, mergedarray[0][name1] will return nothing.
    I remember reading somewhere that this kind of override is not possible. Any ideas?

  • Multiple Data Source (for FAILOVER) in Easy Connect Naming method

    Hi All,
    I was wondering if there is a way to specify multiple addresses as part of data source property in the connection string when trying to connect to Oracle with Easy Connect Naming method? this is basically for failover scenario.
    I know its straight forward, if i use Connect Descriptor. But not sure how to do it with EZConnect
    For ex. this is what I want to achieve with EZConnect
    sales.us.example.com=
    (DESCRIPTION=
    (ADDRESS_LIST=
    (LOAD_BALANCE=off)
    (FAILOVER=ON)
    *(ADDRESS=(PROTOCOL=tcp)(HOST=sales1-server)(PORT=1521))*
    *(ADDRESS=(PROTOCOL=tcp)(HOST=sales2-server)(PORT=1521)))*
    (CONNECT_DATA=(SERVICE_NAME=sales.us.example.com)))
    I appreciate your suggestions...
    Thanks

    You might get better answers in one of the DB forums from a generic fail-over perspective as EZconnect isn't specific to ODP.NET.
    I don't know if there's a way to do it or not with EZConnect version of the connect string, but you can certainly provide the fully qualified connect string without using tnsnames.ora..
    constring = "data source=(DESCRIPTION=(ADDRESS_LIST=(LOAD_BALANCE=off)(FAILOVER=ON)(ADDRESS=(PROTOCOL=tcp)(HOST=sales1-server)(PORT=1521))(ADDRESS=(PROTOCOL=tcp)(HOST=sales2-server)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=sales.us.example.com))); user id=scott;password=tiger"
    Hope it helps,
    Gres

  • Impossible to configure multiple data sources for EJB's in a single project

    Hello everyone,
    I have jDev 10.1.3 installed and I'm doing some research on EJB 3.0. In the jDev help files, it is mentioned that a project can contain only one EJB module. Correct me if I'm wrong but to me, this means that there is only one data source configured for a module/project.
    But what if I need 2 EJB's linked to 2 different data source in my project? Is the only solution available is to create 2 different project and add one ejb to a project and the other ejb to the second project and then add the second project as a project dependency to the first project?
    Thank you for your help
    Alex

    Multiple Datasources may be injected into a EJB 3.0 entity bean POJO with resource injection.
    http://www.onjava.com/pub/a/onjava/2006/01/04/dependency-injection-java-ee-5.html?page=3

  • Adding multiple data sources for P6 Analytics Star 3.4

    I need to extract data from 3 data sources and put into one star. I installed the necessary software, did the necessary configurations as per the documentation provided.
    Example:
    C:\star_1\star\etl_homes\staretl
    C:\star_1\star\etl_homes\staretl02
    C:\star_1\star\etl_homes\staretl03
    When I run the staretl process for 2nd source or 3rd source, I am not sure why the startetl.properties in C:\star_1\star\etl_homes\staretl\res is getting updated (Source changes to 2nd source or 3rd source as per the run). DBLINK01 is also getting changed.
    Please advise.
    Thanks

    Hallo,
    At the moment I do not see how your problem relates to OBIEE.
    Which applications are you using (and which version of each)?
    Regards,
    Ian Bristow

  • Multiple Data Sources for XML Publisher in APPS?

    Is it possible to draw data from two different reports (i.e. two different data sources) into a single template, using XML Publisher in APPS?

    Gareth is correct if it's only ONE report. It's my understanding that it's two reports that you want to merge into one report. If this is the case then the options I gave you are still correct.
    Option 3: You could add a third option which is to keep the reports the same, set the output in the concurrent program(s) to xml. You will still have to merge the xml files and apply the format template which would require a javaConcurrentProgram.
    Option 4. You could do option three but with a twist. Create two format templates, apply them to each xml output, then use the pdfMerger utility to create a single document. This may or may not work based on your requirements.
    Ike Wiggins
    http://bipublisher.blogspot.com

  • Multiple admin sources for one administrator

    I'm looking for advice please.
    I barely manage my way through this but have used timbuktu for several years. I have had to move the network and change hardware and now want to resetup, I would need new licenses.
    I'm wondering if the 10 seat ARD would be better (and more Mac-like, which would give me a chance), as the only administrator I work from 2 offices and sometimes on a laptop. Does the software allow me to do that, I know its only single administrator but would it allow that single admin to work from different machines - which when not used by the admin would be client machines. Or do I ask too much?

    It depends on exactly what you're asking. If you're asking if it's possible with ARD to have multiple administrators for a given client system, yes, it is. If you're asking if the license for ARD allows you to install a single copy of the ARD administrator application on more than one system, then sorry but no, it's not, even if the admin systems will not be used simultaneously. If you want the ARD admin application on more than one system, you have to buy the appropriate number of copies of ARD.

  • CFTransaction & Multiple data sources

    We have the need to update to multiple data sources under
    CFTransaction. We have two MSSQL databases so I was able to create
    a view in one to the other and that works (unless someone knows of
    a problem that could cause). But we also have a MSAccess db that
    gets hit too under the same CFTransaction. CF does not allow you to
    have multiple data sources under one CFTransaction. If all the
    tranasction control is on the db side, why does CF care if there
    are different data sources?
    Thanks.

    As I said in my original post, in order for a transaction to
    span multiple databases, you need to do what's called "2-phase
    commit" or "distributed transactions". This is not a trivial thing
    to do, nor is it something that is often needed (especially in
    Coldfusion, which is 99% of the time talking to a single database).
    Why do you need to do 2-phase commit? and why isn't it
    trivial?
    "2PC is an acronym for 2 Phase Commit. This is a protocol by
    which data being committed to a database is committed in two
    phases. In the first phase, the transaction processor checks that
    all parts of the transaction can be committed. In the second phase,
    all parts of the transaction are committed. If any part of the
    transaction indicates in the first phase that it cannot be
    committed, the second phase does not occur. ODBC does not support
    two-phase commits."
    http://docs.openlinksw.com/virtuoso/twopcimplementation.html
    I don't think Access supports 2-phase commit. Access isn't
    really intended for the kinds of things that need 2-phase commit,
    which Microsoft readily admits (hence MS SQL Server).
    > My thought is that it is not allowed because CF only
    remembers one data source per cftransaction therefore can only send
    one commit or rollback instruction. If that's the case, it sounds
    like a simple enhancement.
    No, this isn't allowed because distributed transactions is a
    non-trivial thing. This isn't all handled on the database side, as
    you reference. If you're dealing with one datasource, yes, it does.
    Once you pull in a 2nd datasource, you need something that can talk
    to all databases involved (a transaction coordinator) and 1) check
    to make sure everything can be committed safely then 2) commit
    everything (hence 2-phase commit).
    Basically, you're trying to do something that's non-trivial,
    you don't understand why it's non-trivial, so you're getting
    frustrated. I realize you're not a Java shop. I was simply trying
    to explain to you why it was non-trivial, and a method to work
    around that if you so desire.

  • Configure a single ODI install for multiple Data Sources in ERPI

    I am setting up multiple data sources in ERPI to point to different EBS instances. How would I go about setting up ODI to support that without multiple installations of ODI? or is multiple installs the best way to go, from an 'ease of management' perspective?
    Thanks!

    First off - Have no knowledge of ERPi - Just googled it.
    If its any help, we have multiple instances of EBS on the same box, we have seperate DWH (and ODI Work / Master Repos) environments aligned to these instances. An ODI Agent can only communicate with one ODI Work repository, hence we have Multiple Agents so we can use the EBIZ -> DWH pairs simultaneasouly.
    Maybe someone will come along and tell us how it could work differently, until then - its works for us!

  • Are Multiple (Concurrent) ABAP Data Sources for AS Java UME Possible?

    Hi All,
    We have a solution which is using a JAAS logon module for partner authentication. for reason's I won't go into we have decided that it is best to use an ABAP data source. We will also be using the same JAAS approach for other ABAP applications in the future. Ideally we would configure the same JAAS server to use ABAP UME data sources from ABAP server 1 and ABAP server 2.
    I see there are provisions in the documentation for multiple UME data sources of different types but it doesn't clearly say about different concurrent data sources. IS this even possible? If so is it wise?
    Thanks,
    Doug

    Julius,
    Thanks again for your reply. This is confusing. We have an existing .Net logon application where we centrally administer accounts and where users log in. On successful login they are issued a .net Auth cookie. Our JAAS module takes that cookie, does a web service call back to .Net and authenticates them. So authentication is done on the basis of the .Net cookie, not the java UME. We simply need a java ume to allow users to execute the application that invokes the JAAS module. The application invokes the JAAS module and if they successfully authenticate they are forwarded to the requesting SAP application. So the JAAS ume is really just needed to allow various users to run the JAAS invoking application starter. Ideally we'd use the same starter application for users of SAP Application 1,2,3, etc.
    So that's where the question came from on multiple ABAP  UME data sources for a single Java instance.
    Hope that makes sense. Regardless the answer I guess is not possible but you see the method to our madness. And yes it is madness.
    Thanks,
    Doug

  • Single .rar file for multiple data sources

    Can we configure multiple data sources into single .rar file? . Currently,
    we are creating a seperate .rar file to configure each datasource by
    'only' modifing ra.xml file. This is proving to be a tedius operation in
    some cases when the application is integrated with multiple data sources.

    Siva-
    Unfortunately, no. One of the limitations of the resource adapter spec
    is that it doesn't provide a means of specifying multiple separate named
    configurations, so you can only have a single configuration.
    If you need more flexibility, you may want to consider programatically
    building up the PersistenceManagerFactory and then binding them into
    JNDI.
    In article <cqscdo$n1o$[email protected]>, Siva wrote:
    Can we configure multiple data sources into single .rar file? . Currently,
    we are creating a seperate .rar file to configure each datasource by
    'only' modifing ra.xml file. This is proving to be a tedius operation in
    some cases when the application is integrated with multiple data sources.--
    Marc Prud'hommeaux
    SolarMetric Inc.

  • Any examples of a data template using multiple data sources?

    I'm looking for an example report using multiple data sources. I've seen one where they do a master/detail but I'm just looking to combine results in sorted order (sorted across all data sources). The master/detail used a bind variable to link the two defined queries, I'm thinking what I want won't have that, so I'm lost on how to make that happen. I have reports using multiple sql queries and there is a way in the data source pulldown to tell it to combine the data sources. It appears to be a more manual process with data templates, if it's even possible.
    Any pointers/links would be appreciated.
    Gaff

    Hi Vetsrini :
    That's just it. Mine is simpler than that. There is no master/detail relationship between the two queries. I have the same exact query that I run in two databases and I want to merge the results (ordered, by, say eventTime) in one report. So I think my results are going to be two separate groups (one for each data source) which I'll have to let BI merge vis XSLT or whatever it uses. That's fine for small result sets but for larger ones, it would be nice if the database did the sorting/merging.
    Gaff

Maybe you are looking for