Get X-th member from collection

hi,
I am trying to get the xth member from a collection.
select c00x from collection
I use 2 dimensions in the collection. The first column (C001) are the categories, the other columns contain sums for certain dealers. The number of categories and dealers - so x and y - are unknown.
selecting category x in column C001 is easy, but selecting c002....C00X seems to be more difficult
Regards

I ve solved this in a different way. Every y dimension will be a different collection. Since collection name is called through a string, its easy to make it a variable
'CATEGORY'||cat_id
so I always use column c001 in these variable collection names.
Regards

Similar Messages

  • Error getting value from collection to a date picker field

    Hi all,
    I'm stumble with getting correct data value from collection.
    The column is described as
    'wwv_flow_item.date_popup(3,null, c002, 'dd/mm/yyyy', 10, 10) purchase_date'
    This field is causing error: 'report error:
    ORA-01843: invalid month'
    I'm sure, c002 has correct value '08/08/2003' because I've temporarily changed description of the field to
    'htmldb_item.text(3,c002,10) purchase_date' that returned correct value.
    What can be wrong? I'm puzzled.
    Any suggestion please.

    Are you sure that when you used 'htmldb_item.text(3,c002,10) purchase_date' you got 08/08/yyyy and not 0808yyyy. I have seen that message often in Oracle (outside of HTMLDB) and it is normally when one assumes one format when it is actually another, or the leading zero gets dropped (08082005 becomes 8082005, which converts to 80/82/0205).

  • Using family sharing, how does one view and download songs from a family member's collection in itunes?

    Using family sharing, how does one view and download songs from a family member's collection in itunes?

    When you click on your device you are presented with the pages
    Summary
    Info
    Apps
    Tones
    Music
    Movies
    TV shows
    Books
    Photos
    To remove Audiobooks depending on the type of Audiobook ie a series of mp3 files you will find under music and probably have to deselect the album name to remove it. I don't have any of these as I download from Audible or I use Audiobook Builder to stictch together mp3 files into m4b files. To find these Click on Books you will immediately see a section for books (in reality ebooks). Scroll down past that and you will see Audiobooks where you can select and deselect. Deselect the required Audiobooks and Click Sync

  • How can I get a family member back after being removed from family share?

    How can I get a family member back after being removed from family share?

    See [[Replace your Sync information]] but read the cautions carefully.
    * also see [[firefox Sync is not working]]
    It is always a useful precaution to make manual bookmarks backups
    * see [[Backing up and restoring bookmarks]]
    The above article also explains about the autobookmark backups that firefox generates, but be sure to make manual backups as you work, it is very easy to overwrite the wrong set of backups.
    I am not entirely certain what firefox is doing in your case, perhaps the synced Netbook does not have the expected set of bookmarks on it.
    Presumably sync may be uninstalled or disabled like any other add-on
    *see [[Uninstalling add-ons]]

  • JSF: How to get 2 columns from collection?

    Using datatable i couldn't display 2 colums from collection. In JSF sun implementation is there any way to get?
    my requriement is i need to display collection in matrix format 2*x

    you can use ArrayDataModel object returned to the JSF page inoder to display multiple columes....

  • Just got a new iPad. How do I move my Game Center games?  I keep getting another family member's account because we share our Apple ID.

    Hi. I just got a new iPad. How to I move my Game Center games from my old iPod?  My family uses one Apple ID, and I keep getting another
    Family member's Game Center on my iPad!

    Okay so I figured out the solution by reading other discussions. Basically you need to delete on your phone the icloud account and start up a new icloud account with a new email address. This is nice because you can still share apps without getting everyone elses things. The only thing that didn't get worked out was the notes...
    On your phone go to settings and then icloud, scroll down and delete the account. Then just make a new icloud under a new email.

  • Remote Object - not able to get the returned value from java method

         Hi ,
    I am developing one sample flex aplication that connects to the java code and displays the returned value from the
    java method in flex client. Here I am able to invoke the java method but not able to collect the returned value.
    lastResult is giving null .  I am able to see the sysout messages in server console.
    I am using flex 3.2 and blazeds server  and java 1.5
    Here is the code what I have written.
    <?xml version="1.0" encoding="utf-8"?><mx:WindowedApplication  xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" backgroundColor="#FFFFFF" initialize="initApp()">
     <mx:Script><![CDATA[
    import mx.controls.Alert; 
    import mx.binding.utils.ChangeWatcher; 
    import mx.rpc.events.ResultEvent; 
    import mx.messaging.*; 
    import mx.messaging.channels.* 
    public function initApp():void { 
         var cs:ChannelSet = new ChannelSet(); 
         var customChannel:Channel = new AMFChannel("my-amf", "http://localhost:8400/blazeds/messagebroker/amf");     cs.addChannel(customChannel);
         remoteObj.channelSet = cs;
    public function writeToConsole():void {      remoteObj.writeToConsole(
    "hello from Flash client");
          var returnedVal:String = remoteObj.setName().lastResult;     Alert.show(returnedVal);
    //[Bindable] 
    // private var returnedVal:String; 
    ]]>
    </mx:Script>
    <mx:RemoteObject id="remoteObj" destination="sro" /> 
    <mx:Form width="437" height="281">
     <mx:FormItem>  
    </mx:FormItem>  
    <mx:Button label="Write To Server Console" click="writeToConsole()"/>
     </mx:Form>
     </mx:WindowedApplication>
    Java code
    public  
         public SimpleRemoteObject(){  
              super();     }
      class SimpleRemoteObject { 
         public void writeToConsole(String msg) {          System.out.println("SimpleRemoteObject.write: " + msg);     }
         public String setName(){          System.
    out.println("Name changed in Java"); 
              return "Name changed in Java";
    And I have configured destination in  remote-config.xml
    <destination id="sro">
       <properties>    
        <source>SimpleRemoteObject</source>
        <scope>application</scope>
       </properties>
      </destination>
    Please help me .

    You are not able to get the returned value because if you see the Remote object help you will realise you have to use result="resultfn()" and fault = "faultfn()"
    In this you define what you wish to do.
    More importantly in the remote object you need to define which method you wish to call using the method class like this
    <mx:RemoteObject id="remoteObj" destination="sro" result="r1" fault="f1"  >
         <Method name="javaMethodName" result="r2" fault="f2"/>
    <mx:RemoteObject>
    r2 is the function where you get the result back from java and can use it to send the alert.

  • How to get the refreshed data from Input schedule while using evsnd

    Hi Experts,
                     I am using EvSnd function for sending the data from a Input schedule.
    Acc                Value                                            
    xx----
        xy------        10
        xz-------       20
    these above cell value 10,20 are getting sent by evsnd function which is written in different cell.
    Now after successfully sending, how I can see these are also getting refreshed, like in Evdre
    Acc                Value                                            
    xx----
            30
        xy------        10
        xz-------       20
    Thanks
    Anupam

    Thanks my friend.
    But the point is I need to show the updated data for all the cells (for xx, xy,xz). The point is if I use the evsnd then after the data has been sent, those two cells xy & xz will be blank once again. And so if the user will not be able to check what the data they have sent for these member from that sheet.
                  They have to get a report which will show the figures.
    And we can't even use the evgts in the xy/xz cell as the formula is going to be erased as soon as the user enter the data in that.
    so how we can do the sheet similar to evdre ip schedule..where after every data send the cell range shows latest data.

  • How to get the Node Value from XmlValue result?

    Hi ,
    I am not able to get the Node Value from the result. In my XQuery im selecting till a Node, if i change my query as
    collection('PhoneBook')/phone_book/contact_person/address/string()", qc);
    im getting the node value, but here the problem is its not a Node so i cannot get the Node name.
    So how can i get the Node Name and Node value together?
    any help please ????
    XML :
    <?xml version="1.0" encoding="UTF-8"?>
    <phone_book>
    <contact_person>
    <name>
    <first_name>Michael</first_name>
    <second_name>Harrison</second_name>
    </name>
    <address city="yyyyy" pincode="600017" state="xxxxx">
    176 Ganesan street, Janakinagar, alwarthirunagar
    </address>
    </contact_person>
    <phone_number type="mobile">9881952233</phone_number>
    <phone_number type="home">044-24861311</phone_number>
    <phone_number type="office">080-12651174</phone_number>
    </phone_book>
    Code:
    XmlQueryContext qc = manager.createQueryContext();
    XmlResults rs = manager.query
    ("collection('PhoneBook')/phone_book/contact_person/address", qc);
    while(rs.hasNext()){
    XmlValue val = rs.next();
    System.out.println(val.getNodeName() + " = [ " + val.getNodeValue() + " ] ");
    Output
    address = [  ]

    You are right, this seemed un-intuitive to me too, but I finally understood how it's done.
    The "value" of a node is actually the total amount of text that is not contained in any of the node's child nodes (if any). So a node with child nodes can still have text value.
    To get the 'value' of an element node, you must therefore concatenate the values of all children of type "XmlValue::TEXT_NODE", of that node. Try it.
    In your example, the <address> node has no child elements, my guess is that BDB XML stores the address string "176 Ganesan street, Janakinagar, alwarthirunagar" inside a child node of <address> node (of type XmlValue::TEXT_NODE) because you wrote the string on a separate line.

  • How to get the Folders and subfolders collection in Project Manager

    Hi,
    I am trying to get the folders and subfolders collection in Project Manager, so that I will be able to loop through the collection and be able to create a project under the appropriate folder.
    Any suggestions?
    Thanks.
    Bhanu

    Anything you do without submitting to form has to be done on the client side (ususally by JavaScript) using data which has been send already from the server.
    With JavaScript you can do quite a bit. You can download tables which don't necessarilly appear on the screen, loading them into JavaScript arrays by dynamically generating javascript. Then you can pick up events like drop-box selection and use these tables to chose what you do next (e.g. preloading other fields, setting drop box content etc.).
    Or, you can cause forms to be submitted when actions like a selection happen without the user clicking a button. It's generally a matter of how much data you'd need to transmit.
    Another posibility is to use a Java applet, which can generate requests to the server and handle the results as it chooses. That are a number of problems with that but occasionally it's the best solution.
    What you can't do is to handle user input inside a JSP. The JSP has come and gone before the user even gets to see your form.

  • Hye, i bought my iphone5s in malaysia on early febuary 2014 but on april/may i have problem with my fhone. but now i resides in istanbul turkey. can i get a a service from apple.tr ? how ? thank you

    Hye, i bought my iphone5s in malaysia on early febuary 2014 but on april/may i have problem with my fhone. but now i resides in istanbul turkey. can i get a a service from apple.tr ? how ? thank you

    It can only be serviced in the country where it was originally sold.
    An iPhone sold in an EU member State can be serviced in any other EU member nation. Malaysia is NOT a member of the EU. It can only be serviced in Malaysia.

  • Restricting "All Member" from report filter

    Hi,
    Can i restrict the "All Member" from the report level filter? If i place Company or Site hierarchy in the report filter by default i'll get All Company and All Site members. I want to restrict this "All Member".
    How to restrict the All Member from the report filter?
    regards, Sujeev

    Hi Roberto,
    Thank you for your answer ! But this note doesn't solve the problem !
    Would you mind trying this and tell me your results :
    Make a simple report :TIME in column, ENTITY in page and COSTCENTER in row.
    Then click on COSTCENTER, it opened the "EPM - Member Selector"
    The dimension COSTCENTER has a property called ENTITY, so I select "ENTITY", operator is "=", Values is "<CONTEXT>" and the High Values/Dimensions is "ENTITY"
    And after this selction I have nothing !
    (I insist on that point to be clear : There are 2 different ENTITY, the first is the property of the dimension COSTCENTER and the second is a dimension)

  • How to get count of member

    hi 
    i have 2 table like this
    table1
    memberid     name  
    1                    roy
    2                    cartrie
    table2
    memberid            name               location
    1                        roy                             nj
    1                        roy                             tx
    2                      cartrie                          va
    now i want to select member from table 1 ,which has more than 1  same record with distinct location, in this case its member id 1,
    i am using query like
    select * from table1 a join table 2 b
    on a.memberid = b.memberid
    and a.name = b.name
    having count(distinct(location))>1
    but its not getting me correct result
    any help

    If you want member details alone use this
    select *
    from table1 t
    where exists(
    select 1
    from table 2
    where memberid = t.memberid
    group by memberid
    having count(distinct location) > 1
    and in case you want location details also use this
    select memberid,name,location
    from
    select a.memberid, a.name , b.location,
    count(b.location) over (partition by a.memberid) AS Occ
    from table1 a join table 2 b
    on a.memberid = b.memberid
    and a.name = b.name
    )t
    where Occ > 1
    Please Mark This As Answer if it solved your issue
    Please Mark This As Helpful if it helps to solve your issue
    Visakh
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • EJB ClassCastException Retrieving from Collection in same AppServer

    I am experiencing a weired Problem.
    I am passing a Collection of IdNameTO Transfer Object from My EJB Client(JSP) to EJB.
    At Server Side EJB is able to get the Object From Collection but when it does a Cast to convert the Object back to IdNameTO I get ClassCastException on IdNameTO.
    This problem happend only when Both Client and Server(EJB) are deployed on Same Application Server(WebSphere) i.e. same Virtual Machine. If Both Client and EJB are deployed on separate Servers then I don;t get any Exception.
    If I form a collection of IdNameTO in EJB and pass it to EJB Client then even on same Server I don't get any exception.

    I am experiencing a weired Problem.
    I am passing a Collection of IdNameTO Transfer Object from My EJB Client(JSP) to EJB.
    At Server Side EJB is able to get the Object From Collection but when it does a Cast to convert the Object back to IdNameTO I get ClassCastException on IdNameTO.
    This problem happend only when Both Client and Server(EJB) are deployed on Same Application Server(WebSphere) i.e. same Virtual Machine. If Both Client and EJB are deployed on separate Servers then I don;t get any Exception.
    If I form a collection of IdNameTO in EJB and pass it to EJB Client then even on same Server I don't get any exception.

  • Moving data's from collection

    Hi friends,
    I have a APEX form and soon after if i insert via form means, then it will save the details(data's) in the table. But my question is how to move a data from a collection table to a main table. Is there any way of moving the stored data's from the collection to the table.
    Once the data is transferred into the table from collection, the transferred data in the collection has to get deleted. Only the data's which is not transferred to the main table should exist in the collection.
    Once the data is transferred from the collection to the table means, then that transferred data (i.e) row data should not exist in collection..
    Anyways of achieving it friends.
    Brgds,
    Mini

    Dear Jari,
    I have created an example in apex.oracle.com
    http://apex.oracle.com/pls/apex
    Workspace: mini_ws
    Username: [email protected]
    Password: 4i@duppyApplication 11569 - Upload Data File..
    I have two buttons over there..one is Upload and the other one is Upload1
    If u pressed Upload button soon after browsing one csv file with a Separator as ,(comma), then the datas from the .csv file will be saved in the collection..
    And after that if u pressed the Upload1 button means, then the data from the collection will be saved in my custom table named(excel_upload_table).
    What is the problem that im facing here is.
    Suppose if i upload the csv file with an column heading for each column(that is the two column ID, NAME)  means then i couldnt upload the data from collection to my custom table.
    I have two columns in my custom table like
    <li> ID
    <li> Name
    But if i upload the csv file without the column heading for each column(that is the two column ID, NAME) means, then i can upload the data from the collection to the my custom table.
    How i can proceed with this task, so that i can upload the csv file with the column heading for each and every column.
    Brgds,
    Mini

Maybe you are looking for

  • How can I call functions from a SWF loaded in to another SWF?

    Hi there, Please excuse my ignorance, I am very new to actionscript and flash. I have 2 SWF's - a.swf and b.swf. I load b.swf into a.swf with the following code: var swfLoader:MovieClipLoader = new MovieClipLoader(); swfLoader.loadClip("b.swf", conta

  • How do I get my phone off of 1x and back to 3G?

    I am fed up with my phone/service!!! It is for the most part constantly at 1x for service instead of 3G. The only time that I canuse apps, send texts, use the internet, make phone calls, etc is when I am on wifi and that is not always possible.  I ha

  • Connecting the ipad to a data projector when projector is on the ceiling

    I am trying to connect the ipad to a data projector when projector is on the ceiling. I have the VGA cord but it is way to short ...is there another cord to connect the both?

  • What is this warning message?

    In my MyVewController.h file, I have a function called: -(void) loadDefaults:(BOOL)saveFilter saveImage:(BOOL)saveImage; In my MyVewController.m file, I defined: -(void) loadDefaults:(BOOL)loadFilter loadImage:(BOOL)loadImage NSLog(@"Load defaults");

  • N5K - N2K Image Upgrade Single vs Dual Homed

    Hi, The upgrade distuptive behaviour is not explained well in the following documentation link . Especially about single homed FEX topology. http://www.cisco.com/en/US/docs/switches/datacenter/nexus5000/sw/upgrade/503_N1_1/n5k_upgrade_downgrade_503.h