Creating dynamic datasources. Is this possible?

Can I create a 'subset datasource' from an existing datasource
and then pass this subset datasource to the <jbo:RowsetIterate>
Let's assume I have a datasource containing 100 records.
How is is possible to create a new datasource from the exiting datasource
which will contain 10 records and then this new data source will be passed
to <jbo:RowsetIterate>?
I'd like to write a JSP Tag which reads the datasource and creates a subset datasource
dynamically
public class SubsetDS extends TagSupport
     public int doStartTag() throws JspException
        ApplicationModule am  = dataSource.getApplicationModule();
        ViewObject vo = am.findViewObject("V0");  
         while(vo.hasNext()){
        Row r = vo.next();
               // Iterate based on a certain condition and put the new records
        // in a dynamically created DataSource
Is this possible?

I don't know about the custom JSP tag part, there is a <jbo:CreateViewObject> tag and ApplicationModule.createViewObject() methods for defining ViewObjects at runtime. We were not able to locate a mechanism for actually running a query against one VO to select rows for a second VO (whether defined at compile-time or runtime). We created a VO at runtime so we could base it's result set on another VO.
See "Ways to Add a View Object Instance to the Data Model at Runtime" topic in JDev help (we're using 10.1.2, but there's a <jbo:CreateViewObject> tag going back to at least 9.0.3.3); I located using JDev's Help's text search for createviewobject.
In our case, because the two queries were related (subset), we obtained the where clause from the VO that we defined at compile-time and whose where clause is being set at run time by values passed in from an HTML query form. We then applied that where clause to the dynamically created VO to get the desired subset.
Hope that gives you a starting place and helps.

Similar Messages

  • Using XML Datasource - is this possible

    Firstly, let me say I have searched the web, this forum and the tutorials etc to find something useful to point me in the right direction but had no luck thus far.
    I have some XML that looks like this;
    <StaffList>
        <Staff StaffId="1" Name="Fred Nerk" Mission="JMO">
            <SAC Code="001001"/>
            <SAC Code="001002"/>
            <SAC Code="001003"/>
        </Staff>
        <Staff StaffId="2" Name="John Doe" Mission="UKDEL">
            <SAC Code="001002"/>
        </Staff>
        <Staff StaffId="3" Name="Jane Citizen" Mission="UKREP">
            <SAC Code="001002"/>
        </Staff>
        <Staff StaffId="4" Name="Kim Hughes" Mission="JMO">
            <SAC Code="001002"/>
        </Staff>
    </StaffList>
    We have a dropdown list that contains the Name attribute of each staff element.  We have done that by using a Datasource and binding it to the XML.  Easy.
    Once a Staff member is selected in the dropdown list we would like to populate a control with the value of the "Code" attribute from the child SAC Code element(s) for the selected Staff member.  We would also like to populate a control with the "Mission" attribute for the selected Staff element.
    Is this possible using LC designer?  If so what tactic can we use to do it?  Any help appreciated.  Happy to reshape the XML if it makes it easier.

    Hi,
    I also think you will need some code but it wont be a lot.  In the change event of you dropdown list you will need something like;
    var  
    staffDataNode = $record.resolveNode("StaffList.Staff.(StaffId.value == " + this.boundItem(xfa.event.change) + ")" );SAC.clearItems();
    for   (var i=0; i<staffDataNode.SAC.all.length; i++ ){
         SAC.addItem(staffDataNode.SAC.all.item(i).Code.value);
    Mission.rawValue
    = staffDataNode.Mission.value;
    where SAC and Mission are the controls for the dependent values
    Attached is my form to test the above code.
    Bruce

  • Invalid Extract Structure error while creating "Generic DataSource" on a view...

    Dear All,
    I have created a view on following tables MARA, AFKO and MSEG. The Table/Join condition is as follow:
    AFKO--AUFNR  = MSEG--AUFNR
    AFKO--PLNBEZ = MARA--MATNR
    I have included all the fields from MSEG and other all fields from MARA and AFKO. The view is created successfully and contents/records are also being fetched/displayed from this view.
    See screen shot as well:
    But when I go to RSO2 to create a "Generic DataSource" on this view. I get a series of warning messages and then error message "Invalid Extract Structure" and therefore I'm unable to create my DataSource on this view. See below screen shots of warning and error messages.
    Other warning messages are as follow:
    Field GAMNG with reference field MEINS: Reference table MARA is replaced by ZOXPRD0150
    Field PLSVB with reference field PLNME: Reference table PLKO is replaced by ZOXPRD0150
    Field PLSVN with reference field PLNME: Reference table PLKO is replaced by ZOXPRD0150
    Field LODIV with reference field MEINS: Reference table MARA is replaced by ZOXPRD0150
    Following is the screen shot of error message:
    1. How can I get rid of this error message and be able to create my "Generic DataSource" on top of this "View"?
    2. What should I do to resolve the above warning and error messages?
    I will appreciate your reply.
    Many thanks!
    Tariq Ashraf

    Hi Vipul,
    as you can find in CKIS table, the reference feild for value feild "WERTN" is missing.
    As per the table the reference feild is HWAER. This should have been used in place of FWAER.
    Try mentioning this in your view and this should work.
    Also I am a little enthusiastic to know, what are you trying to get from the datasource.
    If you are trying to get the cost estimate of multi level BOM, not (just one child level), then this approach may not work.
    There is a BAPI that gives such itemization split. Just FYI, in case you are looking for multi level explosion.
    "BAPI_COSTESTIMATE_ITEMIZATION".
    Hope this helps.
    Naveen.A

  • Using dynamic DataSources with WL 6.1

    Hi All,
    Here is an example of how to create, use and delete
    JDBC DataSources dynamically using JMX and WL 6.1.
    Regards,
    Slava Imeshev
    [DynamicDataSource.java]

    Hi Srinivas,
    "Srinivas Chennamaraja" <[email protected]> wrote in message news:[email protected]..
    Hi Slava!
    If I just have Weblogic 6.1 (as an Admin Server), Would I be able to create
    Dynamic DataSources?. The documentation says that you can't create aYes, you'll be able to create a datasource.
    dynamic Datasource in Weblogic. what is JMX?. I would appreciate if youThis is a brand-new feature.
    describe in detail?.Look here for JMX http://java.sun.com/products/JavaManagement/
    >
    can I create a any type of Datasources dynamically (like TXDatasources...).Yes, you can. Look at our doc site for details.
    http://e-docs.bea.com/wls/docs61/javadocs/weblogic/management/configuration/JDBCTxDataSourceMBean.html
    >
    thanks,
    Srini
    "Slava Imeshev" <[email protected]> wrote in message
    news:3b783560$[email protected]..
    Hi All,
    Here is an example of how to create, use and delete
    JDBC DataSources dynamically using JMX and WL 6.1.
    Regards,
    Slava Imeshev
    [att1.html]

  • Creating dynamic Icon objects

    Hi,
    I've a graph for which I provide right click menu for changing the color of various elements in graph. I would like to show the current color of these elements as well when showing the menu items. For this, I need to create a rectangular or some shaped icon filled with the current color of the corresponding element and display it right next to each menu item.
    My question is, how can i creating dynamic icons of this type, so that I can show them along with my menu items.
    -Avinash

    Use:
    Image image = createImage(32,32);
    Graphics gr = image.getGraphics();
    // draw what you want on gr
    ImageIcon ii = new ImageIcon(image);
    Noah

  • I have created two related books in Lightroom 5 (Volumes 1 and 2) but my balance of page numbers is off. So I'd like to take some pages out of one book (complete with images) and paste them into the other. Is this possible?

    I have created two related Blurb books in Lightroom 5 (Volumes 1 and 2) but my balance of page numbers is off. So I'd like to take some pages out of one book (complete with images) and paste them into the other. Is this possible?

    Can you zip up a few of your GoPro images, upload them to dropbox.com and post a share link, here, so others can experiment with them, or do you mean this issue is global to all camera models?

  • How do I create a "place" in iPhoto's Places list? Is this possible the way it's possible to create albums? Also, how do I assign a place to a photo or vice versa?

    How do I create a "place" in iPhoto's Places list? Is this possible the way it's possible to create albums? Also, how do I assign a place to a photo or vice versa?

    Select a Photo in the iPhoto Window and click on the 'i' button lower right. This uncovers the Info Panel, and you can assign a Place there. Search on the name of the place and then move the pin to where you want it. This is all covered in the Help and in the tutorials.
    http://www.apple.com/findouthow/photos/#places
    Regards
    TD

  • Hi - Re Keynote  I'm trying to figure out how to create a music album on USB flash drive. What I want is a background picture with 'click-buttons' to play each track listed, also similar for embedded videos and photos etc.  Is this possible with Keynote ?

    Hi - Re Keynote  I'm trying to figure out how to create a music album (as an artist) on USB flash drive, (accessible by both Mac and PC). What I want is a background picture with 'click-buttons' to play each track listed, and play in order (like a cd) - also similar for embedded videos and photos etc. This should all be on the one page.  
    Is this possible with Keynote, or any other software package for Mac (am using Macbook Pro) ?
    Gav 88

    Hi there,
    Yikes, it sounds like you've been doing a lot of work on this project... Unfortunately, however, this isn't the Adobe Encore forum, but the Acrobat.com forum. While it seems like an exciting question, we're not able to address issues pertaining to other Adobe products and services. Here's a link to the Adobe Encore forum, where you're more likely to get help for this specific issue:
    http://forums.adobe.com/community/encore
    Sorry not to be of more specific help to you. Best of luck!
    Kind regards,
    Rebecca

  • I am creating a request for proposal form and I need to add a commission structure field.  I created a table using the ranking field and now I need to delete the "dots/buttons" and turn them into text fields, is this possible?

      I created a table using the ranking field and now I need to delete the "dots/buttons" and turn them into text fields, is this possible?

    It sounds like what you are trying to do is edit the choices in a likert field to something other than the default radio button. This is not something that you can do in Formscentral at this time.
    Andrew

  • Is this possible to create....

    So im starting an online company, going through 1and1.com (Only one i've really seen) and selling a digital downloadable product.  Basically its a packet full of information, examples, that is considered to be highly regarded (Don't really want to give the idea away).  I wanted to make a way that people can go to the website...... read a little intro about the product..... then download a ONE TIME COPY of it and save it to ONE computer for a price.  Is this possible?
    OR
    Can I create a website that has a user name and login and they have to login with a password that they buy from me to access the information which can't be downloaded?  Basically I have a lot of information about a specific topic that id like to sell to people but not have them give the information away in paper copy and duplicate it after they buy it from me.  Is that possible?
    Thanks!
    Steve
    [email protected]

    Hello Gwyn.
    No single strategy is completely effective when it comes to managing spam. People who are intent on sending spam are ingenious at coming up with ways around any filtration schemes.
    You can add a number of rules in an attempt to resolve the problem but doing so in regards to spam is like a dog chasing his tail.
    In case you have unintentionally/unknowingly added to the problem regarding this increase in spam received, check Why was I "spammed" at my .Mac Mail address? which applies to any email account and How HTML Email Messages Relate to Unsolicited Commercial Email ("spam") which applies to any email client such as the Mail.app.

  • I would like to create a simple vote form that members can hit the reply button and record their preference in a check box. Is this possible on iPad?

    I would like to create a simple vote form that members can hit the reply button and record their preference in a check box. Is this possible on iPad?

    Go to the App Store and search on "Forms Management".
    There are a lot of candidates.

  • Is it possible to create dynamic reports using iReports in netbeans ?

    Hi
    I want to know that is it possible to create dynamic reports using netbeans? Dynamic reports means based on user selection(for eg. say by selecting values from combo boxes) some query will be genatated and fetch the query result from data base and displayed results in iReports only my problem is i am working on Netbeans IDE and i have installed iReports as plugins in netbeans IDE. and i am not able to find any tutorial that show me how to work with iReports under netbeans IDE. and how to create dynamic reports in iReports. If u know any such tutorial then can you send me link plz...!
    Thanks

    What do you mean by "in Start Menu"? Do you mean Live tile? See https://msdn.microsoft.com/en-us/library/windows/apps/hh465403.aspx
    https://msdn.microsoft.com/en-us/library/windows/apps/dn468032.aspx
    Best Regards,
    Please remember to mark the replies as answers if they help

  • Hi.  I have a Macbook Pro Model 5,5 with one 800 firewire port.  I need to create two firewire 800 ports but only have an SD card slot (this is for video interface with 2 cameras).  Is this possible or do I have to have an express card slot in order to do

    Hi.  I have a Macbook Pro Model 5,5 with one 800 firewire port.  I need to create two firewire 800 ports but only have an SD card slot (this is for video interface with 2 cameras).  Is this possible or do I have to have an express card slot in order to do this?

    Hi Jessica,
    No, the SD slot will not work, you need an ExpressCard/34 slot.
    I do not know if it works with cameras, but with two or more HDs, if the first one has two FW ports, you can "daisy chain" one or more additional HDs from it.

  • Need help creating an "insert file" to add an attachment to a form?  Is this possible?

    I am trying to add an "insert file/attachment" field to a form that I'm creating but am having trouble finding information.   Is this possible?   Please advise.
    Thank you!

    Hi,
    The form with add attachment feature on link http://eslifeline.files.wordpress.com/2009/04/addattachments.pdf
    works fine but when I copy paste objects to use 2-3 times on page 2 and 3 then after attaching different files at all 3 sections, I see only same type of files when using view attachments. I understand it is same like when making 2 fields name same act same together.
    Please help me make the javascript run differently (as new) for each add attachment function.
    Thanks

  • TS2776 I'd like to merge the three different itunes accounts I have created over time ... is this possible?

    I'd like to merge the three different itunes accounts I have created over time ... is this possible?

    Unfortunately it is not possible to merge multiple Apple ID's and their content into one ID. Apple has no provisions for this.

Maybe you are looking for

  • ATUALIZAR ESTRUTURA DE PRODUTOS

    Bom dia a todos, Pessoal, me deparei com a seguinte situação. Por exemplo vamos supor que tenha 100 (cem) estrutura de produtos criadas no SAP onde um determinado item está atrelada as todas essas estruturas, onde hoje estou tendo a necessidade de mo

  • Invoking C Funtion from BPEL

    Hi, I have a requirement that i have to call a C funtion from the BPEL which inturn will invoke a deamon process. I have this requirement because my code is specific to C and the deamon invocation code is written in C. I need to pass some parameters

  • Question about MII and xMII UDS versions

    Hi all, just some quick questions on MII and MII UDS: Has the final version 12.1 of MII already been released? I can't find it in my service marketplace (does it depend on my account configuration?) What is the last MII UDS version? The 4.0 SP2? Is x

  • Pan & Zoom in PRE7

    I have Photoshop Elements7 and Premiere 7 and I have a few basic questions. I prefer the pan & zoom effects in PSE7 over the presets in PRE7 when I make DVD slide shows. I don't like the black box effect surrounding the image when zooming in PRE7 so

  • Bluetooth not working correctly after iOS 4 update

    I recently purchased and have been enjoying the Bose sound link wireless music system in fact I can't say enough about the accessory connecting wirelessly my iPad and iPhone to enjoy music. After the iOS 4 update my iPhone will no longer connect to t