Adding a character with no lines

A script I'm working on contains a character that has no dialogue. I can't seem to be able to add this character into the character database of the script without having lines. I have them in the action lines, but unless I capitalize the entire name every time, it doesn't recognize them in the scene.
Is there a way of doing this that I'm overlooking?
Also, how can I change the color of the coded dots for each character?

Hi,
To do some dynamic actions on your page without submitting the page, you need javascript.
Try this below:
1. On your Page HTML Header copy and paste the script below:
<script type="text/javascript">
function calculateTotal(pThis){
var vRow = pThis.id.substr(pThis.id.indexOf('_')+1);
var vMON;
var vTUE;
var vWED;
var vTHU;
var vFRI;
var vSAT;
var vSUN;
var vTOTAL;
vMON = parseInt($x('f03_'+vRow).value,10);
if (!vMON) {vMON=0;}
vTUE = parseInt($x('f04_'+vRow).value,10);
if (!vTUE) {vTUE=0;}
vWED = parseInt($x('f05_'+vRow).value,10);
if (!vWED) {vWED=0;}
vTHU = parseInt($x('f06_'+vRow).value,10);
if (!vTHU) {vTHU=0;}
vFRI = parseInt($x('f07_'+vRow).value,10);
if (!vFRI) {vFRI=0;}
vSAT = parseInt($x('f08_'+vRow).value,10);
if (!vSAT) {vSAT=0;}
vSUN = parseInt($x('f09_'+vRow).value,10);
if (!vSUN) {vSUN=0;}
vTOTAL = vMON + vTUE + vWED + vTHU + vFRI + vSAT + vSUN;
$x('f12_'+vRow).value = vTOTAL;
2. On each of the Tabualar Form Element Attributes (Monday to Sunday Fields) copy and paste the script below:
onchange="calculateTotal(this);"
Good Luck,
Aries21

Similar Messages

  • Adding Sales Order with multiple lines

    Hi all,
    I have a C# program whereby I am trying to get Sales Orders from one database (source) and create them in another database (destination). I can't get the code to work properly as lRetCode is never equal to 0 but is -5002.
    How can I fix it so that it adds the sales orders properly?
    Here is the code snippet:
                unaddedSOs = sList.Except(dList).ToList(); // contains the header information
                // Add the Sales Orders that are missing to destination database
                SAPbobsCOM.Documents sboSO =   (SAPbobsCOM.Documents)oCompanyDestination.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oOrders);  // Destination
                // Loop through unadded Sales Orders
                foreach (var item in unaddedSOs)
                    // Set properties of the Sales Order object
                    sboSO.CardCode = item.cardCode;
                    sboSO.CardName = item.cardName;
                    sboSO.DocDate = item.docDate;
                    sboSO.DocDueDate = item.docDueDate;
                    // Add Sales Order Document Lines
                    SAPbobsCOM.Recordset rsLines = oCompanySource.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset); // Source of lines
                    // Get Sales Orders from source database
                    rsLines.DoQuery("SELECT ItemCode, Quantity, Price FROM RDR1 WHERE DocEntry = '" + item.docNum + "'");
                    rsLines.MoveFirst();
                    if (rsLines.RecordCount > 0)
                        while (!rsLines.EoF)
                            sboSO.Lines.ItemCode = rsLines.Fields.Item("ItemCode").Value;
                            sboSO.Lines.Quantity = rsLines.Fields.Item("Quantity").Value;
                            sboSO.Lines.Price = rsLines.Fields.Item("Price").Value;
                            sboSO.Lines.Add();
                            rsLines.MoveNext();
                    // Try to add the Sales Order to the database
                    int lErrCode = 0;
                    string sErrMsg = "";
                    int lRetCode = sboSO.Add();
                    if (lRetCode != 0)
                        int temp_int = lErrCode;
                        string temp_string = sErrMsg;
                        oCompanyDestination.GetLastError(out temp_int, out temp_string);
                        // Incase adding a Sales Order failed
                        if (lErrCode != -4006)
                            // Display error message
                            MessageBox.Show(lErrCode + " " + sErrMsg);
                MessageBox.Show("Done!!!");
    Kind Regards,
    Kinyanjui.

    Hi Kinyanjui,
    I think you're always writing to the same line:
    int row = 0;
    while (!rsLines.EoF)
        sboSO.Lines.SetCurrentLine(row);
        sboSO.Lines.ItemCode = rsLines.Fields.Item("ItemCode").Value;
        sboSO.Lines.Quantity = rsLines.Fields.Item("Quantity").Value;
        sboSO.Lines.Price = rsLines.Fields.Item("Price").Value;
        sboSO.Lines.Add();
        rsLines.MoveNext();
        row++;
    Best regards,
    Pedro Magueija

  • Property List error: Unexpected character b at line 1 / JSON error: JSON text did not start with array or object and option to allow fragments not set.

    Hi,
    I have a MBP 13' Late 2011 and Yosemite 10.10.2 (14C1514).
    Until yesterday, I was using Garmin ConnectIQ SDK and all was working fine.
    Yesterday, I've updated my system with latest security updates and Xcode updates too (Version 6.2 (6C131e)).
    Since, I can't launch the ConnectIQ simulator app, I have this message in console :
    8/04/2015 15:19:04,103 mds[38]: There was an error parsing the Info.plist for the bundle at URL Info.plist -- file:///Volumes/Leto/connectiq-sdk-mac-1.1.0_2/ios/ConnectIQ.bundle/
    The data couldn’t be read because it isn’t in the correct format.
    <CFBasicHash 0x7fa64f44e9a0 [0x7fff7dfc7cf0]>{type = immutable dict, count = 2,
    entries =>
      0 : <CFString 0x7fff7df92580 [0x7fff7dfc7cf0]>{contents = "NSDebugDescription"} = <CFString 0x7fa64f44f0a0 [0x7fff7dfc7cf0]>{contents = "Unexpected character b at line 1"}
      1 : <CFString 0x7fff7df9f5e0 [0x7fff7dfc7cf0]>{contents = "kCFPropertyListOldStyleParsingError"} = Error Domain=NSCocoaErrorDomain Code=3840 "The data couldn’t be read because it isn’t in the correct format." (Conversion of string failed.) UserInfo=0x7fa64f44eda0 {NSDebugDescription=Conversion of string failed.}
    I have looked at this file and it looks like a binary plist
    bplist00ß^P^V^A^B^C^D^E^F^G^H
    ^K^L^M^N^O^P^Q^R^S^T^U^V^W^X^Y^Z^[^\^]^^^_ !"$%&'()'+,^[\CFBundleNameWDTXcodeYDTSDKName_^P^XNSHumanReadableCopyrightZDTSDKBuild_^P^YCFBundleDevelopmentRegion_^P^OCFBundleVersi    on_^P^SBuildMachineOSBuild^DTPlatformName_^P^SCFBundlePackageType_^P^ZCFBundleShortVersionString_^P^ZCFBundleSupportedPlatforms_^P^]CFBundleInfoDictionaryVersion_^P^RCFBundleE    xecutableZDTCompiler_^P^PMinimumOSVersion_^P^RCFBundleIdentifier^UIDeviceFamily_^P^QDTPlatformVersion\DTXcodeBuild_^P^QCFBundleSignature_^P^ODTPlatformBuildYConnectIQT0611[iph    oneos8.1o^P-^@C^@o^@p^@y^@r^@i^@g^@h^@t^@ ^@©^@ ^@2^@0^@1^@5^@ ^@G^@a^@r^@m^@i^@n^@.^@ ^@A^@l^@l^@ ^@r^@i^@g^@h^@t^@s^@ ^@r^@e^@s^@e^@r^@v^@e^@d^@.V12B411RenQ1V14C109Xiphoneos    TBNDLS1.0¡#XiPhoneOSS6.0YConnectIQ_^P"com.apple.compilers.llvm.clang.1_0S8.1_^P^Tcom.garmin.ConnectIQ¡*^P^AW6A2008aT????^@^H^@7^@D^@L^@V^@q^@|^@<98>^@ª^@À^@Ï^@å^A^B^A^_^A?^AT^    A_^Ar^A<87>^A<96>^Aª^A·^AË^AÝ^Aç^Aì^Aø^BU^B\^B_^Ba^Bh^Bq^Bv^Bz^B|^B<85>^B<89>^B<93>^B¸^B¼^BÓ^BÕ^B×^Bß^@^@^@^@^@^@^B^A^@^@^@^@^@^@^@-^@^@^@^@^@^@^@^@^@^@^@^@^@^@^Bä
    I guess it is a normal format but my system seems to be unable to read binary plist ?
    I tried some stuff with plutil
    plutil -lint Info.plist
    Info.plist: Unexpected character b at line 1
    Same for convert
    plutil -convert xml1 Info.plist
    Info.plist: Property List error: Unexpected character b at line 1 / JSON error: JSON text did not start with array or object and option to allow fragments not set.
    I also try to download a fresh version of the connectIQ SDK and no changes.
    Any idea ?
    Thanks

    Step by step, how did you arrive at seeing this agreement?

  • OdiFileAppend tool issue with new line character?

    Hello ODI experts,
    I am using OdiFileAppend tool in a package to concatenate multiple files with same structure to a new file. ODI is installed in windows and also files exists in Windows only.
    OdiFileAppend "-FILE=C:\ODI_WORK\FILE_LOAD_DIR\PROCESS_DIR\*.*" "-TOFILE=C:\ODI_WORK\FILE_LOAD_DIR\PROCESS_DIR\CONCAT_FILE.txt" "-CASESENS=NO" "-OVERWRITE=YES" "-HEADER=1" "-KEEP_FIRST_HEADER=YES"
    First File:
    CST_ID,CST_CODE,CST_NAME,CST_STATUS,CST_ID_PAC,CST_ID_CHO
    -3,TWO,TXTFILE,A,864,
    second File:
    CST_ID,CST_CODE,CST_NAME,CST_STATUS,CST_ID_PAC,CST_ID_CHO
    -2,ONE,TXTFILE,A,864,
    output file by using OdiFileAppend tool is as below with two lines:
    CST_ID,CST_CODE,CST_NAME,CST_STATUS,CST_ID_PAC,CST_ID_CHO
    -2,ONE,TXTFILE,A,864,\-3,TWO,TXTFILE,A,864,\
    How can we modify the tool to append records in a new line?
    Thanks

    Hi Murali ,
    You are facing a Bug .
    The Oracle Data Integrator (ODI) defect is referenced as <<Bug 6518478>> <ODIFILEAPPEND DOES NOT WORK AS EXPECTED>.
    When Oracle Data Integrator (ODI) OdiFileAppend/SnpsFileAppend tool is used with -HEADER parameter set to 1 or higher, the resulting file is incorrect and a backslash ("\") character is automatically generated between the appended files.
    This Bug is fixed in ODI 11gR1
    If the generated file is to be used as Source Datastore in an Oracle Data Integrator (ODI) Integration Interface, to work around the behavior:
    1. Appending the files using the OdiFileAppend/SnpsFileAppend tool without the -HEADER parameter (or use "-HEADER=0").
    2. Then, in your Integration Interface, apply a Filter to the corresponding Datastore in order to remove the unused headers.
    Thanks,
    Sutirtha

  • Sending mail with excel  more than 255 character in a line

    Dears,
    In my program , I use SO_NEW_DOCUMENT_ATT_SEND_API1  to send email with EXCEL attacment.
    But when i want output a line more than 255 characters  in the excel I met the problem, it only appeared 255 characters
    describe table mailbin lines tab_lines.
        mailpack-transf_bin = c_checked.
        mailpack-head_start = 1.
        mailpack-head_num = 1.
        mailpack-body_start = 1.
        mailpack-body_num = tab_lines.
        mailpack-doc_type = c_xls.
        mailpack-obj_name = space.
        mailpack-obj_descr = lv_mail_title. "the excel file name
        mailpack-doc_size = tab_lines * 255.
        append mailpack.
    * Sending the document
          call function 'SO_NEW_DOCUMENT_ATT_SEND_API1'
            exporting
              document_data              = maildata
              put_in_outbox              = space
              commit_work                = c_checked
            tables
              packing_list               = mailpack
              object_header              = mailhead
              contents_bin               = mailbin
              contents_txt               = mailtxt
              receivers                  = mailrec
            exceptions
              too_many_receivers         = 1
              document_not_sent          = 2
              operation_no_authorization = 4
              others                     = 99.
    But i have to output those characters in one line.
    Anyone could help me?
    Thanks a lot.
    Sincerely,
    Julie

    data: objpack    like sopcklsti1 occurs 2 with header line.
    data: objhead    like solisti1 occurs 1 with header line.
    data: objbin     like solisti1 occurs 10 with header line,
            is_objbin  type  solisti1 .
    data: objtxt     like solisti1 occurs 10 with header line,
            is_objtxt  type solisti1 .
      data: l_tab(1)   type c value cl_abap_char_utilities=>horizontal_tab,
           con_cret   type c value cl_abap_char_utilities=>cr_lf.
    data: tab_lines  like sy-tabix,
            : tab_lines1 like sy-tabix.
      data : lenth_string type string,
            s_string     type string.
    data : L type i, i type i,cplen type i, balance type i,
    before describe table mailbin lines tab_lines ... Use below logic.
    Loop at your_internaltable.
    concatenate field_1
                field_2
                field_3
           into lenth_string separated by l_tab.
    concatenate  lenth_string con_cret into lenth_string.  
    concatenate s_string lenth_string into s_string.
    endloop.
           L = strlen( s_string ).
           i = 0.
           cplen = 255.
           balance = l.
        do.
          if balance <= 0.
            exit.
          endif.
          if balance < 255.
            cplen = balance.
          else.
            cplen = 255.
          endif.
          objbin = s_string+i(cplen).
          i = i + cplen.
          balance = balance - cplen.
          append objbin.
        enddo. 
    ...... after this use ur exesting code....describe table mailbin lines tab_lines and so
        describe table objbin lines tab_lines1.
        clear objpack-transf_bin.
        objpack-transf_bin = ' '.
        objpack-head_start = 1.
        objpack-head_num = 1.
        objpack-body_start = 1.
        objpack-body_num = tab_lines1.
        objpack-obj_langu = 'E'.
        objpack-doc_type = 'XLS'.
    call function 'SO_NEW_DOCUMENT_ATT_SEND_API1'
        exporting
    -tables
          packing_list               = objpack
          object_header              = objhead
          contents_bin               = objbin
          receivers                  = reclist
    Regards,
    Sri.
    Edited by: sridhar arjunan on Jul 28, 2009 4:22 PM
    Edited by: sridhar arjunan on Jul 28, 2009 4:23 PM

  • My battery drained. Screen shows battery with red line but doesn't seem to be recharding after 20 min.  Should I wait or do a hard restart? I haven't backedup in ages and don't want to lose pics, contacts etc.

    My battery drained. Pluged in to wall but screen shows battery with red line but doesn't seem to be recharding after 20 min.  Should I wait longer or do a hard restart? I haven't backedup in ages and don't want to lose pics, contacts etc.  Will a hard restart wipe all that out?

    Agree with Richard:
    -Your device needs both the CR and LF. To accomplish this:
    option 1: Concatenate the "end of line" string constant (this is a combination of CR and LF, located in the string pallete) to all your outgoing commands. Make sure in the "Visa configure serial port" the "Termination character enable" flag is false.
    option 2: Concatenate only a CR to your command's strings. Make sure in the "Visa configure serial port" the "Termination character enable" flag is TRUE AND that the termination character is set to 10 (meaning LF) which I think is the default.
    Details can be seen in this link:
    http://digital.ni.com/public.nsf/allkb/862567530005F09C862565BE005AB500
    "Adding Termination Characters to VISA Serial Writes in LabVIEW"
    Interesting would be to configure the serial port to accept not one but two termination characters. The above links refers to the document "Developer Zone Tutorial: Termination Characters in NI-VISA.", where this is supposed to be possible. The document however is 404'ed.
    If someone find a working link please post it.
    Regards

  • Additional results doesn't work with multi-line string dat

    I observed an erratic behavior with "Additional Results" in TestStand 2010. The problem statement is as follows:
    1. I have a variable "Locals.FirstName"
    2. I have another variable "Locals.LastName"
    3. Concatenate these two strings with a line feed or a new line character (Locals.FirstName+"\n"+Locals.LastName) and display it in a XML report. 
    Approach:
    1. Using "Statement Expression" I concatenate two strings and print the result using "Additional Results"
    2. For verification I display it using "Message Popup" step type. The formatting is as desired in "Message Popup". However, the new line characters appear as "Spaces" in XML report.
    Tracing Of this Erratic Behavior:
    1. I passed the concatenated string to LabVIEW VI and passed it to "Step.Result.ReportText" variable to log it in XML report. The same string which didn't appeared properly using “Additional Results"of "Statement Expression” step now appears proper in XML report.
    I have attached the sequence file for reference. Ensure that Report option is set to XML before executing this sequence.
    Can anyone justify this behavior and suggest the correct approach??
    Thanks !
    Attachments:
    Erratic Behavior Of Additional Results.seq ‏8 KB
    Tracing Of Erratic Behavior.vi ‏9 KB

    Amit -
    Here is a modified version of the TestStand 2010 Horizontal.xsl style sheet that corrects the issue you have mentioned. Note that leading and trailing "\n" characters will still be stripped out, and all "\r" characters will be stripped out.
    Hope this helps.
    Manooch H.
    National Instruments
    Attachments:
    horizontal_modified.zip ‏22 KB

  • With header line & with out header line ?

    what is difference between with header line & without header line ?

    When you create an internal table object you can also declare a header line with the same name. You can use the header line as a work area when you process the internal table. The ABAP statements that you use with internal tables have short forms that you can use if your internal table has a header line. These statements automatically assume the header line as an implicit work area. The following table shows the statements that you must use for internal tables without a header line, and the equivalent statements that you can use for internal tables with a header line:
    Operations without header line
    Operations with header line
    Operations for all Table Types
    INSERT <wa> INTO TABLE <itab>.
    INSERT TABLE ITAB.
    COLLECT <wa> INTO <itab>.
    COLLECT <itab>.
    READ TABLE <itab> ... INTO <wa>.
    READ TABLE <itab> ...
    MODIFY TABLE <itab> FROM <wa> ...
    MODIFY TABLE <itab> ...
    MODIFY <itab> FROM <wa> ...WHERE ...
    MODIFY <itab> ... WHERE ...
    DELETE TABLE <itab> FROM <wa>.
    DELETE TABLE <itab>.
    LOOP AT ITAB INTO <wa> ...
    LOOP AT ITAB ...
    Operations for Index Tables
    APPEND <wa> TO <itab>.
    APPEND <itab>.
    INSERT <wa> INTO <itab> ...
    INSERT <itab> ...
    MODIFY <itab> FROM <wa> ...
    MODIFY <itab> ...
    Using the header line as a work area means that you can use shorter statements; however, they are not necessarily easier to understand, since you cannot immediately recognize the origin and target of the assignment. Furthermore, the fact that the table and its header line have the same name can cause confusion in operations with entire internal tables. To avoid confusion, you should use internal tables with differently-named work areas.
    The following example shows two programs with the same function. One uses a header line, the other does not.
    With header line:
    TYPES: BEGIN OF LINE,
    COL1 TYPE I,
    COL2 TYPE I,
    END OF LINE.
    DATA ITAB TYPE HASHED TABLE OF LINE WITH UNIQUE KEY COL1
    WITH HEADER LINE.
    DO 4 TIMES.
    ITAB-COL1 = SY-INDEX.
    ITAB-COL2 = SY-INDEX ** 2.
    INSERT TABLE ITAB.
    ENDDO.
    ITAB-COL1 = 2.
    READ TABLE ITAB FROM ITAB.
    ITAB-COL2 = 100.
    MODIFY TABLE ITAB.
    ITAB-COL1 = 4.
    DELETE TABLE ITAB.
    LOOP AT ITAB.
    WRITE: / ITAB-COL1, ITAB-COL2.
    ENDLOOP.
    Without header line:
    TYPES: BEGIN OF LINE,
    COL1 TYPE I,
    COL2 TYPE I,
    END OF LINE.
    DATA: ITAB TYPE HASHED TABLE OF LINE WITH UNIQUE KEY COL1,
    WA LIKE LINE OF ITAB.
    DO 4 TIMES.
    WA-COL1 = SY-INDEX.
    WA-COL2 = SY-INDEX ** 2.
    INSERT WA INTO TABLE ITAB.
    ENDDO.
    WA-COL1 = 2.
    READ TABLE ITAB FROM WA INTO WA.
    WA-COL2 = 100.
    MODIFY TABLE ITAB FROM WA.
    WA-COL1 = 4.
    DELETE TABLE ITAB FROM WA.
    LOOP AT ITAB INTO WA.
    WRITE: / WA-COL1, WA-COL2.
    ENDLOOP.
    The list, in both cases, appears as follows:
    1 1
    2 100
    3 9
    The statements in the program that does not use a header line are easier to understand. As a further measure, you could have a further work area just to specify the key of the internal table, but to which no other values from the table are assigned.
    Internal table with header line
    you can use anywhere except obkect oriented concept.
    Internal table without header line :
    You should use in Object oriented concept..
    Always try to use without header line,performance point of view it is best..
    Example :
    Without header line.
    Structure
    types : begin of ty_itab ,
    matnr type mara-matnr,
    end of ty_itab.
    Internal table
    data i_itab type standard table of ty_itab .
    Work area
    data wa_itab like line of i_itab
    With header line
    data : begin of i_itab occurs 0,
    matnr like mara-matnr,
    end of i_itab
    itab with header lines are obsolete, anyway it will work but not recommended. instead use work area or more effiecient is field symbols. so donot use itab with header line.
    i will explain use of itab w/o header line.
    Data: itab1 type standard table of mara with header line occurs 0,
            itab2 type standard table of mara,
            wa_itab2 type mara.
    loop at itab1.
    "This will work fine.
    endloop.
    loop at itab2.
    "This will give erro that itabd does not hav workarea
    endloop.
    "so write
    loop at itab2 into wa_itab2.
    "This will work
    endloop.
    <b>The difference between
    whih header line and with out heater line of internal table.
    ex:-
    a) Data : itab like mara occurs 0 with header line.
    b) Data: itab like mara occurs 0.
    -While adding or retrieving records to / from internal table we have to keep the record temporarily.
    -The area where this record is kept is called as work area for the internal table.
    -The area must have the same structure as that of internal table. An internal table consists of a body and an optional header line.
    -Header line is a implicit work area for the internal table. It depends on how the internal table is declared that the itab will have the header line or not.
    a) Data : itab like mara occurs 0 with header line.
    table is with header line
    b) Data: itab like mara occurs 0.
    table is without header line</b>
    regards,
    srinivas
    <b>*reward for useful answers*</b>

  • How do I get a white background with black lines

    How do I get a white background with black lines and characters on my screen. To run the program, copy it out and delete the ` and it should go. If it does not compile on your machine, I would like to know. There is a test on about line 34 for changing the colors.
    `//Simple program to test Graphics2D.setBackground(white) obtained from BufferedImage.getGraphics()
    `import java.awt.Frame; //Object>awt.Component>Container>Window>Frame
    `import java.awt.Insets; //Object>awt.Insets
    `import java.awt.image.BufferedImage; //Object>awt.Image>awt.image.BufferedImage
    `import java.awt.Graphics; //Object>awt.Graphics
    `import java.awt.Graphics2D; //Object>awt.Graphics>Graphics2D
    `import java.awt.Color;
    `import java.awt.BasicStroke;
    `public class TstBgCol { //frame & BufferedImage in pixels & BasicStroke in points ????????????
    ` TstBgCol tstBgCol;
    ` public static void main(String[] args) {
    ` TstBgCol tstBgCol=new TstBgCol(); tstBgCol.tstBgCol=tstBgCol;
    ` tstBgCol.main2(); tstBgCol.byteBinary();
    ` }
    ` Graphics fgcontext;
    ` Frame fram; Insets insets; //borders of the Frame, Container.getInsets
    ` int bIWid=1272,bIHgt=876; //set for 1280x1024 screen on windows XP & matches paper ratio 10.6x7.3
    ` int unusedPixHgt=84;
    ` void main2() {
    ` fram=new Frame();
    ` fram.addWindowListener(new java.awt.event.WindowAdapter() { //anonymous inner class
    ` public void windowClosing(java.awt.event.WindowEvent e) { System.exit(0); }
    ` });
    ` fram.setVisible(true);
    ` insets=fram.getInsets(); //(Container)getInsets() works after displayable
    ` System.out.println("Insets l,t,r,b:"+insets.left+","+insets.top+","+insets.right+","+insets.bottom);
    ` fram.setSize(insets.left+bIWid+insets.right,insets.top+bIHgt+unusedPixHgt+insets.bottom);
    ` fgcontext=fram.getGraphics(); //creates Graphics context for this component
    ` }
    ` void byteBinary() {
    ` BufferedImage buIm=new BufferedImage(bIWid,bIHgt,BufferedImage.TYPE_BYTE_BINARY); //can be resized
    ` Graphics2D bIG2=buIm.createGraphics(); //returns Graphics2D context
    ` //change to if(true) to use either of the following two lines
    ` if(false) bIG2.setBackground(Color.white); //does not change the background color to white
    ` if(false) bIG2.setColor(Color.black); //does change the foreground color to black
    ` edgeLinesAndX(buIm,bIG2);
    ` fgcontext.drawImage(buIm,insets.left,insets.top,fram);
    ` }
    ` private void edgeLinesAndX(BufferedImage bI,Graphics2D bIG2) { //really on the edge
    `      BasicStroke strk=new BasicStroke(10f); bIG2.setStroke(strk);
    ` int x0,y0,xmx,ymx;
    ` x0=bI.getMinX(); y0=bI.getMinY(); xmx=bI.getWidth()-1; ymx=bI.getHeight()-1;
    ` bIG2.drawLine(x0+xmx,y0,x0,y0+ymx); //lo-left to up-right
    ` bIG2.drawLine(x0,y0,x0+xmx,y0+ymx); //up-left to lo-right
    ` bIG2.drawLine(x0,y0,x0+xmx,y0); //up-left to up-right
    ` bIG2.drawLine(x0,y0,x0,y0+ymx); //up-left to lo-left
    ` bIG2.drawLine(x0,y0+ymx,x0+xmx,y0+ymx); //lo-left to lo-right
    ` bIG2.drawLine(x0+xmx,y0,x0+xmx,y0+ymx); //up-right to lo-right
    ` bIG2.drawString("("+x0+","+y0+") wid="+(xmx+1)+" hgt="+(ymx+1),(xmx+1)/5,(ymx+1)/5);
    ` }
    `} //the result on my screen is a black background, why?????

    How do I get a white background with black lines and characters on
    my screen.Contrary to what you might think, the linebIG2.setBackground(Color.white);does not give the buffered image a white background. The API docs
    http://java.sun.com/j2se/1.5.0/docs/api/java/awt/Graphics2D.html#setBackground(java.awt.Color)
    say: "Setting the background color in the Graphics2D context only
    affects the subsequent clearRect calls... " So adding a line to your
    if blocks we getif (false) {
        bIG2.setBackground(Color.white);
        bIG2.clearRect(0, 0, buIm.getWidth(), buIm.getHeight());
    if (false) {
        bIG2.setColor(Color.black);                    
    }Changing the false to true results in a white background (and black
    X and text).

  • Unable to create PO with multiple line items through LSMW-BAPI method

    Hi All,
    I have a requirement of creating PO through LSMW. I can't use LSMW standard batch input program since there are some fileds not available and also it has many limitations. I'm using LSMW-BAPI method ( Business object BUS2012) which create IDOC and uses BAPI_PO_CREATE1 to ultimately post the PO in the system. I am trying to create PO from a single file which contains both Header and Item data.
    Now my problem is that everytime PO is being created with Single line item only. Everytime I am giving multiple item data in the source file LSMW is preparing multiple IDOCs for multiple line items. As per my understanding this is happenng since header and item is in the same hierarchy level of IDOC type PORDCR102 and the control record is inserted for every line item in the source file.
    It seems that through LSMW-BAPI  it is not possible to create PO with multiple line items. Can anybody provide some input regarding this? Thanks in advance.
    BR,
    Atanu Mukherjee

    Solved by myself.
    Earlier the problem was that LSMW was not being able to recognize items under same header. It was creating new IDOCs every time it gets a new item. To enable this we need to create two structure HEADERDATA and ITEMDATA.  Two additional identifier fields with identifier value 'H' and 'I' should be added in these two structures respectively. Then we need one sequential file with the identifiers field followed by the header and Item data. Example:
    H~header data
    I~item data
    I~item data 
    This would help the standard program to understand what are the items under same header and ultimately create PO with multiple line items.
    BR,
    Atanu Mukherjee

  • Creating SVG Chart with multiple lines

    Hi All,
    I want to create a chart with multiple lines.
    Ex: I have one emp table with empno, sal and deptno columns.
    I want to print deptno in x axis and no of employees on y axis.
    I want to print one line for employees with sal > 15000 and one more line for employee with sal =< 15000
    So one line will show no of employees with sal more than 15000 for each dept. Similar case for the other line and these 2 lines should be in different colors.
    For one line the query will go as
    select link, deptno, count(empno)
    from emp where sal > 15000 group by null, deptno
    Is this possible to draw this chart?
    Thanks,
    Manoj

    I wasn't able to do something like what you describe, but I was able to do this:
    I defined column A of the table as a Header Row, selected the cells in the table, and chose this chart type (2D 2 Axis):
    Then I clicked the chart and in the pane at the right checked 'Axis Name' in the Axis tab and added the axis names.
    Maybe this can give you an idea of how you can illustrate the relationships that you want to show.
    SG

  • Text with multiple lines limit each line to 10 digits

    Im trying to create a Numeric Field with multiple lines and limit the character per line to 10
    ideally I want the users to be able to paste in a 10 digit number similar to this:
    0001234567
    0001234568
    0001234569
    I can set my pattern to num{zzzzzzzzzz} but not sure how to allow multiple lines
    Im using Adobe LC ES2 Verison 9.0
    Thanks!

    better option is to use INCLUDE statement in SCRIPTS. its a script control command and you no need to use READ_TEXT and to loop it and send each line to script.
    if you use the above INCLUDE control command, SAP will take care of printing total text of that Object.
    here is the syntax :
    <b>/: INCLUDE name [OBJECT o] [ID i] [LANGUAGE l] [PARAGRAPH p] [NEW-PARAGRAPH np]</b>
    here /: indicates its an Control command.
    you have to use NAME, ID, LANGUAGE adn OBJECT here.
    if you give these details in the Text editor of script layout,automatically data will be printed on the screen.
    ex:
    /: INCLUDE &EKKO-EBELN& OBJECT EKKO ID X LANGUAGE E
    Hope you got the Idea.
    <b>here is brief help about INCLUDE:</b>
    Use INCLUDE to include the contents of another text into your text. The text to be included exists separately from yours and is only copied at the time of the output formatting. With INCLUDE, since the text is only read and inserted during the output formatting, the most current version of the required text is always available.
    and IF you are very specific about using READ_TEXT to display the contents,
    then you have to LOOP that table and call the WRITE_FORM to print the line on the layout.
    LOOP AT IT_TDLINES.
      CALL FUNCTION 'WRITE_FORM'
    ENDLOOP.
    Regards
    Srikanth
    Message was edited by: Srikanth Kidambi

  • Parsing Java with multiple lines

    I have a servlet that is reading in an html page and is inserting data in certain places. Inside the html there will be:
    {title}
    {breadcrumb}
    {description}
    {keywords}
    while ((line = fromURL.readLine()) != null) {
         while((firstplace = line.indexOf("{{"))!=-1) {
              int colon = line.indexOf("|");
              int end = line.indexOf("}}");
              String name = line.substring(firstplace+2,colon);
              String value = line.substring(colon+1, end);
              hTable.put( name, value );
              line = line.substring(end+2);
         msg.append(line);
    }This is working correctly. I would like to change it so that it will read from the html file when it is in this format:
    {title}
    {breadcrumb}
    {description}
    {keywords}
    Right now this will not work because of the carrage returns. How can I change the code so that it will work with multiple lines?

    There are two options that would work nicely.
    one:
    first you read in ALL the data into one large buffer
    than you remove all the newlines from the buffer
    than you process it line by line (you can use the second '}' as an end point for a line)
    two:
    keep track of how many '}' characters you read. If you hit a newline and you didn't read the second one yet, append the next line to the current line. You keep doing this untill you finally read the second '}' character.

  • Copy Excel Chart into Illustrator: Problem with dotted lines

    Copying an excel chart (2010 and/or 2013, Windows 7 Ultimate) to Illustrator CS6 works okay if line chart lines are solid... but if they are dotted, then in Excel 2010, the dotted line becomes jumbled, and in Excel 2013, the dotted line converts to a solid line... is the only solution to this to save the exel chart as a pdf, or is there another workaround?
    Essentially, I am creating a chart in excel and adding a few notations and graphic elements in illustrator for professional publishing...
    any help would be appreciated... thanks

    This is a follow-up (somehow, my original question was logged under OOBIMICHAEL):
    I finally broke down and bought a MacBook Pro, installed CS6 and Office 2011... and voilà... dotted lines copy from excel to illustrator just perfectly... this is a bit like copying data from Visio to Word, etc... these programs render graphics in very different ways... other than the Mac solution, I also tried the Libre Suite (open source)... which also worked perfectly to copy excel data with dotted lines to illustrator... so, until MS and Adobe actually collaborate together to provide value to its customers, the alternative seems (1) open source, (2) buy a Mac...

  • Character mode report cuts off last character on a line

    Reports 9i, Windows 2003 Server. Printing character mode reports to IBM 6400 printer. I have a variable text column (multi line) and randomly the last character on a line gets cutoff. I'm using Courier 10 as my font. It is only 1 character that ever cuts cutoff. Any ideas? I'm desperate.
    Tom

    Hi,
    change the reports height& width for landscape /portait.
    and go to edit margin in layout.
    see the layout and move to left if it has lot of gap in left side.
    we can get correct output if the right side border is upto 8.2.
    try with this.
    --Basava.s                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

Maybe you are looking for

  • BEX64 error after updating to CC 2014.1

    I have Premiere Pro CC 2014 in my office, then 2014.1 was release so I was excited to upgrade. Then every project I opened crashes with BEX64 error. Is My specs or something? Intel Core  i7 4770 16gb RAM Intel HD Graphics 4600 please email me at : [e

  • Does Airport Extreem work with Xfinity modem?

    The new Xfinity modem worked for about 11/2 weeks with my Airport Extreem to my iMac then it was 1/2 there and not doing all search or browsing on the internet.  Comcast could not help on line or the phone.  The Xfinity modem has wireless capabilitie

  • How to find the deletion logs of RSBBS definition

    Hi Friends, In RSBBS, for one of the query the complete Assignment definition has been deleted by someone. Could you please let me know how we can identify when and from whom it got deleted? Regards Sushma

  • ISSUE WITH NEW VERSION OF BLACKBERRY MESSENGER ON DIFFERENT BLACKBERRY PHONES

    Dear Madam / Sirs, I would like to seek assistance in resolving an issue with my BLACKBERRY TORCH 9810 I installed the new version of BLACKBERRY MESSENGER on my phone and it does not work on WIFI ONLY MODE. For example I traveled to Mexico and Panama

  • Crystal Report 11 Server License Problem

    Hello, We installed Crystal Report 11 server, In CMC we the license information is displayed as Gesamtzahl der lisenzen - 5 Does this mean we have 5 licenses? We tried to excute our application (which was working fine with Crystal Report X) , but we