Number of button slots for (non-standard) PhoneTemplate

Hi,
Once I create a new non-standard phone button template in the CUCM (Device > Device Settings > Phoe Button Template), the number of the buttons on the newly created seems "unpredictable" for me. Sometimes the number of the buttons are the same as on the original template, but sometimes much more.
For example, 'Standard 7965 SIP' has 6 buttons. If I create based on this template, my 'Standard 7965 SIP MyTemplate' will have 54 slots in it.
Similar: 'Standard 8961 SIP' has 5 buttons, 'Standard 8961 SIP MyTemplate' has 45.
Why? Where is this coming from?
Additional info:
I have checked the DatabaseDictionary documentation, which states :
"Before insert into PhoneTemplate, if NEW.usermodifiable = false, thenusing the NEW.tkModel, get the numButton value from TypeModel. It will contain comma-separated min, max values. Take the max value and assign to NEW.numOfButtons."
But I cannot find this 'numButton' value in the typemodel table?!

Hi,
even this small code fails:
        SortedMap index = new TreeMap(new LatvianStringComparator());
        index.put("baa", "baa");
        index.put("aaa", "aaa");
        index.put("aqa", "aqa");
        index.put("caa", "caa");
        Iterator it = index.keySet().iterator();
        while (it.hasNext()) {
            String key = (String)it.next();
            System.out.println(key);
        }because you assume '...first string is "less than" the second one'
but you did not test it.
Just add a 'less test' like:
if (str2Rank > str1Rank) {
//First string is "less than" the second one.
signum = -1;
break;
}after
if (str2Rank > str1Rank) {}and your code will work.
even better: use Collator API
Franco

Similar Messages

  • Help with custom page size support for non standard paper

    Firstly, we appreciate any support you may be able to provide, we have already thrown considerable effort at this and it has been very time consuming and frustrating.
    To support a number of business functions need to print to (non standard) continuous and mulitpart paper on a dot matrix printer. The (test) Mac is a 10.4.11 G4 laptop, the printer is an Oki Microline 520 (9 pin 80 column, IBM Proprinter, Microline or Epson FX personalities with a parallel interface) which has been networked via a HP JetDirext Ex Plus print server. That part appears to be operating correctly.
    We have tried a number of drivers / printer personalities with varying levels of success:
    ESP / EPSON 9-Pin Series CUPS v1.1 / Epson FX personality
    ESP / OKIDATA 9-Pin Series CUPS v1.1 / Oki Microline personality
    Ghostscript / epsonc / Epson Dot Matrix Foomatic PPD / Epson FX personality
    Ghostscript / ibmpro / IBM ProPrinterII Foomatic PPD / IBM Proprinter personality
    Ghostscript / okiibm / Oki Microline IBM compatible 9 pin Foomatic PPD / IBM Proprinter personality
    There were no appropriate drivers in Gutenprint (5.2.3 version) The most successful is the okiibm / Oki Microline IBM compatible 9 pin settings, it can print A4 and honors the Printer Features Resolution settings in the print dialogue.
    Q1: Should we see anything in the Printer Info / Installable Option, it is always blank ?
    The issue is custom page sizes, we can manage / add Custom Pages Sizes via the Page Setup / Paper Size interface and they draw on the screen OK but they do not work at the printer (various issue at the printer such error messages, junk printing and wrong orientation):
    Q2: Are we heading in the right direction or is there a better way to handle this ?
    Q3: Would 10.5 solve all our problems, are the print drivers any better ?
    Q4: Is this the correct way to specify custom page sizes, is this all we need to do ?
    Q5: Is so how do we get the driver to respect the size, do we need another filter or something ?
    Q6: Is it possible to add (by hand) custom page sizes to the ESP drivers or Foomatic PPD files so they they appear as a "standard" offering in the Page Setup / Paper Size interface ?
    Sorry for the long / complicated post and thanks in advance for any advice / assistance.

    Matt Broughton wrote:
    Testing on 10.5.7, Tried both Oki 9-Pin Series 1.3 / Microline personality (no joy) and Epson 9-Pin Series 1.3 (this is a much better driver than 1.1) / Epson FX personality but not much joy with custom page sizes,
    The Oki 9-pin Series 1.3 and the Epson 9-Pin Series 1.3 should produce the same results. The only difference in the PPDs is the printer model name.
    After some testing, I find that the output is not the same despite the two PPDs being virtually identical. I did spot in the CUPS source code for the rastertoepson filter that there is some model name matching for Epson printers. Thus I can see where the output using the Oki 9-pin PPD could be different than when using the Epson 9-pin PPD.
    but again once I imbedded the page size into the ppd some (but frustrating) luck. I can get it to respect the paper orientation and it prints well but I could not get the form length to work properly. At best over a print run of 7 labels it would creep up the label by about 0.1 inches / 2 mm.
    Just for the fun of it, I made some additions to the Epson 9-pin 1.3 PPD. All I can say is that I could print a job to file. I have no way to know what it would look like on paper.
    I did find that using a custom paper size did add some unwanted margins to the output bounding box. Putting the custom page size into the PPD seemed to get around that issue.
    I added the following lines to the Epson 9-pin PPD 1.3--
    <pre style="overflow: auto;font-size:small; font-family: Monaco, 'Courier New', Courier, monospace; color: #222; background: #ddd; padding: .3em .8em .3em .8em; font-size: 9px;">*PageSize Label1/Label1: "<</PageSize[288 107.8]/ImagingBBox null>>setpagedevice"
    *PageRegion Label1/Label1: "<<PageSize[288 107.8]/ImagingBBox null>>setpagedevice"
    *ImageableArea Label1/Label1: "0 0 288.00 107.80"
    *PaperDimension Label1/Label1: "288.00 107.80"</pre>
    This adds a paper size with the 4 inch (288pt) width and 1.5 inch (107.8pt) height. That represents the 1.4 inch label and the 0.1 inch gap between labels. I set 0pt margins except for the bottom where is set the 0.1 inch (7pt) gap as the bottom margin.
    The full diff in context is--
    <pre style="overflow: auto;font-size:small; font-family: Monaco, 'Courier New', Courier, monospace; color: #222; background: #ddd; padding: .3em .8em .3em .8em; font-size: 9px;">loki:~ matt$ diff -u /usr/share/cups/model/epson9.ppd ~/Desktop/epson9.ppd
    --- /usr/share/cups/model/epson9.ppd 2009-02-20 20:16:53.000000000 -0600
    +++ /Users/matt/Desktop/epson9.ppd 2009-06-06 20:37:06.000000000 -0500
    @@ -42,6 +42,7 @@
    *PageSize Legal/US Legal: "<</PageSize[612 1008]/ImagingBBox null>>setpagedevice"
    *PageSize A4/A4: "<</PageSize[595 842]/ImagingBBox null>>setpagedevice"
    *PageSize FanFoldUS/US Fanfold: "<</PageSize[1071 792]/ImagingBBox null>>setpagedevice"
    +*PageSize Label1/Label1: "<</PageSize[288 107.8]/ImagingBBox null>>setpagedevice"
    *CloseUI: *PageSize
    *OpenUI *PageRegion/Media Size: PickOne
    *OrderDependency: 10 AnySetup *PageRegion
    @@ -50,17 +51,20 @@
    *PageRegion Legal/US Legal: "<</PageSize[612 1008]/ImagingBBox null>>setpagedevice"
    *PageRegion A4/A4: "<</PageSize[595 842]/ImagingBBox null>>setpagedevice"
    *PageRegion FanFoldUS/US Fanfold: "<</PageSize[1071 792]/ImagingBBox null>>setpagedevice"
    +*PageRegion Label1/Label1: "<<PageSize[288 107.8]/ImagingBBox null>>setpagedevice"
    *CloseUI: *PageRegion
    *DefaultImageableArea: Letter
    *ImageableArea Letter/US Letter: "18.00 18.00 594.00 774.00"
    *ImageableArea Legal/US Legal: "18.00 18.00 594.00 990.00"
    *ImageableArea A4/A4: "18.00 18.00 577.00 824.00"
    *ImageableArea FanFoldUS/US Fanfold: "18.00 18.00 1053.00 774.00"
    +*ImageableArea Label1/Label1: "0 0 288.00 107.80"
    *DefaultPaperDimension: Letter
    *PaperDimension Letter/US Letter: "612.00 792.00"
    *PaperDimension Legal/US Legal: "612.00 1008.00"
    *PaperDimension A4/A4: "595.00 842.00"
    *PaperDimension FanFoldUS/US Fanfold: "1071.00 792.00"
    +*PaperDimension Label1/Label1: "288.00 107.80"
    *MaxMediaWidth: "1080.00"
    *MaxMediaHeight: "86400.00"
    *HWMargins: 18.00 18.00 18.00 18.00</pre>
    I don't know if that will help you or not. Let us know what sort of progress you make.
    Matt

  • How to create Object Links For non standard SAP Objects?

    Hi all,
             I need to create an object link in cvo1n for a non standard SAP object (inspection characteristics) . we have two ways to do this
    1. Create a screen for the rquirement by taking the standard screens as reference.
    2. Implement badi document_obj.
    I need a step by step process to perform both the steps. Sample codes will be helpful.
    One more thing is that i need a link in the standard screens of inspection characteristics also. How to get a two way link both in cv01n and in the standard inspection char screen.

    hi
    Customizing for the Do cument Management , you must maintain the key fields for the SAP objects that you want to link to document info records, by choosing Control Data ® Maintain key fields.
    Process
    Program two screens for the following module pools for the SAP object that is to be linked additionally:
    u2013 SAPLCV00
    u2013 SAPLCVIN
    The process logic must be according to that of screen 0204 in program SAPLCV00 and must not be changed.
    Create the function module OBJECT_CHECK_XXXX (XXXX = name of the SAP object).
    If this object can be classified, this function module already exists in the standard system. Otherwise, copy the existing function module OBJECT_CHECK_EQUI (linking of equipment) and change it to suit the new object.
    also you can attach the document to PRT also. but it will not show you in dms. This type of attachment is only from otherside.
    thanks
    nitin
    award point if useful

  • Does aperture have templates for non-standard aspect ratios?

    i am not yet an aperture user, but i am interested in switching to it to improve on the photo book quality WRT iPhoto.
    i like very much to have photos with non-standard aspect ratios, either square or wide (like 3:1). these are cropped very badly by iPhoto; is it better in Aperture?
    thanks,
    b.

    The templates my have a few variations that use non-standard ratios, but you can specify any photo box ratio. You have the option to either right click and choose it from a list, or choose the custom option from that pull list, or use the "Size & Position" pane of the Aperture UI to specify an exact size, angle, and border thickness and color of a photobox. This works similar to the controls in Pages, but without some of the nice effects like transparency and drop shadows.
    If you want to create custom layouts, read the "Working with Custom Themes" section on page 609 of the user manual (download it with the trial). The trial is good for 30 days, so why not give it a spin, and if you don't think it's worth the $199, then you can always delete it at no cost to you other than your time.

  • Comparator for non-standard alphabetical sorting

    Dear all,
    Default String.compareTo() method doesn't satisfy me -- alphabetical order of Latvian is slightly different from that in Unicode charts. I'm using TreeMap for indexation purposes so I implemented my own Comparator (LatvianStringComparator) to achieve correct sorting.
    Initialisation of the index is as follows:
    SortedMap index = new TreeMap(new LatvianStringComparator());Implementation of LatvianStringComparator:
    import java.io.Serializable;
    import java.util.Comparator;
    public class LatvianStringComparator implements Comparator, Serializable {
         public static final String SORT_ORDER = "a&#257;bc&#269;de&#275;fg&#291;hi&#299;jk&#311;l&#316;mn&#326;oprs�tu&#363;vz�";
         public int compare(Object o1, Object o2) {
              if (!(o1 instanceof String) || !(o2 instanceof String)) {
                   throw new ClassCastException();
              String str1 = (String)o1;
              String str2 = (String)o2;
              //Case 1: strings are equal.
              if (str1.equals(str2)) return 0;
              //Case 2: strings have to be compared char by char.
              //By default the first string is "less than" the second one.
              int signum = -1;
              int polarity = 1;
              int str1Rank = -1;
              int str2Rank = -1;
              if (str2.length() < str1.length()) {
                   //Primary string is the shortest one; polarity changes.
                   String temp = str1;
                   str1 = str2;
                   str2 = temp;
                   polarity = -1;
              for (int i = 0; i < str1.length(); i++) {
                   str1Rank = SORT_ORDER.indexOf(str1.charAt(i));
                   str2Rank = SORT_ORDER.indexOf(str2.charAt(i));
                   //If char is not present in the specified alphabeth,
                   //it's Unicode position is taken; SORT_ORDER.length() = offset.
                   if (str1Rank == -1) {
                        str1Rank = str1.charAt(i) + SORT_ORDER.length();
                   if (str2Rank == -1) {
                        str2Rank = str2.charAt(i) + SORT_ORDER.length();
                   if (str2Rank < str1Rank) {
                        //First string is "greater than" the second one.
                        signum = 1;
                        break;
              return signum * polarity;
    PROBLEM:
    For small set of keys (tested on several elements) sorting seems to work well, but in case of large number of keys (> 10K) order is strange and fragmented. I'm sure that the problem is not in the number of keys.
    Another issue: many values for keys appear as null!
    If I remove new LatvianStringComparator() from the param list of TreeMap constructor, my app works fine except the sorting according the Latvian alphabeth. So I asume that my implementation of Comparator is erroneous or I have misunderstood something conceptually.
    Could anybody inspect the code, please? THANK YOU!!!
    Normunds

    Hi,
    even this small code fails:
            SortedMap index = new TreeMap(new LatvianStringComparator());
            index.put("baa", "baa");
            index.put("aaa", "aaa");
            index.put("aqa", "aqa");
            index.put("caa", "caa");
            Iterator it = index.keySet().iterator();
            while (it.hasNext()) {
                String key = (String)it.next();
                System.out.println(key);
            }because you assume '...first string is "less than" the second one'
    but you did not test it.
    Just add a 'less test' like:
    if (str2Rank > str1Rank) {
    //First string is "less than" the second one.
    signum = -1;
    break;
    }after
    if (str2Rank > str1Rank) {}and your code will work.
    even better: use Collator API
    Franco

  • Customizing SAP for non-standard money market instruments

    Hi experts,
    Would you know if SAP standard also provides for Pre-shipment loans, trust receipt, bill discount, bank guarantees and letter of credit? Will this be processed the same way as standard MM instruments? TM01/TMCA --> TBB1?
    hope for your kind help.
    Thanks,
    David

    Hi,
    Nice to see a separate thread.  Hope you will get required solution here.
    In my opinion you can use the product type 55a (Interst rate instrument) for loans.  For other requirement you might need to use the product type 56A (facilities) and link your products (many need to create similar to 55a for different purposes).
    I don't have system handy to give you detailed steps.  But I will try to update you asap if you wont get responses meanwhile.
    thanks,
    Kumar

  • ACE30/4710 - will x-forwarded-for work for non standard HTTP Ports?

    Can I use x-forwarded-for on an ACE30 or ACE4710 to pass source IP details if my web service isn't using Port 80 or 443?  Will it work satisfactorily for HTTP running on other ports (e.g. Port 8080)?

    Hi,
    It inserts this header in HTTP which normally listens on 80. Even though HTTP is listening on any different port, we should be able to insert the header. This should work fine.
    Regards,
    Kanwal
    Note: Please mark answers if they are helpful.

  • Resources for non-standard J2EE configurations?

    OK, every book out there tooks about session beans, Entity beans, CMP, BMP, etc - but are there any good resources for doing less 'by the book' integrations? For example, communicating from a J2EE server to an SNMP Agent? Or firing off long running tasks?

    Solved it on my own.
    'j_user' & 'uniquename' should be mapped to 'extensionAttribute7' in the XML configuration file.
    Omri

  • Scripted JDBC Adapter For Non Standard Database Types

    I am looking to connect through JDBC to a UNIDATA database. I have place the jdbc driver in the WEB-INF/lib directory and rebooted the application server. When I try to create the resource and test the connection with the proper information (user, password, url, host, port, etc), I get a null pointer. I'm assuming the Database Type is causing an issue. Is there a way to get around this?

    I am able to do the recon now. I had to upload the getUser script also. Once i did that I was able to get users linked into IDM properly.

  • [SOLVED] Screen resolution selector for non-standard Window managers

    Hi.
    I just replaced the propietary Nvidia drivers with Nouveau. I usually use the console, and when in GUI, i used nvidia-tools to change screen resolution and dual monitors, which now is not possible, Gnome and KDE have its own tools to do that, but i am using fvwm, and dont know any X program that allows me to do this. I tought of using console and script, bit i'd rather prefer to have a name of some program that allows me to do that, and i could install in other computers.
    So, anyone knows any program that would allow me to change screen resolution, and maybe dual monitors in X, witout any Gnome or KDE dependencies?
    Thank you very much in advance
    Last edited by vladimir_1922 (2011-06-01 13:31:20)

    -auto answer-
    i did a yaourt -Ss xrandr, and found arandr, the graphical api of xrandr, which is exactly what i wanted. Anyway i would love if anyone knows more programs.

  • Non Standard material

    Hi All
    i have an scenarion , In sales i will be selling non standard material i.e i will not keep in stock , when the customer comes for non standard dimension , i take the order and i pass it to production dept to fabricate.
    How do i Create the materail for non standard , where the dimension will be changing regularly.
    i dont want to use variant configuration ,because only one character used that is size.
    And also i dont want to create a new material for each and everytime (this will be tuf process then)
    Hope i explained the process clearly, Is ther any possible to do it ,
    please let me know ,
    Advance thanks
    Regards
    Praveen

    Hi Sunil ,
    Thnaks for your quick response,it was very useful answer ,
    As per your advice i done the settings ,
    I created BOM (usuage 5 S&D) withe two sub compenent called length and height with item category R.
    Then i created sales order, in sales order the BOM exploded and in the sub compenent of BOM i given the size against the lenght and breath.
    After saving , When i run the mdo4 , where i can see that for this order what is the lenght size and breadth size.
    The scenario is only the size varies (only input from the customer)
    please let me know at earliest.....
    Thanks and Regards
    Praveen S

  • Running the BO servers on non standard ports XIR2

    Hi all,
    I need to know how to get the bo servers to register with the cms when it is running on a non-standard port. The port I'm using is 6409, so I have tried adding -port 6409 to the command line string, but that didn't work.
    I'm running two instanceson BO on the box hence the need for non standard ports.
    Any thoughts?
    TIA,
    Jeff

    -port switch is the correct way to accomplish this.
    So your CMS will have -port 6409, the rest of servers will have -ns cmsname:6409 in their comand line.
    You might want to look at adding -requestport switches as well....
    Please review Admin guide for more details on usage of those switches.

  • How to use non-standard port for vnc?

    Our Windows users who use RDC to connect to their desktops from off-site come in on a non-standard port number. Part of our security setup.
    I'd like to do the same with Mac users who use screen sharing and vnc to connect remotely.
    How can I specify another port number at both ends to accomplish this?
    I can find nothing in the Network Utility app, or in the KB.
    Surely there's a short sequence of Terminal commands that will do this?

    I haven't tried this so don't know whether it will work. But I think it will. Presuming the target machine is a Mac, see if editing its /etc/services file will do it. Find the two lines that start with "vnc-server" and change the port number there. Launch Terminal.app as an administratively privileged user, sudo pico /etc/services, ^w to search for vnc-server, make the changes, ^x to exit, y to save and overwrite. Also, you will need to have screen sharing enabled in the target machine's System Preferences' Sharing, and the authorized users defined there, too. Reboot. Now, on the remote client, assuming it is also a Mac, the user would type ⌘k in the Finder (or mouse to Finder > Go > Connect to Server), and enter something like vnc://123.45.67.89:55900 where you substitute the actual IP address or host name for where I have entered 123.45.67.89, and where you substitute the actual alternate port number where I have entered 55900. Of course, in the clients' Screen Sharing's Preferences, they should choose to encrypt the entire session, not just the login. Like I said, I haven't tried this because I just tunnel my vnc stuff through ssh, but I'm thinking that this should work.

  • Non-Standard Buttons in FLVPlayback skin

    I posted this before but I don't think I explained it very
    well. I'm trying to add a non-standard button to my FLVPlayback
    skin, but it's not showing up. Can you add new buttons (with new
    functionality) to FLVPlayback skins or can you only edit the
    existing ones? This should be similar to adding a logo, does anyone
    have a tutorial or anything on adding a logo to an FLVPlayback
    skin?

    Look
    Here Edit the bar at the bottom of the Skin FLA, and add what
    you want to that... unlock all layers, select all, then resize, add
    a layer and put what you want. Then when selecting a skin for your
    FLVPlayback component, select Custom Skin, and target it.

  • Keyboard shipped with Pavilion non-standard number keypad

    Hello, I advised a friend to buy an HP Pavilion 550 desktop for use at her office. She is a bookkeeper and relies heavily on the number pad on the right side of the keyboard. The keyboard that shipped has a non-standard numeric keypad where the "0" key has a right facing arrow instead of the "0" key. Financial people cannot function with this type of keyboard. I had never seen a keyboard like this before and cannot imaging why HP shipped something that is not standard. I asked her to contact HP support, since there must have been a mistake. HP support offered to SELL her a new keyboard, but would not replace the keyboard shipped with the PC. The PC is brand new and just came out of the box! This is an embarrassing display of our support for our products.  Please help.

    i suppose you could do that - but that seems like a royal pain, and certainly not the graceful experience that apple is known for.
    Alternatively - i have found you can just type CHA CHA in text with the keyboard and it translates it into numbers accordingly.
    Still - a jarring experience, i prefer the other way. Oh well.

Maybe you are looking for