How to create a browsable, distributable result set?

I want do develop a web application, which must be able to browse (previous page, next page) in large result sets. The web application is distributed on several servers (persistent session). What is the way to handle this?

The web application is distributed on
several servers (persistent session). What is the way
to handle this?Can you explain what a persistent session distributed on serveral servers means?

Similar Messages

  • How should i use the two results sets in one single report data region?

    Hi frnz,
     I have to create a report using the below condition...
    Here my given data  set query gives you the two result sets ,so how should i use that two result sets information in single report....when i accessing that data set query it will take the values off the first result set not for the second result set.
    without using sub report and look up functionality..... if possible
    is there any way to achieve this.....Please let me know..
    Thanks!

    You cant get both resultsets in SSRS. SSRS dataset will only take the first resultset
    you need to either create them as separate queries or merge them into a single resultset and return with ad additional hardcoded field which indicates resultset (ie resultset1,resultset2 etc)
    Then inside SSRS report you can filter on the field to fetch individual resultsets at required places. While merging you need to make sure metadata of two resultsets are made consistent ie number of columns and correcponding column data types should be same.
    In absence of required number of columns just put some placeholders using NULL
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • Create a CF Query Result Set in Java

    I'd like to programatically build a ColdFusion query resultset inside of a Java class and return it to the calling application.  See the Java psudocode below to see what I'm talking about:
    public class MyClass {
         public coldfusion.sql.QueryTable getQuery() {
              // Create a query table object
              QueryTable myTable = ..?
              // Loop through some set of instance data for my class
              for(int c = 0; c < this.myWigets.length; c++) {
                   int row = c+1;
                   myTable.setField(row, nameCol, this.myWigets[c].name);
                   myTable.setField(row, colorCol, this.myWigets[c].color);
              return myTable;
    I've had stuff like this partially working in the past but had issues with things like query of queries and such probably due to the hacks used to create the QueryTable object.  I'm mainly just checking in to see if there has been any progress made in this area.  To me this seems like such an obvious thing for a Java developer working within CF to want to do.  I'm surprised Adobe doesn't have an officially supported API for doing this sort of thing (or maybe I'm just too dumb to find it.)    A few other notes... I'm not using CFX, and I'm not starting with a java.sql.ResultSet otherwise I would use the QueryTable(java.sql.ResultSet) constructor.  I need to build this thing from scratch programatically.
    Thanks for your time.  I hope this question makes sense to someone out there.
    - Mike

    I appologize.  I wasn't very clear with my original question.
    I'm creating an instance of my Java class from within CF using createObject("java", "com.example.MyClass").  So based on the sample code in my original post on the CF side I'd like to do something like this:
    <cfscript>
         myObj = createObject("java", "com.example.MyClass");
         myObj.doSomeStuff();
         myCFQuery = myObj.getQuery();  // Return a CF query from my java class
    </cfscript>
    ... then do stuff like ...
    <cfquery name="mySortedQuery" dbtype="query">
         select     *
         from       myCFQuery
         order      by color
    </cfquery>
    I appriciate your suggestions so far.  I have other solutions working already but they are not ideal.  I was just hoping someone had a clean and as-hack-free-as-possible way of creating a ColdFusion query result set in Java and passing it back to CF.
    Thanks again,
    Mike

  • How to get previous row of result set in select query?

    I want to access the previous row of an result set obtained yet, in the same selectquery .
    How can I do that?

    Use analytical functions.
    For example:
    create table top_n_test (
       a number,
       b varchar2(10)
    insert into top_n_test values (1,   'one');
    insert into top_n_test values (2,   'two');
    insert into top_n_test values (3, 'three');
    insert into top_n_test values (4,  'four');
    insert into top_n_test values (5,  'five');
    insert into top_n_test values (6,   'six');
    insert into top_n_test values (7, 'seven');
    insert into top_n_test values (8, 'eight');
    insert into top_n_test values (9,  'nine');
    commit;
    select a, b from (
      select
        a,b,
        rank() over (order by b) r
      from
        top_n_test
    where
      r<4;
             A B
             8 eight
             5 five
             4 fourHTH
    Ghulam

  • How to create the Sap script & Layout Set (wants sample code)

    Hi All ,
    Can you please provide me the step by step procedure
    to create the Sap script & Layout Set .(please provide sample
    code/links /docs for layout & print program).
    Regards
    Rahul

    hi,
    go through the following links  what i found to create sap script.
    http://www.thespot4sap.com/Articles/SAPscript_Introduction.asp
    http://abapliveinfo.blogspot.com/2008/01/free-sapscript-made-easy-46-book.html
    http://www.thespot4sap.com/articles/SAPscript_example_code.asp
    http://idocs.de/www3/cookbooks/sapscript/sapscript_1/docu.htm
    http://idocguru.com/www5/cookbooks/sapscript/sapscript_1/example.htm
    www.geocities.com/wardaguilar25/sapscript-tutorial.html
    http://logosworld.de/www3/cookbooks/sapscript/sapscript_8/docu.htm
    how to create a  scripts?give steps?
    https://forums.sdn.sap.com/click.jspa?searchID=1811669&messageID=2969311
    https://forums.sdn.sap.com/click.jspa?searchID=1811669&messageID=2902391
    https://forums.sdn.sap.com/click.jspa?searchID=1811669&messageID=3205653
    https://forums.sdn.sap.com/click.jspa?searchID=1811669&messageID=3111402
    http://www.sap-img.com/sapscripts.htm
    http://sappoint.com/abap/
    http://www.henrikfrank.dk/abapexamples/SapScript/sapscript.htm
    http://help.sap.com/saphelp_crm40/helpdata/en/16/c832857cc111d686e0000086568e5f/content.htm
    http://www.sap-basis-abap.com/sapabap01.htm
    http://www.sap-img.com/sapscripts.htm
    http://searchsap.techtarget.com/tip/1,289483,sid21_gci943419,00.html
    http://sap.ittoolbox.com/topics/t.asp?t=303&p=452&h2=452&h1=303
    http://www.sapgenie.com/phpBB2/viewtopic.php?t=14007&sid=09eec5147a0dbeee1b5edd21af8ebc6a
    Other Links

  • How to Add extra data in result set of cfquerry?

    hi all,
    I am new to cold fusion please help me
    i am using the cfquery tag for executing a select query and getting the system name and system is from that........
    But i want an extra system name and system id to add to the result of that query with out changing the data base ..............
    please any one suggest me ...........IT's URGENT
    Thanks in advance
    Sudheer

    You'll have to use an array and the function queryAddColumn. An example follows.
    Suppose I have a result set called myQuery. There are 5 rows in it. I wish to add 2 new columns to the query, on the fly. The column names are username(type varchar) and userID(type integer)
    <!--- Create array corresponding to column username--->
    <cfset usernameArray = ArrayNew(1)>
    <cfset usernameArray[1] = "[email protected]">
    <cfset usernameArray[2] = "[email protected]">
    <cfset usernameArray[3] = "[email protected]">
    <cfset usernameArray[4] = "[email protected]">
    <cfset usernameArray[5] = "[email protected]">
    <!---
    The next line adds the new column, username, to the query. That's it. Done.
    The array indices correspond to the row numbers in the query.
    The function queryAddColumn returns the column number for the newly added column
    (in case you'll need it, which you usually wont ).
    --->
    <cfset columnNumber = queryAddColumn(myQuery, "username", "VarChar", usernameArray)>
    <!--- Now, do the same for the next new column, userID  --->
    <cfset userIDArray = ArrayNew(1)>
    <cfset userIDArray[1] = "23">
    <cfset userIDArray[2] = "121">
    <cfset userIDArray[3] = "9">
    <cfset userIDArray[4] = "76">
    <cfset userIDArray[5] = "44">
    <cfset columnNumber = queryAddColumn(myQuery, "userID", "integer", userIDArray)>

  • How do I break up a result set over various pages?

    I would like some example code of how to breakup a result set that I am using in a form.
    There are too many results for the form to currently work properly on one page so I have to do it over several web pages, using a next page link etc...
    I am currently using servlets.
    If anyone has an idea of how to do this differently have at it and let me know what to do. I prefer code examples.

    I would change the select query so that it doesn't return the whole resultset. Check your database manual to see if your database supports something like limit. E.g. this query will only return the 20 first records if you are using mysql.
    select *
    from tablename
    limit 0,20
    Kaj

  • How to: Create a custom search result screen?

    Hello,
    Is it possible to create a custom search result screen?
    I need it because the users must be able to directly e-mail
    the items or a selection of the items returned by the search.
    For this modification of the standard result page isn't sufficient.
    Thanks,
    Steven.

    Steven, please see:
    http://technet.oracle.com/products/iportal/files/pdk/plsql/doc/sdk23pkg.htm

  • How to create count() measure for certain set of records in BMM Layer

    Hello all.
    I have a logical table like this one (Table AAA)
    Table AAA
    <p>
    --------------------------+<p>
    |       *Key*            |    *Name* |   <p>
    --------------------------+<p>
    |    1-2EMHS9     | AAA      |<p>
    --------------------------+<p>
    | 1-2EMWMO      | BBB      |<p>
    --------------------------+<p>
    |         NULL       |     CCC   |<p>
    --------------------------+<p>
    I need to calculate count() of records where <b>Key is not NULL</b>. In this example, this field must return coun() = 2.
    I suppose, CASE operator may help me with that, but I do not know for sure how to do this.
    Thank you for help,
    Alex.

    Thank you.
    But I must concretise my issue.
    I need to calculate number of records (e.g. order_id) that sutisfy appropriate condition (one of columns (e.g. loy_member_id) is set to null).
    I created logical column, that returns order_id if condition (loy_member_id is null) is met.
    Look at my logical column:
    Q Orders (LPM) - must return number of orders where loyalty_member_id is null.
    It has an expression:
    CASE  WHEN  NOT "Foxtrot (my) replica"."Sales Orders".LOY_MEMBER_ID IS NULL  THEN "Foxtrot (my) replica"."Sales Orders".ORDER_ID ELSE  NULL  END
    So, this returns order_id I need.
    But the question is how to count number of <b>order_id</b>'s returned by this column on BMM Layer.
    When I define my column with next expression:
    *<u>COUNT</u>(CASE WHEN NOT "Foxtrot (my) replica"."Sales Orders".LOY_MEMBER_ID IS NULL THEN "Foxtrot (my) replica"."Sales Orders".ORDER_ID ELSE NULL END)*
    I receive error:
    +[38083] The Attribute 'Q Orders LPM' defines a measure using an obsolete method.+
    Thank you,
    Alex.
    Edited by: Alex B on 3/3/2009 19:59

  • How to create Bridge connecting distributed Topic to queue

    Hi,
    I am trying to create a bridge which connects distributed topic with JMS queue.
    Both the topic and queue are in the same domain.
    But it is not getting connected. Status is failed.
    Below is the configuration -
    <messaging-bridge>
    <name>DisTopicBridge</name>
    <target>Managed_soa_server01</target>
    <source-destination>DisTopicSource</source-destination>
    <target-destination>QueueSource1</target-destination>
    <selector></selector>
    <quality-of-service>Exactly-once</quality-of-service>
    <qos-degradation-allowed>false</qos-degradation-allowed>
    <durability-enabled>true</durability-enabled>
    <idle-time-maximum>60</idle-time-maximum>
    <async-enabled>true</async-enabled>
    <started>true</started>
    <preserve-msg-property>false</preserve-msg-property>
    </messaging-bridge>
    <jms-bridge-destination>
    <name>DisTopicSource</name>
    <adapter-jndi-name>eis.jms.WLSConnectionFactoryJNDIXA</adapter-jndi-name>
    <classpath></classpath>
    <connection-factory-jndi-name>jndi/TestConnectionFactory</connection-factory-jndi-name>
    <initial-context-factory>weblogic.jndi.WLInitialContextFactory</initial-context-factory>
    <connection-url>t3://xxx.xx.xxx.40:9101</connection-url>
    <destination-jndi-name>jndi/TestDistributedTopic</destination-jndi-name>
    <destination-type>Topic</destination-type>
    </jms-bridge-destination>
    <jms-bridge-destination>
    <name>QueueSource1</name>
    <adapter-jndi-name>eis.jms.WLSConnectionFactoryJNDIXA</adapter-jndi-name>
    <classpath></classpath>
    <connection-factory-jndi-name>jndi/QConnectionFactory</connection-factory-jndi-name>
    <initial-context-factory>weblogic.jndi.WLInitialContextFactory</initial-context-factory>
    <connection-url>t3://xxx.xx.xxx.40:9101</connection-url>
    <destination-jndi-name>jndi/TestQueue2</destination-jndi-name>
    <destination-type>Queue</destination-type>
    </jms-bridge-destination>
    Error in the log:
    <Warning> <MessagingBridge> <server-app-01> <Managed_soa_server01> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <d632395af8efc868:3b2a67dd:13752cfef88:-8000-00000000000d3c66> <1337198463908> <BEA-200026> <Bridge "DisTopicBridge" encountered some problems in one of its adapters or underlying systems. It stopped transferring messages and will try to reconnect to the adapters shortly. (The exception caught was javax.resource.ResourceException: Error setting message listener.)>
    <Info> <MessagingBridge> <server-app-01> <Managed_soa_server01> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <d632395af8efc868:3b2a67dd:13752cfef88:-8000-00000000000d3c67> <1337198463908> <BEA-200020> <Bridge "DisTopicBridge" is stopped.>
    <Info> <MessagingBridge> <server-app-01> <Managed_soa_server01> <[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <d632395af8efc868:3b2a67dd:13752cfef88:-8000-00000000000d3cb9> <1337198471319> <BEA-200034> <Bridge "DisTopicBridge" is shut down.>
    Is there any special way we have to configure the Bridge while using Distributed topic?

    Hello,
    Please find the more details about the error we are receiving ( BEA-200026 )
    http://docs.oracle.com/cd/E13222_01/wls/docs100/messages/Bridge.html
    BEA-200026
    Warning: Bridge "arg01" encountered some problems in one of its adapters or underlying systems. It stopped transferring messages and will try to reconnect to the adapters shortly. (The exception caught was t.)
    Description
    This message indicates that errors occurred during the process of transferring messages. The bridge stopped its connections to both adapters and will attempt reconnect soon.
    Cause
    There was a problem in receiving or sending messages to one of the sides of the bridge.
    Action
    No action required.
    I would also request you to specify the version of weblogic and verify if the adapter is being deployed properly.
    Please reveiw the bridge document
    http://docs.oracle.com/cd/E11035_01/wls100/bridge/bridgefaq.html
    Can you also check the status of the bridge
    Messaging –> Bridges –> YOUR_Bridge_NAME –> Monitoring [tab]
    Please provide the above required details
    -Vishal Iyer

  • How to get Difference of a Result set in reports

    Hello,
    I am trying to get difference (variance) of sales in past year and current year. Below is the report which accumulates the sales for 2013 and 2014 and also accumulates the Sales for both year , but how can we get the difference of sales in Years. Any ideas really appreciated.
    Thank you,
    Pavan

    Harish,
    I tried creating Some restriction Key figures and calculated key figures as I want this by every month as well. Not a straight forward (easy)way. I had to create many Key figures.
    I really appreciate your response.
    Thank you,
    Pavan.

  • Creating XML from large result sets

    We are trying to create XML docs from queries that return somewhere in the neighborhood of 13000+ rows, each with as many as 30 columns. It seems someplace deep within the xmlgen utility or the xsu methods, we throw an OutOfMemoryError. This happens whether we run as a java stored procedure, a pl/sql stored procedure, pl/sql script or java servlet. It looks like the top of the stack shows the problem occurs trying to extendCapacity in a StringBuffer. We're running 8.1.6 with java 1.2.2 and xsu 1.2. Has anyone had to query large amounts of data like this and if so, how did you go about it? Is there a slick way to break things up and then string everything back into 1 big xml doc? Any help would be greatly appreciated. Thanks.

    I guess you can use pagination,
    either using xsu or Top N Queries and then you could merge all the pages in an unique XML or DOM tree prior to persist it to disk.
    With XSU:
    Go to the following link for a clear explanation:
    <http://technet.oracle.com/docs/products/oracle8i/doc_library/817_doc/appdev.817/a86030/adx04x11.htm#1008351>
    With Top N queries:
    Go to the following thread of this forum to see a similar question I raised and it was answered in detail:
    <http://technet.oracle.com:89/ubb/Forum11/HTML/004711.html>
    - Jose Angel -

  • How to create list of string from set of parameters?

    Hey,
    I have query methods who gets set of parameters for example:
    getUser(String userName, int userAge)I use in int because this field is not null!!!
    I want to create a general auditing method - the auditing method get list of query param names and query param values, so i need to create a generic method that get set of valus (can be from any type) and return List<String>.
    Array.asList will not work because i have primitive types (like int)
    Thank you

    I wrote a helper for this.
    I dont know if there is supported helper in java.
        public static List<String> getStringList(Object... arguments)
            List<String> list = new ArrayList<String>();
            for (Object object : arguments)
                if (object == null)
                    list.add("NULL");
                else
                    list.add(object.toString());
            return list;
        }

  • How to avoid duplicates for an result set

    how to avoid the duplicate rows for the below query
    SELECT  to_char(grecode (titleid)) gre_code, to_char(toeflcode (titleid)) toefl_code,titleid
              FROM (SELECT DISTINCT TO_CHAR
                                       (UPPER (TRIM (get_clob_value (table_name,
                                                                     KEY
                                       ) RESULT,
                                    titleid
                               FROM mcp_specifications a JOIN mcp_title_specifications b
                                    ON a.specificationid = b.specificationid
                                    JOIN mcp_titles c ON b.titleid = c.titleid
                              WHERE b.is_parent = 'F'
                                AND UPPER (TRIM (c.university_state)) =
                                                              UPPER (TRIM ('USA'))
                                AND TO_CHAR (get_clob_value (table_name, KEY)) IS NOT NULL
                                AND UPPER (TRIM (SPECIFICATION)) IN
                                                       (UPPER (TRIM ('program'))))
             WHERE UPPER (TRIM (RESULT)) = UPPER (TRIM ('COMPUTER SCIENCE'))
          ORDER BY RESULT ASC;the output of the query would be
    gre_code    toefl_code   titleid
    402             78             5518
    402             78             5519
    402             78             5520
    402             78             5521the output should be
    402 78 any titleid

    Some simplified code:
    SELECT grecode(titleid) gre_code,
           toeflcode(titleid) toefl_code,
           min(titleid) titleid
    FROM   (SELECT DISTINCT TO_CHAR(UPPER(TRIM(get_clob_value(table_name,KEY)))) RESULT,
                   titleid
            FROM   mcp_specifications a
                   JOIN mcp_title_specifications b
                        ON a.specificationid = b.specificationid
                   JOIN mcp_titles c
                        ON b.titleid = c.titleid
            WHERE  b.is_parent = 'F'
            AND    UPPER(TRIM(c.university_state)) = 'USA'
            AND    TO_CHAR (get_clob_value (table_name, KEY)) IS NOT NULL
            AND    UPPER(TRIM(SPECIFICATION)) = 'PROGRAM')
    WHERE  UPPER(TRIM(RESULT)) = 'COMPUTER SCIENCE'
    GROUP BY grecode(titleid),
             toeflcode(titleid)Please note that applying functions like UPPER and TRIM on a string literal can and should be avoided.
    For example:
    UPPER(TRIM('USA')) = 'USA'Why force the database to do both an UPPER and a TRIM on something that can just be represented in uppercase with no surrounding spaces? It's a waste of time.

  • How to create a people picker type metadata in a document set?

    
    Hi folks,
    I want to create a people picker type metadata in a document
    set (it has some content types and it resides inside a library).
    So please help me knowing steps for creating it. 
    Our web application is using classic based authentication therefore I want to retrieve the names and groups in people picker column from Active Directory.
    Also, the document set library for which I want to create people picker metadata did not had document set before and documents where saved directly in content types as well as the metadata that now we are making as people picker was before of type Single line
    of text. 
    So, whether after creating it of type people picker, at the time of moving documents into document set, it will create problem? If yes,than of of what kind and how can it be resolved?
    Replies will be greatly appreciated.
    -Ishita

    Hi,
    From your description, I know you want to add a people picker column in a document set, then add this document set into a document library.
    If you want to add a people picker column in a document set you should create a document set first. You can know how to create and configure a document set by referring to this article: https://support.office.com/en-us/article/Create-and-configure-a-new-Document-Set-content-type-9db6d6dc-c23a-4dcd-a359-3e4bbbc47fc1.
    After creating a document set, you can follow these steps below to add a people picker column in a document set: click Site Actions -> Site Settings -> under  Galleries section, Site content types -> find the content you want to add people
    picker column -> under Columns section, Add from new site column -> Name and Type, enter your column name and choice Person or Group -> OK.
    If you move documents into document set, it will keep the current properties. You can edit properties to change the document to another content type which is  contained in the document set.
    In my case, DocA is the content type of the document library, Document and DocB are content types of the document set.
    If I have mis-understand, please let me know.
    Best Regards

Maybe you are looking for

  • I can't open iTunes on my laptop.

    I get a message 'The folder containing 'iTunes Library.itl' cannot be found and it is required. Please choose or create a new iTunes Library' My Laptop runs Vista. I can see the music files etc if I look in the My Computer folders. I have always used

  • I had airplaine mode on for 2 weeks cant start My iPad again

    I cant start My IPad its blocked, had airplaine mode on for two weeks and now it says that its no securitycopy done and that I have to do certain things but I cant because IPad dont answer, I can not either open or close, so I cant change from Airpla

  • Text and layer position problems

    Hi, I am creating a webpage and I have installed a background image. for which I have centred and all is fine. I am now using layers to add text so I can place the text wherever I want. But when I save and view in IE and Firefox the text is not in th

  • Trying to restore iCal, iPhoto, iMovie

    I bought a new macbook pro and had all my data transferred to my new laptop. I was deleting all my pictures, contacts, movies etc from my old macbook 10.6.8 but unfrtunatly I somehow deleted the iCal, iPhoto, iMovie and address book applications. Is

  • Do I have to pay for TV shows twice???

    I have bought a tv show on my MacBook Air. This does not show in the iCloud, (that's in the UK, at least - I have seen a site suggesting it does in the US, but that is no use to me). I want this tv show on my iPhone as well, but I don't sync it via m