Simple codes needed

Hi,
I need some straightforward codes to directly enable the whole row of the ADF table once "Edit" is clicked, that can be put inside the event of the Edit button.
http://www.4shared.com/photo/7vhXTISI/fig112.html
Best regards

Hi,
actually tables are stamped, which means you either have read only rows or editable rows. The clickToEdit mode that Shay pointed you to is an exception to this. A possible work around to your problem is to use an af:switcher component for rendering a table row's cells as inputText fields or outputText fields. In this case, each column need to have something like
<af:column ...>
<af:switcher defaultFacet="readOnly" facetName="#{myBean.facetValue}">
  <facet name="readOnly">
        <af:outputText value="#{row.bindings.attributeName.inputValue}" .../>
</facet>
  <facet name="edit">
        <af:inputputText value="#{row.bindings.attributeName.inputValue}" .../>
</facet>
</af:switcher>
</af:column>
...You then create a managed bean with a property facetValue. The getFacetValue property would look similar to
// use a JSF ValueExpression to resolve the #{row} variable. This is a handle to the current rendered row when the table repaints
//from the row variable, get the rowKey
//compare the rowKey with the current selected row in the ADF binding
//if they match
if(renderedRow==currentRow && editFlag==true){
return "edit"
else{
return "readOnly"
}From your button, you then set an editFlag property in the managed bean to true/false and partially refresh the table so it repaints with teh current row becoming editable. Wondering however why instead you don't want togo with Shay's suggested click to edit approach
Frank

Similar Messages

  • Need help in simple code for LayeredPane

    Hi,
    here is my simple code for displaying layered pane,
    why is it not working, when i comment label.setBounds();
    also is there a way to have a transparent layer, like
    what i want to do it
    have ont JPanel with some painting on it
    then i want to add one more JPanel over it which is transparent
    Ashish
    import javax.swing.*;
    import javax.swing.table.*;
    import java.awt.*;
    import java.awt.event.*;
    public class TestLayeredPaneFrame extends JFrame
         public TestLayeredPaneFrame()
              super("layered pane");
              this.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
              JLayeredPane layeredPane =new JLayeredPane();
              layeredPane.setPreferredSize(new Dimension(400,600));
    int x = 30;
    int y = 30;
    for (int i = 0; i < 3; i++) {
    x +=30;
    y +=30;
    origin.x += offset;
    origin.y += offset;
    layeredPane.add(new myLabel(x ,y ), new Integer(i));
              Container contentPane = this.getContentPane();
              contentPane.add(layeredPane, BorderLayout.CENTER);
              JPanel panel = myGlassPane();
              this.setGlassPane(panel);
              setSize(new Dimension(800,600));
              this.setVisible(true);
         private JLabel myLabel(int x, int y)
         JLabel label = new JLabel("My Name");
    label.setVerticalAlignment(JLabel.TOP);
    label.setHorizontalAlignment(JLabel.CENTER);
    label.setOpaque(true);
    label.setBackground(Color.BLUE);
    label.setForeground(Color.black);
    label.setBorder(BorderFactory.createLineBorder(Color.black));
    label.setBounds(x, y, 140, 140);     
    return label;     
         public static void main(String args[])
    TestLayeredPaneFrame tlp = new TestLayeredPaneFrame();
    }     

    Hi,
    here is my simple code for displaying layered pane,
    why is it not working, when i comment label.setBounds();
    also is there a way to have a transparent layer, like
    what i want to do it
    have ont JPanel with some painting on it
    then i want to add one more JPanel over it which is transparent
    Ashish
    import javax.swing.*;
    import javax.swing.table.*;
    import java.awt.*;
    import java.awt.event.*;
    public class TestLayeredPaneFrame extends JFrame
         public TestLayeredPaneFrame()
              super("layered pane");
              this.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
              JLayeredPane layeredPane =new JLayeredPane();
              layeredPane.setPreferredSize(new Dimension(400,600));
    int x = 30;
    int y = 30;
    for (int i = 0; i < 3; i++) {
    x +=30;
    y +=30;
    origin.x += offset;
    origin.y += offset;
    layeredPane.add(new myLabel(x ,y ), new Integer(i));
              Container contentPane = this.getContentPane();
              contentPane.add(layeredPane, BorderLayout.CENTER);
              JPanel panel = myGlassPane();
              this.setGlassPane(panel);
              setSize(new Dimension(800,600));
              this.setVisible(true);
         private JLabel myLabel(int x, int y)
         JLabel label = new JLabel("My Name");
    label.setVerticalAlignment(JLabel.TOP);
    label.setHorizontalAlignment(JLabel.CENTER);
    label.setOpaque(true);
    label.setBackground(Color.BLUE);
    label.setForeground(Color.black);
    label.setBorder(BorderFactory.createLineBorder(Color.black));
    label.setBounds(x, y, 140, 140);     
    return label;     
         public static void main(String args[])
    TestLayeredPaneFrame tlp = new TestLayeredPaneFrame();
    }     

  • New to code, need help please!!!

    I have been designing my first website by following a string of videos I have purchased online. (Timothy Training w/ Framework Files) I am finally to the point that I am ready to 'put' these file on my business catalyst account and get them online. I have run into an issue however. I have a page called services.html and within it I have built a 'featured content slider' that links to several pages. The code was working perfectly in any browser that I previewed it in, live view, inspections, everything was fine!! Until, I 'put' the files onto my business catalyst account, now all of the sudden the code does not display correctly anymore. I have made no changes to the code what-so-ever, no changes to the style sheets, nothing. I had a tech support guy that took a 'quick look' and said that my outer div was all of the sudden in the wrong place. I dont understand how 1. it shifted when I made no changes, 2. It works perfectly fine when I view it outside of BC platform and 3. how to even begin to fix the issue. I have spent hours upon hours trying to remedy this myself and I am finally at a breaking point and quite desperate for help. I have so many hours into this site and I am quite frustrated that I made it this far only for it to fail. Please anyone that is willing to take a look I would be grateful. I am not sure if I should post the code in here or not as this is my first post in the forum. I guess I will try to copy and paste and see if that works. Any suggestions would be great help.. Thank you so much!
    I will copy and paste the code in this order: (I think this is all the code needed to figure it out,I hope...)
    services.html
    featureList.js
    featured.css
    styles.css
    services.html
    <!DOCTYPE HTML>
    <html><!-- InstanceBegin template="/templates/ts_fullwidth.dwt" codeOutsideHTMLIsLocked="false" -->
    <head>
              <script type="text/javascript" src="js/jquery.js"></script>
        <link href="css/styles.css" rel="stylesheet" type"text/css" media="screen">
        <link href="css/print.css" rel="stylesheet" type"text/css" media="screen">
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <meta http-equiv="Content-Type" content="cache" />
        <meta name= "robots" content="INDEX,FOLLOW" />
        <meta name= "keywords" content="Enter Keywords" />
        <meta name= "description" content="Description Here" />
    <!-- InstanceBeginEditable name="doctitle" -->
        <title>Web Site by Tahoe POS Systems LLC - www.tahoesystems.com</title>
                  <script type="text/javascript" src="js/featureList.js"></script>
        <link rel="stylesheet" href="css/featured.css" />
              <script language="javascript">
                        $(document).ready(function() {
                                  $.featureList(
                                            $("#tabs li a"),
                                            $("#output li"), {
                                                      start_item          :          1
              </script>
        <!-- InstanceEndEditable -->
        <!-- Google Analytics Code Goes Below Here -->
        <!-- End Google Analytics Code -->
    <!-- InstanceBeginEditable name="head" -->
    <!-- InstanceEndEditable -->
    </head>
    <body>
    <div id="outer">
              <div id="wrapper">
                        <div id="logo">
                      <img src="images/logos/logo2.png" />
            </div>
            <div id="social-media-icons">
                      <ul>
                          <li><a href="http://www.facebook.com/tahoesystems"><img src="images/icons/facebook_32.png" /></a></li>
                    <li><a href="#"><img src="images/icons/rss_32.png" /></a></li>
                    <li><a href="http://www.twitter.com"><img src="images/icons/twitter_32.png" /></a></li>
                    <li><a href="http://www.youtube.com"><img src="images/icons/youtube_32.png" /></a></li>
              </ul>   
            </div>
            <div id="topnav">
                      <ul>
                          <li><a href="index.html">HOME</a></li>
                    <li><a href="about.html">ABOUT US</a></li>
                    <li><a href="clients.html">CLIENTS</a></li>
                    <li><a href="services.html">SERVICES</a></li>
                    <li><a href="contact.html">CONTACT US</a></li>
                </ul>   
            </div>
            <div id="banner">
                      <img src="images/banner/b1.png" />
            </div>
            <div id="content-fullwidth"><!-- InstanceBeginEditable name="content" -->
              <h1>Welcome to Tahoe Systems Web Site!</h1>
              <p>Our Mission – To ensure your restaurant, bar, café, diner, or eatery operates smoothly. Streamline your workflow by providing the latest, most up-to-date technology the industry has to offer. Maximize your profits with a personalized POS system that works for you and not against you. Ease your stress with the quickest, most reliable, 24-hour technical support in the area. Train your staff in person with one-on-one classes taught by one of our certified staff.</p>
           <div id="feature">
                        <h1>Featured Tahoe Systems Services</h1>
            <p>Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo.</p>
                                  <div id="feature_list">
                                            <ul id="tabs">
                                                      <li>
                                                                <a href="javascript:;">
                                                                <img src="images/icons/ts_star_logo.png" />
                                                                          <h3>Complete Menu Design</h3>
                                                                          <span>Complete with our well-known Fast Bar Page </span>
                                                                </a>
                                                      </li>
                                                      <li>
                                                                <a href="javascript:;">
                                                                          <img src="images/icons/ts_star_logo.png" />
                                                                          <h3>Kitchen Printing with ease</h3>
                                                                          <span>Top of the line printing systems</span>
                                                                </a>
                                                      </li>
                                                      <li>
                                                                <a href="javascript:;">
                                                                <img src="images/icons/ts_star_logo.png" />
                                                                          <h3>VPEN Monitor Systems</h3>
                                                                          <span>HD Screens, Bump Bars, We can do it all!</span>
                                                                </a>
                                                      </li>
                                            </ul>
                                  <ul id="output">
                                                      <li>
                                                                <img src="images/feature_slider/menu-sample2.jpg" />
                                                                <a href="menu.html">Menu Gallery</a>
                                                      </li>
                                                      <li>
                                                                <img src="images/feature_slider/tmu220.jpg" />
                                                                <a href="print.html">Printing Gallery</a>
                                                      </li>
                                                      <li>
                                                                <img src="images/feature_slider/kds_hnet.jpg" />
                                                                <a href="vpen.html">VPEN Gallery</a>
                                                      </li>
                                            </ul>
                                  </div>
              </div>
              <p>Our Mission – To ensure your restaurant, bar, café, diner, or eatery operates smoothly. Streamline your workflow by providing the latest, most up-to-date technology the industry has to offer. Maximize your profits with a personalized POS system that works for you and not against you. Ease your stress with the quickest, most reliable, 24-hour technical support in the area. Train your staff in person with one-on-one classes taught by one of our certified staff.</p>
            <!-- InstanceEndEditable --></div>
            <div id="footer">
                       <p class="footer-text">All Rights Reserved - Tahoe Systems - 2012</p>
            </div>
       </div>
    </div>
    </body>
    <!-- InstanceEnd --></html>
    featureList.js
    * FeatureList - simple and easy creation of an interactive "Featured Items" widget
    * Examples and documentation at: http://jqueryglobe.com/article/feature_list/
    * Version: 1.0.0 (01/09/2009)
    * Copyright (c) 2009 jQueryGlobe
    * Licensed under the MIT License: http://en.wikipedia.org/wiki/MIT_License
    * Requires: jQuery v1.3+
    ;(function($) {
              $.fn.featureList = function(options) {
                        var tabs          = $(this);
                        var output          = $(options.output);
                        new jQuery.featureList(tabs, output, options);
                        return this;
              $.featureList = function(tabs, output, options) {
                        function slide(nr) {
                                  if (typeof nr == "undefined") {
                                            nr = visible_item + 1;
                                            nr = nr >= total_items ? 0 : nr;
                                  tabs.removeClass('current').filter(":eq(" + nr + ")").addClass('current');
                                  output.stop(true, true).filter(":visible").fadeOut();
                                  output.filter(":eq(" + nr + ")").fadeIn(function() {
                                            visible_item = nr;
                        var options                              = options || {};
                        var total_items                    = tabs.length;
                        var visible_item          = options.start_item || 0;
                        options.pause_on_hover                    = options.pause_on_hover                    || true;
                        options.transition_interval          = options.transition_interval          || 5000;
                        output.hide().eq( visible_item ).show();
                        tabs.eq( visible_item ).addClass('current');
                        tabs.click(function() {
                                  if ($(this).hasClass('current')) {
                                            return false;
                                  slide( tabs.index( this) );
                        if (options.transition_interval > 0) {
                                  var timer = setInterval(function () {
                                            slide();
                                  }, options.transition_interval);
                                  if (options.pause_on_hover) {
                                            tabs.mouseenter(function() {
                                                      clearInterval( timer );
                                            }).mouseleave(function() {
                                                      clearInterval( timer );
                                                      timer = setInterval(function () {
                                                                slide();
                                                      }, options.transition_interval);
    })(jQuery);
    featured.css
    #feature
    font-family: "Trebuchet MS",Verdana,Arial,sans-serif;
    font-size: 14px;
    line-height: 1.6;
    width: 750px; /* This is the width  */
    margin: 25px auto; /* margin top/bottom and centering  */
    padding: 20px; /* Padding inside */
    background: #FFF;
    /* Background color  */
    border: 1px solid #CCC; /* border around  */
    #feature h1 { margin: 0; }
    #feature p
    { margin: 0; padding: 7px 0; }
    .clear
    { clear: both; line-height: 1px; font-size: 1px; }
    #feature a
    { outline-color: #888;
    #feature h3 { margin: 0;
    padding: 7px 0 0 0;
    font-size: 16px; text-transform: uppercase;
    ul#tabs li a h3
    { color:#F60; margin-bottom: 5px; ; }
    div#feature_list
    width: 750px; height: 240px;
    overflow: hidden; position: relative;
    div#feature_list ul {
    position: absolute;
    top: 0;
    list-style: none;
    padding: 0;
    margin: 0;
    ul#tabs {
    left: 0;
    z-index: 2;
    width: 320px;
    ul#tabs li { font-size: 12px; font-family: Arial; }
    ul#tabs li img {
    padding: 5px; border: none; margin: 0px 10px 0 0;
    float: left;
    ul#tabs li a
    color: #222;
    text-decoration: none;
    display: block;
    padding: 10px;
    height: 60px;
    outline: none;
    ul#tabs li a:hover { color:#822B00; }
    ul#tabs li a.current {
    background:url(../images/feature-tab-current.png);
    color: #FFF;
    ul#tabs li a.current:hover {
    text-decoration: none;
    cursor: default;
    ul#output {
    right: 0;
    width: 460px; height: 240px;
    position: relative;
    ul#output li {
    position: absolute;
    width: 460px; height: 240px;
    ul#output li a {
    position: absolute;
    bottom: 10px; right: 10px;
    padding: 8px 12px;
    text-decoration: none;
    font-size: 11px;
    color: #FFF;
    background: #000;
    -moz-border-radius: 5px;
    ul#output li a:hover { background:#B33A00; }
    and finally styles.css
    /* CSS Document */
    /* Color Legend */
    /* Reset */
    html, body { margin; 0; padding: 0; border: 0; background: transparent; font-size:10px; }
    div, span, article, aside, footer, header, hgroup, nav, section,
    h1, h2, h3, h4, h5, h6, p, blockquote, a, ol, ul, li,
    table, tr, th, td, tbody, tfoot, thead {
              margin: 0;
              padding: 0;
              border: 0;
              verticle-align: baseline;
              background: transparent; }
    img                    {margin: 0; padding: 0; border: 0; }
    table, tr, th, td, tbody, tfoot, thead {
              margin: 0; padding: 0; border: 0;
              verticle-align: baseline;
              background: transparent; }
    table {border-collapse: collapse; border-spacing: 0; }
    input, select, textarea, form, fieldset {
              margin: 0; padding: 0; border: 0; }
    article, aside, dialog, figure, footer, header, hgroup, nav, section {
              display:block; }
    h1, h2, h3, h4, h5, h6, p, li, blockqutoe, td, th, a, caption, em, strong, strike {
              font-family: Arial, Helvetica, sans-serif;
              font-size:100%;
              font-weight: normal;
              font-style: normal;
              line-height: 100%;
              text-indent: 0;
              text-decoration: none;
              text-align: left;
              color: #000; }
    ol, ul, { list-style: none; }
    /* Global */
    html          {          }
    body          {          background-color:#E8DDCA;
                                  background-image:url(../images/background/roiBody_11.png);
                                  background-repeat:no-repeat;
                                  background-attachment:fixed; }
    /* Headings */
    h1, h2, h3, h4, h5, h6 { font-weight: bold; }
    h1 { font-size:24px; color: #C60 ;
                        padding-bottom: 15px; border-bottom: 1px #ccc solid; margin-bottom: 15px; }
    h2 { font-size: 20px; }
    h3 {font-size: 16px; margin-bottom: 5px; }
    h4 {font-size: 14px; }
    h5 {font-size: 14px; }
    h6 {font-size: 14px; }
    h1 img, h2 img, h3 img, h4 img, h5 img, h6 img, {margin: 0; }
    /* Text Elements */
    p                                        { color:#000; font-size: 12px; line-height: 150%;
                                                      margin: 15px 0px; }
    p. left                              {margin: 1.5em 1.5em 1.5em 0; padding: 0; }
    p. right                     {margin: 1.5em 0 1.5em 1.5em; padding: 0; }
    a                                        {          }
    a:link                              {color: #00f; }
    a:visited                    {color: #0f0; }
    a:active                    {color: #000; }
    a:focus                              {color: #666; }
    a:hover                              {color: #f00; }
    blockquote                    {color: #000; font-size: 12px; }
    strong                              { font-weight: bold; }
    em                                         {font-style: italic; }
    /* Images */
    .image-frame          { padding: 10px; border: 1px #ccc solid; margin: 10px; }
    /* Lists */
    ul                                        {          }
    ol                                        { list-style-type:decimal; }
    ul li                              {color: #000; font-size: 12px; }
    ol li                              {color: #000; font-size: 12px; }
    dl                                        {          }
    dt                                        {          }
    dd                                        {          }
    /* Tables */
    table                              { width: 100%; }
    tr                                         {          }
    .odd                              { background-color: #eee; }
    .even                              { background-color: #fff; }
    th                                         { font-weight:bold; }
    thead, th                    { background: #ccc; }
    tbody                              {          }
    th,td,caption           {          }
    caption                     {          }
    tfoot                              {          }
    .tfooter                    { background-color:#ccc; text-align: center; font-style: italic;
    caption                              { background-color: #efefef;
    /* Miscelaneous */
    sup, sub                    {line-height: 0; }
    abbr, acronym          { border-bottom: dotted #666; }
    address                              {          }
    del                                        {background: #ffcece; color: #f00; }
    code, pre                    { background-color:#ff9; padding: 2px 0px; margin: 4px 25px;
                                                      font-family: "Courier New", Courier, monospace; font-size: 12px; font-weight:bold
    /* Containers */
    #outer                              { width:960px; margin:0 auto; background-color:#FFF; }
    #wrapper                    { width:900px; margin:0 auto; background-color:#FFF; }
    #logo                              { margin:30px 0; float: left; }
    #social-media-icons                     { float:right;                               }
    #social-media-icons ul li           { display: inline;                     }
    #social-media-icons ul                    { margin-top: 40px;           }
    #topnav                                        { clear: both; }
    #topnav ul                              { border-top: 1px #000 solid; border-bottom: 1px #000 solid;
                                                                margin: 20px 0; padding: 10px 0; }
    #topnav ul li                    { display: inline          }
    #topnav ul li a                    { padding: 0 15px;          }
    #topnav          a:link                              {color: #000; }
    #topnav          a:visited                    {color: #000; }
    #topnav          a:active                    {color: #000; }
    #topnav          a:focus                              {color: #666; }
    #topnav          a:hover                              {color: #F90; }
    #banner                                        { margin-bottom: 30px;           }
    #slider                                        { margin-bottom: 30px; }
    #content                              { width: 650px; float: left;          }
    #content-fullwidth          { width: 100%; }
    #rightside                              { width: 200px; float: right;          }
    #footer                                        { clear: both; margin-top: 20px 0; border-top: 1px #ccc solid;          padding-bottom: 20px; }
    #box1          { width: 250px; float: left; margin: 25px; 
                                  border-top: 15px #666 solid; background-color:#EEE;          }
    #box2          { width: 250px;          float: left; margin: 25px;
                                  border-top: 15px #3E5838 solid; background-color:#EEE;          }
    #box3          { width: 250px;          float: left; margin: 25px;
                                  border-top: 15px #386165 solid; background-color:#EEE;          }
    #box1 h3, #box2 h3, #box3 h3 { margin: 20px 10px 10px 10px; }
    #box1 p, #box2 p, #box3 p { margin: 5px 10px 10px 10px; }
    #box4          {                    }
    #box5          {                    }
    #box6          {                    }
    /* Layout Extra */
    /* Navigation Extra */
    /* Forms */
    form ol { list-style-type:none; }
    form           { text-align:left; margin:20px;          }
    label           {
                        float: left; width: 150px; margin-top:5px;
                        text-align:right; display:block; background:none; font-weight:bold;
    submit          { background:none;           }
    input           {
                        width: 280px; margin:0 0 16px 10px;
                        border:1px #bbb solid; padding:5px; background:none;
    input:focus, textarea:focus          { background-color:#FF9; }
    textarea {
                        width: 280px; height: 150px; margin:0 0 16px 10px;
                        border:1px #bbb solid; padding:5px; background:none;
    select { margin-bottom:20px;          }
    .month { margin-left:155px;          }
    .submit {
                        width:90px; height:25px;
                        margin-left:160px;
                        font-size:12px;
    br                    { clear: left;           }
    .clear          { clear:both; }
    /* Miscelaneous */
    .popup-link                    { font-size: 12px; margin: 5px 10px; display:block; }
    .date                              { font-weight: bold; color: #C60; margin-bottom: 3px; }
    .copyright-text { font-size:80%; font-style: italic; color: #333; }
    .footer-text          { font-size:12px; font-style: normal; color: #000; text-align: center; }
    .title                              { font-size:18px; font-weight: bold; color: #333; }
    .subtitle                    { font-size:14px; font-style: italic; color: #333; }
    .artist                     { font-size:16px; font-weight: bold; color: #333; }
    .author                              { font-size:14px; font-weight: bold; color: #555; }
    .editor                              { font-size:14px; font-style: italic; color: #555; }
    .pub-date                    { font-size:10px; font-style: italic; color: #555; }
    .article-date          { font-size:10px; font-style: italic; color: #555; }
    .location                    { font-size:10px; font-style: italic; color: #555; }
    .float-right          { float:right; }
    .float-left                    { float:left; }
    .clear                              { clear:both; }
    .hide                              { display:none; }
    .block                              { display:block; }
    .inline                              { display:inline; }
    .first                              { font-weight:bold; }
    .last                              { font-weight:bold; }
    .left                              { font-weight:bold; text-align:left; }
    .right                              { font-weight:bold; text-align:right; }
    .added                              { background:#D7D7FF; }
    .removed                    { background:#FFCECE; color:#f00; }
    .changed                    { background:#FFB; }

    http://tahoepossystems.businesscatalyst.com/services.html
    Services page is missing quite a bit of stuff.
    This code from a working page is correct:
    <link href="/StyleSheets/ModuleStyleSheets.css" type="text/css" rel="StyleSheet" />
    <script type="text/javascript">var jslang='EN';</script>
    <script type="text/javascript" src="../js/jquery.js"></script>
    <script type="text/javascript" src="../js/needsomethinghere.js"></script>
    <script type="text/javascript" src="../js/slider.js"></script>
    <script type="text/javascript">  // This is the script for the banner slider
    $(document).ready(function() {
    $('#slider').s3Slider({
    timeOut: 6000
    </script>
    <link href="../css/styles.css" rel="stylesheet" css" media="screen">
    <link href="../css/print.css" rel="stylesheet" css" media="screen">
    <link href="../css/slider.css" rel="stylesheet" type="text/css" media="screen">
    In contrast, this is all you have in the <head> of your services.html page:
    <link href="/StyleSheets/ModuleStyleSheets.css" type="text/css" rel="StyleSheet" />
    <script type="text/javascript">var jslang='EN';</script>
    <script type="text/javascript" src="../js/jquery.js"></script>
    <link href="../css/styles.css" rel="stylesheet" type="text/css" media="screen">
    <link href="../css/print.css" rel="stylesheet" type="text/css" media="screen">
    If you reconcile those difference in your code, it should work.
    Nancy O.

  • Simple code to send ALV display as XLS attachment  to SAP inbox

    Hi All,
    Simple code to send ALV display as XLS attachment  to SAP inbox.
    Also i need to send only 200 records per attachement. So in this case i need send multiple attachment per mail
    Thanks,
    Lokesh

    The following code is used to send the internal table which u pass fo  the ALV display to be send as excel sheet attachment
    Internal table is it_attach[]
    ld_email               = po_email.
      ld_mtitle              = 'Email From Z377_EMAIL_XLS'.
      ld_format              = 'XLS'.
      ld_attdescription      = 'filename'.
      ld_attfilename         = 'Allot'.
      ld_sender_address      = ' '.
      ld_sender_address_type = ' '.
    * Fill the document data.
      w_doc_data-doc_size = 1.
    * Populate the subject/generic message attributes
      w_doc_data-obj_langu = sy-langu.
      w_doc_data-obj_name  = 'SAPRPT'.
      w_doc_data-obj_descr = ld_mtitle .
      w_doc_data-sensitivty = 'F'.
    * Fill the document data and get size of attachment
      CLEAR w_doc_data.
      READ TABLE it_attach INDEX w_cnt.
      w_doc_data-doc_size =
      ( w_cnt - 1 ) * 255 + STRLEN( it_attach ).
      w_doc_data-obj_langu  = sy-langu.
      w_doc_data-obj_name   = 'SAPRPT'.
      w_doc_data-obj_descr  = ld_mtitle.
      w_doc_data-sensitivty = 'F'.
      CLEAR t_attachment.
      REFRESH t_attachment.
      t_attachment[] = it_attach[].
    * Describe the body of the message
      CLEAR t_packing_list.
      REFRESH t_packing_list.
      t_packing_list-transf_bin = space.
      t_packing_list-head_start = 1.
      t_packing_list-head_num = 0.
      t_packing_list-body_start = 1.
      DESCRIBE TABLE li_content LINES t_packing_list-body_num.
      t_packing_list-doc_type = 'RAW'.
      APPEND t_packing_list.
    * Create attachment notification
      t_packing_list-transf_bin = 'X'.
      t_packing_list-head_start = 1.
      t_packing_list-head_num   = 1.
      t_packing_list-body_start = 1.
      DESCRIBE TABLE t_attachment LINES t_packing_list-body_num.
      t_packing_list-doc_type   =  ld_format.
      t_packing_list-obj_descr  =  ld_attdescription.
      t_packing_list-obj_name   =  ld_attfilename.
      t_packing_list-doc_size   =  t_packing_list-body_num * 255.
      APPEND t_packing_list.
    * Add the recipients email address
      CLEAR t_receivers.
      REFRESH t_receivers.
      t_receivers-receiver = ld_email.
      t_receivers-rec_type = 'U'.
      t_receivers-com_type = 'INT'.
      t_receivers-notif_del = 'X'.
      t_receivers-notif_ndel = 'X'.
      APPEND t_receivers.
      CALL FUNCTION 'SO_DOCUMENT_SEND_API1'
      EXPORTING
      document_data              = w_doc_data
      put_in_outbox              = 'X'
      sender_address             = ld_sender_address
      sender_address_type        = ld_sender_address_type
      commit_work                = 'X'
    *IMPORTING
    *sent_to_all                = w_sent_all
      TABLES
      packing_list               = t_packing_list
      contents_bin               = t_attachment
      contents_txt               = li_content
      receivers                  = t_receivers
      EXCEPTIONS
      too_many_receivers         = 1
      document_not_sent          = 2
      document_type_not_exist    = 3
      operation_no_authorization = 4
      parameter_error            = 5
      x_error                    = 6
      enqueue_error              = 7
      OTHERS                     = 8.

  • XML simple code help

    Hello Everyone, I am learning XML and I'm trying to make a simple code that will display three different messages on a separate line. I already have the code but there is something that does not let it work. Please if somebody can take a quick look at the code and tell me what should I do in order to get it working. Thanks in advance
    This is my simplerequestdata.xml
    {<root>
    <message1>This</message1>
    <message2>Technology</message2>
    <message3>Is confusing</message3>
    </root>}
    This is my xmlrequest.html code
    {<html>
    <head>
    <title></title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <script type="text/javascript">
    var req=null;
    function xhr(){
    try
    { // Firefox, Opera 8.0+, Safari
    req=new XMLHttpRequest();
    catch (e)
    // Internet Explorer
    try
    req=new ActiveXObject("Msxml2.XMLHTTP");
    catch (e)
    req=new ActiveXObject("Microsoft.XMLHTTP");
    return req;
    function getData(){
    req = new xhr();
    req.open("get","simpleRequestData.xml");
    req.send(null);
    if(req.readyState==4){
    if(req.status==200){
    var doc = req.responseXML;
    var msgNodes = doc.documentElement.getElementsByTagName('message');
    var msgDiv = document.getElementById("message");
    var msg = document.createElement("message");
    msg.innerHTML = msgNodes[0].firstChild.nodeValue + "<br />" + msgNodes[1].firstChild.nodeValue + '
    ' + msgNodes[2].firstChild.nodeValue;
    msgDiv.innerHTML = '';
    msgDiv.appendChild(msg);
    </script>
    <style>
    #message{color:red;}
    message{display:block;color:green;}
    </style>
    </head>
    <body>
    <form>
    <input type="button" onclick="getData()" value="Get Message"/>
    <div id="message">Message Goes Here</div>
    </form>
    </body>
    </html>
    }

    That looks like Javascript to me. This forum is about Java and XML, not Javascript and XML. However the error is pretty obvious:
    var msgNodes = doc.documentElement.getElementsByTagName('message');You don't have any elements named "message" in that XML document. You have an element named "message1" and an element named "message2" and an element named "message3", but no "message" elements. So you get a list of zero elements there. You need to rewrite your DOM-handling code to reflect the actual input.

  • JMS Simple code in Sun tutorial

    I run a simple code (http://java.sun.com/j2ee/1.4/docs/tutorial/doc/JMS4.html) fine in j2sdkee , but fail to use in Openjms/ JBoss.
    try {
    connectionFactory = (ConnectionFactory) jndiContext.lookup("QueueConnectionFactory");
    } catch (Exception e) {
    System.out.println("JNDI API lookup failed: " + e.toString());
    return;
    What's wrong of the above code? Why do I can the following error in Openjms / Jboss?
    JNDI API lookup failed: javax.naming.CommunicationException: Can't find

    OpenJMS by default defines the following: (QueueConnectionFactory is not defined by default!)
    queueName = "queue1"
    queueConnectionFactoryName = "JmsQueueConnectionFactory"
    The creation of the initial context could be done like this
    Hashtable env = new Hashtable ();
    env.put(Context.PROVIDER_URL,
    "rmi://localhost:1099/JndiServer");
    env.put(Context.INITIAL_CONTEXT_FACTORY,
    "org.exolab.jms.jndi.rmi.RmiJndiInitialContextFactory");
    jndiContext = new InitialContext (env);
    Similar modifications are needed for JBoss

  • Code needed for ClickOnce

    Starting to learn ClickOnce.
    Most documentation implies that ClickOnce runs on its own, and there is no mention of code needed to support it.
    Then I find code samples in various discussions. I'm easily confused; can someone help me?
    Is code needed to support ClickOnce? If so, samples please.
    Thanks,
    RK

    Starting to learn ClickOnce.
    Most documentation implies that ClickOnce runs on its own, and there is no mention of code needed to support it.
    Then I find code samples in various discussions. I'm easily confused; can someone help me?
    Is code needed to support ClickOnce? If so, samples please.
    Thanks,
    RK
    Hello,
    In most cases, we don't need to add any code for clickonce, and it is quite simple to use the publish wizard, for example, right click on your project in solution explorer, then select Publish, next configure the settings for this deployment.
    It will help you get much clear about clickonce that you could get what clickonce is and how we could get it work for our projects from the following guidance.
    ClickOnce Deployment Overview
    Regards,
    Carl
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Bit Locker 48-digit Code Need?

    Hello
    my external HDD has bit locker
    when i remove my windows7 & install new windows8
    i can't open my hard, windows need 48-digit code but i have not it
    furthermorei have my password but windows don't need my pass
    and directly say you forgotten your pass and need 48-digit code
    my question is: how enter my password to open HDD without 48-digit code ?
    like this:
    http://social.technet.microsoft.com/Forums/getfile/389032
     thanks a Bunch

    http://social.msdn.microsoft.com/Forums/windowsazure/en-US/b42d7e23-a41d-4fc7-a8fb-a441712b2a0d/bit-locker-48digit-code-need?forum=windowsazuresecurity
    Your Problem is Already Resolve Same Question You Ask Above Link
    Moderator Please Take Any Action  
    DushYant'

  • What's wrong with this simple code?

    What's wrong with this simple code? Complier points out that
    1. a '{' is expected at line6;
    2. Statement expected at the line which PI is declared;
    3. Type expected at "System.out.println("Demostrating PI");"
    However, I can't figure out them. Please help. Thanks.
    Here is the code:
    import java.util.*;
    public class DebugTwo3
    // This class demonstrates some math methods
    public static void main(String args[])
              public static final double PI = 3.14159;
              double radius = 2.00;
              double area;
              double roundArea;
              System.out.println("Demonstrating PI");
              area = PI * radius * radius;
              System.out.println("area is " + area);
              roundArea = Math.round(area);
              System.out.println("Rounded area is " + roundArea);

    Change your code to this:
    import java.util.*;
    public class DebugTwo3
         public static final double PI = 3.14159;
         public static void main(String args[])
              double radius = 2.00;
              double area;
              double roundArea;
              System.out.println("Demonstrating PI");
              area = PI * radius * radius;
              System.out.println("area is " + area);
              roundArea = Math.round(area);
              System.out.println("Rounded area is " + roundArea);
    Klint

  • Convert simple code from as2 to as3

    Hello, i am looking for some help here for something simple (i think)
    var txt:String = link1;
    btn.onRelease = function():Void {
    if( sample_id )
    getURL("http://www.website.com/registration?partner_id=" + sample_id + "sampleURLCode", "_blank");
    else
    getURL("http://www.website.com/registration?sampleURLCode", "_blank");
    Is there a way to make this simple code into AS3?

    Hi, Apparantly that's because the 'link1' and 'sample_id' variables are not within the scope of the code you posted above, Perhaps you have defined them outside on a different frame or class. You can either define them with the same code like:
    var sample_id:Number=1234;  //Use your own variable type and value here
    var link1:String = "your string or link URL here";
    var txt:String = link1;
    btn.addEventListener(MouseEvent.CLICK, gotoURL);
    function gotoURL(e:MouseEvent)
    if( sample_id )
          navigateToURL(new URLRequest("http://www.website.com/registration?sample_id=" + sample_id + "sampleURLCode"),"_blank");
    else
          navigateToURL(new URLRequest("http://www.website.com/registration?sampleURLCode"),"_blank");
    Or you can put a direct reference to your existing variable like (If your variables are defined on root/frame 1) :
    var link1:String = "your string or link URL here";
    var txt:String = MovieClip(this.root).link1;
    btn.addEventListener(MouseEvent.CLICK, gotoURL);
    function gotoURL(e:MouseEvent)
    if( MovieClip(this.root).sample_id )
          navigateToURL(new URLRequest("http://www.website.com/registration?sample_id=" + sample_id + "sampleURLCode"),"_blank");
    else
          navigateToURL(new URLRequest("http://www.website.com/registration?sampleURLCode"),"_blank");
    try that, or you can share your .fla !
    cheers

  • Google app renewed issue. Your APK's version code needs to be higher than 1000000

    Hi
    I am updating a previous AIr based Android app with a new version.
    I had the following error
    Your APK's version code needs to be higher than 1000000.
    The issue is that I have carefully override the app version number but it keep given me this address.
    Any clue?

    ok, find the solution
    I had to add several ZERO to the version number to be able to upload properly the APK

  • Jmf simple code

    Hi all,
    this is my simple code that plays a video from a specifed location.
    * To change this template, choose Tools | Templates
    * and open the template in the editor.
    package javaapplication1;
    * @author rohan
    import com.sun.media.util.ContentType;
    import javax.media.*;
    import javax.media.Manager;
    import java.io.*;
    import java.net.URL;
    import javax.media.bean.playerbean.MediaPlayer;
    import java.awt.*;
    import java.net.ProtocolException;
    import javax.swing.*;
    public class Main extends JFrame{
    * @param args the command line arguments
    public Main()
    try
    Manager.setHint( Manager.LIGHTWEIGHT_RENDERER, true );
    Container cont=getContentPane();
    cont.setLayout(new FlowLayout());
    String myUrl=new String("C:\\Users\\rohan\\Softwares\\Jmf and jain sip\\Fig21_06_07\\bailey.mpg");
    System.out.println("myUrl====="+myUrl);
    MediaLocator myurls =new MediaLocator(myUrl);
    Player myplayer=Manager.createRealizedPlayer(myurls);
    System.out.println("Rohan");
    Component video = myplayer.getVisualComponent();
    cont.add(video);
    setDefaultCloseOperation(EXIT_ON_CLOSE);
    myplayer.start();
    catch(Exception e)
    System.out.println("Exception====="+e);
    public static void main(String[] args) {
    // TODO code application logic here
    // JFrame fr=new JFrame("hello");
    Main obj=new Main();
    obj.setBounds(300, 300 , 300, 300);
    obj.setVisible(true);
    Problem here is i get this exception
    "Exception=====javax.media.NoPlayerException: Cannot find a Player for :C:\Users\rohan\Softwares\Jmf and jain sip\Fig21_06_07\bailey.mpg
    Can u plz tel me where do i make changes ,so that i can run this simple app. Plz help me...so that i can go further(plz this is my first jmf app.)
    thanks.

    Change your file path like +"file:/C:/delta.mpg"+.
    Hope this will help you to fix your issue.
    Cheers,
    ARIF

  • Anyone have Simple Code to Play an .Flv file on a Website?

    Hi,
    Can someone please tell me how to make a web page play a .flv file. 
    Simple, basic code would do.
    I have an .flv file uploaded on my website.
    How do I get the Flash Player to play the file when someone visits the page?
    Again, all I'm looking for is simple code.
    Thanks,
    Joe

    add an flvplayback component to your swf.  give it an instance name (say flv).  then use:
    flv.contentPath="yourflv.flv";   // for as2
    flv.source="yourflv.flv";  // for as3

  • Ask for help( simple code but wired error )!

    The post I sent just now has some mistakes. This post is correct. My simple code is as follows:
    import java.io.*;
    import java.net.*;
    public class count {
    float dclient = (float)3.333;
    float dlan = (float)0.01884;
    float drouter = (float)0.00115;
    float doutlink = (float)0.04185;
    float dinternet = (float)1.2615;
    float dinlink = (float)3.18129;
    float client1 = 0;
    float lan1 = 0;
    float router1 = 0;
    float outlink1 = 0;
    float internet1 = 0;
    float inlink1 = 0;
    float client2 = 0;
    float lan2 = 0;
    float router2 = 0;
    float outlink2 = 0;
    float internet2 = 0;
    float inlink2 = 0;
    float x = 0;
    float z = (float)3.333;
    public static void main(String[] args) {
    for (int n=1; n<16; ++n)
    client1 = dclient;
    lan1 = dlan * (1+lan2);
    router1 = drouter;
    outlink1 = doutlink * (1+outlink2);
    internet1 = dinternet;
    inlink1 = dinlink * (1+inlink2);
    x = n / (z + client1 + lan1 + router1 + outlink1 + internet1 + inlink1);
    client2 = x * client1;
    lan2 = x * lan1;
    rounter2 = x * rounter1;
    outlink2 = x * outlink1;
    internet2 = x * internet1;
    inlink2 = x * inlink1;
    System.out.println(client1 + " " +
    lan1 + " " +
    rounter1 + " " +
    outlink1 + " " +
    internet1+ " " +
    inlink1+ " **** " +
    x + " **** " +
    client2 + " " +
    lan2 + " " +
    rounter2 + " " +
    outlink2 + " " +
    internet2+ " " +
    inlink2 + " ********************end of n = " + n + "************************"
    The compiling error is:
    count.java:43: Can't make a static reference to nonstatic variable dclient in class count.
    client1 = dclient;
    ^
    1 error
    What is wrong with it? Many thanks!

    import java.io.*;
    import java.net.*;
    public class count
         public static float dclient = (float)3.333;
         public static float dlan = (float)0.01884;
         public static float drouter = (float)0.00115;
         public static float doutlink = (float)0.04185;
         public static float dinternet = (float)1.2615;
         public static float dinlink = (float)3.18129;
         public static float client1 = 0;
         public static float lan1 = 0;
         public static float router1 = 0;
         public static float outlink1 = 0;
         public static float internet1 = 0;
         public static float inlink1 = 0;
         public static float client2 = 0;
         public static float lan2 = 0;
         public static float router2 = 0;
         public static float outlink2 = 0;
         public static float internet2 = 0;
         public static float inlink2 = 0;
         public static float x = 0;
         public static float z = (float)3.333;
         public static void main(String[] args)
              for (int n=1; n<16; ++n)
                   client1 = dclient;
                   lan1 = dlan * (1+lan2);
                   router1 = drouter;
                   outlink1 = doutlink * (1+outlink2);
                   internet1 = dinternet;
                   inlink1 = dinlink * (1+inlink2);
                   x = n / (z + client1 + lan1 + router1 + outlink1 + internet1 + inlink1);
                   client2 = x * client1;
                   lan2 = x * lan1;
                   router2 = x * router1;
                   outlink2 = x * outlink1;
                   internet2 = x * internet1;
                   inlink2 = x * inlink1;
                   System.out.println(client1 + " " +     lan1 + " " router1 " " outlink1 " " internet1 " " inlink1 " **** " +     x + " **** " +
                   client2 + " " +
                   lan2 + " " +
                   router2 + " " +
                   outlink2 + " " +
                   internet2+ " " +
                   inlink2 + " ********************end of n = " + n + "************************"

  • Data Binding: Simple code does not work.

    hi... the following simple code is used to display the ename field for a record selected in scott.emp on the console. the code is placed in an event handler. it is as follows:
    DCBindingContainer bindings = ctx.getBindingContainer();
    DCControlBinding binding = bindings.findCtrlBinding("ename");
    String Name = (binding != null) ? binding.toString() : "";
    System.out.println(Name);
    is the code above correct????
    if so, why it does not work???
    thanks for every help in advance & best regards.

    Hi,
    please check the UIModel.xml file for the page if the binding name is "name". The code you have is the same code we published in our QBE workshop and it works there. The only difference is the name of the control binding. So please check if the binding name exists. (e.g. it could be ename1 instead of ename)
    Frank

Maybe you are looking for