Gauge Min.Max - change dynamically

Hi
I have a gauge that is a dial. All I want to do is be able to scroll up and down the data and have the mins and maxs change.
I have tried everything to do this - no luck. The fusion manual claims it can be done although I can work it out.
"Minimum and maximum: Optional values that identify the lowest and highest points on the gauge value axis. These values can be provided as dynamic data from a data collection. They can also be specified as static data in the Gauge Data attributes category in the Property Inspector for the dvt:gauge tag. For more information, see Section 25.4.4, "Adding Thresholds to Gauges"."
Any ideas? I have put the data in a grid and the metric changes but the min,max do not.
Example - Fuel Tank - I want the gauge to have the min and max change to reflect the min.max column values.
id min max fuel
1 0 200 100
2 0 500 233
3 0 1000 130
Cheers
Darren

My gauge looks as simple as this
<dvt:gauge id="gauge1" value="#{bindings.EmpView1.gaugeModel}"
                         gaugeType="DIAL"
                         animationOnDataChange="ON" >
                <dvt:gaugeBackground>
                  <dvt:specialEffects fillType="FT_GRADIENT">
                    <dvt:gradientStopStyle/>
                  </dvt:specialEffects>
                </dvt:gaugeBackground>
                <dvt:gaugeFrame/>
                <dvt:indicator/>
                <dvt:indicatorBase/>
                <dvt:gaugePlotArea/>
                <dvt:tickLabel/>
                <dvt:tickMark/>
                <dvt:topLabel/>
                <dvt:bottomLabel/>
                <dvt:metricLabel position="LP_WITH_BOTTOM_LABEL"/>
                <dvt:thresholdSet/>
              </dvt:gauge>

Similar Messages

  • Dynamic Min Max values of Axis

    Hi Everybody,
    Just wanna know if there is any possibility to assign dynamically min-max values of Y axis in line chart of  Crystal Reports 2008 using formulas or parametesr or any other idea??
    Your suggestions are welcomed.
    Thanks
    Regards,
    Atul

    Please re-post if this is still an issue or purchase a case and have a dedicated support engineer work with you directly:
    http://store.businessobjects.com/store/bobjamer/DisplayProductByTypePage&parentCategoryID=&categoryID=11522300?resid=-Z5tUwoHAiwAAA8@NLgAAAAS&rests=1254701640551

  • How to change the Charge Account in Requsitions Generated by Min-Max

    Hi
    I want to change the default account coming in all requsitions which are generated in result of a min-max report.
    please help.
    thanks
    Malik Asif Joyia

    What is your costing method?
    If it is average, the account comes from the organization and not from subinventory and you cannot change the account if the destination is inventory.
    If it is standard, you can have the account from subinventory, but again you cannot change it if the destination is inventory.
    Why do you want to change account if you are receiving into inventory?
    And Min-Max Planning is to replenish the inventory hence I would assume it is not expense destination.
    Thanks
    Nagamohan

  • Cannot change numeric min max property

    Hello everybody,
    By right clicking on a numeric control I cannot change the minimum and maximum range. (it is always returning to 0 after typing 25 for example at the maximum value, the numeric is UINT16).
    This is happening on every vi in my project, even if I create a new empty one.
    BUT, it is not happening when I close labview, re open labview and open an empty vi (not in the project). This way, I can change the maximim property of a numeric, as usual.
    Is there a project property that forbid to change numeric property, in all vi in the project ?
    I am missing something ?
    Thanks for your help.
    ps : I use labview 8.6.
    Solved!
    Go to Solution.

    I made additionnal tests.
    If I  put a new numeric1 DBL on the FP on a vi in my project, I can change the max property to 5.1 for example.
    If I put a new numeric2 DBL on the FP, and I change the max property to 6.1, the max property 6.1 is automatically set also on numeric1.
    If I put a new numeric3 UINT on the FP, the default value to max property is also 6.1, that is strange for a UINT.
    It seems that what is happening is dependant of what is the first numeric I put in the FP.
    The beahaviour I was previously describing what because I first put a command in the FP that was a typedef of a cluster containing different numerics.
    I really don't understand what is happening, because I rthink it is not the first time I use min max property, and I never had such a problem as far as I remember.
    Thanks for your help.

  • MRP min max reorder level changes

    Hi All,
    I wonder if anyone could please help.
    We are experiencing some issues with the setting of min/max levels for material masters.  Does anyone know how I could get a change log to show changes to the material master MRP settings?
    Thank you
    Chris

    Hi Chris,
       You can see change log for material master through TCode MM04.
      On the MM04 screen you can enter the selection parameters - Material / Plant / Sales Organization / Distribution Channel, Warehouse Number / Storage Type etc.,
       If you have a specific SAP userid whom you think might have done the change then you can enter in the Changed by Field.
       Then click on Execute button.
       In the next screen, select required line and click on details button to see the Old value and the new value data.
      Hope this helps.
    With Best Regards,
       Srinivas

  • DateTimeAxis min/max bug? Problems with consistent padding. Date Wrapping.

    I have been working on a problem with a BarChart object that I've created using dynamic data.
    My primary issue is that I can't seem to get the proper min/max values to set for the chart.
    To solve this I manually found the min and max of the data set of Dates and set the min and max of the chart. This allowed me to finally see all the floating custom bars (each bar is rendered with a user set fill), however now if I have a bar that extends over a year change the horizontal axis labels do not wrap the date properly, so instead of 2/10 (feb 2010) being the last date, 12/09 (dec 2009) is the last date.
    I've been trying to dynamically adjust the padding based upon a change event, but so far to no avail. Partially I think because I'm not sure which event for the function to fire on.
    private function dateAxisGen(r:Array):void {
                    var min:Number = r[0].startTime.time;
                    var max:Number = r[0].endTime.time;
                    const PAD:Number = 2;
                    const MILLISEC_IN_MONTH:Number = 2629743830;
                    const MILLISEC_IN_WEEK:Number = 604800000;
                    const MILLISEC_IN_DAY:Number = 864;
                    for (var i:int = 1; i < r.length; i++) {
                        var o:OperationXT = OperationXT(r[i]);
                        min = Math.min(o.startTime.time, min);
                        max = Math.max(o.endTime.time, max);
                    // Calculates the maximum range, then adds an appropriate
                    // padding to the chart via extra time. TODO
                    /* var range:Number = max - min;
                    if(range >= MILLISEC_IN_MONTH) {
                        dAxis.padding = (MILLISEC_IN_WEEK/1000000)/PAD;
                        dAxis.padding = (MILLISEC_IN_WEEK/1000000)/PAD;
                    } else if(range >= MILLISEC_IN_WEEK) {
                        dAxis.padding = (MILLISEC_IN_DAY)/PAD;
                        dAxis.padding = (MILLISEC_IN_DAY)/PAD;
                    } else {
                        dAxis.padding = PAD;
                    dAxis.minimum = new Date(min);
                    dAxis.maximum = new Date(max);
    this, however, does not adjust the padding properly when an operation is removed from the list. Not to mention I still have the date wrapping error. It gives me the following error:
    Cannot access a property or method of a null object reference.
        at mx.charts::AxisRenderer/measureHorizontalGutters()[C:\work\flex\dmv_automation\projects\d atavisualisation\src\mx\charts\AxisRenderer.as:2244]
        at mx.charts::AxisRenderer/calcRotationAndSpacing()[C:\work\flex\dmv_automation\projects\dat avisualisation\src\mx\charts\AxisRenderer.as:1858]
        at mx.charts::AxisRenderer/adjustGutters()[C:\work\flex\dmv_automation\projects\datavisualis ation\src\mx\charts\AxisRenderer.as:1534]
        at mx.charts.chartClasses::CartesianChart/updateAxisLayout()[C:\work\flex\dmv_automation\pro jects\datavisualisation\src\mx\charts\chartClasses\CartesianChart.as:2239]
        at mx.charts.chartClasses::CartesianChart/updateDisplayList()[C:\work\flex\dmv_automation\pr ojects\datavisualisation\src\mx\charts\chartClasses\CartesianChart.as:1366]
        at mx.core::UIComponent/validateDisplayList()[E:\dev\gumbo_beta2\frameworks\projects\framewo rk\src\mx\core\UIComponent.as:8065]
        at mx.managers::LayoutManager/validateDisplayList()[E:\dev\gumbo_beta2\frameworks\projects\f ramework\src\mx\managers\LayoutManager.as:663]
        at mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\gumbo_beta2\frameworks\projects \framework\src\mx\managers\LayoutManager.as:736]
        at mx.managers::LayoutManager/doPhasedInstantiationCallback()[E:\dev\gumbo_beta2\frameworks\ projects\framework\src\mx\managers\LayoutManager.as:1069]
    Any help with my problem would be greatly appreciated.
    ADDITIONAL INFO:
    Alright, so I've discovered that the ONLY time the date wrapping error occurs is when the axis labels contain only the month and year, any other time it places it properly.
    Does anyone know where I can report this bug?

    Perre wrote:I'm used to being able to pick one or a couple of songs and then adding it a specified playlist. Is this impossible in sonata?
    It's clearly not impossible, just different than you expect. Create your playlist as you want it to appear in the Current tab (meaning don't dump every single song from your library in there, just the ones you want) and then save the playlist.
    Perre wrote:And if I try to play the m3u file created (the one with every song listed) through freevo I get a message that the directory is empty. What am I doing wrong??
    Look at save_absolute_paths_in_playlists in your mpd.conf.

  • Can we use MRP to plan for FERT in-house produced  with PIR's & has Min/Max

    Hi SAP Guru's
    I have a very critical issue from the client who wants to use MIN/ MAX stock values for planning its finished products (in-house produced)
    <b>here is the details of the scenario</b>
    Client recieves 2 Excel files every week from customer
    <b>1st</b> file contains the Weekly Demand Forecast of FERT material for next 1 year and they upload it in MD61 as PIR's <u><b>BUT</b></u> this value is also <u><b>Inclusive</b></u> of Safety stock value (<b>ex: if weekly demand entered in MD61 as PIR is 50 and if safety stock value is 10, then actual demand is only 40)</b>
    <b>2nd</b> file send contains only <b>safety stock values</b> (for ex in this case let it = <b>10</b>) to be maintained for the FERT materials
    the client wants MRP to plan and trigger based on this PIR's in MD61 and Safety stock level fand plan for FERT, HALB and also ROH materials as defined in the BOM also taking into consideration the current WIP levels (Work in progress for any existing production orders currently being processed) based on the production Lead times values maintained
    so what the client wants is they want to maintain 2 stock values, that is one least stock value and other higher value which if stock falls below this point, will trigger production based on the lead time and considering any WIP levels also
    <b>(for ex in this case if PIR = 50 and safety stock is 10, MRP run result client wants is = 30 and NOT =40)</b>
    so here are my questions
    1. is this scenario feasible? use safety stock and min/max level for in-house produced finished which has demand PIRs in MD61 at the same time?
    2. Also due to SOX complaince regulations, the client does not want to change the forecast values in MD61, so is it possible to make some settings so that forecast is corrected by WIThOUT including the safety stock value in it? ( for ex: in this case as = 40 only and NOt as 50)
    3. which all settings should i maintain like for MRP type or lot size or stock qty levels or anyother customizations if any required so that when we run MRP, can it ignore the safety stock value and generate the client desired output?
    thank u verymuch for your time & expert advice in advance

    Hi Chakri,
    This is not possible as per standard functionality. MRP always creates proposals for the shortage quantity of the safety stock. We have used the user exit in the plant level MRP run to exclude both plant and safety stock in the net requirements calculation.
    You have to write logic to convert the safety stock into plant stock in the user exit so there will be no additional procurement proposals...you can create custom indicatar in materail master or linked any existing indicator like MRP group to the user exits so the MRP will checks this and will not create proposals for the selected parts.
    If you have any questions then please inform.
    Regards
    TAJUDDIN

  • MRP creating cancel notices for min max purchased items

    We use min max planning for many repetitive purchased items. These same items are also set to MPS/DRP Planned as well. This is only so we can use the Planned Order report to identify material shortages to flow schedules.
    However, MRP exceptions is requesting we cancel our min max purchased items since there is no demand. Can MRP be modified to NOT include min max planning method in cancel requests?
    If not, where can I find a tool to identify material shortages for flow schedules?

    Many thanks for this.
    I can see entirely why it's designed as such, but I just find it slightly frustrating that there's no way to break the link between the order and the shipment out to the depot. Just to clarify, we're not requiring the orders to change - they will still be made and will come in - but just that the orders themselves don't specifically need to be the stock that is used for the replenishment.
    So -
    1. Min Max identifies depot needs replenishing.
    2. Central distribution does not have (enough) stock to replenish.
    3. Order is made to replenish central distributions stock.
    4. We ship whatever we've got, when we've got it, to depot to replenish.
    It's the bit where Min-Max is trying to replensih a specific depot rather than our central distribution centre that's my problem.
    I suspect that, as you say, that specific issue is not directly fixable without getting our IT contractors to do a customisation.
    I'm going to look into your Supply Date Offset suggestion now, though I'm not sure how this affects the shipping after the orders are placed. The orders themselves are approved manually after we've checked our stock position (i.e. what's in with the recycling team), but we recycle & refurb probably 60% of our maint stock so there'll always be kit turning up after the order has been made because of the long lead times.
    Thanks again.

  • Min/Max  Internal Orders 1 Requisition

    We are running Min/Max planning to replenish stock in an "Emergency Warehouse" organization. The requisition import kicks off internal orders to a replenishment organization. The planner in the replenishment organization would like one order for each Min/Max run. The requisition group-by default in Purchasing parameters is vendor yet we are still seeing one unique requisition for each item thus creating one unique internal sales order per item. Thoughts?

    Stick wrote:
    The requisition group-by default in Purchasing parameters is vendor yet we are still seeing one unique requisition for each item thus creating one unique internal sales order per item. Thoughts?In this case the requisitions will not be grouped by Vendor because the supply source is Inventoy which is creating internal requisitions and not purchasing requisition (source is Supplier/ Vendor).
    It is important to know how you are importing requisitions and what value is specified for Group By parameter during import. The value you setup in Purchasing Options defaults in the Requisition Import request parameter screen, but this can be changed before submission. So it is possible in your case that requisitions are imported using a different group by than what is specified in Purchasing Options.
    From the list of different group by options available (All, Buyer, Category, Item, Supplier) you can probably use 'Location' during requisition import.
    Location: Group requisition lines for each delivery location on a separate requisition.
    But this will not guarantee 100% success because:
    - If you import requisitions with source as INV then those can include requisitions from different INV sources generated from Reorder, Kanban etc having same delivery location. In that case all those requisitions will be grouped under a single header having same location.
    - there may be different users running requisition import manually and some may forget to change this group by parameter (defaulted from purchasing options) while importing Min-Max planned requisitions (again they cannot segregate Min-Max, they can just specify INV as source)
    A better solution would be to use the oracle provided custom hook (po_reqimp_pkg.post_validate_user_extensions) for requisition import to populate the GROUP_CODE column in PO_REQUISITIONS_INTERFACE table. The logic inside the hook should identify the rows in the interface table generated from each run of Min-Max and populate a unique value for all those rows in the GROUP_CODE column. You need a small piece of code to be added inside the hook.
    You can also use REQ_NUMBER_SEGMENT1 column in the interface table to populate an unique value for all rows you want to group together. But in this case the value you specify will become the requisition number if there are no conflicts with the requisition number rule. Both these column, when populated, have precedence over Group by parameter. 1st priority GROUP_CODE (if populated). If GROUP_CODE is not populated then it checks REQ_NUMBER_SEGMENT1. If this is also blank then it uses Group By parameter.
    Thanks
    Supro

  • Min-max report

    Hi,
    I have place a order for a item. Ordered quantity is 10. Order is closed. But when I run min-max report; i found that on-hand quantity is not change and also the demamd quantity 10 is not reflecting. It is showing some different number 8, i.e item demand quantity = 8. Please guide me Why it is so and how to overcome this issue?
    Also let me know the base table for this records.
    Thanks

    Hi Srini,
    Just look at "INV: Minmax Reorder Approval" profile option whether it helps you. You might have set this profile option to "Approved". Change the setting to "Incomplete" either at "Site" or "Responsibility (In which you run the min max planning report) " level.
    This would help you to create the min max requisitions in "Incomplete" status and then ask the requestors (or your store incharges) to review and approve the Purchase Requisitions!
    Regarding "Supply" consideration, I will check and let you know..
    Jay

  • Issue with min/max when vertical axis assigned to multiple series

    Hi.
    I have some simple charting code that is dynamically adding LineSeries to a chart as the user requests them from the gui. As each series is added the vertical axis is assigned to the series and then data is requested and assigned to the dataProvider on the series. This is all working fine however I have found that if I add a sceond series after the first series is displayed and assign the same vertical axis to the second series then the vertical axis seems to set teh min/max based only on the second series added and ignores the first series. It doesnt set to the max of both series and so I get an incorrect max set. If I add a 3rd series the same happens again and the first and second series values seem to be ignored and the axis is set based on the last series to be added.
    Is this expected? Ive tried different variations of invalidating the data/series/styles to force it to refresh but I always get the same. It does refresh but based on only the values in the last added series.
    What is odd is that if I add 2 series at the same time, and assign the axis to both of them and then request data for both and update the dataProvider on both of them the axis is configured correctly based on the max value of both series.
    Any workarounds to make it do the right thing if they are added dynamically? Is this a bug or a known "feature"?
    Any light anyone can shed would be appreciated.
    I need to have the axis assigned to the series directly as I want to be able to use multiple axes. I have found that if I set the verticalaxis on the chart rather than the series then it works fine and sets the min/max based on the combined values of both series.
    The vertical axis is just a simple LinearAxis.
    Any help or suggestions would be appreciated.
    Im using Flex 4.1
    Tks
    Dan

    Adobe Flex LiveDocs seemed to indicate "Using multiple series in the same chart works best when the data points are in a similar range (such as a stock price and its moving average). When the data points are in numerically very different ranges, the chart can be difficult to understand because the data is shown on a single axis. The solution to this problem is to use multiple axes, each with its own range. You can plot each data series on its own axis within the same chart using the techniques described in Using multiple axes" and that link is here:
    http://livedocs.adobe.com/flex/3/html/help.html?content=charts_types_11.html
    I was going to tae a look at this myself, but the code posted here is quite complex, and I suspect incomplete.
    If you refer to that link and still cannot solve the issue, I would try your best to boil down your code to a more simple example still exhibiting the issue, and then post that, along with any data and the simplified main app.
    If this post answers your question or helps, please mark it as such.
    Greg Lafrance - Flex 2 and 3 ACE certified
    www.ChikaraDev.com
    Flex / AIR Development, Training, and Support Services

  • Why no min/max height?

    Since I've started creating responsive content with Edge, once thing has really bugged me - and that's the omission of a Min H and Max H alongside Min W and Max W. I've been told it's not necessary as height can be constrained to width, but I still find myself needing it.
    Two scenarios I've frequently come across:
    • An object is set to 100% width. When a window is resized to a landscape orientation, I want an object's maximum width dictated by it's height to prevent it taking up too much space in the layout. For example, in portrait layout it may be W100%, H10% - turn that to landscape and it might become W100%, H60% if I've constrained the proportions. I want to be able to cap it at say H30%, so after a certain point it's just the width that changes and not the height.
    • I have a series of square images nested within a horizontal scrollable div. I want these images to stay in proportion but always fill to H100% of the container div, regardless of its shape (portrait, landscape). It seems to simple but I just can't make it work without a min/max H functionality.
    Can anyone explain why this feature is missing?
    Thanks

    As you know, IE doesn't support min/max-height/width.
    With regard to HEIGHT, you can work around IE's lack of support for min-height since the way that IE deals with an explicit height is as if it were min-height.  For example, if you have this CSS:
    #foo { min-height:250px; }
    you can *hack* a fix for IE like this -
    #foo {
         min-height:250px;
         _height:250px;
    The "_height" style is ignored by all browsers except IE<8.  For those versions of IE that 'read' that style, they interpret it as 'height' and since IE treats an explicit height value as if it were 'min-height' you are set.  Another way (and a cleaner way in my opinion) would be to add an IE conditional comment to the page, e.g.,
    <!--[if lte IE 7]>
    <style>
    #foo {
         height:250px;
    </style>
    <![endif]-->
    That takes care of min-height.
    The solutions for max-height or min/max-width are not so simple.  Google for IE CSS calculations to see how you might approach them.

  • Min-Max Planning simple questions

    Hi
    I'm trying to use Min-Max Planning. Inventory User's Guide says that Min-Max Plannig uses a demand to evaluate order quantity, but don't tell if such demand by month, year or whatever. Looking the figures seems to be annual demand (but doesn't match my annual sales). What kind of demand is used?
    If demand is calculated on a yearly basis, resulting order qty should be to satisfy sales of a whole year (I guess).
    Is there a way to change that? Does really matter?
    Please some words of advise
    Oscar

    OPR wrote:
    Hi
    I'm trying to use Min-Max Planning. Inventory User's Guide says that Min-Max Plannig uses a demand to evaluate order quantity, but don't tell if such demand by month, year or whatever. Looking the figures seems to be annual demand (but doesn't match my annual sales). What kind of demand is used?Hi Oscar,
    depending upon at which level (organization or subinventory) you are running Min-Max planning and the options selected for net demand will determine what will be included under open demand. It is the total open demand on or before the demand cutoff date, based on net demand selection for reserved & unreserved orders and WIP. It is NOT by month, year or any period.
    Min-Max at Organization level:
    If you choose Yes for Net Unreserved Orders, Net Reserved Orders and Net WIP Demand then Open Demand is the sum of unreserved sales orders, inventory reservations (including reserved sales orders), account issue move orders, and WIP component demand scheduled for issue on or before the demand cutoff date.
    Min-Max at Subinventory level:
    If you choose Yes for Net Unreserved Orders and Net Reserved Orders (no WIP demand option here) then Open Demand is the sum of inventory reservations (including reserved sales orders), account issue move orders, and subinventory transfer move orders scheduled for issue from this subinventory on or before the demand cutoff
    date. At subinventory level inventory reservations referencing a different subinventory, or with no subinventory specified, are not included.
    e.g. if the demand cutoff date is 30-Jun-2009 and net options have been selected as Yes then then it will look for demand upto 30-Jun-2009 (Note: some apps reports have time part issue while comparing dates, so in those cases 30-Jun-2009 is taken as 30-Jun-2009 00:00:00 i.e 29-Jun-2009 midnight!).
    Also if you specify a past date for demand cutoff date it will consider open demands available, if any, upto that past date (but you plan for the future, not past).

  • Incorrect output for Min,Max, & Avg loops

    This code is mostly working to compute the average and to get the maximum but it is taking 12 inputs and not 10 as required. I'm a bit unsure how to implement the Min into this as well. I would appreciate any guidance that can be provided on this as I'm stumped. Thank you.
    import java.util.Scanner;
    public class Main {
        public static void main(String[] args) {
            int maxGrade = 0;
            int minGrade = 0;
           int total = 0;
           int testScores = 0;
           int grade = 0;       
            Scanner scan = new Scanner( System.in );
    System.out.println ( "Please enter ten exam scores");
             for ( int i =1; i <= 10; i++ )
        testScores = scan.nextInt();
        total += testScores;
    maxGrade = scan.nextInt();
    grade = scan.nextInt();
    if ( grade > maxGrade )
        maxGrade = grade;
    System.out.println( "The average score is: " + ((double) (total) / 10));
    System.out.println( "The Maximum score is: " + maxGrade);
    }

    Suggestions:
    1) have your for loop go from 0 to i < 10. Since arrays are zero-based, this habit will help you in the future when you loop through arrays.
    2) Your code indentation is atrocious making it hard for us (and for you!) to understand your code. Fix it and you'll make your future coding a lot easier.
    3) Get the input only once in the for loop, and not outside and after the for loop as you are trying to to do here:
          maxGrade = scan.nextInt();
          grade = scan.nextInt();It makes no sense. Instead set the maxGrade and the minGrade both with the testScores entered the first time the for loop loops (when i equals 1 in your current code, but when i is 0 if you follow my recommendations). A simple if block -- if (i == 0) should work for this.
    4) Inside the for loop and after testScores is entered, check if it is > max or < min and change max and min accordingly. Again this must be done inside of the loop. In pseudo-code
    for i goes from 0 to less than 10:
       current score = get user input
       if i is 0
          set maximum score to current score
          set minimum score to current score
       end if
       if current score is less than minimum score
          change minimum score to current score
       end if
       if current score is greater than maximum score
          change maximum score to current score
       end if
    end for loopLuck!
    Edited by: Encephalopathic on Jul 10, 2010 7:43 AM

  • How to set min & max connections for  MSSQLconnection pool

    Hi,
    I want to set minconnection, maxconnection, idletimeout initial limit for the pool
    I have got a MSSQL database connection using following java code.
    // MSSQL DbConnection Code
    import java.sql.*;
    public class MsSqlDataSource
    public static void main(String arr[])
    Connection con = null;
    ResultSet rs = null;
    try{
    com.microsoft.sqlserver.jdbc.SQLServerDataSource ds = new com.microsoft.sqlserver.jdbc.SQLServerDataSource();
    ds.setServerName("10.50.50.51");
    ds.setPortNumber(1711);
    ds.setDatabaseName("test");
    ds.setUser("starhome");
    ds.setPassword("starhome");
    con = ds.getConnection();
    }catch(Exception e){}
    }In oracle i have passed min and max number of connection properties through setConnectionCacheProperties method.
    //Connection Pooling using Oracle Data Source:
    m_connSource = new OracleDataSource();
    m_connSource.setDriverType("thin");
    m_connSource.setServerName(m_host);
    m_connSource.setNetworkProtocol("tcp");
    m_connSource.setDatabaseName(m_db);
    m_connSource.setPortNumber(m_port);
    m_connSource.setUser(m_user);
    m_connSource.setPassword(m_password);
    // Enable caching. m_connSource.setConnectionCachingEnabled(true);
    java.util.Properties prop = new java.util.Properties();
    prop.setProperty("MinLimit", m_minConnections);
    prop.setProperty("MaxLimit", m_maxConnections);
    prop.setProperty("InitialLimit", m_initialConnections);
    prop.setProperty("InactivityTimeout", m_inactivityTimeout);
    prop.setProperty("AbandonedConnectionTimeout", m_abandonedTimeout);
    prop.setProperty("ConnectionWaitTimeout", m_connWaitTimeout);
    m_connSource.setConnectionCacheProperties(prop);I dont know how to pass min and max number of connection properties for SQLServerDataSource. Is there any method available to pass min and max number of connection properties for SQLServerDataSource.
    Iam using Tomcat. I found one way to set min and max connections for pool by doing changes in context.xml and web.xml using below url http://tomcat.apache.org/tomcat-4.1-doc/jndi-datasource-examples-howto.html
    I dont want to touch tomcat configuration files. I need to set connection pooling properties which is independent of application server.
    Please anybody give solution for this?
    Thanks,
    Prisha

    Hi,
    you need to define your database under the DB Admin tab. In the Schema objects node you'll find Sequence Implementations, and there you can definde min max values as well as caching and increments.
    Gerald

Maybe you are looking for

  • External Hard drive not visible on newtork

    Im using my xbox as a server so i can watch movies from my laptop on my tv. i can see anything that is on my hard drive but my external does not show on the xbox but does on the laptop. Any ideas?

  • File updation in PDF File format:

    Hiii.....                     If i do any type of updation in the pdf file, what are the effects of updation in its file format...????? And which type of updates can we do in pdf file. I know little bit about the links,comments,notes,bookmarks etc..

  • Last Fetched Predicate statement in active sync process

    Can anybody tell me what should be the Last Fetched Predicate and Static Search Predicate for a changelog table with seqno column for polling to a sql database. From this post, http://forum.java.sun.com/thread.jspa?forumID=764&threadID=5104031 let sa

  • Import terminated version difference!

    i exported from oracle 8.1.6 and want to import in 8.1.5 but due to difference in character sets it wasn't possible. also where can i find previous version exp so that i can export from it?

  • New to downloading adobe products

    i attempted to download adobe flash player my error message stated there was no actionlist what does this mean and how do i install now?