How-To/Sample code to tie up class variable to MXML component created in Design view

This is a very noob question but I've been searching through the documentation for the last 2 hours and can't seem to find anything helpful.  I have a SWFLoader created in the design view.  I have all my app code in an <fx:Script> with all my functions and variable in a CDATA tag.  All I want to do is hookup the SWFLoader created in the design view with a private var in my ActionScript. 
I also have two separate states for my app, and I want the same SWFLoader to be visible in both states. Can someone point me to some useful sample code or documentation??
Any help is much appreciated.

Sun has recommendations for naming conventions. Class names should start with a capital letter. You should avoid using class names that are the same as classes provided in the SDK. Following these conventions will make it easier for people to help you. For example, you should not use file, nor should you use File. It's better to use MyFile, replacing My with something that makes sense to your application (SeniorFile?).
Also, check the Formatting Help link when posting for a desciption on how to use the code tags for posting code.
1. You need to establish references between your classes. One way is to have a constructor that has a JMenuBar argument.
2. You can not add a file to a JMenuBar because a JMenuBar adds a JMenu. I don't think you want file to extend JMenu. It may be better for file to have a JMenu.
I haven't tried to compile this code so no guarantees - just trying to show you an approach.
public class Senior extends JFrame {
   public Senior() {
      JMenuBar bar = new JMenuBar();
      MyFile file = new MyFile(bar);
//whatever else you need
public class MyFile {
   public MyFile(JMenuBar mbar) {
      JMenu menu = new JMenu();
      mbar.add(menu);

Similar Messages

  • How to extend an AS3 class in an MXML Component

    Hello,
    I have a few MXML Components based on the Spark Group.
    They all use MXML for layouta and AS3 for logic.
    They all have the same logic and I would like all to extend an AS3 class to have the same methods and properties isteand of declaring the same exact ones for each MXML Component.
    How can this be done please?

    Hm, no, I'm not explaing this properly.
    I have an MXML component based on the Spark Group.
    It has a few form elements.
    There are many such components.
    I want all to have two public methods: getData() and setData() which get and set data from and to the input elements.
    I don't want to write the exact same method for all of them.
    I would like to at least interface the MXML components with an AS3 class forcing them to have those 2 methods.

  • How can you specify a custom style class for an ADF component (column)?

    We are using ADF 10_1_3_3_0 on Tomcat.
    We would like to specify an additional style class for a column header. We have specified the following style:
    {color:#808080}af|column.formHeader::header-text
    text-align: right;
    background-color:brown;
    border-color:#999999;
    font-family:Verdana,Arial,Helvetica,sans-serif;
    color: blue;
    }{color}
    {color:#808080}&lt;af:column sortable="true" formatType="text" styleClass="formHeader"&gt;{color}
    This does not seem to work. In our tests, the CSS gets generated but the new style class for the column header does not seem to be generated/mapped. I reveiwed this post: Re: Jdev 11g: how to set width of some components on panel form layout. Is this specification (component.className::selector) applicable for the 10g version of ADF?
    Additionnaly, are their specifcations/details for these selectors (e.g. ora-rule-ref, -rt-rule-ref, -tr-rule-ref). I am not clear on what they are mapped to and how they are used.
    Thanks
    Edited by: user10477345 on Oct 27, 2008 6:48 AM

    Hi,
    The column's style classes will be added on the <td> elements, not the header sadly. So for your use case you'll have to place the class on the table itself then use the selector
    af|table.MyStyleClass af|column.formHeader::header-text{}Sadly this will affect all columns, not just one so I don't know if it's going to fir your need.
    Regards,
    ~ Simon

  • HOW-TO initialize class variable

    How can an annotation initialize a class variable? For example, JEE5 has an annotation called @EJB that initializes a class variable with a remote or local interface:
    @Stateless class Foo
    @EJB bar;
    bar.scoobyDoobyDoo(); // I can use bar seemingly before it was initialized!
    In general terms, how can annotation be used to initialize class variables?

    It can't.
    What it can do is tell something else that this needs to be done, and that something else can do it.
    That something else might be an annotation processor running at build / compile time, which might generate some code to do it, or might generate some configuration file that causes it to be done later.
    That something else might alternatively be a runtime artifact, that can look at the annotation and carry out the requested operation. For example a container could do it.
    So an annotation cannot do anything, including initailizing a class variable, but it can declare that the class variable needs to be initialized in some way.
    Bruce

  • How can I get back to editing in Design view?

    I can't edit my web pages in Design view. When I DON'T have Live View on, nor Live Code, I only get a cursor shaped like a NO circle and I cannot click on anything to edit it. I can only make changes in the code window.
    What can I do to restore editablilty in Design view?

    Sorry this has taken so long. I have been trying a few things. One is the fact my template my pages are all based on has an editable region, which is where the uneditable are is within.. Other editable areas in the template are available for me to click into and edit, but not the main area.
    I tried moving the main div inside the editable region, but then, although it is now editable, the main div gets wiped away when the site pages get updated. So then I am forced to go back to the previous situation.
    Link: http://www.revelantiron-ons.com/MainPage.html
    Code:
    <html><!-- InstanceBegin template="/Templates/PageLayout_Idea_Template.dwt" codeOutsideHTMLIsLocked="false" -->
    <head>
    <!-- InstanceBeginEditable name="doctitle" -->
    <title>Revelant Iron-Ons Home</title>
    <!-- InstanceEndEditable -->
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" > <meta name="keywords" content="christian t shirts, christian apparel, iron on transfer, iron-on transfer, transfers iron on, creation, creator, relevant, Christian, t-shirt, tshirt, iron on, iron-on, inspirational, political, conservative, pro-life, prolife, religious, religion, christian, bible, Jesus, Holy Spirit, spiritual, design, revelation">
    <meta name="description" content="A site for custom-designed Christian, religious, inspiriational, politically conservative iron-on designs. Unique Christian and inspirational iron-on transfer designs for you.">
    <link href="rio-styles.css" rel="stylesheet" type="text/css">
    <script type="text/javascript">
    <!--
    function MM_preloadImages() { //v3.0
      var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
        var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
        if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
    function MM_findObj(n, d) { //v4.01
      var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
        d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
      if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
      for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
      if(!x && d.getElementById) x=d.getElementById(n); return x;
    function MM_nbGroup(event, grpName) { //v6.0
      var i,img,nbArr,args=MM_nbGroup.arguments;
      if (event == "init" && args.length > 2) {
        if ((img = MM_findObj(args[2])) != null && !img.MM_init) {
          img.MM_init = true; img.MM_up = args[3]; img.MM_dn = img.src;
          if ((nbArr = document[grpName]) == null) nbArr = document[grpName] = new Array();
          nbArr[nbArr.length] = img;
          for (i=4; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) {
            if (!img.MM_up) img.MM_up = img.src;
            img.src = img.MM_dn = args[i+1];
            nbArr[nbArr.length] = img;
      } else if (event == "over") {
        document.MM_nbOver = nbArr = new Array();
        for (i=1; i < args.length-1; i+=3) if ((img = MM_findObj(args[i])) != null) {
          if (!img.MM_up) img.MM_up = img.src;
          img.src = (img.MM_dn && args[i+2]) ? args[i+2] : ((args[i+1])? args[i+1] : img.MM_up);
          nbArr[nbArr.length] = img;
      } else if (event == "out" ) {
        for (i=0; i < document.MM_nbOver.length; i++) {
          img = document.MM_nbOver[i]; img.src = (img.MM_dn) ? img.MM_dn : img.MM_up; }
      } else if (event == "down") {
        nbArr = document[grpName];
        if (nbArr)
          for (i=0; i < nbArr.length; i++) { img=nbArr[i]; img.src = img.MM_up; img.MM_dn = 0; }
        document[grpName] = nbArr = new Array();
        for (i=2; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) {
          if (!img.MM_up) img.MM_up = img.src;
          img.src = img.MM_dn = (args[i+1])? args[i+1] : img.MM_up;
          nbArr[nbArr.length] = img;
    //-->
    </script>
    <!-- InstanceBeginEditable name="head" -->
    <script type="text/javascript">
    <!--
    function MM_swapImgRestore() { //v3.0
      var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
    function MM_swapImage() { //v3.0
      var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
       if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
    //-->
    </script>
    <!-- InstanceEndEditable -->
    </head>
    <body   class="body" onLoad="MM_preloadImages('images/NavRllvr1.jpg','images/NavRllvr2.jpg','images/NavRllvr3. jpg','images/NavRllvr4.jpg','images/NavRllvr5.jpg','images/NavRllvr6.jpg','images/RIO_NavU p1.jpg','images/RIO_NavUp2.jpg','images/RIO_NavUp3.jpg','images/RIO_NavUp4.jpg','images/RI O_NavUp5.jpg','images/RIO_NavUp6.jpg','images/BuyBttn_sml_ovr.jpg')">
    <div id="container">
    <div id="adspace">
      <!-- InstanceBeginEditable name="AdSpaceRegion" --><img src="../images/AlsoFollowbar.jpg" id="followbox"  alt="Also follow Revelant Iron-Ons at these locations" width="857" height="43" hspace="59" vspace="0" border="0" usemap="#Map">
      <map name="Map">
        <area shape="rect" coords="640,2,712,48" href="http://www.cafepress.com/RevelantIronOnsCP" target="_blank" alt="Revelant Iron-Ons at CafePress">
        <area shape="rect" coords="487,4,616,40" href="http://www.zazzle.com/revelant" target="_blank" alt="Revelant Iron-Ons at Zazzle.com">
    <area shape="rect" coords="792,1,848,42" href="http://twitter.com/RevelantIronOns" target="_blank" alt="Revelant Iron-Ons Twitter page">
        <area shape="rect" coords="727,2,787,45" href="http://www.facebook.com/profile.php?id=100002412534139&sk=wall" target="_blank" alt="Revelant Iron-ons Facebook page">
      </map><!-- InstanceEndEditable --></div>
    <div id="leftside"></div><div id="rightside"></div><div id="centercore">
        <div id="header"><img src="images/RIO_Masthead-left.jpg" width="448" height="109" alt="Revelant Iron-Ons logo"><img src="images/RIO_Masthead-Right.jpg" width="448" height="109" alt="Inspirational Iron-On Designs"></div>
        <div id="navbar">
          <div id="navbuttonlineup"><a href="MainPage.html" target="_top" onClick="MM_nbGroup('down','group1','Home_bttn','../images/NavRllvr1.jpg',1)" onMouseOver="MM_nbGroup('over','Home_bttn','../images/NavRllvr1.jpg','../images/RIO_NavUp 1.jpg',1)" onMouseOut="MM_nbGroup('out')"><img src="images/RIO_NavUp1.jpg" alt="Home" name="Home_bttn" width="150" height="28" border="0" onload=""></a><a href="designs.html" target="_top" onClick="MM_nbGroup('down','group1','Designs_bttn','../images/NavRllvr2.jpg',1)" onMouseOver="MM_nbGroup('over','Designs_bttn','../images/NavRllvr2.jpg','../images/RIO_Na vUp2.jpg',1)" onMouseOut="MM_nbGroup('out')"><img src="images/RIO_NavUp2.jpg" alt="Designs" name="Designs_bttn" width="150" height="28" border="0" onload=""></a><a href="news.html" target="_top" onClick="MM_nbGroup('down','group1','News_bttn','../images/NavRllvr3.jpg',1)" onMouseOver="MM_nbGroup('over','News_bttn','../images/NavRllvr3.jpg','../images/RIO_NavUp 3.jpg',1)" onMouseOut="MM_nbGroup('out')"><img src="images/RIO_NavUp3.jpg" alt="News" name="News_bttn" width="150" height="28" border="0" onload=""></a><a href="articles.html" target="_top" onClick="MM_nbGroup('down','group1','Articles_bttn','../images/NavRllvr4.jpg',1)" onMouseOver="MM_nbGroup('over','Articles_bttn','../images/NavRllvr4.jpg','../images/RIO_N avUp4.jpg',1)" onMouseOut="MM_nbGroup('out')"><img src="images/RIO_NavUp4.jpg" alt="Articles" name="Articles_bttn" width="150" height="28" border="0" onload=""></a><a href="instructions.html" target="_top" onClick="MM_nbGroup('down','group1','instruct_bttn','../images/NavRllvr5.jpg',1)" onMouseOver="MM_nbGroup('over','instruct_bttn','../images/NavRllvr5.jpg','../images/RIO_N avUp5.jpg',1)" onMouseOut="MM_nbGroup('out')"><img src="images/RIO_NavUp5.jpg" alt="Instructions" name="instruct_bttn" width="150" height="28" border="0" onload=""></a><a href="contactform.html" target="_top" onClick="MM_nbGroup('down','group1','About_bttn','../images/NavRllvr6.jpg',1)" onMouseOver="MM_nbGroup('over','About_bttn','../images/NavRllvr6.jpg','../images/RIO_NavU p6.jpg',1)" onMouseOut="MM_nbGroup('out')"><img src="images/RIO_NavUp6.jpg" alt="Contact Us" name="About_bttn" width="146" height="28" border="0" onload=""></a></div>
          <div id="mainContent"><!-- InstanceBeginEditable name="ContentRegion" -->
            <div id="mainblurb" class="RIO_basic">
            <div id="quickquip" ><p class="RIO_smaller">Keep on top of new designs and other important information. <a href="http://revelantiron-ons.com/letsshop/index.php?main_page=login">Click here</a> to sign up for our newsletter.<a href="http://revelantiron-ons.com/letsshop/index.php?main_page=login"><img src="/images/nwslttr_choose_shot.jpg" alt="choose our newsletter section of registration form" width="190" height="67" vspace="6" border="0"></a> </p>
          </div>
          <div id="quickquip" ><p class="RIO_smaller">Have  questions about Revelant Iron-Ons iron-on transfers? <a href="FAQ.html">Look up our FAQ page</a>.</p>
          </div>
          <div class="clearfloat"></div>
                        <p class="RIO_HeadlineK">God&rsquo;s Cool Creation!          </p>
              <p>This is sure to become popular very quickly. God&rsquo;s Cool Creation displays a wonderful arrangement of images and illustrations glorifying God in His handiwork of Earth&rsquo;s creation.</p>
    <p><img src="/images/designs/proxies/CC_proxy_150w.png" width="150" height="126" alt="God's Cool Creation iron-on design"></p>
    <p>Take a look at this design, <a href="http://revelantiron-ons.com/letsshop/index.php?main_page=product_info&cPath=1&products_id= 7&zenid=217315476d30c2abb2e57d53bcbadb97"><span class="linkK">order it today</span></a>, and get ready to hear your friends ooh and aah over it!</p>
              <p class="RIO_HeadlineK"><a href="news.html#SpecialOffer" class="linkK">A Special Introductory Offer<br>
                for first-time orders!</a></p>
              <p class="RIO_HeadlineK">Welcome to Revelant Iron-Ons.</p>
              <p class="RIO_SubK">Iron-On Designs that Say What You Want to Say</p>
              <p>We are happy to present to you some of the most relevant, eye-catching and unique Christian, inspirational iron-on designs available on the web. This is our aim, and as we grow, we believe you will find this to be true.</p>
              <p>As this site is new, we currently have only a few designs. However, many new designs are in the works. The Bible asks, &ldquo;Who despises the day of small things?&rdquo; Well, not us! We thankfully rejoice that we can start offering you specially made iron-ons in a small way now and grow to more designs later.</p>
              <p class="RIO_SubK">A DIY Approach</p>
              <p>Our purpose is to provide you with great iron-on designs, and impactful messages, printed with Epson&rsquo;s premium  DURABrite<span class="Superscript">&reg;</span> Ultra ink, on quality iron-on transfer material. You supply the garment and the iron, follow our special instructions, and end up with a fantastic iron-on you can enjoy wearing for years.</p>
              <p>Please view our designs, order what you like, and also read any important news and articles about each offering. </p>
            <div id="duraBriteBlurb"><img name="durabriteimage" src="images/DURABrite_logo_8bt.png" width="120" height="65" alt="DURABrite Ultra Ink logo"></div>
            </div><p class="RIO_basic"><br>
            Click on any design to see more!<br>
            <br>
            <a href="/letsshop/index.php" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('buybttn_sml','','images/BuyBttn_sml_ovr.jpg',1)"><img src="images/BuyBttn_sml_up.jpg" alt="Buy now!" name="buybttn_sml" width="116" height="30" border="0"></a>        </p>
            <div id="pictscolumn">
                      <p class="RIO_caption"><a href="designs.html"><img src="images/designs/T-Shirt_Proxy_CoolC.png" width="162" height="165" alt="Cool Creation T-shirt" border="0" align="top"></a><br>
    God&rsquo;s Cool Creation</p>
              <p class="RIO_caption"><a href="designs.html"><img src="images/designs/T-Shirt_Proxy_ATS.png" width="162" height="165" alt="Able To Save T-shirt" border="0" align="top"></a><br>
    Able to Save</p>
    <p class="RIO_caption"><a href="designs.html"><img src="images/designs/T-Shirt_Proxy_answr.png" width="162" height="165" alt="the answers T-shirt" border="0" align="top"></a><br>
    the answers</p>
               <p class="RIO_caption"><a href="designs.html"><img src="images/designs/proxies/Shirt_Proxy_FOSS.png" alt="Fruit of the Spirit Spots T-shirt" width="162" height="165" border="0"></a><br>
              Fruit of the Spirit Spots</p>
              <p class="RIO_caption"><a href="designs.html"><img src="images/designs/proxies/Shirt_Proxy_Endrs.png" alt="Endorse does not Establish T-shirt" width="162" height="165" border="0"></a><br>
              Endorse does not Establish</p>
              <p class="RIO_caption"><a href="designs.html"><img src="images/designs/T-Shirt_Proxy_WrngChc.png" alt="Fruit of the Spirit Spots T-shirt" width="162" height="165" border="0"></a><br>
              The Wrong Choice</p>
           </div>
          <!-- InstanceEndEditable --></div></div>
      </div>
    <div class="clearfloat"></div>
      <div id="footer"><p class="foottype">&copy; 2011 RightStar Computing<br>
      Revelant Iron-Ons is a brand of RightStar Computing.  123 Hedman Lane, Monticello, Minnesota 55362<br>
      <a href="MainPage.html" class="link">Home</a> | <a href="designs.html"  class="link">Designs</a> | <a href="news.html"  class="link">News</a> | <a href="articles.html"  class="link">Articles</a> | <a href="instructions.html"  class="link">Iron-On Instructions</a> | <a href="contact.html"  class="link">Contact Us | </a><a href="letsshop/index.php" class="link">Buy Now!</a></p><!--footer info will go here, such as copyright, etc. --></div>
    </div><!--end container area -->
    </body>
    <!-- InstanceEnd --></html>
    CSS:
    @charset "UTF-8";
    .body  {
              text-align: center; /* this centers the container in IE 5* browsers. The text is then set to the left aligned default in the #container selector */
              background-color: #514444;
              font-family: Verdana, Arial, Helvetica, sans-serif;
              font-size: 100%;
              margin: 0px;
              padding: 0px;
              border-top-width: 0px;
              border-right-width: 0px;
              border-bottom-width: 0px;
              border-left-width: 0px;
              border-top-style: none;
              border-right-style: none;
              border-bottom-style: none;
              border-left-style: none;
    .RIO_basic {
              font-family: Verdana, Arial, Helvetica, sans-serif;
              font-size: 100%;
              font-style: normal;
              line-height: 120%;
              font-weight: normal;
              font-variant: normal;
              color: #000000;
              text-decoration: none;
              white-space: normal;
              margin-left:0 em;
              margin-right:1.5em;
              margin-top:0.5em;
    .RIO_smaller  {
              font-family: Verdana, Arial, Helvetica, sans-serif;
              font-size: 85%;
              font-style: normal;
              line-height: 120%;
              font-weight: normal;
              font-variant: normal;
              color: #000000;
              text-decoration: none;
              white-space: normal;
              margin-left:0 em;
              margin-right:1.5em;
              margin-top:0.5em;
    .RIO_showtitle {
    font-family:  Verdana, Arial, Helvetica, sans-serif;
    color:          #000;
    font-size: 85%;
    font-weight:bold;
    margin-top:0px;
    margin-bottom: 4px;
    text-decoration:none;
    .RIO_caption {
              font-family: Verdana, Arial, Helvetica, sans-serif;
              font-size: 70%;
              --font-style:italic;
              color:#000;
              margin-top:.25em;
              margin-bottom:1em;
              text-decoration:none;
    .RIO_basicK {
              font-family: Verdana, Arial, Helvetica, sans-serif;
              font-size: 100%;
              font-style: normal;
              line-height: 120%;
              font-weight: normal;
              font-variant: normal;
              color: #000000;
              text-decoration: none;
              white-space: normal;
    .RIO_HeadlineK {
              font-family: Verdana, Arial, Helvetica, sans-serif;
              font-size: 120%;
              font-style: normal;
              line-height: 120%;
              font-weight: bold;
              font-variant: normal;
              color: #000000;
              text-decoration: none;
              white-space: normal;
              text-align: center;
              margin-top:1em;
    .RIO_HeadlineK-left {
              font-family: Verdana, Arial, Helvetica, sans-serif;
              font-size: 120%;
              font-style: normal;
              line-height: 120%;
              font-weight: bold;
              font-variant: normal;
              color: #000000;
              text-decoration: none;
              white-space: normal;
              text-align: left;
              margin-top:1em;
    .newsdate {
    color: #cead33;
    font-weight: bold;
    font-size: 85%;
    text-decoration:underline;
    margin-top:0.125em;
    .RIO_SubK {
              font-family: Verdana, Arial, Helvetica, sans-serif;
              font-size: 110%;
              font-style: normal;
              line-height: 120%;
              font-weight: bold;
              font-variant: normal;
              color: #000000;
              text-decoration: none;
              white-space: normal;
              text-align: left;
              margin-left:0em;
              margin-right:0.5em;
              margin-top:0.75em;
    .Superscript {
              font-size: x-small;
    .link {
              font-family: Verdana, Arial, Helvetica, sans-serif;
              color: #FFFFFF;
              text-decoration: none;
              --text-indent: 2em;
              white-space: normal;
              --text-decoration: underline;
    .linkK {
              font-family: Verdana, Arial, Helvetica, sans-serif;
              color: #000000;
              text-decoration: none;
              --text-indent: 2em;
              white-space: normal;
              text-decoration: underline;
    .linkhover {
              color: #ffe050;
              text-decoration: none;
              --text-indent: 2em;
              white-space: normal;
              --text-decoration: underline;
    .foottype {
              font-family: Verdana, Arial, Helvetica, sans-serif;
              font-size: 65%;
              color: #FFF;
              font-weight:lighter;
              text-align:center;
              line-height:160%;
              text-decoration: none;
    .caption {
              font-family: Verdana, Arial, Helvetica, sans-serif;
              font-size: .75em;
              color: #000F;
              font-weight:lighter;
              text-align:center;
              line-height:160%;
              text-decoration: none;
    .background {
              background-attachment: fixed;
              background-image: url(images/RVLT_Bkgrd_2000h.jpg);
              background-repeat: no-repeat;
              background-position: left top;
    #container {
              width:970px;
              text-align: left;
              height: 900px;
              padding: 0px;
              border-top-width: 0px;
              border-right-width: 0px;
              border-bottom-width: 0px;
              border-left-width: 0px;
              border-top-style: none;
              border-right-style: none;
              border-bottom-style: none;
              border-left-style: none;
              margin-top: 0;
              margin-right: auto;
              margin-bottom: 0;
              margin-left: auto;
    #buttonspace {
    width:180px;
    height:auto;
    margin-right: 10px;
    margin-bottom: 6px;
    padding-left: 5px;
    padding-bottom: 5px;
    background-color:#f8cf35;
    text-align:left;
    float: left;
    border-radius:6px;
    -moz-box-shadow: 3px 3px 5px rgba(0,0,0, .5);
    box-shadow: 3px 3px 5px rgba(0,0,0, .5);
    .buttontext {
              margin:0px;
              text-decoration:none;
              font-size:80%;
    #centercore {
              border-top-width: 0px;
              border-right-width: 0px;
              border-bottom-width: 0px;
              border-left-width: 0px;
              border-top-style: none;
              border-right-style: none;
              border-bottom-style: none;
              border-left-style: none;
              margin-top: 0px;
              margin-right: 0px;
              margin-bottom: 0px;
              margin-left: 0px;
              position: relative;
              padding-top: 0px;
              padding-right: 0px;
              padding-bottom: 0px;
              padding-left: 37px;
    #followbox {
              margin-top:46px;
              margin-bottom:0px;
    #adspace {
              background-image: url(images/RIO_Adspace.jpg);
              background-repeat: no-repeat;
              background-position: 0px 0px;
              margin: 0px;
              height: 100px;
              width: 970px;
              padding:  0px;
              --clip: rect(auto,auto,auto,auto);
              position: relative;
              clear: both;
    #header {
              height: auto;
              width:auto;
              border-top-width: 0px;
              border-right-width: 0px;
              border-bottom-width: 0px;
              border-left-width: 0px;
              border-top-style: none;
              border-right-style: none;
              border-bottom-style: none;
              border-left-style: none;
              margin: 0px;
              padding: 0;
    #leftside {
              background-image: url(images/RIO_LeftSide.jpg);
              background-repeat: no-repeat;
              float: left;
              width: 37px;
              background-position: top;
              border-top-width: 0px;
              border-right-width: 0px;
              border-bottom-width: 0px;
              border-left-width: 0px;
              border-top-style: none;
              border-right-style: none;
              border-bottom-style: none;
              border-left-style: none;
              margin: 0px;
              padding: 0px;
              height: 700px;
              position: inherit;
              left: 0px;
              top: 100px;
    #rightside {
              background-image: url(images/RIO_RightSide.jpg);
              background-repeat: no-repeat;
              margin: 0px;
              float: right;
              border-top-width: 0px;
              border-right-width: 0px;
              border-bottom-width: 0px;
              border-left-width: 0px;
              border-top-style: none;
              border-right-style: none;
              border-bottom-style: none;
              border-left-style: none;
              width: 37px;
              height: 700px;
              background-position: top;
    #mainblurb {
              float: left;
              width: 500px;
              margin-top: 20px;
              margin-right: 10px;
              margin-bottom: 15px;
              margin-left: 20px;
              padding-right:15px;
              overflow: auto;
              height: 485px;
              padding:0px, 0px, 0px, 0px;
    #pictscolumn {
              float: right;
              width: 230px;
              height:380;
              margin-top: 15px;
              margin-right: 50px;
              margin-bottom: 15px;
              margin-left: 0px;
              overflow: auto;
              padding:0px;
    #navbar {
              height: 71px;
              width: 896px;
              background-image: url(images/RIO_NavBarBkgd.jpg);
              background-repeat:no-repeat;
              background-position: top;
              margin: 0px;
              padding: 0;
              position: absolute;
              top: 109px;
    #navbuttonlineup {
              height: 28px;
              padding-top:43px;
              width: 896px;
              margin-right: 0px;
              margin-bottom: 0px;
              margin-left: 0px;
              border-top-width: 0px;
              border-right-width: 0px;
              border-bottom-width: 0px;
              border-left-width: 0px;
              border-top-style: none;
              border-right-style: none;
              border-bottom-style: none;
              border-left-style: none;
              position: relative;
              z-index: 80;
              margin-top: 0px;
              padding-right: 0px;
              padding-bottom: 0px;
              padding-left: 0px;
    #mainContent {
              margin: 0; /* the right margin can be given in percentages or pixels. It creates the space down the right side of the page. */
              background-image: url(images/RIO_ContentBkgrd.jpg);
              background-repeat: no-repeat;
              height: 520px;
              width: 896px;
              position: relative;
              border-top-width: 0px;
              border-right-width: 0px;
              border-bottom-width: 0px;
              border-left-width: 0px;
              border-top-style: none;
              border-right-style: none;
              border-bottom-style: none;
              border-left-style: none;
              top: 0px;
              background-position: left top;
              padding-top: 10px;
              padding-right: 37px;
              padding-bottom: 0px;
              padding-left: 37px;
                        overflow: auto;
    #quickquip  {
              width: 205px;
              padding-left:6px;
              padding-right:6px;
              margin:6px;
              background-color:rgba(248, 207, 53, .85);
              border-radius:6px;
    float:left;
    #showbox  {
              width: 268px;
              height: 268px;
              background-color:rgba(255, 255, 255, .7);
              border-radius:8px;
              text-align:center;
              float:left;
              padding-top:8px;
              margin:4px;
    #duraBriteBlurb {
              padding: 10px;
              float: right;
              height: 70px;
              width: 125px;
              border-top-width: 0px;
              border-right-width: 0px;
              border-bottom-width: 0px;
              border-left-width: 0px;
              border-top-style: none;
              border-right-style: none;
              border-bottom-style: none;
              border-left-style: none;
              z-index: auto;
    table {
    margin-left: 20px;
    margin-right: 20px;
    border: thin solid black;
    caption-side: bottom;
    border-spacing:0px;
    border-collapse: collapse;
    td, th {
    border: thin dotted gray;
    padding: 5px;
    th {
    background-color:#cc6600;
    table table th {
    background-color:white;
    caption {
    font-style: italic;
    padding-top: 8px;
    font-size: 80%;
    .cellshirt {
    width:180px;
    .cellcolor {
    background-color:#fcba7a;
    .centered {
    text-align: center;
    .right  {
    text-align: right;
    #footer {
              padding: 0,0,0,0;
              width:970px;
              background-image: url(images/RIO_Footer.jpg);
              background-repeat: no-repeat;
              height: 100px;
              border-top-width: 0px;
              border-right-width: 0px;
              border-bottom-width: 0px;
              border-left-width: 0px;
              border-top-style: none;
              border-right-style: none;
              border-bottom-style: none;
              border-left-style: none;
              position: relative;
              clear: both;
              float:left;
              background-position: 0px 0px;
              margin: 0px;
              top: 0px;
    /* Tips for mainContent:
    1. The space between the mainContent and sidebar1 is created with the left margin on the mainContent div.  No matter how much content the sidebar1 div contains, the column space will remain. You can remove this left margin if you want the #mainContent div's text to fill the #sidebar1 space when the content in #sidebar1 ends.
    2. Be aware it is possible to cause float drop (the dropping of the non-floated mainContent area below the sidebar) if an element wider than it can contain is placed within the mainContent div. WIth a hybrid layout (percentage-based overall width with em-based sidebar), it may not be possible to calculate the exact width available. If the user's text size is larger than average, you will have a wider sidebar div and thus, less room in the mainContent div. You should be aware of this limitation - especially if the client is adding content with Contribute.
    3. In the Internet Explorer Conditional Comment below, the zoom property is used to give the mainContent "hasLayout." This may help avoid several IE-specific bugs.
    /* Miscellaneous classes for reuse */
    .fltrt { /* this class can be used to float an element right in your page. The floated element must precede the element it should be next to on the page. */
              float: right;
              margin-left: 8px;
    .fltlft { /* this class can be used to float an element left in your page */
              float: left;
              margin-right: 8px;
              azimuth:center-left
    .clearfloat { /* this class should be placed on a div or break element and should be the final element before the close of a container that should fully contain a float */
              clear:both;
        height:0;
        font-size: 1px;
        line-height: 0px;
    [if IE]>
    <style type="text/css">
    /* place css fixes for all versions of IE in this conditional comment */
    #navbar, #header, #mainContent, #container, navbuttonlineup, #centercore, #leftside, #rightside, #adspace, #mainblurb, #pictscolumn {zoom: 1;}
    #header {
              top:0px;
              position:absolute;
    /* the above proprietary zoom property gives IE the hasLayout it needs to avoid several bugs */
    </style>
    <![endif]
    If you have any solution, I would greatly appreciate it!

  • Event in ActionScript Class not accessible by MXML Component

    I am implementing an ActionScript Class in my MXML Component,
    but it can't see the Event I'm specifying. I'm getting the
    following Error when I compile my application:
    Cannot resolve attribute 'myEvent' for component type
    myClass.
    How do I make the Event available to the MXML component?
    Thanks.

    Guess the compiler has a problem with semi-colons after the
    Event declarations. I removed the semi-colons, and was able to
    compile.

  • How to write last 48bits of a bouble variable

    hi,
    i would like to know how to write last 48bits of double type variable. i am trying create a certain memory format. it needs a 48bits of a one data point. since we C doen't have 48bit variable i created double variable. now i am trying to write last 48bits of this double.(most significant bits). any help would be appreciated.
    Thanks,

    Double variables are treated by CVI according to IEEE 754 standard, which means the 64 bits are organized in groups to represent sign, exponent and mantissa of a floating point library. For this reason it seems to me that you may come into troubles by attempting to use some bits only of a double variable.
    If you are not treating floating point numbers, you may consider to use '__int64' data type instead which is supported by CVI starting from release 7.0 on or the equivalent 'long long' data type introduced in CVI 8.5: both describe 8-bytes integers.
    Proud to use LW/CVI from 3.1 on.
    My contributions to the Developer Zone Community
    If I have helped you, why not giving me a kudos?

  • How do I make my design view line up with my live view?

    I'm using CS6 and my design view is a lot different from my live view. How do I change this?
    www.kurtesposito.com
    Thanks.

    Unfortunately you cant. Design view is only a 'guidance' POV. Use Live View to see how it will really look like or test on browser.

  • How to use TreeByKeyTableColumn  (with sample code)

    Hi Guys,
                  Can anyone tell me How to bind data with TreeByKeyTableColumn ? (with sample code). Is it possible to add checkbox with TreeByKeyTableColumn? Kindly aware me further in this regards....
    Thanks,
    Ravin

    Hi
    Answering to following question
    How to bind data with TreeByKeyTableColumn
    Create the Context
    Click on the Context tab of the view. Create a node name it as "AIR_LINES". Set the Cardinality as 0...N. Make it a Singleton Node. Give a method name in supply function column by name "GENERATE_TREE".
    Then we will create attributes required for the tree column. We require 5 attributes
       1. Attribute which contains the current level of the node. Create an attribute called "NODE_LEVEL" of type STRING.
       2. Attribute which contains the parent level of the node. Create an attribute called "PARENT_LEVEL" of type STRING.
       3. Attribute which contains the contents of the node. Create an attribute called "NODE_CONTENT" of type STRING.
       4. Attribute which contains X or Space depending upon the node is expanded or not. Create an attribute called "EXPANDED" of type WDY_BOOLEAN.
       5. Attribute which contains X or Space depending upon the type of the node, whether the node is a branch or a leaf. Create an attribute called "IS_LEAF" of type WDY_BOOLEAN.
    Click on the layout tab of the view. Add UI element of type Table, give the name as 'Tree Table'. Bind the DATASOURCE property of the table to the AIR_LINES node of the view context.
    Give heading to the table as "Booking Details".
    Right click on table node crated and chose Insert Master Column.
    Name it as "TREE_NODE" and chose TreeByKeyTableColumn from the dropdown
    Bind the 4 properties with context attributes we have already created.
    Expanded -> Expanded.
    Is_leaf     -> Is_leaf.
    Parent_key -> Parent_level
    Row_key   -> Node_level
    Give heading to the tree node in the text field.
    Insert a cell editor in the tree column and chose the type as Text view.
    Bind the text property of the text view to the NODE_CONTENT attribute of the context.
    Similarly create a table column to display the second column i.e. Node type.
    Right click -> Insert table column -> Give the heading in the text property of the header (Node Type).
    Right click -> Insert Cell Editor -> Bind the text property to NODE_TYPE attribute of the context.
    Click on the Methods tab of the view. You will find the method of type supply function which we created during the creation of node. Double click and write the following code.
    METHOD generate_tree .
    Ideally this code must go to a method of a class which will return four internal tables
    start of Model code
    TYPES : BEGIN OF ty_scarr,        " Air line Table
             carrid TYPE s_carr_id,
            END OF ty_scarr.
    TYPES : BEGIN OF ty_spfli,        " Flight Connection Table
             carrid TYPE s_carr_id,
             connid TYPE s_conn_id,
            END OF ty_spfli.
    TYPES : BEGIN OF ty_sflight,      " Flight Table
             carrid TYPE s_carr_id,
             connid TYPE s_conn_id,
             fldate TYPE s_date,
            END OF ty_sflight.
    TYPES : BEGIN OF ty_sbook,        " Flight Booking Table
             carrid TYPE s_carr_id,
             connid TYPE s_conn_id,
             fldate TYPE s_date,
             bookid TYPE s_book_id,
            END OF ty_sbook.
    DATA : lt_scarr TYPE TABLE OF ty_scarr.
    DATA : lt_spfli TYPE TABLE OF ty_spfli.
    DATA : lt_sflight TYPE TABLE OF ty_sflight.
    DATA : lt_sbook TYPE TABLE OF ty_sbook.
    DATA : ls_scarr TYPE  ty_scarr.
    DATA : ls_spfli TYPE  ty_spfli.
    DATA : ls_sflight TYPE ty_sflight.
    DATA : ls_sbook TYPE  ty_sbook.
    SELECT carrid
      FROM scarr
      INTO TABLE lt_scarr
      UP TO 2 ROWS.
    IF lt_scarr[] IS NOT INITIAL.
      SELECT carrid connid
        FROM spfli
        INTO TABLE lt_spfli
        FOR ALL ENTRIES IN lt_scarr
        WHERE carrid EQ lt_scarr-carrid.
        IF lt_spfli[] IS NOT INITIAL.
          SELECT carrid connid fldate
            FROM sflight
            INTO TABLE lt_sflight
            FOR ALL ENTRIES IN lt_spfli
            WHERE carrid EQ lt_spfli-carrid
            AND connid EQ lt_spfli-connid.
    For an additional level of branching
           IF lt_spfli[] IS NOT INITIAL.
               SELECT carrid connid fldate bookid
                 FROM sbook
                 INTO TABLE lt_sbook
                 FOR ALL ENTRIES IN lt_sflight
                 WHERE carrid EQ lt_sflight-carrid
                 AND connid EQ lt_sflight-connid
                 AND fldate EQ lt_sflight-fldate.
           ENDIF.
        ENDIF.
    ENDIF.
    End of Model code
    Start of code for generation the tree
    data declaration
      DATA lt_table TYPE wd_this->elements_air_lines.
      DATA ls_table LIKE LINE OF lt_table.
      DATA lvl1_index TYPE string.
      DATA lvl2_index TYPE string.
      DATA lvl3_index TYPE string.
      DATA lvl4_index TYPE string.
    Level 1
    LOOP AT lt_scarr INTO ls_scarr.
      lvl1_index = sy-tabix.
      condense lvl1_index.
      create a row
        ls_table-node_level       = lvl1_index.     " 1 st level
        ls_table-parent_level     = ''.             " No parent
        ls_table-node_content     = ls_scarr-carrid.
        ls_table-node_type        = 'Air Line'.
        ls_table-is_leaf          = abap_false.
        INSERT ls_table INTO TABLE lt_table.
        clear ls_table.
    Level 2
    LOOP AT lt_spfli INTO ls_spfli.
      lvl2_index = sy-tabix.
      condense lvl2_index.
      create a row
        concatenate lvl1_index `.` lvl2_index into ls_table-node_level.
        ls_table-parent_level     = lvl1_index.     " Parent 1 st level
        ls_table-node_content     = ls_spfli-connid.
        ls_table-node_type        = 'Flight Connection'.
        ls_table-is_leaf          = abap_false.
        INSERT ls_table INTO TABLE lt_table.
        clear ls_table.
    Level 3
    LOOP AT lt_sflight INTO ls_sflight.
      lvl3_index = sy-tabix.
      condense lvl3_index.
      create a row
        concatenate lvl1_index `.` lvl2_index `.` lvl3_index into ls_table-node_level.
        concatenate lvl1_index `.` lvl2_index into ls_table-parent_level.
        ls_table-node_content     = ls_sflight-fldate.
        ls_table-node_type        = 'Flight'.
        ls_table-is_leaf          = abap_true.
        INSERT ls_table INTO TABLE lt_table.
        clear ls_table.
    If you want an additional level it can be programmed like this
    Level 4
    *LOOP AT lt_sbook INTO ls_sbook.
    lvl4_index = sy-tabix.
    condense lvl4_index.
      create a row
       concatenate lvl1_index `.` lvl2_index `.` lvl3_index `.` lvl4_index into ls_table-node_level.
       concatenate lvl1_index `.` lvl2_index `.` lvl3_index into ls_table-parent_level.
       ls_table-node_content     = ls_sbook-bookid.
       ls_table-node_type        = 'Booking'.
       ls_table-is_leaf          = abap_true.      " as its the final level in our hier archy
       INSERT ls_table INTO TABLE lt_table.
    ENDLOOP.
    ENDLOOP.
    ENDLOOP.
    ENDLOOP.
    bind all the elements
      node->bind_table(
        new_items            =  lt_table
        set_initial_elements = abap_true ).
    ENDMETHOD.

  • How to Delete a Specific Cell in a Matrix + plz Give sample code for Lost F

    hello there !!!!
    i m in Great Trouble please help me out..
    i have to search for a specific Column n then i have to validate that portion, similarly after validating i have to add update delete all the fuction apply... so please help me i m very upset.
    Public Sub HandleEventts_Allowance(ByVal FormUID As String, ByRef pVal As SAPbouiCOM.ItemEvent, ByRef EventEnum As SAPbouiCOM.BoEventTypes, ByRef BubbleEvent As Boolean)
            Try
                Dim Count As Int32
                If FormUID.Equals("Allowance") Then
                    If (pVal.BeforeAction = True) And (pVal.ItemUID = "1") And (pVal.EventType = SAPbouiCOM.BoEventTypes.et_CLICK) Then
                        If pVal.Row = 0 Then
                            'BubbleEvent = False
                        End If
                        o_Matrix = SBO_Application1.Forms.Item(FormUID).Items.Item("MatAllow").Specific
                        Count = o_Matrix.RowCount()
                        SBO_Application1.MessageBox("Matrix Count is " & o_Matrix.RowCount)
                        Validate(pVal, EventEnum, FormUID, BubbleEvent)
                    End If
                End If
            Catch ex As Exception
                SBO_Application1.MessageBox(ex.Message)
            End Try
        End Sub
        Public Sub Validate(ByRef pval As SAPbouiCOM.ItemEvent, ByRef EventEnum As SAPbouiCOM.BoEventTypes, ByVal FormUID As String, ByRef BubbleEvent As Boolean)
            Dim Row, ii As Integer
            o_Matrix = SBO_Application1.Forms.Item(FormUID).Items.Item("MatAllow").Specific
            o_Matrix.FlushToDataSource()
            Try
                For Row = 2 To o_Matrix.RowCount
                    StrName = Convert.ToString(DBtable.GetValue("CardCode", Row - 1)).Trim()''' i got Error over there n rest of my code is also not working pls...
                    StrUId = Convert.ToString(DBtable.GetValue("U_AlwID", Row - 1)).Trim()
                    StrEnter = Convert.ToString(DBtable.GetValue("U_SupEnter", Row - 1)).Trim()
                    StrExist = Convert.ToString(DBtable.GetValue("U_SupExist", Row - 1)).Trim()
                    If Row - 1 < DBtable.Rows.Count - 1 Or (Not (StrName.Equals(String.Empty) And StrUId.Equals(String.Empty) And (StrEnter.Equals(String.Empty) Or StrExist.Equals(String.Empty))) And (Row - 1 = DBtable.Rows.Count - 1)) Then
                        If (Not StrName.Equals(String.Empty)) And ((StrUId.Equals(String.Empty) Or StrEnter.Equals(String.Empty)) Or StrExist.Trim.Equals(String.Empty)) Then
                            SBO_Application1.StatusBar.SetText("Invalid values provided!Blank values not vllowed", SAPbouiCOM.BoMessageTime.bmt_Short, SAPbouiCOM.BoStatusBarMessageType.smt_Error)
                            BubbleEvent = False
                            Exit Sub
                        End If
                        For ii = Row To DBtable.Rows.Count - 1
                            If Convert.ToString(DBtable.GetValue("ColName", ii)).Trim().Equals(StrName.Trim()) Then
                                SBO_Application1.StatusBar.SetText("Invalid Allowance ID: Duplication Not Allowed", SAPbouiCOM.BoMessageTime.bmt_Short, SAPbouiCOM.BoStatusBarMessageType.smt_Error)
                                oForm.Mode = SAPbouiCOM.BoFormMode.fm_UPDATE_MODE
                                BubbleEvent = False
                                Exit Sub
                            End If
                        Next
                        If CDbl(StrName) < 0 Then
                            SBO_Application1.StatusBar.SetText("Invalid values provided!Blank values not vllowed", SAPbouiCOM.BoMessageTime.bmt_Short, SAPbouiCOM.BoStatusBarMessageType.smt_Error)
                            BubbleEvent = False
                            Exit Sub
                        End If
                    End If
                Next Row
            Catch ex As Exception
                SBO_Application1.MessageBox(ex.Message)
            End Try
        End Sub

    Hello there
    sir i want to Add Update and delete these three basic operation onto the Matrix, Sir u game me a Sample code of Delete a specific Column...
    Sir can u do me a favour pls leave every thing n just told me how to update a matrix ,like i have to fill the matrix field through the DATABASE table now i want to update the DataBase table from the matrix..
    i just only know thta i have to fill back database table with the help of FLUSHTODATABASE()
    here is my Sample Code...n i have to update in the validate portion...
    Public Sub HandleEventts_Allowance(ByVal FormUID As String, ByRef pVal As SAPbouiCOM.ItemEvent, ByRef EventEnum As SAPbouiCOM.BoEventTypes, ByRef BubbleEvent As Boolean)
            Try
                Dim oCellValue As SAPbouiCOM.EditText
                If FormUID.Equals("Allowance") Then
                    If (pVal.ItemUID = "MatAllow") Then
                        If pVal.Row = 0 Then Exit Sub
                        o_Matrix = SBO_Application1.Forms.Item(FormUID).Items.Item("MatAllow").Specific
                        If (pVal.Row > o_Matrix.RowCount) Then Exit Sub
                        oForm = SBO_Application1.Forms.Item(FormUID)
                        If (pVal.ItemUID = "1" Or EventEnum = SAPbouiCOM.BoEventTypes.et_CLICK) Then
                            o_Matrix = SBO_Application1.Forms.Item(FormUID).Items.Item("MatAllow").Specific
                            If pVal.ColUID = "ColName" And pVal.BeforeAction = True Then
                                If pVal.Row = 0 Then Exit Sub
                                oCellValue = CType(o_Matrix.Columns.Item(pVal.ColUID).Cells.Item(pVal.Row).Specific(), SAPbouiCOM.EditText)
                                If (oCellValue.Value.Trim().Equals(String.Empty) And o_Matrix.RowCount <> pVal.Row) Then
                                    SBO_Application1.StatusBar.SetText("Invalid Allowance ID: Blank Value Not Allowed", )
                                    oCellValue.Active = True
                                    BubbleEvent = False
                                    Exit Sub
                                End If
                            End If
                        End If
                    End If
                End If
                Validate(pVal, EventEnum, FormUID, BubbleEvent)
            Catch ex As Exception
                SBO_Application1.MessageBox(ex.Message)
            End Try
        End Sub
    Public Sub Validate(ByRef pval As SAPbouiCOM.ItemEvent, ByRef EventEnum As SAPbouiCOM.BoEventTypes, ByVal FormUID As String, ByRef BubbleEvent As Boolean)
            Dim str, str1 As String
            Dim checkbox1, Checkbox2 As SAPbouiCOM.CheckBox
            Dim o_Matrix As SAPbouiCOM.Matrix
            Dim Sum As Integer
            Dim oRecordset As SAPbobsCOM.Recordset
            Dim Container As Integer
            Dim Count As Int32
            o_Matrix = SBO_Application1.Forms.Item(FormUID).Items.Item("MatAllow").Specific
            oRecordset = o_CompanyObj.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset)
            Try
                For Count = 0 To DBtable.Rows.Count - 1
                    CodeFill = Convert.ToString(DBtable.GetValue("Name", Count).Trme())
                    NameID = Convert.ToString(DBtable.GetValue("ColUID", Count).Trim())
                    Price = Convert.ToString(DBtable.GetValue("ColPrice", Count).Trim())
                    Quantity = Convert.ToString(DBtable.GetValue("ColQuant", Count).Trim())
                    Total = Convert.ToString(DBtable.GetValue("ColTotal", Count).Trim())
                    checkbox1 = o_Matrix.Columns.Item("ColSEnter").Cells.Item(Count).Specific
                    Checkbox2 = o_Matrix.Columns.Item("ColSExist").Cells.Item(Count).Specific
                    If (checkbox1.Checked = True) And (Checkbox2.Checked = True) Then
                        Dim Sql As String
                        Sql = "Update [@Supplier] Set U_Price=' " & Price & " ',U_ID=" & NameID & "Where Name ='" & CodeFill & " '"
                        oRecordset.DoQuery(Sql)
                    End If
                Next Count
                SBO_Application1.MessageBox("Record was Updated")
            Catch ex As Exception
                SBO_Application1.MessageBox(ex.Message)
            End Try
        End Sub

  • How to create a database for sample code from Tutorial/Book?

    I want to try out the sample code from [http://shop.oreilly.com/product/0636920013471.do] for the book SQL Pocket Guide 3rd Ed.
    I have downloaded the oracle vm/appliance for oracle 11g2 and I have started sqlplus as sysdba.
    I'm feeling overwhelmed with these links describing how to create a database:
    [http://www.adp-gmbh.ch/ora/admin/creatingdbmanually.html]
    [http://tldp.org/HOWTO/Oracle-7-HOWTO-3.html]
    [http://www.adp-gmbh.ch/ora/admin/creatingdbmanually.html]
    (1) What is the command to list the existing databases?
    (2) What is the command to delete an existing database?
    (3) When creating a new database with the create database command, is it necessary to specify the logfile, character set, national character set, datafile, sysaux datafile, undo tablespace, temp table space? Do these have reasonable defaults? I'm not sure what proper directories are to specify for Linux and the examples are for windows.
    Can someone give me a simplified create database command to create a database called 3rdEdPocketGuide? Should I follow the example at [http://tldp.org/HOWTO/Oracle-7-HOWTO-3.html] and instead of orcl use 3rdEdPocketGuide?
    (4) What command do I use to execute the script that comes with the book SQL Pocket Guide 3rd Ed? This is the script that has all the drop table, create table and insert commands in it.
    (5) What command do I use in sqlplus to set the current default database prior to running this script? Perhaps this is the connect command? I don't want my script to create tables in the system database.
    (6) I tried the command "connect 3rdEdPocketGuide" and it prompted for a password! Yikes! What password? Do I need to specify a password when I create a database? I cannot tell if I have successfully created such a database or it is just prompting me for a password to thwart malicious users. Is it is possible to create databases which don't require a password or maybe a zero length password?
    Thanks
    Siegfried
    Edited by: user8816970 on Sep 26, 2012 12:01 PM
    Edited by: user8816970 on Sep 26, 2012 12:18 PM

    user8816970 wrote:
    Paul,
    Thanks! I tried changing my profile name to siegfried but I'm not seeing the change...
    Anyway, I'm trying your suggestion to use SQL Developer which was already installed in the virtual box appliance and I cannot figure out how to get a connection.
    When I use the defaults of sid=xe, port=1521, hostname=localhost and specify
    username=sysdba
    password=
    I get status: failure - test failed: listener refursed connection with the following error: ORA 12505, TNS: listener does not current know of sid given.
    So I try sid=orcl and that works better: status: failure - test failed: ORA-01017: invalid username/passowrd; login denied
    OK, sqlplus let me in with out a password, why does not this work?
    So I try checking the box for "OS Authentication" and I get the same error!
    Hoek: I tried searching the documentation and found "3 Exploring Oracle Database with SQL Developer" at http://docs.oracle.com/cd/E11882_01/appdev.112/e10766/toc.htm but following those directions did not help. Can you be more specific? The directions were for a tutorial and I need to know what the passwords are for the database set up with [http://www.oracle.com/technetwork/database/enterprise-edition/databaseappdev-vm-161299.html|http://www.oracle.com/technetwork/database/enterprise-edition/databaseappdev-vm-161299.html] . I also found [http://docs.oracle.com/cd/E11882_01/appdev.112/e10766/tdddg_connecting.htm#CEGHFHIG|http://docs.oracle.com/cd/E11882_01/appdev.112/e10766/tdddg_connecting.htm#CEGHFHIG] but that did not help either.
    Everyone:
    Do I need to create a user using SQL*Plus first so I can login with "Oracle SQL Developer" so I create my database called? What would be the "create user" command I would execute?
    OK, so I run sqlplus and issue these commands
    create user siegfried identified by abc ;
    grant connect to siegfried ;
    connect siegfried/abc;
    Now, how do I create a database? In Microsoft SQL Server one has to create a database first and if you just start creating tables without creating a database first, the tables will be created in the system database and this is usually undesirable.
    Sometimes a database is known in the java connection string as the catalog. Is there any such analog in oracle SQL plus?
    So now what do I do? I want to create a bunch of tables using my script I downloaded from 3rd Ed SQL Pocket Guide. Does my new user "siegfried" have the right to create tables? I guess I could try but I don't want to create tables in the system database.
    I noticed I can also use "Oracle SQL Developer" to connect with my new "siegfried" account. It seems that I should have been able to connect with sysdba... strange.
    So now I am connected in the "Oracle SQL Developer" and I see no list of databases.
    Thanks!
    Siegfried
    >Paul,
    Thanks! I tried changing my profile name to siegfried but I'm not seeing the change...
    Anyway, I'm trying your suggestion to use SQL Developer which was already installed in the virtual box appliance and I cannot figure out how to get a connection.
    When I use the defaults of sid=xe, port=1521, hostname=localhost and specify
    username=sysdba
    password=
    I get status: failure - test failed: listener refursed connection with the following error: ORA 12505, TNS: listener does not current know of sid given.
    So I try sid=orcl and that works better: status: failure - test failed: ORA-01017: invalid username/passowrd; login denied
    OK, sqlplus let me in with out a password, why does not this work?
    So I try checking the box for "OS Authentication" and I get the same error!
    Hoek: I tried searching the documentation and found "3 Exploring Oracle Database with SQL Developer" at http://docs.oracle.com/cd/E11882_01/appdev.112/e10766/toc.htm but following those directions did not help. Can you be more specific? The directions were for a tutorial and I need to know what the passwords are for the database set up with [http://www.oracle.com/technetwork/database/enterprise-edition/databaseappdev-vm-161299.html|http://www.oracle.com/technetwork/database/enterprise-edition/databaseappdev-vm-161299.html] . I also found [http://docs.oracle.com/cd/E11882_01/appdev.112/e10766/tdddg_connecting.htm#CEGHFHIG|http://docs.oracle.com/cd/E11882_01/appdev.112/e10766/tdddg_connecting.htm#CEGHFHIG] but that did not help either.
    Everyone:
    Do I need to create a user using SQL*Plus first so I can login with "Oracle SQL Developer" so I create my database called? What would be the "create user" command I would execute?
    OK, so I run sqlplus and issue these commands
    create user siegfried identified by abc ;
    grant connect to siegfried ;
    connect siegfried/abc;
    above does NOT use SQL*Net to connect to the instance
    >
    Now, how do I create a database? In Microsoft SQL Server one has to create a database first and if you just start creating tables without creating a database first, the tables will be created in the system database and this is usually undesirable.
    Sometimes a database is known in the java connection string as the catalog. Is there any such analog in oracle SQL plus?
    So now what do I do? I want to create a bunch of tables using my script I downloaded from 3rd Ed SQL Pocket Guide. Does my new user "siegfried" have the right to create tables? I guess I could try but I don't want to create tables in the system database.
    I noticed I can also use "Oracle SQL Developer" to connect with my new "siegfried" account. It seems that I should have been able to connect with sysdba... strange.
    So now I am connected in the "Oracle SQL Developer" and I see no list of databases.SQL Developer can only connect to the instance via SQL*Net
    >
    Thanks!
    Siegfrieda database in SQL Server is same as schema/user in Oracle

  • How to create the Sap script & Layout Set (wants sample code)

    Hi All ,
    Can you please provide me the step by step procedure
    to create the Sap script & Layout Set .(please provide sample
    code/links /docs for layout & print program).
    Regards
    Rahul

    hi,
    go through the following links  what i found to create sap script.
    http://www.thespot4sap.com/Articles/SAPscript_Introduction.asp
    http://abapliveinfo.blogspot.com/2008/01/free-sapscript-made-easy-46-book.html
    http://www.thespot4sap.com/articles/SAPscript_example_code.asp
    http://idocs.de/www3/cookbooks/sapscript/sapscript_1/docu.htm
    http://idocguru.com/www5/cookbooks/sapscript/sapscript_1/example.htm
    www.geocities.com/wardaguilar25/sapscript-tutorial.html
    http://logosworld.de/www3/cookbooks/sapscript/sapscript_8/docu.htm
    how to create a  scripts?give steps?
    https://forums.sdn.sap.com/click.jspa?searchID=1811669&messageID=2969311
    https://forums.sdn.sap.com/click.jspa?searchID=1811669&messageID=2902391
    https://forums.sdn.sap.com/click.jspa?searchID=1811669&messageID=3205653
    https://forums.sdn.sap.com/click.jspa?searchID=1811669&messageID=3111402
    http://www.sap-img.com/sapscripts.htm
    http://sappoint.com/abap/
    http://www.henrikfrank.dk/abapexamples/SapScript/sapscript.htm
    http://help.sap.com/saphelp_crm40/helpdata/en/16/c832857cc111d686e0000086568e5f/content.htm
    http://www.sap-basis-abap.com/sapabap01.htm
    http://www.sap-img.com/sapscripts.htm
    http://searchsap.techtarget.com/tip/1,289483,sid21_gci943419,00.html
    http://sap.ittoolbox.com/topics/t.asp?t=303&p=452&h2=452&h1=303
    http://www.sapgenie.com/phpBB2/viewtopic.php?t=14007&sid=09eec5147a0dbeee1b5edd21af8ebc6a
    Other Links

  • Can I get a sample code on how to use CL_GUI_ALV_GRID........

    Can I get a sample code and documents on how to use CL_GUI_ALV_GRID, cl_gui_custom_container. Or cl_salv_table
    I want to create an ALV report and pick my columns with header information.
    Thanks,
    Eric.
    Moderator Message: There are enough sample codes and documents on how to use CL_GUI_ALV_GRID. Please search for them.
    Edited by: kishan P on Nov 12, 2010 10:53 AM

    Hi Eric Adinku,
    There are many reports available. In SE38 check reports starting with BCALV & SALV. Few examples include :
    BCALV_EDIT_01
    BCALV_EDIT_02
    Thanks & Regards,
    Faheem.

  • Class mapping sample code error

    Hi !
    There is an error in a Developers guide mapping sample code: p.156-157.
    (Examples 7.11,7.12 and 7.13).
    For example, in 7.12 we have:
    <class name="Tabloid" persistence-capable-superclass="Magazine">
    <extension vendor-name="kodo" key="jdbc-class-map" value="flat"/>
    .... indicator extensions ...
    .... field metadata ...
    </class>
    instead of jdbc-use-class-map in the key attrribute of the extention tag.
    Please, fix it.
    Best regards,
    Alex.

    Actually the sample is correct. It shows the mapping information if you
    are using metadata extensions in place of .mapping files. To map a class
    via metadata extensions, you use the "jdbc-class-map" extension key.
    This is distinct from the "jdbc-use-class-map" key, which you can use to
    tell the mapping tool what kind of mapping it should create. So in sum:
    jdbc-class-map: Used at runtime by the MetaDataMappingFactory to map a
    class to its schema.
    jdbc-use-class-map: Used at dev time by the MappingTool to indicate that
    the user wants a specific type of mapping to be installed.

  • How to run the sample code using the sdk?

    Hi,
    I want to run the jsp code from the enterprize sdk available in the sdn community. Can any one tell me how to execute these jsp sample codes and what is the pre-requisite regarding the set up.
    I already have the deployment ready.
    thanks
    AMar

    Hi Amar,
    To execute samples code, it is same what is required for normal J2EE application.
    Make sure add all the jars to your web application.
    These jars can be found on your BO server installation if windows.
    For BOE XI 3.x
    C:\Program Files\Business Objects\common\4.0\java\lib
    C:\Program Files\Business Objects\common\4.0\java\lib\external
    For BOE XI R2
    C:\Program Files\Business Objects\common\3.5\java\lib
    C:\Program Files\Business Objects\common\3.5\java\lib\external
    Thanks,
    Praveen.

Maybe you are looking for

  • DWebBrowserEvents2 Overwritten with Reader 9.1

    Why does Adobe Reader overwrite this key: HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Interface\{34A715A0-6587-11D0-924A-0020AFC7AC4D}\Type Lib?  What is it used for?  If it's overwriten by another application will that cause a problem for Adobe Reader?

  • Safari-Is there any way to stop the tab bar from disappearing when you scroll down?

    It's really annoying.  I know tapping it makes it come back, but still.

  • Wi-Fi to Orange Livebox Problem

    Can anyone help me connect my ipt to my Orange livebox?? My ipod finds the livebox but i put the wep key in and it just says unable to connect!! I've put the code in numerous times and made sure the livebox is available for new connections but can't

  • Importing photos from a pc

    I am new to imac and am having a difficult time with trying to get photos from my old dell to iphotos. Have made a cd (I think) from the photos in the dell. When I put the cd in the imac it makes noise but nothing happens. No icon or instructions or

  • Kadb, x86, tip

    I'm trying to setup a test environment between two Solaris 9 x86 machines connected via a serial cable. I have followed the instructions in Chapter 18 (Debugging) of the Solaris 8 "Writing Device Drivers". My host system can connect to the test syste