Create a button similar like "Copy To" button in A/P Invoice in Customised

I have created a customised form using SDK and want to create a "Copy To" present in A/P Invoice Form for copying data from one customised form to another customised form .Is it possible to create that button using SDK .

Amit Sharma
This question should be asked in category SAP Business One SDK session

Similar Messages

  • How to create a 3-state button (similar look as OK button) that toggles between 3 different colors.

    How do I create a 3-state button that looks similar to the OK button except it changes to 3 different colors every time it is pressed. Does anyone have such a control ready for use that I can just drop in my front panel?

    With a picture ring you can implement a 3 color button without any code. Look at the attached customized control.
    I have imported the picture of a boolean in three different items and
    colored them. I centered the text and hide/made transparent uneeded
    graphic elements. I set the size of the decrement arrow to cover all
    the picture and made it transparent so when you click on the control
    you decrement the value of the ring and change the picture/color
    Edit: you'll notice that the picture is not fullt covered by the
    decrement arrow so if you click near the bottom of the button, the
    picture ring will show its normal behavior displaying all 3 available
    items
    Message Edité par Jean-Pierre Drolet le 07-07-2005 10:07 PM
    LabVIEW, C'est LabVIEW
    Attachments:
    3COLORSBUTTON.vi ‏8 KB

  • IPOD PLAY BUTTON WORKS LIKE FAST FORWARD BUTTON

    I need help. My 5th generation IPOD will not play any of my songs. When I press the play button it lists them one at a time (as if I had hit fast forward) but does not play any of them. I have tried recharging but it does not work. I have tried looking in discussion groups but no one has this problem.

    The first things to try are these basic troubleshooting steps.
    The Five Rs.

  • Copy From Button similar to Purchase Order

    Dear Members,
    I have a user defined for named Quotation. I want to create a Copy from button  in Purchase Order through coding, similar to those present in sale order and copy the contents in quotation to  Purchase Order.
    Please send some sample coding to create a  Copy From  button  in Purchase Order  , and to list  my user defined form quotation,
    similar to present in sale order Copy to A/R Invoice.
    Help will be appreciated to solve this issue.
    Thanks and Regards,
    Venkatesh.R

    could somebody explain me why cannot text in code format and its in one line? - i cannot insert the code for few weeks. thx
    Enable email in your profile and Ill send the code to email - i cannot insert it here.
    Edited by: Petr Verner on Jul 24, 2009 10:22 AM
    If pVal.FormTypeEx = "142" And pVal.BeforeAction And pVal.EventType = SAPbouiCOM.BoEventTypes.et_FORM_LOAD Then
                    Dim oform As SAPbouiCOM.Form
                    oform = SBO_Application.Forms.GetFormByTypeAndCount(pVal.FormType, pVal.FormTypeCount)
                    oform.Items.Add("combo", SAPbouiCOM.BoFormItemTypes.it_COMBO_BOX)
                    oform.Items.Add("button", SAPbouiCOM.BoFormItemTypes.it_BUTTON)
                    Dim oitem As SAPbouiCOM.Item
                    Dim obutton As SAPbouiCOM.Button
                    Dim ocombo As SAPbouiCOM.ComboBox
                    oitem = oform.Items.Item("combo")
                    oitem.Left = -1 * oform.Items.Item("10000329").Left - 100
                    oitem.Top = 399
                    oitem.Width = 100
                    ocombo = oitem.Specific
                    ocombo.ValidValues.Add("1", "First")
                    ocombo.ValidValues.Add("2", "Seccond")
                    oitem = oform.Items.Item("button")
                    oitem.Width = 100
                    oitem.Left = oform.Items.Item("10000329").Left - 100
                    oitem.Top = 400
                    obutton = oitem.Specific
                    obutton.Caption = "Copy From"
                End If
    If pVal.ItemUID = "button" And pVal.FormTypeEx = "142" And pVal.BeforeAction = False And pVal.EventType = SAPbouiCOM.BoEventTypes.et_CLICK Then
                    Dim oform As SAPbouiCOM.Form
                    oform = SBO_Application.Forms.GetFormByTypeAndCount(pVal.FormType, pVal.FormTypeCount)
                    Dim oitem As SAPbouiCOM.Item
                    Dim ocombo As SAPbouiCOM.ComboBox
                    oitem = oform.Items.Item("combo")
                    oitem.Left = oform.Items.Item("10000329").Left - 100
                    ocombo = oitem.Specific
                    oitem.Click(SAPbouiCOM.BoCellClickType.ct_Regular)
                    oitem = oform.Items.Item("button")
                    oitem.LinkTo = "combo"
                    oitem.Update()
                End If
    Edited by: Petr Verner on Jul 24, 2009 10:31 AM

  • Want to create some button like font color button in MS Word?

    hi all
    i am writing a editor like MS Word, but small version with some basic functions: font family, font size, bold, italic... and font color.
    so i need some UI for font color similar to the one in MS Word.
    now i created a panel with two button; one shows the current color, and another show up JColorChooser when it is clicked; called JColorButton.
    now the problem i am having now is i created the icon similar to the down-arrow in JComboBox. but the size of that arrow changes depending on Look & feel and i could not able to make it similar to it for my own created button.
    any suggestion? ideas? i really appreciate it.
    currently,i am trying to get the image of down-arrow from JComboBox on the fly. but no luck yet.

    hi there,
    thanks a lot for reply.
    i checked BasicArrowButton. I replaced it with my JColorButton as second one, like in MS Word or Back button in Internet Explorer. but the size of arrow is smaller than the one in JComboBox beside it because the size of that button is smaller than JComboBox's size. so it still did not solve the problem yet.
    i wonder if there is any button which function the same as Font color button in MS word or Back button in Internet Explorer.
    or is there any way i can get the information about L&F about arrow of JComboBox?
    and also i make JToolBar to be rollover, so the border of button show only when the mouse is over. but how can i do this same affect on my JColorButton, which is a panel with two buttons in it.
    thanks a lot. i really appreciate it.

  • Creating a button that will Copy my view from so I can paste it to MS Word

    Is there a way I can create a button that will copy my view from so I can paste it MS Word?
    I know I can select the entire form and copy and paste it, but is there a way to do it via a button similar to my "Print Form" button?
    Thank you.

    so there isn't a button that will copy the text my view form?
    instead of highlighting the data I want to easily copy it so I can paste it on a word document
    I came up with a script that when a item is highlighted I click the copy to clipboard and it copies the item.
    <script type="text/javascript">
    function CopyToClipboard()
    CopiedTxt = document.selection.createRange();
    CopiedTxt.execCommand("Copy");
    </script>
    but is there a way I can put in the script the area I want to start the copy from instead of highlighting the text first?
     

  • How can I create a single button similar to "most visited" that will open all of my bbokmarks in the sidebar?

    I'd like a single button similar to "most visited" that will open the sidebar showing my bookmarks rather than having to click view, hover sidebar click bookmarks. How can I do this?

    You can drag the button that opens the Bookmarks in the sidebar from the View > Toolbars > Customize window on one of the toolbars.
    See [[Navigation Toolbar items]] and http://kb.mozillazine.org/Toolbar_customization

  • How can I copy a button style in flash catalyst

    Is it possible to copy a button style? I want all my buttons to fade and move to the same place however they all look different. Please let me know.
    thank you and God Bless

    See which form of ActionScript you used to make the site.
    Open the Actions panel and see whether you've chosen AS versions 1
    & 2, or AS 3. If you've picked the earlier versions, you can
    attach a link easily to each button by clicking on the button, and
    adding a little code in the Actions panel. Turn on ScriptAssist to
    make it easier. Click on "on" and choose "release" or "press" or
    both. Then scroll down the commands on the left and add getURL. You
    will then have a few lines that say something like, on(Release)
    getURL("putyourpageurlhere"). See bottom for exact syntax. That's
    all. The new .html or .php page will load when the button is
    clicked.
    If your buttons are not actually four-state buttons, but
    graphic or movie clip symbols, you will have do it a little
    differently. Instead of attaching the code to a button, you attach
    it to a keyframe. You give your symbol an instance name in the
    property panel, then in the Actions panel create a function that
    says essentially: when you click on this instance (onRelease)
    getURL.
    If you're using AS3, the concept is similar but the code is
    different. With a quick search you can find dozens of code examples
    that you can cut and paste.
    Here's that AS2 button code...

  • Simulate Copy-From Button Click on Delivery Document

    Hi Friends,
    How can I 'programmatically' click on Copy From button, and then select the Sales Order?
    (I could get a forum post to capture the Copy From button click in the delivery document, but I want to do clicking also programmatically)
    I could click on the Copy-From button programmatically.
    After that, till I manually click on "Sales Order", control is not returned to the program (It acts similar to a message box:( )
    Do you know any ways to acheive it?
    Thanks.
    Regards,
    Geetha

    Hello Rajkumar,
    I came upon this thread but did not find it to be quite complete (and see that you were looking for a similar answer).  I just wanted to let you know how I am using "Copy To" to copy a Sales Order into an A/R Invoice.  I realize you are desiring a "Copy From" but I believe the steps will be the same (and believe others will value seeing this).  I know there is discussion above that the copy to is a matrix but I found the simplest approach is to just treat it like a combobox.  Here is my code in C#:
    // Declare my variables
    SAPbouiCOM.Form oForm = null;
    SAPbouiCOM.Item oItem = null;
    SAPbouiCOM.ComboBox oCombo = null;
    // Set my form to the currently active form
    oForm = SBO_Application.Forms.ActiveForm;
    // Simulate a "Click" on the Copy To (for A/R Invoice)
    oItem = oForm.Items.Item("10000329");  // This is the Item Number for Copy To
    oCombo = (SAPbouiCOM.ComboBox)oItem.Specific;
    oCombo.Select("A/R Invoice", SAPbouiCOM.BoSearchKey.psk_ByDescription);  //If I want to copy to an A/R Down Payment, I simply change the "A/R Invoice" to "A/R Down Payment"
    In short, by using the combo and "Selecting" the parameter I want, my belief is that SAP automatically initiates the remainder of the work.  Hope this helps you (and others).

  • How to create a navigation bar with custom made buttons?

    I'm used to work with a similar program as Muse. In there we can create a single button and link them together into a navigation bar. I have tried all sorts of tutorials but none of them is discussing this possibility.
    To summorize. The idea is to create a button in photoshop and to use this as a theme to build a navigation bar. Possible or not and how? Thanks for assistance. Rgds Rufin

    Hi Brad,
    Thanks for your reply.
    No, not really. I used to work with XARA up till now. And being an Adobe Cloud user I think it a bit silly using two different systems. In XARA I can create a custom button and turn them into a navbar. For your information I include a few links to sites I created with Xara and I would like to know if I can create the same type of navbars with Abobe Muse. I already found out that all the other functions are available and some work a lot better in Muse, but I’m stuck on the navbar issue. I know I can create a button in Adobe PS and use it in Muse. But I didn’t manage to figure out how to create a navbar in Muse on basis of a button created in PS.
    www.restaurant-cedric.be or www.discoamigo.com or www.radioparadijs.be
    Grtz,
    Rufin
    LOGO-RUFIN'S-REISBUREAU-outlook
    Koningslaan 36 – b31
    8300 Knokke – Heist
    Tel: 050621052
    Fax: 050621072
    e-mail:  <mailto:[email protected]> [email protected]
    <http://www.rufins.be/> http://www.rufins.be
    <http://www.travelcoop.be/> travelcoop_logo_2013[1]  <http://ferventreisagent.be/rufins-reisbureau> klein logo
    Van: Brad Lawryk
    Verzonden: zondag 12 oktober 2014 19:40
    Aan: RUFIN DUWEL
    Onderwerp:  How to create a navigation bar with custom made buttons?
    How to create a navigation bar with custom made buttons?
    created by Brad Lawryk <https://forums.adobe.com/people/Brad+Lawryk>  in Help with using Adobe Muse CC - View the full discussion <https://forums.adobe.com/message/6817739#6817739>

  • Copy paste buttons

    Hey,
    I frequently need to copy paste groups of several element, which include buttons, into frames (in order to create scrollable frames for DPS), and every time I do that with a "Go to State" buttons, they lose their properties and I have to recreate them, which is pretty cumbersome to do, and especially so when the button isn't in the visible part of the frame.This happens both in CS5.5 and CS6
    Is there any way to past a button into a frame without losing the button's action?
    Thanks

    @Bob – yesterday I began writing a script snippet that is something like a proof of concept, that it is possible to duplicate a button to a rectangle or any kind of object that can hold a button object.
    But before presenting that, let me explain its basic functionality.
    1. In scripting we have one principle method to get a duplicate of a button object and therefore not losing the target MSO information: the duplicate() method.
    2. duplicate() applied to a "Button" object will not get us in the right direction, because the target of the duplicate() method can only be a "Spread", a "Page" or a "Layer". Or you could move the duplicated button with  x/y values on a spread or a page. The target could not be a rectangle or a state in an MSO. So this seems to be a dead end.
    3. But, and here comes the clue, you are able to move or duplicate a "Character" or a "Texts" object from one text frame to another. And this is the key to a possible solution:
    If you are working with anchored objects ("Button", "Groups of Buttons" or any other object that you could paste inside of an insertion point in a text frame), you could duplicate or move that object around. The "Button" in this case is simply represented as a "Character" object that flows with the text frame.
    For "Texts" objects (and a single character (=anchored button) is a subset of "Texts") the duplicate() method supports the following parameters:
    1. The position of the duplicated character in regards of the target insertion point or text:
    LocationOptions.AFTER
    Places the object after the reference object.
    LocationOptions.AT_BEGINNING
    Places the object at the beginning of the containing object.
    LocationOptions.AT_END
    Places the object at the end of the containing object.
    LocationOptions.BEFORE
    Places the object before the reference object.
    LocationOptions.UNKNOWN
    No location specified.
    2. The target (a "Texts" object, a insertion point, a character, a word, a paragraph) could be the same text frame of the original anchored button or a different text frame. And that could be a new text frame, that could be easily added to a rectangle, a state of an MSO etc.pp. with:
    myRectangle.textFrames.add();
    That implies we only need two ingredients to make that concept work:
    A source text frame and a target text frame.
    The source is a text frame that holds an anchored button and should be easily identified by the script. The user (you) could do this by renaming it in the Layers Panel. Just replace its generic name "<Textframe>" with "Source".
    The target could be a rectangle. For ease of use it could be a selected rectangle and the script will work with the selection.
    What the script is doing:
    It identifies the source text frame by its name (therfore it should be unique in the document) and duplicates all its characters (eg. the anchored button, but could be any anchored object) to a new text frame that will be added on the fly to the selected rectangle.
    And here comes the script (JavaScript):
    //DuplicateAnchoredObjectsTo_SELECTION.jsx
    //DESCRIPTION:Just a proof of concept!
    //Uwe Laubender
    * @@@BUILDINFO@@@ DuplicateButtonTo_SELECTION.jsx !Version! Sat Sep 15 2012 19:39:03 GMT+0200
    var myDoc = app.documents[0];
    var mySel = app.selection[0];
    try{
    var mySource = myDoc.pageItems.itemByName("Source").texts[0];
    var myTarget = mySel.textFrames.add({geometricBounds:mySel.geometricBounds}).insertionPoints[0];
    mySource.duplicate(LocationOptions.AFTER,myTarget);
    }catch(e){alert(e.message)};
    It's not exactly the thing you like to do, because it requires some preparations:
    you have to anchor the object you like to duplicate,
    you have to define the target MSO after you anchored the source button,
    you have to rename the text frame
    and:
    you get an additional text frame at the target rectangle and that is adding some complexity to the structure of your document, but hey, it's working…
    Here are some screen grabs to illustrate the preparation of the source and showing the results after running the script:
    1. Prepare the button as an anchored object (sorry, but the UI is in German, but I think you'll get it):
    2. Rename the source text frame from "<Textframe>" to a unique name.
    In this case: "Source":
    3. Define the target MSO in the button at that stage.
    By copy/paste the button to the text frame you already lost the target MSO.
    4. Select the target rectangle you want to duplicate the button to:
    (the green rectangle represents the first state of the MSO on this spread. It's just an example)
    5. Run the script:
    6. Inspect the results:
    6.1 The button sits in the selected rectangle
    6.2 To be precise: it's the first character in a text frame that is added to the target rectangle.
    The added text frame has the exact size and position of your selection:
    6.3 Inspect the button: the target  is not lost. The MSO is still addressed by the button:
    Instead of a single button as the source, you could use a variety of objects:
    groups, several buttons anchored one after another etc.pp.
    And remember: this is just a proof of  concept so error management is hardly implemented.
    Uwe

  • How can I add a new submitbutton is like an oracle button?

    Hi everybody, I wanna add a new submitbutton to page(xxxxPG.xml). There are some oracle buttons in the page. But, when I add a new submitbutton to page, it is looking like a windows button. What should I do? Thanks...

    Hi there,
    Generally the attribute sets should work but not sure how you are attaching it dynamically. Please check the OA Fwk Guide page 134,135 and 171 to 175.
    It might be some precedence over writing your settings, just create a submit button and assign the attribute set don't set anything else. See if it is rendered
    properly as you want and then try to play around with it. Hope this helps.
    Metalink Document 269138.1 (Oracle Application Framework Developer's Guide Release 11.5.10 RUP5)
    Sample code
    import oracle.apps.fnd.framework.webui.AttributeSet;
    AttributeSet attrSet =
    new AttributeSet(pageContext,
    "/oracle/apps/fnd/attributesets/Buttons/Create");
    String createPrompt = (String)attrSet.getAttributeValue(pageContext,
    PROMPT_ATTR);
    Thanks,
    Sri

  • Need Help, how to create more than one rectangle from one button in one stage of canvas

    Dear Guys,
    I has problem to create more than one rectangle canvas from one button. here my role to create :
    1. I create input size with textfield
    2. I click button called "submit query"
    3. My web will create a rectangle with specific size.
    My problem come when I click again the button, my old rectangle has been remove than my new rectangle has created.
    My question is : how I can create more than one without delete/remove the old I was created?
    Here my Code :
    <head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><link rel="stylesheet" type="text/css" media="all" href="css/style.css"><script src="kinetic-v4.7.2.min.js"></script></head> <body><label>Length</label><input name="panjang" id="panjang" type="text" size="5" maxlength="5"><br> <label>Width</label><input name="lebar" id="lebar" type="text" size="5" maxlength="5"><br>  <label>Height</label><input name="tinggi" id="tinggi" type="text" size="5" maxlength="5"><br> <label>Packing Name</label><input name="nam_pac" id="nam_pac" type="text" size="5" maxlength="5"><br> <input name="submit" type="submit"> <script defer>              var stage = new Kinetic.Stage({                container: 'container',                width: 943.5,                height: 254.10              });              var layer = new Kinetic.Layer();              var rectX = stage.getWidth() / 2 - 50;              var rectY = stage.getHeight() / 2 - 50;                            var group = new Kinetic.Group({                draggable: true              });                                         var box = new Kinetic.Rect({                x: rectX,                y: rectY,                width: <?php echo ($_POST['panjang']/10)/1.3; ?>,                height: <?php echo $_POST['lebar']/10; ?>,                //fill: '#00D2FF',                stroke: 'blue',                strokeWidth: 2                //draggable: true              });               var simpleText = new Kinetic.Text({                x: Math.round(box.getWidth() / 2),                y: Math.round(box.getHeight() / 2),                text: '<?php echo $_POST['tinggi'].'/'.$_POST['nam_pac']; ?>',                fontSize: 30,                fontFamily: 'Calibri',                fill: 'blue',              });                                          // add cursor styling              box.on('mouseover', function() {                document.body.style.cursor = 'pointer';              });              box.on('mouseout', function() {                document.body.style.cursor = 'default';              });                            group.add(box);              group.add(simpleText);              layer.add(group);              stage.add(layer);            </script></body> 
    this is my printscreen may help you to help me :
    thanks before to help me
    Regards,
    Prabowo.

    It's work Ken, but if I modify your code into my code.
    error again. they say like before (...is undefined)
    May You want to check my code
    <?php
    include('pinambung.php');
    ?>
    <!DOCTYPE HTML>
    <html>
    <head>
    <meta charset="utf-8">
    <title>GI Loading Plan Maker</title>
    <meta name="viewport" content="width=device-width" />
    <link rel="stylesheet" type="text/css" media="all" href="css/style_2.css">
    <script src="js/kinetic-v4.7.2.min.js"></script>
    <script src="js/CalendarPopup.js"></script>
    <script src="js/jquery-1.10.2.js"></script>
    </head>
    <body>
      <header class="w" id="header"> <!--Header Area -->
          <img src="images/headers.jpg" width="100%" height="100%" />
      </header><!--End of Header Area -->
      <nav class="w" id="nav"><!--nav Area -->
          <?php include('top.php'); ?>
      </nav><!--End of nav Area -->
      <section class="w" id="main"><!--section Area -->
          <section id="content">
          <article>
            <h2>Customer Info</h2>
            <form id="myForm" action="insert.php" method="post">
            <label>Customer Name :</label><input name="cs_name" id="cs_name" type="text" size="25" maxlength="50">
            <br>
            <label>Date of Shipment :</label><input name="shipment_date" id="shipment_date" type="text" size="10" maxlength="12" > use format : YYYY-MM-DD
            <br />
            <label>Container Name :</label><input name="con_num" id="con_num" type="text" size="10" maxlength="12">
            <label>Revision :</label><input name="revision" id="revision" type="text" size="5" maxlength="5"><br />
            <label>Prepared by :</label><input name="prepared_by" id="prepared_by" type="text" size="25" maxlength="50">
            <button id="saveinfo">Save As DB</button>
            <button id="saveall">Save As Image</button>
            <button id="print" onclick="window.print();return false">Print</button>
            </form>
            <span id="result"></span>
            <script type="text/javascript" src="js/insert.js"></script>
          </article>
              <br /><br />
          <article>
              <h2>Packing Info</h2>
            <label>Container Type :</label>
            40' HC<input name="con_type" type="radio" id="con_type" value="40hc">
            40'<input name="con_type" type="radio" id="con_type" value="40">
            20<input name="con_type" type="radio" id="con_type" value="20"><br />
            <input name="loadstan" type="button" value="Create Container" id="isSelect">
            <button id="removecon">Remove Container</button>
            <br />
            <label>Length</label><input name="panjang" id="panjang" type="text" size="5" maxlength="5">
            <label>Width</label><input name="lebar" id="lebar" type="text" size="5" maxlength="5">
            <label>Height</label><input name="tinggi" id="tinggi" type="text" size="5" maxlength="5">
            <label>Packing Name</label><input name="nam_pac" id="nam_pac" type="text" size="20" maxlength="55">
            <input name="loadstan" id="loadstan" type="button" value="Load Standard Packing" onclick="window.open('spk.php', 'winpopup', 'toolbar=no,statusbar=no,menubar=no,resizable=yes,scrollbars=yes,width=300,height=400');">
            <input name="submit" type="submit" value="Create Box">
            <button id="remove">Remove Box</button><br />
          </article>
        </section>
        <aside id="sidebar">
          <label for="layer-to-delate">Select a layer to delete or rotate</label><br />
          <select id="layer-to-delete" size="14"></select><br />
          <input id="delete-layer-button" type="button" value="Delete layer">
          <input id="rotate-layer-button" type="button" value="Rotate box">
        </aside>
        <section id="content2">
          <div id="container">
          </div>
          <script defer>
          function radians (degrees) {return degrees * (Math.PI/180)}
          function degrees (radians) {return radians * (180/Math.PI)}
          function angle (cx, cy, px, py) {var x = cx - px; var y = cy - py; return Math.atan2 (-y, -x)}
          function distance (p1x, p1y, p2x, p2y) {return Math.sqrt (Math.pow ((p2x - p1x), 2) + Math.pow ((p2y - p1y), 2))}
            var stage = new Kinetic.Stage({
                container: 'container',
                width: 943.5,
                height: 254.10
            var layers = new Array();
           function addCont(){
               layer2 = new Kinetic.Layer();
                switch ($('input:radio[name=con_type]:checked').val()){
                  case '40hc':
                     var box_con = new Kinetic.Rect({
                          x: 10,
                          y: 10,
                          width: 1190/1.3,
                          height: 2300/10,
                          stroke: 'black',
                          strokeWidth: 2
                      var TextCon = new Kinetic.Text({
                          x: 10,
                          y: 240,
                          text: 'Container Size 40 HC (11900mm X 2300mm X 2550mm)',
                          fontSize: 12,
                          fontFamily: 'Calibri',
                          fill: 'green',
                      layer2.add(box_con);
                      layer2.add(TextCon);
                      stage.add(layer2);
                      break;
                     case '40':
                     var box_con = new Kinetic.Rect({
                          x: 10,
                          y: 10,
                          width: 1190/1.3,
                          height: 2300/10,
                          stroke: 'black',
                          strokeWidth: 2
                      var TextCon = new Kinetic.Text({
                          x: 10,
                          y: 240,
                          text: 'Container Size 40 (11900mm X 2300mm X 2250mm)',
                          fontSize: 12,
                          fontFamily: 'Calibri',
                          fill: 'green',
                      layer2.add(box_con);
                      layer2.add(TextCon);
                      stage.add(layer2);
                      break;
                     case '20':
                     var box_con = new Kinetic.Rect({
                          x: 10,
                          y: 10,
                          width: 580/1.3,
                          height: 2300/10,
                          stroke: 'black',
                          strokeWidth: 2
                      var TextCon = new Kinetic.Text({
                          x: 10,
                          y: 240,
                          text: 'Container Size 20 (5800mm X 2300mm X 2250 mm)',
                          fontSize: 12,
                          fontFamily: 'Calibri',
                          fill: 'green',
                      layer2.add(box_con);
                      layer2.add(TextCon);
                      stage.add(layer2);
                      break;
            function addRect() {
                layer = new Kinetic.Layer();
                var box = new Kinetic.Rect({
                    x: 10,
                    y: 10,
                    width: +(($("#panjang").val()/10)/1.3),
                    height: +($("#lebar").val()/10),
                    stroke: 'blue',
                    strokeWidth: 2
                var group = new Kinetic.Group({
                            draggable: true,
                            snap : true
                var boxLabel = $("#nam_pac").val() + "/H : " + $("#tinggi").val();            
                if (($("#panjang").val() && $("#lebar").val()) != 0) {         
                var simpleText = new Kinetic.Text({
                    x: 10,
                    y: 10,
                    text: boxLabel,
                    fontSize: 12,
                    fontFamily: 'Calibri',
                    fill: 'red',
                } else {
                    var simpleText = new Kinetic.Text({
                    x: 10,
                    y: 10,
                    text: '',
                    fontSize: 12,
                    fontFamily: 'Calibri',
                    fill: 'red',
                group.add(box);
                group.add(simpleText);
                layer.add(group);
                stage.add(layer);
                layers.push(layer);
                $("#layer-to-delete").append("<option>Layer " + boxLabel + "</option>");
            function deleteRect() {
                if($("#layer-to-delete > option").length < 1) return;
                var i = $("#layer-to-delete").prop("selectedIndex");
                layers.splice(i,1)[0].destroy();
                $("#layer-to-delete > option").eq(i).remove();
            function rotateRect() {
                if($("#layer-to-delete > option").length < 1) return;
                var i = $("#layer-to-delete").prop("selectedIndex");
                layers[i].rotateDeg(30);
                layers[i].draw();
            $("#delete-layer-button").click(function(e) {
                  deleteRect();
            $("#rotate-layer-button").click(function(e) {
                rotateRect();
            $("input[type=submit]").click(function(e) {
                addRect();
            $("#isSelect").click(function () {
                  addCont();
            $("#removecon").click(function () {
                  layer2.destroy();
            $(window).keypress(function(e) {
                if(!$(document.activeElement).is("label")) {
                    if((e.keyCode || e.which) == 46) {
                        layer.destroy();
                if((e.keyCode || e.which) == 35) {
                        layer2.destroy();
            document.getElementById('saveall').addEventListener('click', function() {
              stage.toDataURL({
                callback: function(dataUrl) {
                      window.open(dataUrl);
            }, false);
          </script>
        </section>
      </section><!--End of section Area -->
      <footer class="w" id="footer"><!--footer Area -->
        Copyright <a href="login.php" target="_new">©</a> 2013, <a href="http://omhanggar.com" target="_new">created</a><a href="http://intranet.guentner-asia.com" target="_new"> by PT. Güntner Indonesia </a>
      </footer><!--End of footer Area -->
    </body>
    </html>
    thanks again before,
    Prabowo

  • How to disable a Copy Trans Button in Crmd-order

    Hi All,
             I am trying to figure out what is controling my Copy transaction button in <b>Crmd_ Order</b>. Even if I remove Copy Control Config, its still working and creating a copy of transaction. Please give your input.
    Appreciate ur help.
    Regards,
    Umar

    hi Umar,
    there is 2 option to restrict the generation of following document from copy control, that is :
    1. via authorization
    2. via BADI implementation
    the easiest way is the option 1 : via authorization.
    just remove the authorization from the user to generate transaction type for ACTIVITY and TASK.
    but ussually this option is hard to implement due to the business scenario because it is imposible to restrict the user to create an activity or a task.
    if the option 1 is not available, then use the option 2 : via BADI implementation.
    just create a new implementation of BADI class CRM_COPY_BADI and add some validation that if the source of the document is certain transaction type then raise the exception NOT_ALLOWED.
    but before implement this BADI, you need to configure the copy control first for all ACTIVITY and TASK transaction types. if not, the BADI won't works.
    hopes it helps
    cheers

  • COPY/PASTE buttons in SC screens in SRM 7.1

    Hi,
    We are on SRM 7.0.1.
    The issue we are facing is regarding the "COPY" and "PASTE" buttons in
    the shopping carts screens.
    The main difference between "COPY/PASTE" and "DUPLICATE" buttons is
    that we can copy items from one shopping cart into the clipboard and
    paste them in a different shopping cart wherease "DUPLICATE" button
    would be used to duplicate/copy items from in the same shopping cart.
    In our system,however,we are unable to copy items from one shopping
    cart (say 100) into the clipboard and try to copy them into another
    shopping cart(say 200).
    NOTE:The 2nd shopping cart(200) is not an already created shopping cart
    in which we are trying to paste the items from cart 100.Cart 200 is
    created after cart 100(in one shop screen).
    The shopping cart creation is done through "ONE SCREEN" transaction.
    Please advise.

    Hi ,
    Please be specific about copy/Paste  button in Shopping cart line (or) you want in
    Account Assignment tab.
    In the account assignment tab the copy functionality will work . it will be copied to the clip board
    check this
    Regards
    G.Ganesh Kumar

Maybe you are looking for

  • Brand new MacBook Pro- tons of permissions errors

    So I just got a brand new MacBook Pro but am having some issues with it. I installed StarCraft 2 but will encounter a black screen that is unresponsive to anything (option-command-esc, for example), when I exit the program and once when I went to vie

  • Audio Device connected by HDMI dont play sound in HP DV7

    I dont hear sounds if I connect my Amplifier by HDMI. In BeatsAudio amplifier is double the same is in Device Menager.  Before was only one Amplifier device now show double amplifier device and no sound. I try uninstall Amplifier and restart but dont

  • Bizzare export issue

    Here is a very weird export issue. Windows XP. Project is set at h264 1920x1080 mono audio 29.97 fps I have 30 shots that make up the sequence. Each shot is exactly 90 frames. I exported each sequence at h264 1920x1080 with one channel of audio. The

  • Photo stream help!!

    Alright so I recently set up Photo stream on my MBP and photo stream is only showing 11 photos out of the 987 photos that are under the Photo stream tab in my iPhone.... Any help guys ??

  • Oracle 9i - rule based settings

    How can change the cost based setting to rule based in oracle 9i? Could anybody help me?