How to set multi fonts in one textItem?

I have a textItem with Chinese & English. I want to set Chinese and English in different fonts, but the script can only set one font. So, when I set the textItem in western fonts, the Chinese can't display correctly (display block). When I set it to Chinese fonts, the English letters display in Chinese font.
Is there anyway to fix this problem?
I use the Photoshop's original tools to set Chinese font first and set western font again, the font of English letters in textItem will change to the western font and the Chinese text will keep the Chinese font I set first time. I wonder is there the same way to set font with script?
Thx guys.

This might serve as an example:
// create a type layer with more than one font;
// 2013, use at your own risk;
#target photoshop
if (app.documents.length > 0) {
var theText = [
["this is a text", 12, "Helvetica"],
["this is another font", 15, "Times-Roman"]
// create;
createPointTextMoreCompl (theText, 50, 50);
////// create point text layer //////
function createPointTextMoreCompl (theArray, theX, theY) {
if (theArray[0].length > 0) {
// join the texts;
var theText =  new String;
for (var m = 0; m < theArray.length; m++) {
theText = theText + " " + theArray[m][0]
// =======================================================
var idMk = charIDToTypeID( "Mk  " );
    var desc4 = new ActionDescriptor();
    var idnull = charIDToTypeID( "null" );
        var ref2 = new ActionReference();
        var idTxLr = charIDToTypeID( "TxLr" );
        ref2.putClass( idTxLr );
    desc4.putReference( idnull, ref2 );
    var idUsng = charIDToTypeID( "Usng" );
        var desc5 = new ActionDescriptor();
        var idTxt = charIDToTypeID( "Txt " );
// text;
        desc5.putString( idTxt, theText );
        var idwarp = stringIDToTypeID( "warp" );
            var desc6 = new ActionDescriptor();
            var idwarpStyle = stringIDToTypeID( "warpStyle" );
            var idwarpStyle = stringIDToTypeID( "warpStyle" );
            var idwarpNone = stringIDToTypeID( "warpNone" );
            desc6.putEnumerated( idwarpStyle, idwarpStyle, idwarpNone );
            var idwarpValue = stringIDToTypeID( "warpValue" );
            desc6.putDouble( idwarpValue, 0.000000 );
            var idwarpPerspective = stringIDToTypeID( "warpPerspective" );
            desc6.putDouble( idwarpPerspective, 0.000000 );
            var idwarpPerspectiveOther = stringIDToTypeID( "warpPerspectiveOther" );
            desc6.putDouble( idwarpPerspectiveOther, 0.000000 );
            var idwarpRotate = stringIDToTypeID( "warpRotate" );
            var idOrnt = charIDToTypeID( "Ornt" );
            var idHrzn = charIDToTypeID( "Hrzn" );
            desc6.putEnumerated( idwarpRotate, idOrnt, idHrzn );
        var idwarp = stringIDToTypeID( "warp" );
        desc5.putObject( idwarp, idwarp, desc6 );
// position;
        var idTxtC = charIDToTypeID( "TxtC" );
            var desc7 = new ActionDescriptor();
            var idHrzn = charIDToTypeID( "Hrzn" );
            var idPrc = charIDToTypeID( "#Prc" );
            desc7.putUnitDouble( idHrzn, idPrc, theX );
            var idVrtc = charIDToTypeID( "Vrtc" );
            var idPrc = charIDToTypeID( "#Prc" );
            desc7.putUnitDouble( idVrtc, idPrc, theY );
        var idPnt = charIDToTypeID( "Pnt " );
        desc5.putObject( idTxtC, idPnt, desc7 );
        var idtextGridding = stringIDToTypeID( "textGridding" );
        var idtextGridding = stringIDToTypeID( "textGridding" );
        var idNone = charIDToTypeID( "None" );
        desc5.putEnumerated( idtextGridding, idtextGridding, idNone );
        var idOrnt = charIDToTypeID( "Ornt" );
        var idOrnt = charIDToTypeID( "Ornt" );
        var idHrzn = charIDToTypeID( "Hrzn" );
        desc5.putEnumerated( idOrnt, idOrnt, idHrzn );
        var idAntA = charIDToTypeID( "AntA" );
        var idAnnt = charIDToTypeID( "Annt" );
        var idantiAliasSharp = stringIDToTypeID( "antiAliasSharp" );
        desc5.putEnumerated( idAntA, idAnnt, idantiAliasSharp );
        var idtextShape = stringIDToTypeID( "textShape" );
            var list1 = new ActionList();
                var desc8 = new ActionDescriptor();
                var idTEXT = charIDToTypeID( "TEXT" );
                var idTEXT = charIDToTypeID( "TEXT" );
                var idPnt = charIDToTypeID( "Pnt " );
                desc8.putEnumerated( idTEXT, idTEXT, idPnt );
                var idOrnt = charIDToTypeID( "Ornt" );
                var idOrnt = charIDToTypeID( "Ornt" );
                var idHrzn = charIDToTypeID( "Hrzn" );
                desc8.putEnumerated( idOrnt, idOrnt, idHrzn );
                var idTrnf = charIDToTypeID( "Trnf" );
                    var desc9 = new ActionDescriptor();
                    var idxx = stringIDToTypeID( "xx" );
                    desc9.putDouble( idxx, 1.000000 );
                    var idxy = stringIDToTypeID( "xy" );
                    desc9.putDouble( idxy, 0.000000 );
                    var idyx = stringIDToTypeID( "yx" );
                    desc9.putDouble( idyx, 0.000000 );
                    var idyy = stringIDToTypeID( "yy" );
                    desc9.putDouble( idyy, 1.000000 );
                    var idtx = stringIDToTypeID( "tx" );
                    desc9.putDouble( idtx, 0.000000 );
                    var idty = stringIDToTypeID( "ty" );
                    desc9.putDouble( idty, 0.000000 );
                var idTrnf = charIDToTypeID( "Trnf" );
                desc8.putObject( idTrnf, idTrnf, desc9 );
                var idrowCount = stringIDToTypeID( "rowCount" );
                desc8.putInteger( idrowCount, 1 );
                var idcolumnCount = stringIDToTypeID( "columnCount" );
                desc8.putInteger( idcolumnCount, 1 );
                var idrowMajorOrder = stringIDToTypeID( "rowMajorOrder" );
                desc8.putBoolean( idrowMajorOrder, true );
                var idrowGutter = stringIDToTypeID( "rowGutter" );
                var idPnt = charIDToTypeID( "#Pnt" );
                desc8.putUnitDouble( idrowGutter, idPnt, 0.000000 );
                var idcolumnGutter = stringIDToTypeID( "columnGutter" );
                var idPnt = charIDToTypeID( "#Pnt" );
                desc8.putUnitDouble( idcolumnGutter, idPnt, 0.000000 );
                var idSpcn = charIDToTypeID( "Spcn" );
                var idPnt = charIDToTypeID( "#Pnt" );
                desc8.putUnitDouble( idSpcn, idPnt, 0.000000 );
                var idframeBaselineAlignment = stringIDToTypeID( "frameBaselineAlignment" );
                var idframeBaselineAlignment = stringIDToTypeID( "frameBaselineAlignment" );
                var idalignByAscent = stringIDToTypeID( "alignByAscent" );
                desc8.putEnumerated( idframeBaselineAlignment, idframeBaselineAlignment, idalignByAscent );
                var idfirstBaselineMinimum = stringIDToTypeID( "firstBaselineMinimum" );
                var idPnt = charIDToTypeID( "#Pnt" );
                desc8.putUnitDouble( idfirstBaselineMinimum, idPnt, 0.000000 );
                var idbase = stringIDToTypeID( "base" );
                    var desc10 = new ActionDescriptor();
                    var idHrzn = charIDToTypeID( "Hrzn" );
                    desc10.putDouble( idHrzn, 0.000000 );
                    var idVrtc = charIDToTypeID( "Vrtc" );
                    desc10.putDouble( idVrtc, 0.000000 );
                var idPnt = charIDToTypeID( "Pnt " );
                desc8.putObject( idbase, idPnt, desc10 );
            var idtextShape = stringIDToTypeID( "textShape" );
            list1.putObject( idtextShape, desc8 );
        desc5.putList( idtextShape, list1 );
        var idTxtt = charIDToTypeID( "Txtt" );
            var list2 = new ActionList();
                var desc11 = new ActionDescriptor();
                var idFrom = charIDToTypeID( "From" );
// from;
                desc11.putInteger( idFrom, 0 );
                var idT = charIDToTypeID( "T   " );
// to;
                desc11.putInteger( idT, theArray[0][0].length + 1);
                var idTxtS = charIDToTypeID( "TxtS" );
                    var desc12 = new ActionDescriptor();
                    var idstyleSheetHasParent = stringIDToTypeID( "styleSheetHasParent" );
                    desc12.putBoolean( idstyleSheetHasParent, true );
                    var idfontPostScriptName = stringIDToTypeID( "fontPostScriptName" );
// font;
                    desc12.putString( idfontPostScriptName, theArray[0][2] );
/*                    var idFntN = charIDToTypeID( "FntN" );
                    desc12.putString( idFntN, """Arial""" );
                    var idFntS = charIDToTypeID( "FntS" );
                    desc12.putString( idFntS, """Regular""" );*/
                    var idScrp = charIDToTypeID( "Scrp" );
                    desc12.putInteger( idScrp, 0 );
                    var idFntT = charIDToTypeID( "FntT" );
                    desc12.putInteger( idFntT, 1 );
                    var idSz = charIDToTypeID( "Sz  " );
                    var idPnt = charIDToTypeID( "#Pnt" );
// size;
//                    desc12.putUnitDouble( idSz, idPnt, theArray[0][1] * (Math.random() * 0.4 + 0.8) );
                    desc12.putUnitDouble( idSz, idPnt, theArray[0][1] );
                    var idTrck = charIDToTypeID( "Trck" );
                    desc12.putInteger( idTrck, 15 );
                    var iddigitSet = stringIDToTypeID( "digitSet" );
                    var iddigitSet = stringIDToTypeID( "digitSet" );
                    var iddefaultDigits = stringIDToTypeID( "defaultDigits" );
                    desc12.putEnumerated( iddigitSet, iddigitSet, iddefaultDigits );
                    var idmarkYDistFromBaseline = stringIDToTypeID( "markYDistFromBaseline" );
                    var idPnt = charIDToTypeID( "#Pnt" );
                    desc12.putUnitDouble( idmarkYDistFromBaseline, idPnt, 5.760000 );
                    var idtextLanguage = stringIDToTypeID( "textLanguage" );
                    var idtextLanguage = stringIDToTypeID( "textLanguage" );
                    var idgermanLanguageReformedonenineninesix = stringIDToTypeID( "germanLanguageReformed1996" );
                    desc12.putEnumerated( idtextLanguage, idtextLanguage, idgermanLanguageReformedonenineninesix );
                    var idClr = charIDToTypeID( "Clr " );
                        var desc13 = new ActionDescriptor();
                        var idRd = charIDToTypeID( "Rd  " );
                        desc13.putDouble( idRd, 0 );
                        var idGrn = charIDToTypeID( "Grn " );
                        desc13.putDouble( idGrn, 0 );
                        var idBl = charIDToTypeID( "Bl  " );
                        desc13.putDouble( idBl, 0 );
                    var idRGBC = charIDToTypeID( "RGBC" );
                    desc12.putObject( idClr, idRGBC, desc13 );
                var idTxtS = charIDToTypeID( "TxtS" );
                desc11.putObject( idTxtS, idTxtS, desc12 );
            var idTxtt = charIDToTypeID( "Txtt" );
            list2.putObject( idTxtt, desc11 );
// if more than one array;
// add the string’s lengths;
var theCounter = theArray[0][0].length + 1;
for (var n = 1; n < theArray.length; n++) {
                var desc14 = new ActionDescriptor();
                var idFrom = charIDToTypeID( "From" );
// from;
                desc14.putInteger( idFrom, theCounter );
                var idT = charIDToTypeID( "T   " );
theCounter = theCounter + 1 + theArray[n][0].length;
// to;
                desc14.putInteger( idT, theCounter );
                var idTxtS = charIDToTypeID( "TxtS" );
                    var desc15 = new ActionDescriptor();
                    var idstyleSheetHasParent = stringIDToTypeID( "styleSheetHasParent" );
                    desc15.putBoolean( idstyleSheetHasParent, true );
                    var idfontPostScriptName = stringIDToTypeID( "fontPostScriptName" );
// font;
                    desc15.putString( idfontPostScriptName, theArray[n][2] );
                    var idScrp = charIDToTypeID( "Scrp" );
                    desc15.putInteger( idScrp, 0 );
                    var idFntT = charIDToTypeID( "FntT" );
                    desc15.putInteger( idFntT, 0 );
                    var idSz = charIDToTypeID( "Sz  " );
                    var idPnt = charIDToTypeID( "#Pnt" );
// size;
                    desc15.putUnitDouble( idSz, idPnt, theArray[n][1] );
                    var idTrck = charIDToTypeID( "Trck" );
                    desc15.putInteger( idTrck, 15 );
                    var iddigitSet = stringIDToTypeID( "digitSet" );
                    var iddigitSet = stringIDToTypeID( "digitSet" );
                    var iddefaultDigits = stringIDToTypeID( "defaultDigits" );
                    desc15.putEnumerated( iddigitSet, iddigitSet, iddefaultDigits );
                    var idmarkYDistFromBaseline = stringIDToTypeID( "markYDistFromBaseline" );
                    var idPnt = charIDToTypeID( "#Pnt" );
                    desc15.putUnitDouble( idmarkYDistFromBaseline, idPnt, 5.760000 );
                    var idtextLanguage = stringIDToTypeID( "textLanguage" );
                    var idtextLanguage = stringIDToTypeID( "textLanguage" );
                    var idgermanLanguageReformedonenineninesix = stringIDToTypeID( "germanLanguageReformed1996" );
                    desc15.putEnumerated( idtextLanguage, idtextLanguage, idgermanLanguageReformedonenineninesix );
                    var idClr = charIDToTypeID( "Clr " );
                        var desc16 = new ActionDescriptor();
                        var idRd = charIDToTypeID( "Rd  " );
                        desc16.putDouble( idRd, 0 );
                        var idGrn = charIDToTypeID( "Grn " );
                        desc16.putDouble( idGrn, 0 );
                        var idBl = charIDToTypeID( "Bl  " );
                        desc16.putDouble( idBl, 0 );
                    var idRGBC = charIDToTypeID( "RGBC" );
                    desc15.putObject( idClr, idRGBC, desc16 );
                var idTxtS = charIDToTypeID( "TxtS" );
                desc14.putObject( idTxtS, idTxtS, desc15 );
            var idTxtt = charIDToTypeID( "Txtt" );
            list2.putObject( idTxtt, desc14 );
        desc5.putList( idTxtt, list2 );
        var idparagraphStyleRange = stringIDToTypeID( "paragraphStyleRange" );
            var list3 = new ActionList();
                var desc17 = new ActionDescriptor();
                var idFrom = charIDToTypeID( "From" );
                desc17.putInteger( idFrom, 0 );
                var idT = charIDToTypeID( "T   " );
// to;
                desc17.putInteger( idT, theText.length*2);
                var idparagraphStyle = stringIDToTypeID( "paragraphStyle" );
                    var desc18 = new ActionDescriptor();
                    var idstyleSheetHasParent = stringIDToTypeID( "styleSheetHasParent" );
                    desc18.putBoolean( idstyleSheetHasParent, true );
                    var idAlgn = charIDToTypeID( "Algn" );
                    var idAlg = charIDToTypeID( "Alg " );
                    var idCntr = charIDToTypeID( "Cntr" );
                    desc18.putEnumerated( idAlgn, idAlg, idCntr );
                    var idhyphenate = stringIDToTypeID( "hyphenate" );
                    desc18.putBoolean( idhyphenate, true );
                    var idhyphenateWordSize = stringIDToTypeID( "hyphenateWordSize" );
                    desc18.putInteger( idhyphenateWordSize, 8 );
                    var idhyphenatePreLength = stringIDToTypeID( "hyphenatePreLength" );
                    desc18.putInteger( idhyphenatePreLength, 3 );
                    var idhyphenatePostLength = stringIDToTypeID( "hyphenatePostLength" );
                    desc18.putInteger( idhyphenatePostLength, 3 );
                    var idhyphenateLimit = stringIDToTypeID( "hyphenateLimit" );
                    desc18.putInteger( idhyphenateLimit, 2 );
                    var idhyphenationZone = stringIDToTypeID( "hyphenationZone" );
                    desc18.putDouble( idhyphenationZone, 36.000000 );
                    var idhyphenateCapitalized = stringIDToTypeID( "hyphenateCapitalized" );
                    desc18.putBoolean( idhyphenateCapitalized, true );
                    var idburasagari = stringIDToTypeID( "burasagari" );
                    var idburasagari = stringIDToTypeID( "burasagari" );
                    var idburasagariStandard = stringIDToTypeID( "burasagariStandard" );
                    desc18.putEnumerated( idburasagari, idburasagari, idburasagariStandard );
                    var idtextEveryLineComposer = stringIDToTypeID( "textEveryLineComposer" );
                    desc18.putBoolean( idtextEveryLineComposer, true );
                var idparagraphStyle = stringIDToTypeID( "paragraphStyle" );
                desc17.putObject( idparagraphStyle, idparagraphStyle, desc18 );
            var idparagraphStyleRange = stringIDToTypeID( "paragraphStyleRange" );
            list3.putObject( idparagraphStyleRange, desc17 );
        desc5.putList( idparagraphStyleRange, list3 );
        var idkerningRange = stringIDToTypeID( "kerningRange" );
            var list4 = new ActionList();
        desc5.putList( idkerningRange, list4 );
    var idTxLr = charIDToTypeID( "TxLr" );
    desc4.putObject( idUsng, idTxLr, desc5 );
executeAction( idMk, desc4, DialogModes.NO );

Similar Messages

  • How to set Multi-Font in one JTextArea?

    Just like:
    first line is Bold
    second is Italic

    To give a short guidance, what to use
    1. Use a JTextPane with a DefaultStyledDocument in it.
    2. Changes to this JTextPane are made to the underlying document, which you can get by the getStyledDocument() method ot JTextPane.
    3. There use the insertString(...) method of this document to make changes
    4. Use a SimpleAttributeSet to hold the styles and manipulate it using the StyleConstants class.
    Hope this will help
    greetings Marsian

  • How to set Multi User Environment in the weblogic 5.1 and 6.1 server..(Urgently)

    Hi all,
    I need to know how to set Multi User Environment in the weblogic 5.1
    properties file..
    Here my question is..:)
    1) I have a database with multiple users and having different privileges
    for the users.. and i need to use all the privileges when user aceess
    the database through weblogic server connectionPool.
    2)According to the user privileges i need access the database tables
    content and gives the frontEnd(jsp).
    3)How to modify dynamically weblogic.properties file in the weblogic
    5.1.
    If anybody having idea reg. this issues pl...help me..
    Thanks in advance
    Chandu([email protected],[email protected])

    Hi. A JDBC connection pool is a set of identical, interchangeable, pre-made
    connections, and the controls to make sure only one user uses a particular
    connection at any one time. If you want to have different DBMS users, you can
    have a separate pool for each DBMS user, which may contain as many or few
    connections as you want. Some applications has a pool for the accounting
    applications, and another for the sales applications etc. Some do have a
    separate pool for john, jane, joe etc, each with one connection. Pools
    can be created and destroyed dynamically using the dynamic pool API.
    Joe
    softstar wrote:
    >
    Hi all,
    I need to know how to set Multi User Environment in the weblogic 5.1
    properties file..
    Here my question is..:)
    1) I have a database with multiple users and having different privileges
    for the users.. and i need to use all the privileges when user aceess
    the database through weblogic server connectionPool.
    2)According to the user privileges i need access the database tables
    content and gives the frontEnd(jsp).
    3)How to modify dynamically weblogic.properties file in the weblogic
    5.1.
    If anybody having idea reg. this issues pl...help me..
    Thanks in advance
    Chandu([email protected],[email protected])

  • How to set cookie value in one page and retrieve in another page using setA

    How to set cookie value in one page and retrieve in another page using setActionListener?
    I have tried with following code srcpage.jspx->destpage.jspx
    srcpage.jspx
    <af:table value="#{bindings.DepartmentsView1.collectionModel}"
    var="emp" rows="#{bindings.EMPView1.rangeSize}"
    first="#{bindings.EMPView1.rangeStart}"
    emptyText="#{bindings.DepartmentsView1.viewable ? 'No rows yet.' : 'Access Denied.'}">
    <af:column sortProperty="EmployeeName" sortable="false"
    headerText="Cookie Testing">
    <af:commandLink text="#{emp.EmployeeName}" action="success">
    <af:setActionListener from="#{emp.EmployeeName}"
    to="#{cookie}"/>
    </af:commandLink>
    </af:column>
    </af:table>
    espage.jspx
    <af:outputText value="Test Cookie Value: #{cookie}"/>
    ,Here Test Cookie Value prints the following instead of its original String value
    {JSESSIONID=javax.servlet.http.Cookie@7da288, oracle.uix=javax.servlet.http.Cookie@399f62}
    I have passed employee name "Robert" to cookie in srcpage.jspx,but it prints "JSESSIONID....." instead of "Robert" in destpage.jspx
    Thanks in advance
    Kalee

    Hi,
    "cookie" is a reserved name. If you want to write to a session scope attribute called "cookie" then you have to call #{sessionScope.cookie}. If you want to use EL to set and read from cookies then you will have to use
    #{cookie.cookieName}
    Note that #{cookie} writes to and returns a map
    check this: http://www.informit.com/articles/article.aspx?p=30946&seqNum=7
    Frank

  • How to set custom font family in qml label in black berry 10 os

    how to set custom font family in label text  qml in black berry 10 OS

    AFAIK, this is not the correct way to set the image location.
    We call the working directory as context, so inside the context root along with WEB-INF, maintain a folder with name img and put all the images in that directory.
    You can use either .\<image_folder> or the optimum way would be (if you are using JSPs) to use getContext() method and traverse accordingly.
    FYI,,, using getContext() will give you context root directory, from there it is as simple as accessing any other folder.
    Hope this answers your question.
    Cheers,
    Jeets.

  • How to set two radius servers one is window NPS another is cisco radius server

    how to set two radius servers one is window NPS another is cisco radius server
    when i try the following command, once window priority is first , i type cisco radius user name, it authenticated fail
    i can not use both at the same time
    radius-server host 192.168.1.3  is window NPS
    radius-server host 192.168.1.1 is cisco radius
    http://blog.skufel.net/2012/06/how-to-integrating-cisco-devices-access-with-microsoft-npsradius/
    conf t
    no aaa authentication login default line
    no aaa authentication login local group radius
    no aaa authorization exec default group radius if-authenticated
    no aaa authorization network default group radius
    no aaa accounting connection default start-stop group radius
    aaa new-model
    aaa group server radius IAS
     server 192.168.1.1 auth-port 1812 acct-port 1813
     server 192.168.1.3 auth-port 1812 acct-port 1813
    aaa authentication login userAuthentication local group IAS
    aaa authorization exec userAuthorization local group IAS if-authenticated
    aaa authorization network userAuthorization local group IAS
    aaa accounting exec default start-stop group IAS
    aaa accounting system default start-stop group IAS
    aaa session-id common
    radius-server host 192.168.1.1 auth-port 1812 acct-port 1813
    radius-server host 192.168.1.2 auth-port 1812 acct-port 1813
    radius-server host 192.168.1.3 auth-port 1645 acct-port 1646
    radius-server host 192.168.1.3 auth-port 1812 acct-port 1813
    privilege exec level 1 show config
    ip radius source-interface Gi0/1
    line vty 0 4
     authorization exec userAuthorization
     login authentication userAuthentication
     transport input telnet
    line vty 5 15
     authorization exec userAuthorization
     login authentication userAuthentication
     transport input telnet
    end
    conf t
    aaa group server radius IAS
     server 192.168.1.3 auth-port 1812 acct-port 1813
     server 192.168.1.1 auth-port 1812 acct-port 1813
    end

    The first AAA server listed in your config will always be used unless/until it becomes unavailable. At that point the NAD would move down to the next AAA server defined on the list and use that one until it becomes unavailable and then move to third one, and so on. 
    If you want to use two AAA servers at the same time then you will need to put a load balancer in front of them. Then the virtual IP (vip) will be listed in the NADs vs the individual AAA servers' IPs. 
    I hope this helps!
    Thank you for rating helpful posts!

  • In flex, How to set a value to one parameter, the parameter defined in a cffunction in a cfc file

    In flex, How to set a value to one parameter, the parameter
    defined in a cffunction in a cfc file, In the cffunction there are
    much cfargument, I want set a value to one of them, such as the
    cfc:
    <cffunction access="remote" name="myShow" output="false"
    returntype="struct">
    <cfargument name="ID" type="numeric" default=0>
    <cfargument name="GoodsID" type="string" default="">
    <cfargument name="DestTime" type="string" default="">
    <cfargument name="DestCount" type="numeric" default=1>
    How I set a value to only parameter one of them , such as set
    GoodsID when use mx:remoteObject.
    Thanks for your help

    Got maybe a solution for you, I have just tested it.
    So, the idea is to use intermediate variables. Imagine Var1 and Var2 variables that you refresh with your more or less complicated queries. Then what you can do is to refresh your final variable Var3 with a query using your intermediate variables. Here is an example for Oracle:
    select #Var1+#Var2 from dual
    This way you can make a chain of dependent variables: Var3 is using Var2 and Var2 is using Var1.
    Hope it helps.
    Shamil

  • How to set different font for a particular row in jtables?

    How to set different font size and font type for a particular row in jtable?

    More than enough sample code here:
    [http://java.sun.com/docs/books/tutorial/uiswing/components/table.html]
    db

  • How to set the Font size of Label?????

    Hello everyone.
    I want to knoe how to set the Font size of the Label???
    Please help..
    Thanks a lot.
    Gloria

    Label myLabel = new Label("Hello World");
    //Font(String name, int style, int size)
    myLabel.setFont(new Font("Arial", Font.PLAIN, 12));

  • How do set multi ip address on solaris8

    I set multi ip address by following command:
    inconfig hme0:1 159.226.140.55 netmask 255.255.255.0
    system error:not found interface hme0:1.
    I shoud how to set multi ip address on solaris8

    are you sure you have your hostname.hme:1 file in the /etc directory?
    you need to create that file with your hostname in it for virtual ip to work.

  • How to set the fonts in the user profile(very urgent)

    Hi All,
    Can anyone please tell how to set the fonts in the user profile.
    We have a requirement where currently all the data is being displayed in a font and the user want to change that font permanently.
    I hope you have got the requirement.
    Points will be surely awarded.
    Thank you.

    Hi,
    U can do this in SU02.
    Kishi.

  • How to set the font size on only one object!

    I wonder how i could programmatically set the font size on only one object?
    Igor Stojčević

    Hello,
    You can use the builtin SRW.SET_FONT_SIZE
    http://www.oracle.com/webapps/online-help/reports/10.1.2/topics/htmlhelp_rwbuild_hs/rwrefex/plsql/builtins/srw/srw_set_font_size.htm
    in the Format trigger
    http://www.oracle.com/webapps/online-help/reports/10.1.2/topics/htmlhelp_rwbuild_hs/rwrefex/plsql/triggers/tr_format_trigger.htm
    Regards

  • Maps - how to set up more than one destination

    In Mavericks 10.9.4, how do I use the system Maps application to set up more than one destination?  I saw no way to add a 2nd destination to my route.  I know I could set up several one-destination trips but that seems silly.

    Send Apple feedback. They won't answer, but at least will know there is a problem. If enough people send feedback, it may get the problem solved sooner.
    Feedback

  • How to set the font of a table header?

    Hi,
    Is there a way to set the font of a table header? I do not mean how to change the header word but the font.
    Thanks
    Stephen

    Hi,
    for combobox in a table (I assume the combobox is shown un column 2, thus the index 1)
    oracle.jbo.uicli.jui.JUTableLOVEditor lovCellEditor = (oracle.jbo.uicli.jui.JUTableLOVEditor) jTable1.getColumnModel().getColumn(1).getCellEditor();
    lovCellEditor.getComponent().setFont(new Font("Arial",Font.BOLD,13));
    For the LOV panel this is a bit more complicated because you need to create a custom LOV panel as described in http://www.oracle.com/technology/products/jdev/howtos/10g/jclientlov/customadfjclientlovpanel.html
    I filed a bug today to expose the component on a LOV to public so they can be modified
    Frank

  • How to set the font of label in ColumnChart correctly?

    hello, everybody
    By flex sdk 4.1.0, 4.5.1,
    the same source but two effects of font of label of ColumnChart will be displayed.
    .mxml:
    <!-- mxml start -->
    <?xml version="1.0" encoding="utf-8"?>
    <s:BorderContainer xmlns:fx="http://ns.adobe.com/mxml/2009"
                       xmlns:s="library://ns.adobe.com/flex/spark"
                       xmlns:mx="library://ns.adobe.com/flex/mx"
                       width="100%" height="100%"
                       styleName="backgroundChart" xmlns:local="*" xmlns:common="common.*">
        <fx:Declarations>
            <s:SolidColorStroke id="white" weight="1" color="#CCCCCC"/>
        </fx:Declarations>
        <s:Label text="" id="titleLabel" textAlign="left" styleName="graphLabel" x="10" y="10" width="100%" height="40" visible="true"/>
        <mx:Legend id="ch01Legend" direction="horizontal" dataProvider="{mainChart}" height="100%" width="100%" x="30" y="30" styleName="myLegend1"/>
        <!-- Define custom Strokes. -->
        <mx:ColumnChart id="mainChart" showDataTips="true" x="20" y="60" width="100%" height="100%" dataTipFunction="dataTip">
            <mx:backgroundElements>
                <mx:GridLines horizontalChangeCount="1" gridDirection="horizontal">
                    <mx:horizontalStroke>{white}</mx:horizontalStroke>
                </mx:GridLines>
            </mx:backgroundElements>
            <mx:verticalAxisRenderers>
                <mx:AxisRenderer axis="{linearAxis}" showLine="true" showLabels="true" styleName="myAxisStyle1">
                    <mx:axisStroke>{white}</mx:axisStroke>
                </mx:AxisRenderer>
            </mx:verticalAxisRenderers>
            <mx:verticalAxis>
                <mx:LinearAxis id="linearAxis"
                               minimum="0"
                               autoAdjust="true"
                               title="Unit"
                               />
            </mx:verticalAxis>
            <mx:horizontalAxisRenderers>
                <mx:AxisRenderer id="horizonLabel" labelRotation="45" axis="{ch01_a2}" showLine="true" showLabels="true" styleName="myAxisStyle3">
                    <mx:axisStroke>{white}</mx:axisStroke>
                </mx:AxisRenderer>
            </mx:horizontalAxisRenderers>
            <mx:horizontalAxis>
                <mx:CategoryAxis id="ch01_a2"
                                 dataProvider="{mainChart}"
                                 title="Period"
                                 categoryField="Period"
                                 />               
            </mx:horizontalAxis>
        </mx:ColumnChart>
    </s:BorderContainer>
    <!-- mxml end -->
    .css
    <!-- css start -->
    .myAxisStyle1 {
        placement:bottom;
        minorTickPlacement:none;
        tickLength:5;
        tickPlacement:none;
        color:#FFFFFF;
        verticalAxisTitleAlignment:vertical;
        fontFamily: Arial_AFE;
    .myAxisStyle3 {
        placement:bottom;
        minorTickPlacement:inside;
        tickLength:5;
        tickPlacement:inside;
        color:#FFFFFF;
        fontFamily: Arial_AFE;
    @font-face {
        src:url("font/arial.ttf");
        fontFamily: Arial_AFE;
        embedAsCFF: false;
    <!-- css end -->
    environment:
    flex sdks->4.1.0
    chart image:
    the font looks like "Arial"
    environment:
    flex sdks->4.5.1
    chart image:
    the font looks like "Times New Roman"
    Working at flex sdks 4.5.1,
    the labelClass can be set to 'spark.components.Label'(defalut) or 'mx.controls.Label',
    it seems that we can set labelClass to mx.controls.Label to get the same effect of font of label in ColumnChart when flex sdks->4.5.1
                <mx:AxisRenderer axis="{linearAxis}" showLine="true" showLabels="true" styleName="myAxisStyle1" labelClass="mx.controls.Label">
                <mx:AxisRenderer id="horizonLabel" labelRotation="45" axis="{ch01_a2}" showLine="true" showLabels="true" styleName="myAxisStyle3" labelClass="mx.controls.Label">
    but it also causes a memory leak.
    1) Can anyone tell me how to show the font of label of ColumnChart correctly (looks like "Arial") when using the labelClass 'spark.components.Label' ?
    2) Can anyone tell me how to solve the memory leak when using the labelClass 'mx.controls.Label'?

    Hi,
    for combobox in a table (I assume the combobox is shown un column 2, thus the index 1)
    oracle.jbo.uicli.jui.JUTableLOVEditor lovCellEditor = (oracle.jbo.uicli.jui.JUTableLOVEditor) jTable1.getColumnModel().getColumn(1).getCellEditor();
    lovCellEditor.getComponent().setFont(new Font("Arial",Font.BOLD,13));
    For the LOV panel this is a bit more complicated because you need to create a custom LOV panel as described in http://www.oracle.com/technology/products/jdev/howtos/10g/jclientlov/customadfjclientlovpanel.html
    I filed a bug today to expose the component on a LOV to public so they can be modified
    Frank

Maybe you are looking for

  • Schedule job with JOB_CLOSE until a certain time

    Hello all, I'd like to schedule a background job with JOB_CLOSE until a certain time, i.e. first start time at 10 a.m., repitition period 15 min., last start time 1 p.m. I tried this using parameter LASTSTRTTM, e.g.: i_startdate = sy-datum. i_startti

  • Reaction at Standby Database in 10g for alter , addtion, deletion tablespac

    Deal All, I want to know that what will be reaction on standby database (10g) if i alter , add , delete tablespace or datafile at primary database.

  • Re-organization of images Lightroom 2.7

    Greetings,  Over the years I have created a hodge podge of directories with images in various locations. I want to re-organize all my images into the single location and organization in a logical directory structure.  Now for my question.  Would I be

  • Placeholder & Formula Column Functionally

    Hi gurus, Can any one of you please tell me, What is difference between Placeholder column and Formula Column Functionally. Any help is highly welcome.

  • Finder - Address Bar

    Being used to Windows, I miss having an address bar in Finder. I appreciate the View...Show Path Bar option, but I'd like to be able to type a path and have it pre-fill my options (a little Unix-like). If not that, I'd at least like to be able to cop