Create N rows on the fly

I'm looking for a query that creates a number of N records without having a table in the database. I have this done in ms sql server using "union select" to create a static list of rows and then restrict this to N records using "select top N". The query is generated and N is passed as a parameter.
In ms sql it looks like this where <count> is replaced by the number of rows I need (the list can have maximum 1000 rows):
select top <count> a.c n1, b.c n2,c.c n3,d.c n4 from (select '1' as c union select '2' as c union select '3' as c union select '4' as c union select '5' as c union select '6' as c union select '7' as c union select '8' as c ) a, (select '1' as c union select '2' as c union select '3' as c union select '4' as c union select '5' as c union select '6' as c union select '7' as c union select '8' as c ) b, (select '1' as c union select '2' as c union select '3' as c union select '4' as c union select '5' as c union select '6' as c union select '7' as c union select '8' as c ) c, (select '1' as c union select '2' as c ) d
I know this is not a clean solution, but doesn't matter. The content of the list doesn't matter as well. I just need N rows no matter how many columns.
How does this work in pl/sql?

Hi,
Welcome to the forum!
You don't need PL/SQL for that. In Oracle, you can say:
SELECT  LEVEL   AS n
FROM    dual
CONNECT BY      LEVEL   <= x
;The result set will have x rows, with n=1, 2, 3, ..., x.
In Oracle, every query needs a FROM clause that includes at least one table or view (or result set). The dual table (which contains 1 row) is often used when you're not getting any information from a table.

Similar Messages

  • How do I create an object on the fly

    Hello there,
         I was wondering if it is possible to create an object on-the-fly. For example:- I have a class called Customer which holds the name, address and phone number of a customer. While the program is running I get a new customer, Mr Brown. How can I create a new Customer object which will hold the details of Mr Brown.
    yours in anticipation
    seaview

    If I understood you right, you are thinking far too complicated.
    So, when you click a button, a new object shall be created and stored. So basically you write a listener to your button that contains a method like this:
    public void actionPerformed(ActionEvent e){
       Customer newCustomer = new Customer(textfield.getText());
       listOfCustomers.add(newCustomer);
    }Maybe what got you confused is the object's name. Remember this: variables and field names DON'T exist anymore at runtime! They are just meant to help you when programming. If you want Mr. Brown as a customer, you have to provide a field in the customer class for the name. If a field is required for the existence of an object, you usually write a custom constructor for it, which accepts an according parameter.

  • How to create reports online on the fly using meta-data.

    We have dataset and blank report. How can I create report design on the fly ? so that it will able to display report dataset.
    Can someone tell me it is possible or not ? or some reference links....

    Hello,
    This can be certainly done by executing a script written using Report Application Server (RAS) SDK.
    Please refer the link : [http://devlibrary.businessobjects.com|http://devlibrary.businessobjects.com] for detailed documentation on the usage of RAS SDK.
    Regards,
    Chinmay Athavale
    Edited by: Chinmay1009 on Jul 27, 2010 3:46 PM

  • How can I create a cluster on the fly?

    I'm inserting rows in a database table as part of a logging effort for our program.  The table in question has a lot of columns, many of which can be null at any particular time.  As such, I'd like to decide at run time (as situations warrant) which columns get a value when I add the new row.  The columns are of mixed data types... some strings, some floats, some ints, etc.
    For example...
    On one pass, I'd like to populate columns "temp", "volume", and "weight".
    On another pass, I may want to populate columns "temp", "color", and "notes".
    I gen the array of column names.  That part's easy
    How (in the world) do I create the cluster that feeds the DATA input of the "DB Tools Insert Data" VI?
    Sometimes I may need an int, a float, and a boolean.
    Other times I may need two ints and a string.
    Thanks!
    Solved!
    Go to Solution.

    Given this example you could have a table which contains a the timestamp and a record ID. Most databases can assign the key automatically and guarantee it to be unique. You may also store the machine name or other identifying information specific to this entry. However, all columns in this table would be populated in every record. You can then have another table which contains the specific data for that record. This table would have a column which contains the ID from your other table. You can have multiple entries in this table for that specific ID. This table would contain the ID from the other table, a column indicating what the specifc data is (voltage, temperature, pressure, etc.) and then the data itself. If you have different data types you can have a table for each specific data type (string, double, image, etc.). If you have separate tables for the different data types you would need a key/ID for each data value record. The data tables would simply be the ID for the data attribute and the value itself.
    So, table one may consist of the following columns: Table1-Key, Timestamp, Test ID
    The attributes table would have the following columns:  Table1-Key, Record Type, Data-Key
    Your Data Tables would have the following columns: Data-Key, Value (You could have multiple Data Tables for each data type.
    To get all the data for a specific time you join the results of the queries from the tables for a specific Table1-Key and the corrsponding Data-Keys from the data tables.
    If your table currently has dozens of columns but you are only storing a few at a time your are wasting a ton of space for all the empty columns. Some databases are better than others at reducing this waste but link table help you to store only the specific data for a given record and not fill the database with lots of empty records.
    Mark Yedinak
    "Does anyone know where the love of God goes when the waves turn the minutes to hours?"
    Wreck of the Edmund Fitzgerald - Gordon Lightfoot

  • How to create thumbnail images on the fly from JSP or servlet?

    Hi all,
    Iam new to this forum. I need a solution for the problem iam facing in building my site. Ihave groups and briefcase section in my site. I allow users to upload files and pictures.
    When they upload pictures i need to create thumbnail for them on the fly.
    Is there any taglibs or java source to do this from JSP or servlets.
    It would be very greatful if i can get an early answer.
    Please let me know if there is any other forum where i can get better answer, if not here?
    thnx.

    Here is how you can create dynamic images:
    http://developer.java.sun.com/developer/JDCTechTips/2001/tt0821.html#tip2
    However, if you want to create gifs/jpegs and save them to the disk it depends from where you want to create the images. It is different if you are creating from another image or just drawing one from scratch etc.. But in the end you will probably need to use one of the imageencoder classes and write the result to the disk with the file io classes.

  • Any limitation when you try to create a sdo_geometry in the fly?

    I was trying to use sdo_relate to find the IDs of the lines(geodetic data) in the database by contructing a long line with long/lat values, and spatially relate it with those lines in database. There are about 400 points that make that long route(I'm sure that it's a valid line). The interesting thing is that if I only use small portion of it(let's say, the first 40 points of that line), and use those long/lat value to build the sdo_geometry in my query, it worked, and returned me some IDs. However, if I use the whole line to do that(the SQL query is exactly the same except I have MORE values for the SDO_ORDINATE_ARRAY parameter. and this time it returned nothing????? The following is the query that I used the first small part of the line. I'm really confused here. Any limit on contructing a sdo_geometry in the fly? actually I had a similar problem when I tried to contruct a polygon sdo_geometry by using the points value that make a MSA area(which usually is a long list of points value), it failed, but the same query worked for less points that makes a polygon. I could get around with that problem. But for this, I have to work it out.Any idea about how to get around with it?
    The following query only have the first part of the line, and it worked! but not if I put the whole long line data there!!!
    select ID from MIAMI_AREA_LONG where sdo_relate(geoloc, mdsys.sdo_geometry(2002,8265,NULL,mdsys.sdo_elem_info_array(1, 2, 1),mdsys.sdo_ordinate_array(-80.34217071533203,25.76181411743164,-80.3421655,25.7615084,-80.3421655,25.7615084,-80.340347,25.761539,-80.340347,25.761539,-80.332611,25.761629,-80.332611,25.761629,-80.324547,25.7618009,-80.324547,25.7618009,-80.321007,25.76193,-80.321007,25.76193,-80.320374,25.761959,-80.320374,25.761959,-80.3186489,25.762051,-80.3186489,25.762051,-80.317002,25.7621499,-80.317002,25.7621499,-80.3162229,25.76222,-80.3162229,25.76222,-80.315803,25.76222,-80.315803,25.76222,-80.310852,25.762409,-80.310852,25.762409,-80.303726,25.762659,-80.303726,25.762659,-80.296356,25.76292,-80.296356,25.76292,-80.288299,25.7630899,-80.288299,25.7630899,-80.279953,25.763439,-80.279953,25.763439,-80.277801,25.763519,-80.277801,25.763519,-80.271446,25.763701,-80.271446,25.763701,-80.263413,25.76404,-80.263413,25.76404,-80.255081,25.764219,-80.255081,25.764219,-80.249946,25.764481,-80.249946,25.764481,-80.248383,25.764481,-80.248383,25.764481,-80.247704,25.764481,-80.247704,25.764481,-80.24527,25.764561,-80.24527,25.764561,-80.241463,25.76474,-80.241463,25.76474,-80.239029,25.76474,-80.239029,25.76474,-80.238983,25.76474,-80.238983,25.76474,-80.238297,25.764771,-80.238297,25.764771,-80.23764,25.7654299,-80.23764,25.7654299,-80.23729,25.76569,-80.23729,25.76569,-80.234177,25.76585,-80.234177,25.76585,-80.230957,25.766041,-80.230957,25.766041,-80.2268069,25.766041)),'mask=overlapbdydisjoint querytype=window') = 'TRUE'
    Thanks!
    Tim

    Hi Dan,
    The following is the one that failed, the difference between this and the last one worked is this the whole line, while the one above is just first part of this long line. Actually it didnot give any error, but just did not return anything. It doesnot make sense because I am using a longer line now, while it returned something if I just use part of it. Thanks a lot!
    I had a similar limitation problem when I try to create a SDO_GEOMETRY with the points I got from a MSA polygon by using the SDO API.
    I'm using Oracle 9i and it reside at window 2000 platform. BTW, when is the spatial patch coming out?
    select ID from MIAMI_AREA_LONG where sdo_relate(geoloc, mdsys.sdo_geometry(2002,8265,NULL,mdsys.sdo_elem_info_array(1, 2, 1),mdsys.sdo_ordinate_array(-80.34217071533203,25.76181411743164,-80.3421655,25.7615084,-80.3421655,25.7615084,-80.340347,25.761539,-80.340347,25.761539,-80.332611,25.761629,-80.332611,25.761629,-80.324547,25.7618009,-80.324547,25.7618009,-80.321007,25.76193,-80.321007,25.76193,-80.320374,25.761959,-80.320374,25.761959,-80.3186489,25.762051,-80.3186489,25.762051,-80.317002,25.7621499,-80.317002,25.7621499,-80.3162229,25.76222,-80.3162229,25.76222,-80.315803,25.76222,-80.315803,25.76222,-80.310852,25.762409,-80.310852,25.762409,-80.303726,25.762659,-80.303726,25.762659,-80.296356,25.76292,-80.296356,25.76292,-80.288299,25.7630899,-80.288299,25.7630899,-80.279953,25.763439,-80.279953,25.763439,-80.277801,25.763519,-80.277801,25.763519,-80.271446,25.763701,-80.271446,25.763701,-80.263413,25.76404,-80.263413,25.76404,-80.255081,25.764219,-80.255081,25.764219,-80.249946,25.764481,-80.249946,25.764481,-80.248383,25.764481,-80.248383,25.764481,-80.247704,25.764481,-80.247704,25.764481,-80.24527,25.764561,-80.24527,25.764561,-80.241463,25.76474,-80.241463,25.76474,-80.239029,25.76474,-80.239029,25.76474,-80.238983,25.76474,-80.238983,25.76474,-80.238297,25.764771,-80.238297,25.764771,-80.23764,25.7654299,-80.23764,25.7654299,-80.23729,25.76569,-80.23729,25.76569,-80.234177,25.76585,-80.234177,25.76585,-80.230957,25.766041,-80.230957,25.766041,-80.2268069,25.766041,-80.2268069,25.766041,-80.222717,25.766109,-80.222717,25.766109,-80.2195969,25.766199,-80.2195969,25.766199,-80.214569,25.766371,-80.214569,25.766371,-80.2114409,25.76646,-80.2114409,25.76646,-80.207703,25.7665599,-80.207703,25.7665599,-80.202682,25.76672,-80.202682,25.76672,-80.200653,25.766781,-80.200653,25.766781,-80.200363,25.768009,-80.200363,25.768009,-80.200027,25.769131,-80.200027,25.769131,-80.199768,25.77026,-80.199768,25.77026,-80.1996,25.77072,-80.1996,25.77072,-80.199417,25.7711599,-80.199417,25.7711599,-80.200027,25.7732199,-80.200027,25.7732199,-80.200104,25.77634,-80.200104,25.77634,-80.200287,25.778589,-80.200287,25.778589,-80.200493,25.78067,-80.200493,25.78067,-80.201134,25.78252,-80.201134,25.78252,-80.202133,25.78413,-80.202133,25.78413,-80.203506,25.787081,-80.203506,25.787081,-80.204163,25.788469,-80.204163,25.788469,-80.205147,25.790529,-80.205147,25.790529,-80.205933,25.79591,-80.205933,25.79591,-80.206307,25.80196,-80.206307,25.80196,-80.20668,25.809231,-80.20668,25.809231,-80.20668,25.809389,-80.20668,25.809389,-80.206573,25.812071,-80.206573,25.812071,-80.206512,25.813629,-80.206512,25.813629,-80.206627,25.8182389,-80.206627,25.8182389,-80.2070619,25.8251,-80.2070619,25.8251,-80.206207,25.830151,-80.206207,25.830151,-80.206284,25.83301,-80.206284,25.83301,-80.206307,25.83536,-80.206307,25.83536,-80.206467,25.838181,-80.206467,25.838181,-80.206512,25.841261,-80.206512,25.841261,-80.206863,25.843189,-80.206863,25.843189,-80.208153,25.846741,-80.208153,25.846741,-80.208389,25.852449,-80.208389,25.852449,-80.208511,25.857861,-80.208511,25.857861,-80.208794,25.86475,-80.208794,25.86475,-80.209007,25.868769,-80.209007,25.868769,-80.209053,25.869551,-80.209053,25.869551,-80.209579,25.876141,-80.209579,25.876141,-80.209427,25.877729,-80.209427,25.877729,-80.209396,25.881929,-80.209396,25.881929,-80.209557,25.88719,-80.209557,25.88719,-80.209824,25.892879,-80.209824,25.892879,-80.210213,25.898029,-80.210213,25.898029,-80.210213,25.901569,-80.210213,25.901569,-80.210213,25.90596,-80.210213,25.90596,-80.210213,25.91148,-80.210213,25.91148,-80.210587,25.916759,-80.210587,25.916759,-80.210587,25.92079,-80.210587,25.92079,-80.210953,25.921801,-80.210953,25.921801,-80.210953,25.92268,-80.210953,25.92268,-80.210213,25.923929,-80.210213,25.923929,-80.20932,25.92482,-80.20932,25.92482,-80.208946,25.925199,-80.208946,25.925199,-80.207581,25.926451,-80.207581,25.926451,-80.207718,25.92651,-80.207718,25.92651,-80.207977,25.926701,-80.207977,25.926701,-80.208237,25.92696,-80.208237,25.92696,-80.208588,25.927311,-80.208588,25.927311,-80.20903,25.927731,-80.20903,25.927731,-80.209534,25.9281599,-80.209534,25.9281599,-80.210747,25.929461,-80.210747,25.929461,-80.211197,25.929899,-80.211197,25.929899,-80.2118069,25.93051,-80.2118069,25.93051,-80.212227,25.9308489,-80.212227,25.9308489,-80.212593,25.9312,-80.212593,25.9312,-80.213013,25.931629,-80.213013,25.931629,-80.213623,25.93224,-80.213623,25.93224,-80.2142329,25.9328499,-80.2142329,25.9328499,-80.214752,25.933359,-80.214752,25.933359,-80.215271,25.9338799,-80.215271,25.9338799,-80.216049,25.934589,-80.216049,25.934589,-80.2163999,25.934839,-80.2163999,25.934839,-80.216659,25.935101,-80.216659,25.935101,-80.217163,25.935619,-80.217163,25.935619,-80.217507,25.93597,-80.217507,25.93597,-80.217957,25.936489,-80.217957,25.936489,-80.2185669,25.937099,-80.2185669,25.937099,-80.219254,25.93779,-80.219254,25.93779,-80.221161,25.939619,-80.221161,25.939619,-80.222992,25.941441,-80.222992,25.941441,-80.223862,25.942381,-80.223862,25.942381,-80.2246399,25.94334,-80.2246399,25.94334,-80.225418,25.94421,-80.225418,25.94421,-80.226097,25.945431,-80.226097,25.945431,-80.226723,25.9463009,-80.226723,25.9463009,-80.227226,25.94734,-80.227226,25.94734,-80.227753,25.94846,-80.227753,25.94846,-80.228287,25.94994,-80.228287,25.94994,-80.228623,25.951229,-80.228623,25.951229,-80.228973,25.952971,-80.228973,25.952971,-80.229141,25.9541,-80.229141,25.9541,-80.229141,25.95558,-80.229141,25.95558,-80.2292329,25.957399,-80.2292329,25.957399,-80.229317,25.95982,-80.229317,25.95982,-80.229507,25.96278,-80.229507,25.96278,-80.229584,25.96538,-80.229584,25.96538,-80.229752,25.97006,-80.229752,25.97006,-80.2298129,25.971371,-80.2298129,25.971371,-80.229843,25.9718,-80.229843,25.9718,-80.229851,25.971907,-80.229851,25.971907,-80.229919,25.973881,-80.229919,25.973881,-80.229927,25.97397,-80.229927,25.97397,-80.230103,25.978041,-80.230103,25.978041,-80.230186,25.97978,-80.230186,25.97978,-80.23027,25.98238,-80.23027,25.98238,-80.230011,25.984119,-80.230011,25.984119,-80.229683,25.985689,-80.229683,25.985689,-80.229317,25.98698,-80.229317,25.98698,-80.228973,25.98802,-80.228973,25.98802,-80.228554,25.989059,-80.228554,25.989059,-80.227943,25.9902799,-80.227943,25.9902799,-80.227333,25.99123,-80.227333,25.99123,-80.226547,25.992359,-80.226547,25.992359,-80.225418,25.993839,-80.225418,25.993839,-80.224289,25.994961,-80.224289,25.994961,-80.222382,25.99687,-80.222382,25.99687,-80.2195969,25.999559,-80.2195969,25.999559,-80.21701,26.002331,-80.21701,26.002331,-80.21579,26.00407,-80.21579,26.00407,-80.215012,26.005369,-80.215012,26.005369,-80.214661,26.006241,-80.214661,26.006241,-80.214142,26.00728,-80.214142,26.00728,-80.213882,26.00815,-80.213882,26.00815,-80.213531,26.009279,-80.213531,26.009279,-80.213493,26.00946,-80.213493,26.00946,-80.2132869,26.01022,-80.2132869,26.01022,-80.213097,26.011869,-80.213097,26.011869,-80.213013,26.01335,-80.213013,26.01335,-80.213013,26.01474,-80.213013,26.01474,-80.2132029,26.0182,-80.2132029,26.0182,-80.213463,26.023331,-80.213463,26.023331,-80.213623,26.02766,-80.213623,26.02766,-80.213707,26.031481,-80.213707,26.031481,-80.213814,26.034611,-80.213814,26.034611,-80.213882,26.035391,-80.213882,26.035391,-80.213966,26.03635,-80.213966,26.03635,-80.214142,26.03755,-80.214142,26.03755,-80.214317,26.0392,-80.214317,26.0392,-80.214577,26.042139,-80.214577,26.042139,-80.214767,26.04414,-80.214767,26.04414,-80.21492,26.0463099,-80.21492,26.0463099,-80.215103,26.04987,-80.215103,26.04987,-80.215271,26.053511,-80.215271,26.053511,-80.215447,26.05827,-80.215447,26.05827,-80.215622,26.062189,-80.215622,26.062189,-80.2157129,26.0668599,-80.2157129,26.0668599,-80.215881,26.07147,-80.215881,26.07147,-80.216049,26.076229,-80.216049,26.076229,-80.2161409,26.0796199,-80.2161409,26.0796199,-80.216232,26.082491,-80.216232,26.082491,-80.2163999,26.0863,-80.2163999,26.0863,-80.216583,26.09012,-80.216583,26.09012,-80.216614,26.09038,-80.216614,26.09038,-80.214213,26.091271,-80.214213,26.091271,-80.212619,26.090851,-80.212619,26.090851,-80.211955,26.090623,-80.211955,26.090623,-80.211055,26.090272,-80.211055,26.090272,-80.210063,26.089842,-80.210063,26.089842,-80.209056,26.089383,-80.209056,26.089383,-80.20721,26.088421,-80.20721,26.088421,-80.205332,26.087412,-80.205332,26.087412,-80.204173,26.086802,-80.204173,26.086802,-80.203242,26.086362,-80.203242,26.086362,-80.202669,26.086055,-80.202669,26.086055,-80.2021199,26.085826,-80.2021199,26.085826,-80.2014559,26.085595,-80.2014559,26.085595,-80.201036,26.085452,-80.201036,26.085452,-80.2002119,26.085263,-80.2002119,26.085263,-80.199121,26.085033,-80.199121,26.085033,-80.198328,26.084912,-80.198328,26.084912,-80.197672,26.084853,-80.197672,26.084853,-80.196947,26.0848039,-80.196947,26.0848039,-80.1960919,26.084792,-80.1960919,26.084792,-80.1952529,26.0848039,-80.1952529,26.0848039,-80.194155,26.0848039,-80.194155,26.0848039,-80.189112,26.084844,-80.189112,26.084844,-80.184671,26.0847729,-80.184671,26.0847729,-80.1801009,26.084533,-80.1801009,26.084533,-80.176912,26.084422,-80.176912,26.084422,-80.175096,26.083972,-80.175096,26.083972,-80.172197,26.083223,-80.172197,26.083223,-80.1712639,26.083015,-80.1712639,26.083015,-80.168663,26.081181,-80.168663,26.081181,-80.164663,26.082414,-80.164663,26.082414,-80.164709,26.084285,-80.164709,26.084285,-80.164694,26.084625,-80.164694,26.084625,-80.164694,26.084976,-80.164694,26.084976,-80.164663,26.085386,-80.164663,26.085386,-80.164579,26.086336,-80.164579,26.086336,-80.164495,26.087314,-80.164495,26.087314,-80.164495,26.087795,-80.164495,26.087795,-80.164511,26.087934,-80.164511,26.087934,-80.164518,26.088665,-80.164518,26.088665,-80.164518,26.089305,-80.164518,26.089305,-80.1645489,26.0902059,-80.1645489,26.0902059,-80.164633,26.091104,-80.164633,26.091104,-80.164678,26.092254,-80.164678,26.092254,-80.16474,26.094554,-80.16474,26.094554,-80.164755,26.098415,-80.164755,26.098415,-80.16477,26.099506,-80.16477,26.099506,-80.16474,26.100296,-80.16474,26.100296,-80.164694,26.101024,-80.164694,26.101024,-80.164625,26.101795,-80.164625,26.101795,-80.164518,26.102464,-80.164518,26.102464,-80.164404,26.103105,-80.164404,26.103105,-80.164312,26.103784,-80.164312,26.103784,-80.164175,26.105045,-80.164175,26.105045,-80.164076,26.106176,-80.164076,26.106176,-80.164053,26.1068849,-80.164053,26.1068849,-80.164066,26.107339,-80.164066,26.107339,-80.1640396118164,26.10733985900879)),'mask=overlapbdydisjoint querytype=window') = 'TRUE'

  • Possible to create java code on the fly?

    I'm just curious.
    I am in the process of making a bunch of custom Lightweight components which will be a part of a physics tutorial package. (Stuff like arrows, charges, fields, cars, rocks, etc.). I have some specific tutorial applets I am creating for a prof at my local u using these components.
    In the middle of this, I thought...
    Wouldn't it be GREAT if I could make an extremely simple "editor" which my prof could use directly to create his own applets? (I can certainly do the drag and drop, menus and stuff that would go along with this)
    Is it possible to write a program in Java which writes and compiles Java, without too much fuss?
    Another words, it would be wonderful if my prof could:
    Click on the Charge Object
    Drag it to the Physics Container
    Click on the Physics Container
    Turn on the Electric Field by changing the Container's properties
    Then hit Some Menu->Compile Applet
    and boom!! he'd have his applet exactly the way he wants it. (and the program would create the code for him to put on his website).
    Is it possible?
    :) Jen
    (P.S. please remember that my prof can't do Java, so even Java Beans in an IDE are out).

    Sure it's possible, but there are three things you need to consider here.
    1. Your IDE would support drag-and-drop as per your requirements. You'd have to learn that incase you haven't already done so.
    2. There's no point in writing your own Java compiler. You could after pouring through the specifications, but it's better just to generate the source file and compile it by running javac through your application.
    3. The source code generation. Depending on which part of your final applet code is fixed and which is variable this could be lot of work (the trickiest part being to decide what is fixed and what is variable.. in other words, the design).
    It sounds like fun alright, but you would get the same results by just putting all these features in the applet itself. Have the applet allow the user to choose amongst a host of features (the ones that you plan to put into your editor). I guess you'll have to make your final decision based on how much time you have.
    Have fun and best of luck.
    Arjun

  • Is there a way to create dynamic playlists on the fly in music on smart media?

    Often I'm at a friends house and we're looking through music trying to pick the next song to play as one is finishing.
    It would be really great to have an dynamic playlist where you could add and subtract songs as you go and so keep the music playing as you create away and the new list runs.
    I see a couple of apps offering this but they don't have good reviews. Also crossfade for this would be a nice option too.
    Any plans to give a 'life update' revamp to party goers using itunes on their smart devices?
    Or doesMusic have this feature and I'm just unaware of it?

    Yes, there is a way. Here is the workaround. You can add notes folders directly with your iPad or iPhone.
    http://keeplifesimple.weebly.com/1/post/2013/11/add-folders-to-native-notes-app- on-ios.html
    Enjoy! Please pass it on, leave a comment on the page, or "like us" on Facebook if you find this information helpful.

  • Can CF8 create pdf's on the fly?

    For example I want to create pdf's that render different information based on the user.
    I have a 2 page set pdf that all users will see, but I want the info that populates the right column on first page to be dynamic based on the user.
    Only the right column on the first page is dynamic and is based on the user , everything else would be the same.
    Its kind of like using a cfinclude on a regular cf page.
    Does this same kind of logic apply to creating PDF's?

    Yes, CF 8 has several functions that allow for the dynamic creation of PDF documents.  The documentation had all the details.
    Manipulating PDF Forms in ColdFusion
    http://livedocs.adobe.com/coldfusion/8/htmldocs/formsPDF_01.html#130281
    Assembling PDF Documents
    http://livedocs.adobe.com/coldfusion/8/htmldocs/cfpdf_01.html#160527
    Also here is a nice Blog series that discuess some of the features:
    ColdFusion 8: Working with PDFs (Part 1) (July 9, 2007)
    ColdFusion 8: Working with PDFs (Part 2) (July 10, 2007)
    ColdFusion 8: Working with PDFs - A Problem (July 12, 2007)
    ColdFusion 8: Working with PDFs (Part 3) (July 13, 2007)
    ColdFusion 8: Working with PDFs (Part 4) (July 13, 2007)
    ColdFusion 8: Working with PDFs (Part 5) (July 17, 2007)
    ColdFusion 8: Working with PDFs (Part 6) (July 21, 2007)
    ColdFusion 8: Working with PDFs (Part 7) (July 24, 2007)
    ColdFusion 8: Working with PDFs (Part 8) (July 30, 2007)

  • How to create multiple rows in a child table from the multi select Lov

    Hi
    We have Departments and EmployDept and Persons tables and each employee can associate multiple departments and vice versa.While creating a Department page there should be a Multi Select LOV(values from Persons table) with search option for the Persons.From the search panel we can select multiple persons for that department.Suppose we have selected 5 persons and click on submit, then it should create 5 rows in the EmployDept table for 5 persons with that department id.
    Any inputs on how to implement this scenario please..

    Maybe you can get some ideas from here -
    http://adfdeveloper.blogspot.com/2011/07/simple-implementation-of-af.html

  • How to create new or delete the existing row in the grid....

    hi my friends...
    i am developing report using Reuse_alv_grid_display...
    my requirement is... At runtime
              1.  i may create new row on the grid (empty row inwhich  i may enter the data).
              2.  i may delete a existing row in the grid
              3.  i may edit the existing data...
    then i have to trace the modification in the grid in one internal table...
    how can i get into this.....
    note:
    i have some idea to edit the existing record in the grid and trace those modification,
    but i don't know abt how to create new or delete the existing row....
    can you give me some idea...

    Hi deva,
    write a class which implemets these methods
    CLASS lcl_event_receiver DEFINITION.
      PUBLIC SECTION.
        METHODS:
    To handle the toolbar on alv
         handle_toolbar
           FOR EVENT toolbar OF cl_gui_alv_grid
              IMPORTING e_object e_interactive,
    To handle the buttons on the alv grid
         handle_user_command
           FOR EVENT user_command OF cl_gui_alv_grid
           IMPORTING e_ucomm.
    endclass.
    Now Implement these methods.
    CLASS lcl_event_receiver IMPLEMENTATION.
    To handle the toolbar on alv
      METHOD handle_toolbar.
       DATA ls_toolbar  TYPE stb_button.
        CLEAR gs_toolbar.
        MOVE 3 TO gs_toolbar-butn_type.
        APPEND gs_toolbar TO e_object->mt_toolbar.
        CLEAR gs_toolbar.
        PERFORM icon_create USING 'ICON_INSERT_ROW' gs_toolbar-icon.
        MOVE text-010 TO gs_toolbar-function.
        MOVE text-012 TO gs_toolbar-quickinfo.
        MOVE ' ' TO gs_toolbar-disabled.
        APPEND gs_toolbar TO e_object->mt_toolbar.
        CLEAR gs_toolbar.
        PERFORM icon_create USING 'ICON_DELETE_ROW' gs_toolbar-icon.
        MOVE text-011 TO gs_toolbar-function.
        MOVE text-013 TO gs_toolbar-quickinfo.
        MOVE ' ' TO gs_toolbar-disabled.
        APPEND gs_toolbar TO e_object->mt_toolbar.
      ENDMETHOD.
       METHOD handle_user_command.
    In this form, check the function code(e_ucomm has the function code), based on that do the required action.
    as i said yesterday(i.e for appending a row, deleting a row, modifying a row)
        PERFORM user_command USING e_ucomm.
      ENDMETHOD
    endclass.
    Before calling the alv method, create a object of this class.
    DATA :
          gref_event_receiver  TYPE REF TO lcl_event_receiver,
          gv_tables_alv          TYPE REF TO cl_gui_alv_grid.
          CREATE OBJECT gref_event_receiver.
          SET HANDLER   gref_event_receiver->handle_user_command
                        FOR gv_tables_alv.
          SET HANDLER   gref_event_receiver->handle_toolbar
                        FOR gv_tables_alv.
    check this program for event handling, it is the similar way
    demo_abap_objects_events
    Hope u understood this.
    Regards,
    Prasant
    reward if helpful

  • Table Creation on the fly

    Hi,
    I have to run 50 reports last day of every month. Each query will do lot of dynamic calculations which are a time consuming. The whole point is to create excels for each of the report. But since the Application will throw request time out error if time exceeds more than minutes. So we decided to generate the data for each of those 50 reports and store in a temporary table... so that the application will not throw time out error...
    Details:
    Oracle 10g.
    .NET
    # of records in each table: > 700k
    In order to accomplish the above task we have to create temporary tables.. but the question is for every report do we have to create a table on the fly OR create a base table which will have 100 columns which will be a cross product of all the columns selected in all the 50 queries and every row will have a report id..
    OR Is there a better way to accomplish the above?
    thanks in advance

    Thank you.. the only reason i wasnt going for view is i wont be able to have indexes if i want to add some filter while exporting to excel..
    other wise we should be good with materialized views..

  • Creating multi rows in Weekly view for same Att type

    Hi All,
    This is how we can reproduce the problem
    1.Enter working hours against same att type for different dates in the same row in Weekly view of record working time.
    2.Go to daily view and come back to weekly view.
    3.It creates different rows for the att type for the above dates entered instead of single row
    Please let me know the solution
    Thanks
    Bala Duvvuri

    Siddharth,
    Even I got the same response for  the OSS message from SAP.is it due to incompatibility ?
    My portal version is EP7.0 SP17
    ESS 600 SP13
    EA-HR 603 level 0010
    SAP_HR 600 level 0036
    Thanks
    Bala Duvvuri

  • How to Create a table in the middle of a transaction ?

    This software was written for sql and has a number of temporary table calls within transactions. We cannot precreate the temporary tables as some of the columns vary.
    So we create temp tables on the fly during the transaction, but the problem with that is that Oracle will commit your transaction at the point you create a temp table.
    Here's the logic:
    Begin Transaction
    Do some inserts, updates and deletes (IUDs)
    Create Global temp Table zx as select <some of those IUDs>
    Do some more inserts, updates and deletes
    Drop temp tables
    If worked
    Commit
    else
    Rollback entire transaction
    This is what I've tried so far:
    1. Run the create table on a different connection - has no visibility to the IUDs in the current transaction
    2. Split the create table and insert (instead of using CREATE AS) statements - to allow just the create table to be on a different connection - its going to be too much work to rewrite all the statements
    3. Create a permanent table instead of a temp table - same problem with committing data before the transaction has ended
    4. Put the Create As in a stored proc with AUTONOMOUS TRANSACTION turned on - same problem it has no visibility to the current outer transaction

    Thanks for coming on this thread
    The tables are used throughout the product, for example to
    (a) simplify complex queries, some too complex for oracle to process in one stmt
    (b) sub selects which will be reused
    (c) performance enhancements
    (d) left joins to summary queries
    We have 120 tables in our data model and there are many scenarios where temp tables are used. In sql server its not considered such a problem and programmers often create temp tables "on the fly".
    In fact, when we ported to oracle a couple of years ago, we had to add more temp table creates because some of the queries were too complex for oracle.
    It would be at least a months work to rewrite so temp tables are either not used or precreated, and we really have to go live with this build by the end of the week.
    No doubt we will rewrite these parts of the product to cut out temp tables, or perhaps drop oracle as a supported database, but for the time being we have oracle customers waiting for other fixes so I must find a way of giving them this software without doing this huge rewrite

  • Problem in drawing image on the fly using jsp

    I have been searching the forum and web for the problem but in vain. I have wrote a jsp which creates an image on the fly from the data selected from the database. But after the image is drawn, it throws an IllegalStateException. The offending code is at the time of releasePageContext() method of the compiled jsp. I am using the following code in jsp to display the image.
    BufferedImage bi = obj.getBufferedImage();
    javax.imageio.ImageIO.write(bi,"png",response.getOutputStream());
    I even tried to do the same with servlet, but the problem is that when I am using forward action in jsp I am getting the image but the control is in the servlet and if I am including the servlet, I am getting junk characters instead of image. I have set the content type in servlet and also in jsp.
    Thank you in advance.

    Hi all,
    I've developed a web application using glassfish server... my database is postgresql.... i try to generate a report using Jasper Reports.... i've succesfully developed the report template..... My problem when ever i try to generate a report it gets the data from the back end.... and throws the following error.....
    StandardWrapperValve[jsp]: Servlet.service() for servlet jsp threw exception
    java.lang.IllegalStateException: getOutputStream() has already been called for this response
    at org.apache.coyote.tomcat5.CoyoteResponse.getWriter(CoyoteResponse.java:652)
    at org.apache.coyote.tomcat5.CoyoteResponseFacade.getWriter(CoyoteResponseFacade.java:196)
    at org.apache.jasper.runtime.JspWriterImpl.initOut(JspWriterImpl.java:149)
    at org.apache.jasper.runtime.JspWriterImpl.flushBuffer(JspWriterImpl.java:142)
    at org.apache.jasper.runtime.PageContextImpl.release(PageContextImpl.java:216)
    at org.apache.jasper.runtime.JspFactoryImpl.internalReleasePageContext(JspFactoryImpl.java:134)
    at org.apache.jasper.runtime.JspFactoryImpl.releasePageContext(JspFactoryImpl.java:89)
    at org.apache.jsp.GenerateBirthCertificate_jsp._jspService(GenerateBirthCertificate_jsp.java:149)
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:111)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:353)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:409)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:317)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
    at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:397)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:278)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536)
    at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:240)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:179)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
    at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:73)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:182)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
    at com.sun.enterprise.web.VirtualServerPipeline.invoke(VirtualServerPipeline.java:120)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:137)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
    at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:231)
    at com.sun.enterprise.web.connector.grizzly.ProcessorTask.invokeAdapter(ProcessorTask.java:667)
    at com.sun.enterprise.web.connector.grizzly.ProcessorTask.processNonBlocked(ProcessorTask.java:574)
    at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:844)
    at com.sun.enterprise.web.connector.grizzly.ReadTask.executeProcessorTask(ReadTask.java:287)
    at com.sun.enterprise.web.connector.grizzly.ReadTask.doTask(ReadTask.java:212)
    at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:252)
    at com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:75)
    i've written my code in jsp.... My code is....
    <%@page contentType="text/html"%>
    <%@page pageEncoding="UTF-8"%>
    <%@ page language="java" import="java.io.*, net.sf.jasperreports.engine.*, java.sql.*, java.util.*" %>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>CDAC Portal</title>
    </head>
    <body>
    <%
    try {
    Connection con=null;
    String query="";
    String regNo="";
    regNo=request.getParameter("regNo");
    regNo = regNo.toUpperCase();
    out.println("Registration No :"+regNo);
    Class.forName("org.postgresql.Driver");
    con = DriverManager.getConnection("jdbc:postgresql://192.168.31.79:5432/Municipality","postgres","");
    System.out.println("connected succefully");
    ServletContext context = this.getServletConfig().getServletContext();
    File reportFile = new File(context.getRealPath("/reports/birth_cert.jasper"));
    query="select * from birth_details where regn_unit='"+regNo+"'";
    Map parameters = new HashMap();
    parameters.put("regNo",""+regNo);
    parameters.put("query",""+query);
    byte[] bytes = null;
    try {               
    bytes = JasperRunManager.runReportToPdf(reportFile.getPath(), parameters, con);
    response.setContentType("application/pdf");
    response.setContentLength(bytes.length);
    ServletOutputStream ouputStream = response.getOutputStream();
    ouputStream.write(bytes, 0, bytes.length);
    ouputStream.flush();
    ouputStream.close();
    } catch (JRException e) {
    System.out.println("Error : "+e);
    con.close();
    } catch(Exception exc) {
    System.out.println("Connection pool error :"+exc.toString());
    %>
    </body>
    </html>
    can anyone help me hw to solve this problem....
    Thanks in advance
    R Vijay,
    Project Engineer,
    CDAC, Chennai.
    India
    [email protected]
    [email protected]

Maybe you are looking for

  • Re-installing Final Cut Studio 2 on Snow Leopard?

    Hello All, I had reason to uninstall Final Cut Studio 2 off my machine because of problems with Compressor and Motion. I followed the Apple help doc on how to uninstall FCS2. However when I go to re-install from the main install disc, it runs fine un

  • Downpayment--no invoice

    Dear Frnds, The customer creates a booking order with a fixed billing plan ( complete payment to be received in 5 installments). He treats all payments received as advances(liabilities)...not creating an invoice How do i go abt this scenario.....shou

  • Function to send fax the attachment of the pur. order when i output control

    Hi friends, when i output control purchase order - user want to send also the attachment documents when i click on output push button. is anyone know how can i do that? wich function can send the attachmant to fax?(it could be image, document,excel..

  • Authorization Scheme -- Best Practices?

    Hi All -- We have a reporting application containing approximately 300 pages and 60 or so menu items all using authorization schemes (exists SQL method) as a means to determine whether or not a use can see the menu items and/or access the pages. We'v

  • Inner Classes doubts

    Hi All, I am trying to learn Inner classes in Java. I am referring to the book Core Java by Horstmann and Cornell. I know that there are various types of inner classes namely: - Nested Inner classes - Local Inner classes - Annonymous Inner classes -