Apex 3.2 Tree Dynamic Source

Hello,
I am looking for an example or any code snippet to have a logic PL/SQL souce in a tree in APEX 3.2.
IF condition = A
SELECT * FROM tbl where <condition1>
ELSE IF condition = B
SELECT * FROM tbl where <condition2>
END IF
Is this possible in tree source ? How and what Source type to use : PL/SQL Function or Expression | PL/SQL Function Body | SQL Query ? Please let me know if you have ideas ?
Regards,
Eric

Hi,
Dynamic actions are introduced on Apex 4 and there is not anything similar on Apex 3.2.
But you can write your own JavaScripts. See e.g. this
Apex 3.2 hook javascripts to IR and execute those when report is refreshed
Regards,
Jari

Similar Messages

  • Dynamic source value for uix frame

    Hi all,
    I have UIX page with two frames, left is for navigation (includes tree) and right one is for content.
    <page xmlns="http://xmlns.oracle.com/uix/controller"
          xmlns:ctrl="http://xmlns.oracle.com/uix/controller"
          xmlns:data="http://xmlns.oracle.com/uix/ui"
          xmlns:http="http://www.w3.org/TR/REC-html40">
      <content>
        <frameBorderLayout xmlns="http://xmlns.oracle.com/uix/ui">
          <left>
            <frame source="Tree.uix" name="tree" width="30%"/>
          </left>
          <center>
            <frame name="contents" data:source="${sessionScope.startPage}"/>
          </center>
        </frameBorderLayout>
      </content>
    </page>I'm trying to use ${sessionScope.startPage} to get source value, but it doesn't work. I am sure that there's such a parameter in http session and I can't understand why this happens.
    Could anyone please say if it's possible to use dynamic source for frame?
    Did anyone meet such problems?
    Is there any other way to set the source value?
    thanx in advance
    Renat

    Hi again,
    So far I've found such a solution:
    <page xmlns="http://xmlns.oracle.com/uix/controller"
    xmlns:ctrl="http://xmlns.oracle.com/uix/controller"
    xmlns:data="http://xmlns.oracle.com/uix/ui"
    xmlns:http="http://www.w3.org/TR/REC-html40">
    <content>
    <frameBorderLayout xmlns="http://xmlns.oracle.com/uix/ui">
    <top>
    <frame source="Top.uix" name="top" height="10%"/>
    </top>
    <left>
    <frame source="Tree.uix" name="tree" width="30%"/>
    </left>
    <center>
    <frame name="contents" source="startPage.uix"/>
    </center>
    <bottom>
    <frame source="Bottom.uix" name="bottom" height="10%"/>
    </bottom>
    </frameBorderLayout>
    </content>
    </page>where startPage.uix is:
    <?xml version="1.0" encoding="windows-1251"?>
    <page xmlns="http://xmlns.oracle.com/uix/controller"
    xmlns:ui="http://xmlns.oracle.com/uix/ui"
    xmlns:ctrl="http://xmlns.oracle.com/uix/controller"
    xmlns:html="http://www.w3.org/TR/REC-html40" expressionLanguage="el">
    <content>
    <dataScope xmlns="http://xmlns.oracle.com/uix/ui">
    <provider>
    </provider>
    <contents>
    <document>
    <metaContainer>
    <head title=""/>
    </metaContainer>
    <contents>
    <body>
    <contents>
    <form name="form0">
    <contents>
    <pageLayout title="">
    <contents>
    </contents>
    <pageHeader>
    <globalHeader/>
    </pageHeader>
    </pageLayout>
    </contents>
    </form>
    </contents>
    </body>
    </contents>
    </document>
    </contents>
    </dataScope>
    </content>
    <handlers>
    <event name="*">
    <method class="myPack.PageUtils.RedirectAction" method="redirect2anotherPage"/>
    </event>
    </handlers>
    </page>and redirect2anotherPage is:
    public static EventResult redirect2anotherPage (BajaContext context, Page page,
    PageEvent event) throws Throwable {
    HttpSession hs = context.getServletRequest().getSession();
    Page otherPage = new Page((String) hs.getAttribute("startPage"));
    return new EventResult(RedirectUtils.getRedirectPage(context,
    otherPage));
    }This seems to be working, but I am not sure if this is the correct solution (lonely solution).
    Is there a way to use only UIX EL syntax?
    Any ideas about this?
    Renat

  • Scrollbar in a classic Apex 4.1 tree

    In Apex 4.1 it looks like it is not possible for a new Apex 4.1 tree to adjust its template HTML settings.
    It can't be found in the shared components for instance.
    To be able to change some of the html style settings you can add a javascript in the "Execute when Page Loads" javascript settings of the page where the tree is located.
    Here is an example of adding a scrollbar to an Apex 4.1 tree:
    // Get div element of the tree. You can use firebug to determine the id of the tree
    d = document.getElementById('tree160968347950446047');
    // Show scrollbars when the tree data extends the maximum height
    // If you only need a vertical bar you can use 'overflowY' instead
    d.style.overflow="auto";
    // Set the width of the tree
    d.style.width="500px";
    // Set maximum height of the tree
    d.style.maxHeight="460px";
    // Microsoft Internet Explorer ignores the maxHeight style. So use height instead.
    // To avoid that the other browsers use this height style, give the height 1 px more than the maxHeight
    d.style.height="461px";
    Regards,
    Mathieu

    Hi Mathieu,
    Any chance that you might know the code to move the selected tree node to the top of the scrollbar region? I've done it previously as per
    APEX Tree.  Keep focus on expanded leaf node.
    but don't know where to put all this code now that we do not have access to the tree templates in V4+
    regards
    Paul P

  • Cost estimate and Dynamic Sourcing

    We have multiple levels of sourcing in R/3 and the cost estimate is using this info to determine the cost at a distribution center. The special procurement key is used in R/3. We are now in the process of implementing APO/SNP and dynamic sourcing will be used. So, the question is how to use the sourcing from SNP when running a cost estimate. The business users want to have the most accurate sourcing data when running the costing run. There are over 600 production and distribution facilities and multiple levels of sourcing today, so updating this info manually in R/3 would be a challenge. Is there any intergration between SNP and PC or is custom development the only option?

    Hi Jeff,
    in SAP you never know, but I am almost sure that there is no such integration. In product costing there is a call into the ERP procurement to determine the best source of suuply and the associated costs. Might be that there is a user-exit to feed in alternative information, but probably no call into SNP.
    I have heard this requirement the first time now. Sounds interesting...
    best regards,
                            Udo

  • Dynamic Source NAT for multiple POOLS

    I am setting up Dynamic Source NAT with a few Pools and Access-list to translate according to the Access-list. However when configure some ACL don't work anything. And the ACL don't "match" any. I know that the correct way would be to apply the ACL about interface with "ip access-group <ACL-name> in/out" however in this case would be impossible to apply more one ACL with ip access-group command.
    FurthermoreI have tested to creating a route-map named TEST with all ACLs; but cannot to create all "ip nat inside source route-map... " with the same route-map name. Also checked the cisco example: http://www.cisco.com/c/en/us/support/docs/ip/network-address-translation-nat/13739-nat-routemap.html...
    Attach the all configurations.
    I  need your help, 
    Thanks in advance!

    Oh my God!! Already works fine! I hadn't thought that "log"  would be a painful 
    Thanks John Marshall! 
    Attach my troubleshooting:
    INET#show ip nat translations
    Pro Inside global      Inside local       Outside local      Outside global
    tcp 195.77.205.33:49529 10.55.0.1:49529   4.2.2.2:22         4.2.2.2:22
    tcp 200.200.200.1:62978 10.55.1.1:62978   4.2.2.2:4343       4.2.2.2:4343
    tcp 195.77.205.20:13493 181.70.12.18:13493 195.47.200.32:443 195.47.200.32:443
    Furthermore we can to check the "rotary option also works!"
    "INET#show ip nat translations
    Pro Inside global      Inside local       Outside local      Outside global
    tcp 195.77.205.33:57238 10.55.0.1:57238   4.2.2.2:22         4.2.2.2:22
    tcp 195.77.205.33:16393 10.55.1.1:16393   4.2.2.2:22         4.2.2.2:22"
    Thanks again!

  • Quicktime with "dynamic" source

    This is driving me nuts.
    I'm building an HTML application for my iPad, but I can't make it play .wav files which are returned from either a Java servlet or an ASP handler (I'm sure I'm setting the "content-type" correctly - "audio/wav" or "audio/x-wav")
    If you set the data source for the object to a static file it works fine e.g. "/foo/bar/baz.wav", but if you set it to a dynamic source e.g. "/foo/bar/GetWav?audioFileId=123" the component just goes into an error state and doesn't play anything.
    Does anyone know if this is a formal restriction of the Quicktime tag? Any workarounds?

    Hi,
    Here's a little sample I put together:
    [code]
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="absolute" creationComplete="init();">
    <mx:DataGrid x="10" y="10" width="233" id="myDG"
    change="myDGChangeHandler(event)" dataProvider="{dp}">
    <mx:columns>
    <mx:DataGridColumn headerText="Character"
    dataField="name"/>
    </mx:columns>
    </mx:DataGrid>
    <mx:Image scaleContent="false" showBusyCursor="true"
    x="10" y="200" width="200" height="300" id="myImg"
    source="{imgSrc}"/>
    <mx:Script>
    <![CDATA[
    import mx.collections.ArrayCollection;
    [Bindable]
    private var dp:ArrayCollection;
    [Bindable]
    private var imgSrc:String;
    private function init():void {
    var myAry:Array = [
    {name:"Homestar Runner", data:"
    http://sandbox.mc.edu/~ewilliam/internet_www/Homestar_Runner_logo.jpg"},
    {name:"Strong Bad", data:"
    http://www.contagiousgraphics.com/Stickers/stickerSamples/HRStrongBadClearStix.jpg"},
    {name:"Stinkoman", data:"
    http://www.hrwiki.org/images/thumb/8/84/stinkoman.PNG/220px-stinkoman.PNG"}
    dp = new ArrayCollection(myAry);
    private function myDGChangeHandler(evt:Object):void {
    imgSrc = evt.target.selectedItem.data;
    ]]>
    </mx:Script>
    </mx:Application>
    [/code]
    Good luck

  • JSP taglibs from dynamic source

    Hello folks,
    i wonder if it is possible to use taglibs that come form a dynamic source during request time, like this:
    <%
    String myOtherTag = "<bla:myOtherTag/>"; // the string could come from a database or form
    %>
    <bla:myTag>
        <%= myOtherTag %> <!-- do not outout as string, rather perform <bla:myOtherTag/> -->
    </bla:myTag>The idea is, that users can write a string into a database with jsp tags, and the jsp reads it out at request time and performs them. I understand that they are actually translated to code at compilation time, but as far as i can tell, a dynamic binding should be possible.
    If it is, what is it called and where can i find more information on this topic?
    Thanx!

    No not normally possible.
    The tags need to be translated/compiled into java code.
    It does this at translation time - before the code is run.
    The only way to do something like this would be to generate the tag to a jsp file, and then <jsp:include> that file.
    You might be able to do it with JSP2.0 tag files as well.
    Good luck,
    evnafets

  • Creation of Tree dynamically

    HI Friends,
    I faced one problem on To create tree dynamically in Webdynpro ABAP. The output like
    ">A1"
    "      >B1"
    "      >B2"
    ">A2"
    "     >B3"
    "        >C1"
    How to create dynamically?
    Regards,
    Sathya

    Hi Satya,
    go throught
    http://help.sap.com/saphelp_nw04s/helpdata/en/21/ad884118aa1709e10000000a155106/frameset.htm
    http://s a p t e c h n i c a l.com/T u t o r i a l s /WebDynproABAP/Tree/Page1.htm
    Though its not dynamic method, you can use below for dynamic manipulation
    Dynamic programing  in WD4ABAP ?
    Thanks,
    Prashant

  • HOW TO CREATE NODES IN A TREE DYNAMICALLY

    Hi Experts,
    How to create node in a tree dynamically......
    my requirement is in tree there should be nodes which should contain some applications....
    plz explain clearly na......
    help me in this ......
    waiting for u r response .....
    Regars,
    Shilpa

    Hi shilpa,
    These may help you...
    Re: dynamic generation of Tree UI element
    dynamic programming part in below link
    http://help.sap.com/saphelp_nw2004s/helpdata/en/21/ad884118aa1709e10000000a155106/content.htm
    try to search on Tree node creation in below link
    http://www.sap-press.de/download/dateien/1103/sappress_maximizing_web_dynpro_for_java.pdf
    regards,
    Pradeep
    Edited by: pradeep bondla on Jun 26, 2008 3:39 PM

  • RSS Replay - Dynamic Sources

    Want to use dynamic sources for the rss feeds instead of hard
    coding the URLs into the script. How can I use PHP within the
    javascript. The below doesn't work.
    RSS Replay is the dreamweaver extension
    <script language="JavaScript1.2"
    type="text/javascript">
    <!-- hide script from non-js browsers
    //RSS Replay v 1.5 by RNSoft
    //MethodName:AJAX-Proxy-PHP
    //SettingName:
    rssReplayFeed("rss",
    10,
    "<div><span <<headlineclass>>><a
    href=\"<<link>> \"\" target=\"_blank\"
    onMouseOver=\"flvXAS1(0)\"
    onMouseOut=\"flvXAS1(1,1,50,1)\"><<headline>></a>"+"\n"+
    "</span>",
    "<br><span
    <<storyclass>>><<strip_story>></span></div><br>"+"\n"+
    ""+"\n"+
    rrpBuildSourceList("<?php echo
    $row_rsNewsFeed['source1']; ?>",
    "<?php echo $row_rsNewsFeed['source2']; ?>",
    "<?php echo $row_rsNewsFeed['source3']; ?>",
    "<?php echo $row_rsNewsFeed['source4']; ?>",
    "<?php echo $row_rsNewsFeed['source5']; ?>"),
    true,
    -1,
    true,
    "d-date")
    // end hide of script -->
    </script>

    .oO(jsteinmann)
    >hmmmmm......
    >
    >can you give me an example?
    Like you can use PHP to output HTML, you can also use it to
    generate JS.
    There's not much of a difference. If the script is embedded
    in the HTML
    with a 'script' element like in your case, it's particularly
    easy. Here
    is a short example:
    http://www.alt-php-faq.org/local/33/
    Of course the entire page has to be passed through PHP,
    usually by
    simply giving it a .php extension. Whether the embedded PHP
    outputs
    some HTML or JS doesn't really matter from the browser's
    point of view.
    Here's a more advanced example of using PHP in an external JS
    file:
    http://javascriptkit.com/javatutors/externalphp.shtml
    The key point in both is that PHP is used to write JS
    statements, which
    are then interpreted by the browser.
    For more informations and examples try a Google search for
    keywords like
    "generate javascript with php"
    Micha

  • Change the root of Flex Tree dynamically

    I have a Flex Tree constructed dynamically. The dataprovider is xmllistcollection.The user clciks on a button to add an item(node) to the tree.
    when user tries to add 2nd item to the tree I want to create root(with a button) at the top automatically.
    So  a Root need to be created dynamically after 2nd item is added.
    Can someone please help me in getting this.
    I am using MXTreeItemrender  as Itemrender and was able to add nodes. But I could not get the third item(I am taking this xml node as Branch and adding) added to the top of the tree.
    Any help is very much appreciated

    Or in APEX 4.0 this can be done using a Dynamic Action that executes JavaScript code to change the region title.
    Give the region a static region ID for use in a jQuery selector.
    As solutions may be dependent on APEX version&mdash;among other factors&mdash;always specify the following information in your initial post:
    <li>APEX version
    <li>DB version and edition
    <li>Web server architecture (EPG, OHS or APEX listener)
    <li>Browser(s) used
    <li>Theme
    <li>Templates
    <li>Region type

  • Dynamic source directory in sender adapter

    Hi Experts,
    I have a File to File scenario, where my source directory needs to be dynamic. The directory structure is like:
    Y:\ParentDrive\<DynamicFolder>\<DynamicFolder>\<DynmicFileName>
    And then on the receiver side, I need to create the DynamicFolders and the file.
    Please let me know if this can be achieved using modules or if there is any other approach.

    hi,
    refer my article:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/70c89607-e4d9-2910-7280-f6746e964516
    it shows using filename. similarly u can use directory attribute.
    [reward if helpful]
    regards,
    latika.

  • Dynamic Source File in SSIS

    I have a folder in which I have a .Zip file which come to that folder on a periodical basis. The file name varies from time to time. But I am making sure that there is only one file (.Zip) in that folder. I want that file to be copied to a different location
    with datetime stamp as a suffix. 
    Source Path: c:\users\kishoremcp\ssis\
    destination path(Network Path) : \\user123ud\backup\
    SO, how to select the file name dynamically and do the above task. 
    I am new to SSIS, so I request some one to help me (Steb by Step) 
    Thanks in advance. 
    Regards,
    Kishore 

    see this blog
    http://visakhm.blogspot.in/2012/05/package-to-implement-daily-processing.html
    This explains how to get files coming from folder using For Each Loop. In your case just change filetype to .zip inside foreachloop. You dont require any additional logic to determine valid file in your case as article explains
    For the second part (move file) add a file system task with operation move file. Set Issourcepathvariable property to true and map to variable you use inside loop to retrieve filename. And set destination to folder you want file to be moved by appending
    filename to it.
    You can use this as a reference 
    http://visakhm.blogspot.in/2012/12/selective-file-archiving-using-ssis.html
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • Dynamic source url in PKGBUILD

    I made a PKGBUILD for a kde4 utility, it's here: http://aur.archlinux.org/packages.php?ID=15072
    But the file name in source archive url is different from file name by which wget saves it to disc. I solved it by creating a symlink to the file with name that makepkg expects and removing it after package building.
    But it's an ugly solution :-) , is there any way to do it "cleaner"?

    Thank you, I was wondering what the brackets were for too
    I based most of my "analysis" on the example at the end of the PKGBUILD man page
    EXAMPLE
    The following is an example PKGBUILD for the patch package. For more
    examples, look through the build files of your distribution´s packages.
    For those using Arch Linux, consult the ABS tree.
    # Maintainer: judd <[email protected]>
    pkgname=patch
    pkgver=2.5.4
    pkgrel=3
    pkgdesc="A utility to apply patch files to original sources"
    arch=(i686 x86_64)
    url="http://www.gnu.org/software/patch/patch.html"
    license=(´GPL´)
    groups=(´base-devel´)
    depends=(´glibc´ ´ed´)
    source=(ftp://ftp.gnu.org/gnu/$pkgname/$pkgname-$pkgver.tar.gz)
    md5sums=(´ee5ae84d115f051d87fcaaef3b4ae782´)
    build() {
    cd $startdir/src/$pkgname-$pkgver
    ./configure --prefix=/usr
    make || return 1
    make prefix=$startdir/pkg/usr install
    I was a little bit confused by lines like license=(`GPL`), as I thought of some special MAKEPKG syntax.
    Maybe that should be corrected to license=('GPL') or license=("GPL").
    edit: I checked and the actual patch PKGBUILD uses license=('GPL').

  • Programmatic, using bean add Parent and child nodes in af:tree dynamically

    Hi All,
    i have to add parent and child nodes dynamically in tree .
    Example :
    i have created a tree like below.On click of button i will get value A ,from pl/sql function i will A1 and A 2 values.which i have to show in pop as tree.
    A
    |-----A1
    |-----A2
    If user clicks on A2.I have to catch A2 value and pass to pl/sql function which gives A2.01 and A2.02 values.
    A
    |-----A1
    |-----A2
    |------A2.01
    |------A2.02.
    A, A1 ,A2,A2.01 ...........values comes from pl/sql funchtion .
    thanks in advance ......... any suggestion will greatly helps

    no use ......................

Maybe you are looking for

  • Installing OS 10 on an old G4

    I recently acquired an old G4/400 Mhz desktop that has OS 9.22 installed. I'm thinking about installing OS 10.2 or 10.4 on it. Besides the common sense precaution of backing up data, is there anything else I should be concerned about?

  • Problem with image map

    I am trying to create an image map for the map found on my homepage - http://www.smartcharteribiza.com/ I have followed a couple of tutorials and everything seems to be working in photoshop, but when I upload the image to wordpress, the map does not

  • Currency display issue in the report

    Hello Experts, I am facing an issue with the currency type CLP(Chilian Peso). It  is noted that  the CLP currency doesn't use decimals. In BW reports the values in Local Currency are not OK. For example , the right value is 150.755 CLP in R3 side But

  • Webtemplate cannot be saved

    Hi, Last night I transported some webtemplates. Now this morning I made modifications to one of the templates but I cannot save it anymore Error message is RSWWW  240 The Object cannot not be processed due to a transport problem any idea how I can re

  • Error while  synchronizing oracle text.

    Hi, I am getting below error when synchronize oracle text index. I checked in database mentoined index is present in user schema. My database version is oracle 9.2.0.7. BEGIN ctx_ddl.sync_index ( 'IDX_DEPDOCUMENTOBJECT') END; ERROR at line 1: ORA-200