StaticText Character Limitation

Hey guys,
I'm experiencing a weird issue with StaticText, specifically it being limited in characters once I set an initial text value. Basically I'm building a progress bar window: I have a function that builds the UI with all the elements/text, and another function that updates the UI.
When I build the UI and set the initial text value to "XXX", then attempt to change it via my updateProgressBar function, the new text value is limited to 3 characters ("XXX"). Likewise, if I change the initial text value to nothing "", when I update the text, it displays nothing. Basically, whatever I set as the initial text in the UI, that's the max # of characters I can have, even when trying to update the text to something else via my updateProgressBar function. The weird thing is, everything is 100% functional and the progress bar/text DOES update, it's just the StaticText is limited in # of characters.
Anyone experience this issue? I'm thinking it has something to do with the way I'm building the UI/functions. Any help would greatly be appreciated.
Thanks!
// Build progress bar
var progressBarWindow = buildProgressBar();
var totalLayers = myPalette.grp.mainGroup.extrusionGroup.extrusionCopies.text * numSelectedLayers;
var progressCounter = 0;
// Update progress bar
progressCounter = progressCounter + 1;
updateProgressBar(progressBarWindow, 0, totalLayers, progressCounter);
// Function that updates progress bar
function updateProgressBar(progressWindow, min, max, curValue){
        progressWindow.grp.mainPanel.progressBarUI.minvalue = min;
        progressWindow.grp.mainPanel.progressBarUI.maxvalue = max;
        progressWindow.grp.mainPanel.progressBarUI.value = curValue;
        progressWindow.grp.mainPanel.progressTxt.text = "Processing: " + curValue + "/" + max + " layers";
// Builds window for progress bar
function buildProgressBar() {
    var myWin = new Window("palette", "Extruding...", undefined, {resizeable:false});
    if (myWin != null) {
                var res = "group {orientation:'column', alignment:['fill','fill'],\
                                    mainPanel: Group {text:'Add/Edit List Item', orientation:'column', alignment:['fill', 'fill'], minimumSize:['250','50'], spacing:5 ,\
                                        progressBarUI: Progressbar {alignment:['fill','top']} ,\
                                        progressTxt: StaticText {text:'XXXXXXXXXXXXXXXXXXXXXX', alignment:['left','top']},\
                myWin.grp = myWin.add(res);
                myWin.layout.layout(true);
                myWin.layout.resize();              
                myWin.onResizing = myWin.onResize = function(){this.layout.resize()};
                myWin.show();
                return myWin;

StaticText can be tricky, so you may want to double check that the width of the StaticText object is wider than the initial three characters that you are using.  For the StaticText object, you might try making the alignment ['fill', 'top'] instead of ['left', 'top'].  Also, you should add a preferredSize property where the width is -1, something like preferredSize: [-1, 25].  That would mean that the ScriptUI engine determines the size for the width, and the height would be 25.  Not sure if that will solve the issue you are seeing, but that might be a good place to start troubleshooting...
Hope it helps!
-Arie

Similar Messages

  • ISE delete command 80 character limitation

    Hello Guys,
    one of our customers did a backup to local disk on the ISE. Later he tried to remove the file on the ISE node by running the delete command. Unfortunately the name of the file exceeded the 80 character limitation of the CLI delete command.
    Is there any other opportunity to get rid of the backup file?

    I haven't run into this before but it sounds like a bug Here is what I would recommend:
    1. ISE 1.1.2 just came out so you can upgrade your system and see if that takes care of the problem
    2. If #1 does not fix the issue then you should probably contact TAC and get a root patch installed to gain root level access to the system. Once you have root access you can do pretty much whatever you like including deleting that file. After the issue is resolved request the TAC engineer to file a defect with the development team so they can fix this in the future release
    Thank you for rating!

  • EVCOM: Character limitation of 256 characters?

    I am using BPC 5.1 and Excel 2003 to send comments using EVCOM.  It appears that the length of characters is limited to 256 characters.  From my research, I believe that this is a limitation of either Excel or SQL Server 2005 or both.  I believe Excel 2007 has a larger character limitation of 32kb but I have not been able to test this out.  Is is possible to send more than 256 characters using my current set up and if so how?  If not, is there any solution that will allow me to send more than 256 characters?

    In BPC 5.1, yes it's limited to 256 characters.
    Here's the schema, from ApShell. Note the COMMENT field in particular.
    Keyword, which you could be interested in if you're submitting comments from the action pane, is only 50 characters.
    CREATE TABLE [dbo].[CommentFinance](
         [RECORDID] [bigint] IDENTITY(1,1) NOT NULL,
         [USERID] [nvarchar](50) NOT NULL,
         [DATEWRITTEN] [smalldatetime] NOT NULL DEFAULT (getdate()),
         [KEYWORD] [nvarchar](50) NULL,
         [PRIORITY] [nvarchar](1) NOT NULL DEFAULT ((3)),
         [KPI] [bigint] NULL,
         [ACCOUNT] [nvarchar](20) NULL,
         [CATEGORY] [nvarchar](20) NULL,
         [DATASRC] [nvarchar](20) NULL,
         [ENTITY] [nvarchar](20) NULL,
         [INTCO] [nvarchar](20) NULL,
         [RPTCURRENCY] [nvarchar](20) NULL,
         [TIME] [nvarchar](20) NULL,
         [MEASURES] [nvarchar](20) NULL,
         [COMMENT] [nvarchar](256) NOT NULL,
    CONSTRAINT [PK_CommentFinance] PRIMARY KEY CLUSTERED
         [RECORDID] ASC
    )WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
    ) ON [PRIMARY]

  • Character limits on 8330

    could some please help me ive got a 8330 and i have only 160 character limits have to send then send help
    Solved!
    Go to Solution.

    For almost all carriers, 160 characters is the limit on text messaging. It is a carier restriction.
    If you type more than 160 characters, the message will commonly be broken in to one or more messages.
    SMS = Short Message Service, hence the name "Short".
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Work around for User ID 32 character limitation in CCX Agent?

    Are there any kind of creative work arounds for getting past the ridiculous 32 character limit when logging into the CCX Agent?
    We are moving toward using the User Principal Name (UPN) in CUCM LDAP which means that the domain is now tacked onto the end of their existing User IDs.  We are doing this so that users from multiple domains can authenticate to various Cisco tools and apps.  It works very well, except when firing up the Agent!
    I've already been playing around with UPN suffixes, and while I can get them to show up in CUCM (and subsequently), I can't seem to get them to authenticate.
    I shouldn't even have to get this creative, just remove the 32 character limit, Cisco!
    We are running CCX 8.5 and CUCM 8.6

    Hi ,
    I am not aware about any such workarounds.
    After referring to the below guide,
    http://www.cisco.com/en/US/docs/voice_ip_comm/cust_contact/contact_center/crs/express_8_5/configuration/guide/uccx851ag.pdf
    On page 78, it is mentioned as,
    Caution : When logging into Cisco Agent Desktop, agents use the Unified CM user ID and password. While the Unified CM limits agent IDs to 128 alphanumeric characters, the Unified CCX limits agent IDs to 31 alphanumeric characters. Be sure to abide by the 31 character-limit when configuring agents in Unified CM.
    I am sure even if it works by some workarounds also, you may see some issues specially from the CAD\CSD\CDA side, which Cisco will not support it quoting the same above reason.
    Hope it helps,
    Anand
    Please Rate helpful posts !!

  • Question Re: Character Limitations On Folder Name When Packaging...

    So ever since I upgraded to Creative Cloud I noticed that InDesign is having trouble handling my somewhat lengthy filenames.  For example, I just created a file with 48 character spaces in the filename.  When I finished finessing the artwork I saved the INDD file, then went to package it and when the dialog box popped up asking me where I wanted to save the packaged folder, InDesign had only auto-filled in 12 of the 48-character count, deleting the other 36 characters.  Please note that this has never been a problem in the past with previous versions of InDesign.  FYI I'm rinning version 9.2 on a Mac (Mavericks).  Hoping this is just a pref. setting.  Thoughts?
    Also important to note that if I re-type the remaining characters that were deleted (or navigate to the original INDD file and mouse click it so it "picks up" the correct filename) I can proceed without any issues.  I save it and it saves the full name without any errors.  But to have to fill in the missing characters every time I package a job is quite tedious, so any help would be greatly appreciated.
    TIA!

    Anyone?

  • File Name Character Limited to 31 - New or something I've done?

    I have been using my MacBook Air with Mavericks for ~6 months and just started getting file name size limit of 31 character warnings a few days ago.  I have many files saved with much longer file names but now cannot go over the 31 character limit.  Have I inadvertantly changed a setting or is this something new in a recent update?
    Bottom line - how do I get back to using longer fle names?
    MacBook Air, OS X Mountain Lion (10.8.4), MBA 11" Loaded (1.7G / 8G / 512G)

    call Apple Care - 800-275-2273
    But I doubt that you will get FaceBook support from Apple - I'd suggest calling FB support
    LN

  • Are there any character limits to PDF keyword metadata?

    I'm working on a project that involves scanning a lot of handwritten documents, so manually entering keyword metadata is key for searchability. Is there any character limit to individual keywords or the entire keywords field?
    Thanks,
    Sean

    Well I answered the second part of my question myself. It turns out the keyword field in Acrobat has a 1,999 character limit.

  • Maximum character limits for data types under the Definition tab in Outbound Dialer Import Rule configuration.

    Hello,
    We're running an outbound SIP dialer under UCCE 8.5(4). The need has come up to allow more than 10 characters for the first name field under the Definition tab in the import rule configuration section, however, it seems that 10 characters is the upper limit. The reason for wanting to do this is that we're seeing a large number of calls fail to import because the members first name is larger than 10 characters, for example, an import record with a first name of Maximillian will fail. The idea was presented to simply shorten the member name in the event it exceeds 10 characters. However, the concern is that this will cause the agent to mispronounce the members name when they are connected on the phone during initial greeting. For example, Maximillian now becomes Maximillia. Has anyone ever run into the need to do this? Is there a known workaround? Any ideas would be greatly appreciated.
    Regards,
    -Mike

    Mike,
    Are you certain that you're trying to increase the value of the correct field? When you go into your Import Rule > Definition tab > highlight the FirstName field name and click Modify... What you should see for Field length is 1-255. You can easily increase the number of character to over 10.

  • Character Limits on Raise Messages

    Hi friends.
    I searched over the web for a while and I coudl not find.
    Whats the limit of characters for raise messages like that:
    Ex: raise_application_error(-20100,XXXXX);
    How many characters could the "XXXXX" pop up?
    Tks a lot for any help

    Hi,
    it is mentioned in the documentation: http://docs.oracle.com/cd/E11882_01/appdev.112/e25519/errors.htm#autoId15 :
    "The error_code is an integer in the range -20000..-20999 and the message is a character string of at most 2048 bytes."
    Herald ten Dam
    http://htendam.wordpress.com

  • Se38 line character limitation about ecc 4.6C

    when i coding via se38 in ecc 4.6C, only allow to input 70 character per line,how to set the editor to permmit more character per line?

    Hello,
    Please use Front-end editor (SE38->Utilities->Settings->Front-End Editor (New)) to have more characters per line.
    Thanks,
    Venu

  • Setting Character Limits or Font Size in Text Fields In Forms

    Hi everyone.  I've created a form but the problem is that people are changing the font size in order to fit mrore into the locked text fields.  I want to create either a chaacter limit or lock the font size as to prevent people from changing around the forms.
    Thanks for your help.

    ^^ In the instructions?  Or is there a way to do that in Acrobat?

  • Character limitation to install 11g R2

    Hi All,
    It's known issue I think that hostname should not be more tha 8 characters where Database - iwill be installed.
    I think initially if the server name was bigegr than 8 characters or had any ACSII characters - installer would throw up an error.
    You wont get ODBC conection and all.
    I have a system - windows 2008 64 bit R2 - Hostname - 9 characters long
    Installed 11g R2 on it and do get ODBC conenction success.
    Is the limitaion of 8 characters been removed and no loger neccassary to stick to that???????????????

    >
    As you sid you have installed DB with 15 characters without any issues.
    >
    That is not what I said :-) - pl re-read my comment.
    You original comment was
    >
    It's known issue I think that hostname should not be more tha 8 characters where Database - iwill be installed.
    >
    hostname to me means the server name you will be installing on - it has no relation to oracle software install.
    If by "hostname" you meant SID, then pl see these
    http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:2349000181202
    How long an ORACLE_SID can be?
    HTH
    Srini

  • Dbms_output 255 character limitation

    Hi,
    I am writing a PL/SQL procedure and I need to output data lines that are longer than 255 characters. Does anyone know if there is a way to use dbms_output to output a line that is longer than 255 characters.
    Thanks
    Brian

    I would but I do not have access to the UNIX server that the database is on. The database is also not setup for a utl_file_dir. I would like to be able to generate the data on the client that I have full access to.
    Thanks

  • Increasing the Character limitations on Metrics in NPD

    How do I increase the allotted characters for Metrics in the NPD Application? Is it possible to do this? The current limit is 64 characters, and Microsoft Excel allows for named references to be up to 256 characters, can I match these?

    This isn't a configurable attribute.   The final ID is created by the system using the following fields: Metric ID +  Basis + Phase + Fiscal Year attributes.  Each of those allow for 64 characters each which will total 256. 
    Hope this helps.  Let me know if you have any questions
    Kelly

Maybe you are looking for

  • Is it possible to use Adobe Illustrator in multiple computers with the same account?

    Hi guys, So our company is a small designing tile company, we wanted to purchase the Adobe Illustrator and was wondering if it was possible to use it in multiple computers with one account, as we have two computers that are frequently use for designi

  • Path Problem: Can't Load Database Settings From  A File

    <b>I am writing a swing application with the following functionality:</b><br> (1) There is a base class that supports things like changing the look and feel – this is done via a JDialog that loads all the installed lafs from which the user selects a

  • Windows Setup Crashing

    I have successfully partioned 32GB of space and installed Win XP Pro on my Mac Pro running Leopard. When I start the windows setup it goes to the blue windows memory dump screen as soon as it gets to installing devices. Any suggestions on what may ca

  • Oracle Content Management and JSR 170

    Does anbody know whether latest Oracle Content Management SDK have implemented support for JSR 170? I cannot find this information a anywhere.

  • Create callable object

    hai every one ... could u tell me we can create the callable object like with out any backend conection , like not using webdynpro... i need one callable object which contian ... 3 fileds name : num: des: submit    reject submit and reject are as but