How to use {tag_pagecontent} correctly?

I've been all over the place and haven't seen anything about how {tag_pagecontent} works and what it is used for.  I understand it is the "editable region " of the page but it doesn't work like I would think it should.  To make matters worse, there seems to be no documentation out there for me to learn.  For now, I've been hiding them in places on the page where they won't be noticed and using Dreamweaver's editable regions.
What I've gotten from Youtube, Google and BC is that you NEED one, and only one, instance of {tag_pagecontent} in each template.  That's it - that's all I know.
It seems from trial and error that you can put {tag_pagecontent} inside one set of HTML tags to make it editable.  Got it.  So if I want to make a paragraph editable in BC's in-context editing tool I can do this:
<body>
<p>{tag_pagecontnet}</p
</body>
That seems to work fine.  But what happens with multiple paragraphs, div's, h1's, etc?  Plus Dreamweaver has editable regions for templates as well. For example:
<!-- Start Tabs -->
<div class="span6">
<h3>Tabs</h3>
<!-- Start Tabs Widget -->
<div class="tabs">
<!-- Start Tabs Nav -->
  <ul>
  <li><a href="#tabs-1">Who we are</a></li>
  <li><a href="#tabs-2">What we do</a></li>
  <li><a href="#tabs-3">How we do it</a></li>
  </ul>
  <!-- End Tabs Nav -->
  <!-- Start Tab -->
  <div id="tabs-1">
  <p>Proin elit arcu, rutrum commodo, vehicula tempus, commodo a, risus. Curabitur nec arcu. Donec sollicitudin mi sit amet mauris. Nam elementum quam ullamcorper ante. Etiam aliquet massa et lorem. Mauris dapibus lacus auctor risus. Aenean tempor ullamcorper leo. Vivamus sed magna quis ligula eleifend adipiscing. Duis orci. Aliquam sodales tortor vitae ipsum. Aliquam nulla. Duis aliquam molestie erat. Ut et mauris vel pede varius sollicitudin. Sed ut dolor nec orci tincidunt interdum. Phasellus ipsum. Nunc tristique tempus lectus.</p>
  </div>
  <!-- End Tab -->
  <!-- Start Tab -->
  <div id="tabs-2">
  <p>Morbi tincidunt, dui sit amet facilisis feugiat, odio metus gravida ante, ut pharetra massa metus id nunc. Duis scelerisque molestie turpis. Sed fringilla, massa eget luctus malesuada, metus eros molestie lectus, ut tempus eros massa ut dolor. Aenean aliquet fringilla sem. Suspendisse sed ligula in ligula suscipit aliquam. Praesent in eros vestibulum mi adipiscing adipiscing. Morbi facilisis. Curabitur ornare consequat nunc. Aenean vel metus. Ut posuere viverra nulla. Aliquam erat volutpat. Pellentesque convallis. Maecenas feugiat, tellus pellentesque pretium posuere, felis lorem euismod felis, eu ornare leo nisi vel felis. Mauris consectetur tortor et purus.</p>
  </div>
  <!-- End Tab -->
  <!-- Start Tab -->
  <div id="tabs-3">
  <p>Mauris eleifend est et turpis. Duis id erat. Suspendisse potenti. Aliquam vulputate, pede vel vehicula accumsan, mi neque rutrum erat, eu congue orci lorem eget lorem. Vestibulum non ante. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Fusce sodales. Quisque eu urna vel enim commodo pellentesque. Praesent eu risus hendrerit ligula tempus pretium. Curabitur lorem enim, pretium nec, feugiat nec, luctus a, lacus.</p>
  <p>Duis cursus. Maecenas ligula eros, blandit nec, pharetra at, semper at, magna. Nullam ac lacus. Nulla facilisi. Praesent viverra justo vitae neque. Praesent blandit adipiscing velit. Suspendisse potenti. Donec mattis, pede vel pharetra blandit, magna ligula faucibus eros, id euismod lacus dolor eget odio. Nam scelerisque. Donec non libero sed nulla mattis commodo. Ut sagittis. Donec nisi lectus, feugiat porttitor, tempor ac, tempor vitae, pede. Aenean vehicula velit eu tellus interdum rutrum. Maecenas commodo. Pellentesque nec elit. Fusce in lacus. Vivamus a libero vitae lectus hendrerit hendrerit.</p>
  </div>
  <!-- End Tab -->
</div>
<!-- End Tabs Widget -->
</div>
<!-- End Tabs -->
All of those regions need to be editable.  I can replace ONE of them with a {tag_pagecontent} and make that editable but what about the rest?  I've been using the editable regions in Dreamweaver and they work fine but the content isn't editable in-context in BC's tool.
Surely there is something I am missing... There can't be a limit of just ONE editable element when pages have become quite complex these days... right?  I want to say "this is editable and this is editable and this is editable..." but how?
Sorry for the long post, I just can't figure this out!

Hi,
Editable regions can be assigned to both templates and standard pages. Basically they apply to elements like links, divs, images, etc. Here's the reference:
- http://kb.worldsecuresystems.com/839/cpsid_83979.html
- http://kb.worldsecuresystems.com/838/cpsid_83855.html
- http://kb.worldsecuresystems.com/838/cpsid_83856.html
- http://kb.worldsecuresystems.com/838/cpsid_83852.html
A generic example of {page_content} can be sketched like this:
Aside from buliding regular pages, you can also construct (or import) templates in BC. That serves to streamline the process of creating new pages, allowing to user to focus on generating the relevant content for each new page, without bothering for what would be static/repetitive content.  To that extent, a page template can look like this:
<!DOCTYPE html>
<html lang="en" class="no-js">
<head>
<title>YOUR PAGE TITLE</title>
<link href="/StyleSheets/ModuleStyleSheets.css" type="text/css" rel="StyleSheet" />
<script type="text/javascript">var jslang='EN';</script>
<script type="text/javascript" src="/CatalystScripts/ribbon.js"></script>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
</head>
<body>
{tag_pagecontent}
</body>
</html>
While your page can be just this:
<div> <p> Hello World</p><img src="images/img.gif" ></div>
Here's a good reference:
http://bcgurus.com/tuts/site-templates
Kind Regards,
Alex

Similar Messages

  • "Only Get Delta Once" - How to use this correctly?

    Hi folks,
    we are currently facing the following situation:
    We have a data source only being able to deliver full update.
    That's why we proceed as follows:
    1.) Full-Load with Infopackage to PSA
    2.) Delta-Load with DTP from PSA to first-level-DSO (write-optimized)
    3.) Delta-Load with DTP from first-level-DSO to second-level-DSO (standard-DSO). As the activation aggregates all duplicate entries, we are therefore able to deliver a delta to all following data targets (e.g. infocubes)
    What we are now wondering about how to use the flag "Only Get Delta Once" which is available in all Delta-DTPs. The help explains it should be used when creating snapshot-scenarios like ours as each request is only delivered once, even if it gets deleted in the data target.
    But what other benefit would we have when setting this flag? As I mentioned, the snapshot-scenario also works without this flag...
    Could anyone perhaps provide me some more details about this flag and where it should be used?
    Thanks & regards
    bivision

    Hi,
    If you select the option 'Only get delta once', then every request in the PSA will only be loaded into the Data target once. For example. If you load a full request into the PSA through an InfoPackage and then load it to the Cube. In a snapshot scenario, when the new full load comes to the PSA you will need to delete the previous request from the cube before loading the new request.
    But if you delete the previous request from the cube, and not from the PSA - and if you haven't checked the 'Only get delta once' flag, when you execute the DTP, it will load both previous and the new requests from the PSA to the cube. In order to avoid this you have 2 options:
    1. You can delete a request from the PSA after every successful load into the Cube OR
    2. You can check the 'Only get delta once' flag in the DTP so that it won't load any request it has loaded into the cubes previously even if it was deleted from the cube.
    Using the second option de-couples the PSA maintenance from your regular data loading and also saves you an additional step of deleting the PSA request in your process chain.

  • How to Use DLL correctly in LV ?

    I'm trying to use a DLL from former S/W written in C++.
    The DLL is using other DLLs.
    The LV doesn't find the other DLLs although they are in the same directory .
    Can you direct me how to pass this issue ?
    Thanks
    Edo

    > I'm trying to use a DLL from former S/W written in C++.
    > The DLL is using other DLLs.
    > The LV doesn't find the other DLLs although they are in the same
    > directory .
    > Can you direct me how to pass this issue ?
    >
    You are using the DLL node correctly, but the problem is that it is
    Windows looking for the supplementary DLLs, and it has a pretty fixed
    set of places it looks. Putting the supplementary DLLs in the Windows
    System directory definitely works -- this is why so many apps just dump
    them in there. I think that setting your working directory to the
    location of the DLLs will also work, but not real sure about that.
    Greg McKaskle

  • How to use BAPI_INTERFACE_GETDOCU correctly?

    Folks,
    I need to get the list of parameters and their definitions for a specified BAPI. It appears I need to call BAPI_INTERFACE_GETDOCU to get this information. However, there is not enough information on how to call the function correctly. The following .NET code, for example, returns an error that objname or objtype is not specified.
    p.Bapi_Interface_Getdocu(null,   null,   null,  "BAPI_MATERIAL_SAVEDATA",  null, null, null, null, out ret2, ref tbl);
    Can someone please help me on calling this function correctly?
    Thank you in advance for your help.
    Regards,
    Peter

    Hello Peter
    The documentation of BAPI_INTERFACE_GETDOCU is quite verbose:
    FU BAPI_INTERFACE_GETDOCU
    Short Text
         Read BAPI Interface Documentation
    Functionality
         This method reads the interface documentation for a BAPI.
         The method enables you to read out and make available to developers the
         information they need to implement BAPIs correctly.
         The parameters of this method delimit the documentation to be displayed.
         With these parameters you can specify whether you want to display the
         documentation on a business object, method, parameter or field. The BAPI
         interface documentation below can be accessed with this method:
         o   The documentation on the business object, if one of the two
             parameters OBJTYPE or OBJNAME contains a value and the parameters
             METHOD, PARAMETER and FIELD are BLANK.
         o   The documentation on the method, if one of the two parameters
             OBJTYPE or OBJNAME contains a value and the method name is specified
             in the parameter METHOD. The parameters PARAMETER and FIELD must
             also be BLANK.
         o   The docmentation on the parameter, if the parameter name is also
             transferred in the field PARAMETER.
         o   The field name, if the field name is also transferred in the
             parameter FIELD. This is only possible, if a structure has been used
             for the parameter.
    Example
         In this example the documentaion on the BAPI  "Employee.GetList" is
         retrieved without the parameter documentation. It is displayed in
         English (EN) in RTF text format.
         Import Parameter    Value
         OBJTYPE
         OBJNAME             "Employee"
         METHOD              "GetList"
         PARAMETER
         FIELD
         LANGUAGE            "EN"
         TEXTFORMAT          "RTF"
    Notes
         Messages are returned in the parameter RETURN. This parameter
         documentation contains the return codes and their descriptions.
    Parameters
         OBJTYPE
         OBJNAME
         METHOD
         PARAMETER
         FIELD
         LANGUAGE
         TEXTFORMAT
         LINKPATTERN
         RETURN
         TEXT
    Exceptions
    Function Group
         BATG
    I did not find the BAPI immediately in the BOR (transaction SWO1) therefore I searched table SWOTLV with VERB = 'SAVEDATA'. And here I found the BAPI belonging to business object BUS1001006.
    To retrieve data from BAPI_INTERFACE_GETDOCU use the following IMPORTING parameter:
    OBJTYPE = 'BUS1001006'
    LANGUAGE = 'EN'
    TEXTFORMAT = 'RTF'
    I tried to call the BAPI using
    OBJNAME = 'StandardMaterial'
    OBJTYPE = 'SaveData'
    but here I did not retrieve any data.
    I just tried another combination of IMPORTING parameter:
    OBJNAME = 'StandardMaterial'     " no OBJTYPE !!!
    It worked.
    Other textformats are:
    SCR     SAPscript
    ASC     ASCII
    RTF     Rich text format
    HTM     HTML
    Regards
      Uwe

  • Afther repeatedly wrong pass code (iPhone 4) How to use the correct code now?

    Others used repeatedly the wrong pass code on my iPhone 4. I do have the correct code and don't want to loose my content. How to handle now?

    If you no longer are permitted to enter the right passcode, then it's too late to save anything:
    Locked Out, Forgot Lock or Restrictions Passcode, or Need to Restore Your Device: Several Alternative Solutions
    A
    1. iOS- Forgotten passcode or device disabled after entering wrong passcode
    2. iPhone, iPad, iPod touch: Wrong passcode results in red disabled screen
    3. Restoring iPod touch after forgotten passcode
    4. What to Do If You've Forgotten Your iPhone's Passcode
    5. iOS- Understanding passcodes
    6. iTunes 10 for Mac- Update and restore software on iPod, iPhone, or iPad
    7. iOS - Unable to update or restore
    Forgotten Restrictions Passcode Help
                iPad,iPod,iPod Touch Recovery Mode
    You will need to restore your device as New to remove a Restrictions passcode. Go through the normal process to restore your device, but when you see the options to restore as New or from a backup, be sure to choose New.
    You can restore from a backup if you have one from BEFORE you set the restrictions passcode.
    Also, see iTunes- Restoring iOS software.

  • Trying to get into the app store and it asks for my password. The problem is that it is showing an Apple ID I don't use ghosted in. I can't figure out how to use my correct ID.

    Trying to get into the App Store to update some apss. It asks for my password but the problem is that it is showing ghosted an Apple ID I don't use. Can't figure out how to fix it.

    You installed a hacked app, originally from the Mac App Store. It contains the receipt for a different app, downloaded using an account that you don't control. You need to identify and remove the hacked app.
    Important: The app you need to remove is not necessarily the one named in the App Store alert. For example, if the App Store says you need to update "Twitter," the hacked app may be "Angry Birds" or something else entirely. Don't make any assumptions about which app you're looking for. To find it, you have to carry out a systematic search.
    Triple-click anywhere in the line of text below on this page to select it:
    kMDItemAppStoreHasReceipt=1
    Copy the selected text to the Clipboard by pressing the key combination command-C.
    In the Finder, press command-F to open a search window, or select
    File ▹ Find
    from the menu bar. In the search window, select
    Search: This Mac
    from the row of tokens below the toolbar. Below that is a popup menu initially showing Kind. From that menu, select  Other...
    A sheet will drop down. In that sheet, select Raw Query and click OK or press return.
    Now there will be a text box to the right of popup menu. Click in that box and paste (command-V).
    The search window will show all the App Store products you've installed. Compare those search results with the list of your purchases from the App Store. To see the complete list, you may need to unhide hidden purchases. If any apps were download from the App Store using other Apple ID accounts that you control, sign in to the store under each of those ID's and check the purchases.
    At least one of the items listed in the search window is not among your purchases in the App Store. Move each such item to the Trash. You may be prompted for your administrator password. Empty the Trash.
    Log out and log back in. Test.

  • HOW TO USE IDVD CORRECTLY

    When I've try'd to make "projects"(dvds, picture cd's) on idvd my disk only play back a green screen , I would like to know what I am doing wrong so I can correct this problem I am having

    While we all have MacBooks in this forum not all of us use iDVD. There's a iDVD Support Community where everybody uses iDVD. You should also post this question there.   https://discussions.apple.com/community/ilife/idvd

  • How to use indexes correctly in oracle

    Hi guys
    on one table i have indexes on 3 columns in the following order
    a
    b
    c
    When i m writing a select statement in my where clause what should be the order? like
    where
    a='some value' and
    b='some value' and
    c='some value';
    or in reverse order like this
    c='some value' and
    b='some value' and
    a='some value';
    please let me know.
    Thanks

    If you have an index on a,b,c the difference in performance can be on the index order.
    If column "a" has only 2 unique values then the sub values of the index only has 50% of the remaining values, the cost optimizer on Oracle will probably skip the index as an index scan of 50% is slower than a full table scan.
    If a has 100 unique values then the remaining search is only on 1% of the values so is likely to be used.
    As with any optimisation try using
    explain plan for selec x,y,z from a_table
    from where
    a='some value' and
    b='some value' and
    c='some value'
    If the index is not being used firstly try
    analyze table estimate statistics
    sample 10 percent
    for all indexes
    for all indexed columns;
    and failing than try different orders in acceptance environment.

  • StrobeLogger How to use it correctly

    This issue was brought up back in April:
    http://forums.adobe.com/thread/699626?tstart=0
    I've followed the final thread in the suggestion and am using the debug.html file that comes shipped with SMP.  However when I compile StrobeMediaPlayer and run it using debug.html I don't see any of the logger information appearing in the html file.
    I haven't changed anything to the default installation of StrobeMediaPlayer.as file so at the top are the library references:
    CONFIG::LOGGING
    import org.osmf.player.debug.DebugStrobeMediaPlayer;
    import org.osmf.player.debug.LogHandler;
    import org.osmf.player.debug.StrobeLoggerFactory;
    import org.osmf.player.debug.StrobeLogger;
    import org.osmf.logging.Log;
    import org.osmf.elements.LightweightVideoElement;
    In the Constructor is the instantiation of the logger.
    CONFIG::LOGGING
    // Setup the custom logging factory
    Log.loggerFactory = new StrobeLoggerFactory(new LogHandler(false));
    logger = Log.getLogger("StrobeMediaPlayback") as StrobeLogger;
    And at the bottom is the declaration:
    CONFIG::LOGGING
    protected var logger:StrobeLogger = Log.getLogger("StrobeMediaPlayback") as StrobeLogger;
    I presumed that having logging statements such as the below.  Am I completely wrong in presuming that?  Is there something more I need to do to turn logging on using the provided debug.html file?
    I need logging or tracing of some sort turned on as I embark on changing some of the StrobeMediaPlayer source code to suit my needs, without it I will be lost as to know why things are not doing what they are supposed to be doing.
    Regards,
    Rob
    CONFIG::LOGGING
    logger.info("Failed to go to FullScreen. Check if allowfullscreen is set to false in HTML page.");
    CONFIG::LOGGING
    if (_stage.fullScreenSourceRect != null)
    logger.info("Setting fullScreenSourceRect = {0}", _stage.fullScreenSourceRect.toString());
    else
    logger.info("fullScreenSourceRect not set.");
    if (_stage.fullScreenSourceRect !=null)
    logger.qos.rendering.fullScreenSourceRect =
    _stage.fullScreenSourceRect.toString();
    logger.qos.rendering.fullScreenSourceRectAspectRatio = _stage.fullScreenSourceRect.width / _stage.fullScreenSourceRect.height;
    else
    logger.qos.rendering.fullScreenSourceRect = "";
    logger.qos.rendering.fullScreenSourceRectAspectRatio = NaN;
    logger.qos.rendering.screenWidth = _stage.fullScreenWidth;
    logger.qos.rendering.screenHeight = _stage.fullScreenHeight;
    logger.qos.rendering.screenAspectRatio = logger.qos.rendering.screenWidth  / logger.qos.rendering.screenHeight;

    Hi Andrian,
    That didnt work either :-(
    This is what I did:
    1) Loaded OSMF source code into Flash Builder 4
    2) Modified/Added both in the osmf-build-config-10-1.xml file and osmf-build-config.xml files:
    <compiler>
          <!-- Turn on generatation of accessible swfs. -->
          <accessible>false</accessible>
          <define>
            <name>CONFIG::LOGGING</name>
            <value>true</value>
          </define>
          <define>
            <name>CONFIG::DEBUG</name>
            <value>true</value>
          </define>
    also changed the arguments settings in the properties window of the project to:
    -define CONFIG::LOGGING true -define CONFIG::FLASH_10_1 true -define CONFIG::DEBUG true
    3) Recompiled the project
    4) Removed the previous reference from StrobeMediaPlayer project to point to new debug OSMF.swc
    5) Recompiled StrobeMediaPlayer project
    6) Made sure in the default.html file was pointing to newly compiled version of StoreMediaPlayer.swf
    But there is still no information appearing in the html file when i load it?
    I presume this is what you meant when you said I also needed a debug version of the OSMF.swc file ...
    Obviously I am trying to get it to do what your online example is doing:
    http://osmf.org/smptest/debug.html
    Have I missed a step Andrian???
    Regards,
    Rob

  • How to use BAPI_EQUI_CREATE correctly ?

    Hi, Im trying really hard to use BAPI_EQUI_CREATE. For inserting a equipment in existing Function location... but it doesnt work... there is no error... but an new equipment has been generated... I dont see it in on Transaction IH01 or in any table.  Please help, would be very nice ; )
    ... does someone have an example code (with feeding data) ?

    constants: c_b(1) type c value 'B',
                 c_e(1) type c value 'E',
                 c_03(2) type c value '03'.
    Bapi Structures
      data: wa_data_general type bapi_itob,
            wa_data_specific type bapi_itob_eq_only,
            wa_return type bapiret2.
      wa_data_specific-material = matnr.
      wa_data_specific-serialno = serial number.
      wa_data_specific-equicatgry = c_b .
    Call BAPI
      call function 'BAPI_EQUI_CREATE'
        exporting
      EXTERNAL_NUMBER         =
          data_general            = wa_data_general
          data_specific           = wa_data_specific
      DATA_FLEET              =
      VALID_DATE              = SY-DATUM
      DATA_INSTALL            =
       importing
          equipment               = p_equipament
      DATA_GENERAL_EXP        =
      DATA_SPECIFIC_EXP       =
      DATA_FLEET_EXP          =
          return                  = wa_return.
      if not wa_return-type  = c_e.
        call function 'BAPI_TRANSACTION_COMMIT'
          exporting
            wait = 'X'.
      else.

  • How to use Iterator correctly to print out object attributes from  Vector ?

    Dear Java People,
    I have no compilation errors but am not getting output.
    I created a CD class and a Vector to hold all the CDs.
    I think perhaps I am using the Iterator incorrectly in the
    toSting() method. Below is the driver and CD class
    Thank you in advance
    Norman
    import java.util.*;
    public class TryCD
       public static void main(String[] args)
         Vector cdVector = new Vector();
         CD cd_1 = new CD("Heavy Rapper", "Joe", true);
         CD cd_2 = new CD("Country Music", "Sam", true);
         CD cd_3 = new CD("Punk Music", "Mary", true);
         cdVector.add(cd_1);
         cdVector.add(cd_2);
         cdVector.add(cd_3);
         Iterator i = cdVector.iterator();
         while(i.hasNext())
           i.next().toString();
    public class CD
       private String item;
       private boolean borrowed = false;
       private String borrower = "";
       private int totalNumberOfItems;
       private int totalNumberOfItemsBorrowed;
       public CD(String item,String borrower, boolean borrowed)
         this.item = item;
         this.borrower = borrower;
         this.borrowed = borrowed;
       public String getItem()
         return item;
       public String getBorrower()
         return borrower;
       public boolean getBorrowed()
         return borrowed;
       public String toString()
          return getItem() + getBorrower();
    }

    Dear InTrueT,
    The problem with trying to use
    System.out.println()is that it returns void and
    toString() requires a String be returned
    the error messaage says:
    "CD.java": Error #: 354 : incompatible types; found:
    void, required: java.lang.String at line 35
    your advice is appreciated
    NormanYou seem to have misunderstood. toString(), as you say, returns a String. System.out.println(), by a wonderful coincidence of design, accepts a String as a parameter. My suggestion was that you pass the output of one as the input to the other, thus displaying your String on the screen, as I had understood this to be your desire.

  • How to use the method calendar.getTimeInMillis() and setTimeInMillis(bb)

    I have met some problems in writing my programme,I want to know what the time is after every 20 minutes so have written some codes as below ,but the compilar warned me that there are some errors in them ,and I don't know how to use them correctly ,can you help me?
    Thank you very much!
    the code is:
    begin=datime+" 00:00:00";
    Calendar calendar=Calendar.getInstance();
    DateFormat df = DateFormat.getDateInstance();
    Date start=df.parse(begin);
    calendar.setTime(start);
    long aa=calendar.getTimeInMillis();
    calendar.setTimeInMillis(aa);

    Hopefully the following snippet of code will help you out (note that the Date class seems more appropriate for what you need to do):
    import java.util.*;
    import java.text.*;
          String begin="00:00:00";
          SimpleDateFormat df = new SimpleDateFormat("HH:mm:ss");
          df.setTimeZone(TimeZone.getTimeZone("GMT"));
          Date start=new Date();
          try {
             start=df.parse(begin);
          } catch (Throwable e) {
             System.out.println("Invalid time format");
          long aa=start.getTime();   // to get the time in milliseconds
          System.out.println(aa);    // just to see what the answer is (should be zero)
          start.setTime(aa);         // to set the time in milliseconds
    ...V.V.

  • How to use java.sql.Date ?

    hi there:
    I used
    ps.setDate(27, new java.sql.Date(new java.util.Date().getTime()));
    ps.executeUpdate();
    in my code to insert the current date to the 27th column of one table, this column's type is DATE, the database is ORACLE. However, I got the error like this one: ORA-01843: not a valid month.
    I think I incorrectly used the java.sql.Date API to cause this error. So anyone can tell me how to use it correctly?
    Thanks for the answers,
    Sway

    Other columns are all VARCHAR2 type;
    The oracle error message indicated that this is a
    date-related one. 27th are the only column using DATE
    So I came to draw my conclusion that the SQL might be
    wrong.Except that if, for example, the date column is actually at index 26 then Oracle might try to convert the string being passed in (at 26) as a date. But it isn't a date. So then oracle is going to throw an exception indicating that something is wrong - like that the month is invalid.

  • How to use Adobe Edge Web Fonts correctly

    I am a Dreamweaver newbie and am trying to learn how to use it through the tutorials. I am stuck at part 3 trying to use Adobe Edge Web Fonts correctly in my web site. As far as I can tell I have followed the instructions in the tutorial correctly, but the font style effect does not show up on my site. I am working on a Windows 7 machine and using Dreamweaver 5.5. I have copied and pasted the javascript into the correct spot in the head of the index.html page as well as included the font-family name in the CSS file and saved the whole smash. The source code for my index page looks exactly like the sample in the tutorial, and I have tried to view my site in my browser, but no dice. Doesn't display the Edge Web Font style in the web page. I believe I've done everything according to the directions, but I suppose I've missed some small detail. Any suggestions greatly appreciated

    You need to add a <script> to the head of your documents like the example below.  In my example, I'm using all of the aguafina-script and league-gothic fonts.
    <!--Edge Font-->
    <script src="//use.edgefonts.net/aguafina-script:n4:all;league-gothic:n4:all.js"></script>
    CSS:
         h1 {
         font-family: league-gothic, sans-serif;
         font-weight:bold;
         color: #639;
         font-size: 250%;
    A simple way to get the correct codes is to go to Adobe Edge Web Fonts and select the font you wish to use.
    https://edgewebfonts.adobe.com/fonts
    NOTE: You won't see the custom web fonts displayed in Design View, Live View or when previewed locally unless you use a local testing server.  An easier way to test is by uploading the page to your remote server.
    Hope this helps,
    Nancy O.

  • No question, I just wanna say thanks to the person who discovered how to change the correct dns to use FaceTime. The 8.8.8.8. Really work. Genius. Thanks again.

    No question, I just wanna say thanks to the person who discovered how to change the correct dns to use FaceTime. The 8.8.8.8. Really work. Genius. Thanks again.

    solved

Maybe you are looking for

  • Field & Table Name of ER1 Report

    Dear Experts , I am working on customisation of ER1 report, I wanted to know the field names & table name of the below given data. DETAILS OF GOODS OF GOODS MFGD 1.PRODUCT DESCRIPTION 2.CETSH 3.OPENING BALANCE 4 QTY MFGD 5.QTY RECVD 6.CLOSING BALANCE

  • How to get the IP address of smtp server?

    For A record in DNS, we can use Java API InetAddress.getHostAddress() to get the IP address. But for mx record, how to get the IPaddress?

  • Broken slide button

    I have tried syncing, restoring calling support. Stopped in at an att store. All I get is join our maintance program. If we can`t fix it pay us and buy a new phone. I have been with ATT forever and each year progressivley worse. Can anyone help me?

  • Versions of hierarchys

    hi versions of hierarchys?

  • User Last Login Time

    I'm trying to use DS6 built-in functionality for tracking user's last login time. I created a new password policy and enabled pwdKeepLastAuthTime attribute. Then I tried signing into Access Manager. According to the documentation, an attribute pwdLas