Converting (,) from a field

In atable I have a field called Address which contains addresses like 1234 c dr, la, 00000 want to remove all the coma(,) with blank please advice me how to do it I'm new for sql
BR

Use REPLACE :
TEST@db102 SQL> select replace('1234 c dr, la, 00000',',') from dual;
REPLACE('1234CDR,L
1234 c dr la 00000
TEST@db102 SQL>                                          the above to remove commas, to change them with blanks :
TEST@db102 SQL> select replace('1234 c dr, la, 00000',',',' ') from dual;
REPLACE('1234CDR,LA,
1234 c dr  la  00000
TEST@db102 SQL>                                                           to update the table you can do :
SQL> update <table> set <column> = replace(<column>,',',' ');

Similar Messages

  • Converting from NUMC field in R/3 into  CHAR field on BW

    Hi all,
       We have a field (COST) which is defined as NUMC 6 with DECIMAL 2 like12.50 in R/3. I want to receive it into CHAR field on BW side.
      What is the simplest way to convert it, please. What should be the CHAR length in BW?
    Thanks in advance.
    Regards.

    Hi Venkat,
    I don't have any sample code for this. You will create one local variable in the trasnfer routine. Accept the NUMC value in that local variable and then assign that local variable to the final destination i.e. to CHAR InfoObject.
    PB

  • Converting a timestamp field from GMT to EST

    Hi
    I have to convert the timestamp field coming from the source from GMT to EST.
    CREATE TABLE X
    TS_FIELD TIMESTAMP(6)
    INSERT INTO X VALUES('07-JAN-13 02.00.06.597000 PM');
    INSERT INTO X VALUES('07-FEB-13 02.00.06.676000 PM');
    INSERT INTO X VALUES('07-MAR-13 12.36.14.260000 PM');
    INSERT INTO X VALUES('07-APR-13 12.36.56.713000 PM');
    INSERT INTO X VALUES('07-MAY-13 03.46.48.800000 AM');
    I need to convert the above timestamp field from GMT to EST in 24hour format.
    I tried it doing,but I am getting hours conflict with the day error.
    I have tried the below one and milliseconds being set to zero's
    select X,
    TO_timestamp(TO_CHAR(CAST(FROM_TZ(CAST(TO_DATE(TO_CHAR(X,'YYYY-MM-DD HH24:MI:SS.SSSSS')
    ,'YYYY-MM-DD HH24:MI:SS.SSSSS')
    AS TIMESTAMP),'GMT') AT TIME ZONE 'US/EASTERN' AS DATE),'YYYY-MM-DD HH24:MI:SS.SSSSS'),'YYYY-MM-DD HH24:MI:SS.SSSSS')
    FROM X
    Please help me in this regard.I am trying in parallel as well.
    Thanks in advance
    KVB

    Not clear what are you trying to achieve..Why are you casting as DATE?
    SQL>  select ts_field,
      2          cast(from_tz(ts_field,'GMT') AT TIME ZONE 'EST' as timestamp) t
      3   FROM X;
    TS_FIELD                                                                    T
    07-JAN-13 02.00.06.597000 PM                                                07-JAN-13 09.00.06.597000 AM
    07-FEB-13 02.00.06.676000 PM                                                07-FEB-13 09.00.06.676000 AM
    07-MAR-13 12.36.14.260000 PM                                                07-MAR-13 07.36.14.260000 AM
    07-APR-13 12.36.56.713000 PM                                                07-APR-13 07.36.56.713000 AM
    07-MAY-13 03.46.48.800000 AM                                                06-MAY-13 10.46.48.800000 PM

  • ABAP code needed to convert from 0calmonth2 & 0calyear to 0calmonth

    Hi SAP GURUS,
    Can anybody give me the ABAP code to convert from 0calmonth2 and 0calyear to 0calmonth.and please suggest me whether i have to write start routine or end routine in transformations.
    Thanks ALL.

    hi,
    in the transformation map 0calmonth2 and 0calyear to the 0calmonth field, and from drop down choose routine.
    there will be an area where it will be mentioned write your piece of code below this line.
    paste the below code:
    Concatenate source_fields-0calmonth2 source_fields-0calyear into result.
    also delete the line result = .
    save the routine and execute the package.
    regards,
    Arvind.

  • How do I use pots on my client machine to change values, from the field, on my server machine and all other client machines?

    I am using Lookout 4.5, build 12, and I am having a problem concerning pots. I have data tables created for the different size sewer stations my system monitors. For each station, there are setpoints for starting and stopping of the pumps. I want to be able to change the setpoints for a station on the client file using a pot and have it change on all other machines running Lookout. I did this in 3.8 using DDE, but I don't want to use DDE anymore.
    I created a pot on the client file and URL'ed it to a pot on the server. On the server I created a table with a generic member "A" named "Lead Setp" and then created a member "A1" named
    "C5_1LeadSetp" then a member "A2" named "C3_1LeadSetp" and so on....
    In this table I connected the generic member "A" to the Pot I created on the server, and I connected A1 to its corresponding setpoint signal coming in from the field.
    On the client file I connected (in the table similar to the one on the server but with all signals for the station) the "A1" member to the setpoint signal coming in from the field, and I connected the "A" member to the Pot I created on the client file which is URL'ed to the pot on the server file.
    But, when I change the value of the pot on the client file, only the pot on the server and the "A" member in the table on the server change to the value of the pot on the client. The "A1" member whose screen I am changing the values from on the client does not change! This is the last thing I have to do and my file will be completely converted to 4.0. Does anyone have any ideas?
    Thanks for any responses..
    GBWY
    Jason
    Jason Phillips

    Hi Jason,
    If I understood your task correctly, you want to change the Setpoints on the Server DataTable using Pots from different clients. And also reflect these changes on the clients locally.
    You correctly remoted the Pots on the Clients to the corresponding Pots on the Server. However, you do not need tables on your clients. All you need is Expressions on each client to the particular cell of the Clients.
    So, to summarize: On the Server, the Pots write to the DataTable. And since the Pots on the Clients are remoted to these Pots on the Server, you can affect any change using these Pots. Because of the common remote source (Server Pots, i.e.) all of these Pots will always be in sync. Finally, to get the Setpoints on the Clients, just insert Expressio
    ns to the Server's DataTable.
    I am attaching a simple example (exmpl.zip) which does this. There are three processes -- My_Server, My_Client1, and My_Client2. I had them setup on the same machine so the paths are all process relative, but you can always change those to computer relative or absolute and move the client processes to diff machines.
    Hope this helps.
    Rgds,
    Khalid
    Attachments:
    exmpl.zip ‏12 KB

  • Applescript to convert from AW6 spreadsheets to Excel

    I have an iMac (iMac12,2) running OS 10.9.1 with applications of Pages’09 (4.3), Pages (5.0.1), Numbers’09 (2.3) and Numbers (3.0.1) available.
    One of my laptops is a MBA (MacBookAir1,1) that I have kept at 10.6.8 with applications Appleworks (6.2.2) and Appleworks (6.6.9) available.
    Recently, I converted many CWWP documents from AW6 into Pages.  This was done on the iMac with an Applescript that copied a file (AnyDocumentCWWP) to the desktop as a file named AWV6, opened AWV6 with Pages’09, saved the result as AWV6.Pages, applied the creation date and modify dates of the original to AWV6.Pages, moved the new AWV6.Pages to the original directory and moved the original file to the trash, renamed AWV6.Pages to the original filename (excluding extension).  The Pages version of the original document does not preserve the formatting of the CWWP, but the content was now discoverable with Spotlight.  Since I was primarily concerned with the content, I would consider the conversion effort successful enough.
    I performed the same sort of process on the iMac with CWSS documents converting from AW6 into Numbers.  Here the results were less successful.  I discovered that many of the converted spreadsheets had cells where the cell contained the last calculated value in substitute for the formula originally present -or- Numbers was unable to open the CWSS spreadsheet due to size limitations.  Neither problem occurs when the file is converted on the MBA by Appleworks into an Excel format.  For those CWSS files that did not properly convert to Numbers, I would like to perform a conversion to Excel.
    When a given spreadsheet is manually opened on the MBA with either version of Appleworks, one can “Save as” using several formats of Excel.  That operation will preserve the formula which cannot be recognized in Numbers’09. An example of this issue is when a spreadsheet has a cell that contains a formula with the function “ISNUMBER”.  When I manually open a CWSS in Appleworks (either 6.2 version), I can Save As Excel Win 97 … or Excel Mac 98 … creating an XLS file that preserves the formula.
    I have attempted two techniques with Applescript to be able to convert my CWSS documents into XLS format.  Neither seem to work.
    The first technique is very similar to a few lines extracted from a canned script found on http://macscripter.net/viewtopic.php?id=8296 the relevant code is:
    set theSprTranslator to "Excel Win 97, 2000, XP 2002 spr"
    tell application "System Events" to set mfpath to get path of disk item ("~/desktop/" as string)
    set newfile to (mfpath & "AWV6" as string)
    set NewFilename to AWV6XLS
    tell application "AppleWorks 6"
        activate
        open newFile -- alias reference is ok
        save using translator theSprTranslator with NewFilename and replace
        close front document without saving
    end tell
    When this did not work, I attempted a scripted GUI solution as a second option.  The GUI code I had found at http://stackoverflow.com/questions/17348326/applescript-to-save-an-appleworks-do cument-wont-compile-end-tell-vs-end-easy is:
    tell application "System Events"
             tell process "AppleWorks"
                     click menu item "Save As…" of menu "File" of menu bar 1
                     click menu button "File Format" of window "Save : AppleWorks 6"
                     click menu item "Excel Mac 5 spreadsheet" of menu 1 of menu button  "File Format" of window "Save : AppleWorks 6"
                     keystroke return
             end tell
    end tell
    Unfortunately there is no “File Format” menu button, after a bit of further research, I discovered UI Browser and wrote my own Applescript equivalent:
    set mytempwork1 to AWV6
    set theSprTranslator to “Excel Win 97, 2000, XP 2002 spr”
    tell application "Finder" to open file (mytempwork1 as string) of the desktop
    tell application "System Events"
        tell process "AppleWorks"
            click menu item "Save As…" of menu "File" of menu bar 1
            tell text field 1 of window "Save : AppleWorks 6"
                set value to "XX" & mytempwork1
            end tell
            click pop up button 1 of group 1 of window "Save : AppleWorks 6"
            click menu item theSprTranslator
            —click radio button 2 of group 1 of window "Save : AppleWorks 6"
            —delay 3
            —click radio button 1 of group 1 of window "Save : AppleWorks 6"
        end tell
    end tell
    tell application "System Events"
        tell process "AppleWorks"
            delay 10 — <<<<<IF YOU CLICK ON THE BUTTON WHILE IN THIS DELAY, THE SCRIPT WILL BEHAVE PROPERLY
            click button "Save" of window "Save : AppleWorks 6"
            delay 1
        end tell
    end tell
    This GUI script behaves almost as I would like.  It seems to ignore the setting of the “pop up button 1” unless I actually intervene while the script is running and I click on the button.  When I do so, the script runs as intended.
    Is there a way to force Appleworks to recognize the Applescripted value of the “clicked” menu item?

    Hello
    As far as I know, there's no need to resort to GUI scripting. The problem in exporting in AppleScript is that AppleWorks 6 only accepts typeChar (TEXT) data as translator name while AppleScript string has become always being represented as typeUnicodeText (utxt) since OS X 10.5. This makes passing translator name to save command difficult but there's a workaround method as shown in the sample code below. The |TEXT|() handler does the job. Tested with AppleWorks 6.2.4 under 10.6.8.
    main()
    on main()
        set export_translator to "Excel Mac 98, 2001 spreadsheet"
            "Excel Mac 5 spreadsheet"
            "Excel Mac 98, 2001 spreadsheet"
            "Excel Win 5 spreadsheet"
            "Excel Win 97, 2000, XP 2002 spr"
        set export_translator_TEXT to my |TEXT|(export_translator)
        set src to (path to desktop)'s POSIX path & "in.cwk"
        set dst to (path to desktop)'s POSIX path & "out.xls"
        set srca to src as POSIX file as alias
        set dsta to touch(dst) as POSIX file as alias
        tell application "AppleWorks 6"
            --return export translators
            open srca
            tell document 1
                if document kind = spreadsheet document then
                    save in dsta using translator export_translator_TEXT
                end if
                close saving no
            end tell
        end tell
    end main
    on touch(f)
        do shell script "touch " & f's quoted form
        return f
    end touch
    on |TEXT|(u)
            string u : source text
            return data : «data TEXT...» representing u converted to MACROMAN encoding
        do shell script "u=" & u's quoted form & "; printf '%s' \"$u\" | iconv -f UTF-8 -t MACROMAN | xxd -p"
        run (run script "
    script
        «data TEXT" & result & "»
    end script")
    end |TEXT|
    Hope this helps,
    H

  • Converting from String to float and vice versa

    I'm interested in people's thoughts on where common logic to convert between various field types should be stored in an application to minimise code duplication and maintenance.
    I have an application which consists of an object and a jPanel which displays and maintains this object. The object contains a number of private float fields which are accessed by getters and setters. The jPanel contains one jTextField for each of the fields within the object.
    Currently I have numerous lines of code in the jPanel to convert between the values needed by the getters and setters in the object (i.e. float) and the String value used by the jTextFields. This code handles cases where the String value may be blank or null.
    I've thought that one alternative to having all this conversion/validation code in the jPanel is to create a second set of getters and setters for each field which accept and return String values.
    What do people think about this? Is it advisable for only have one getter and setter for a variable? Should I put the conversion/validation logic for each field into a seperate common routine?
    Thanks,
    James.

    Hi James,
    You should go with whatever works best for you. By creating multiple getters and setter you save yourself from repeating the same code throughout your program.

  • Remove carriage returns from a field in an oracle table

    I have a field that is defined as a LONG in my oracle table; the data contained in this field has carriage returns/line feeds (it's free form text); as i'm selecting data from this field, i need the carriage returns removed so that the data from this field all appears on one line.
    I tried using the TRANSLATE function to convert the carriage returns to something else, but that doesn't work.
    Example:
    Select comment from Notes:
    COMMENT
    the applicant called for an appointment;
    an exam was scheduled for 4/1/05 at 9am;
    called applicant to confirm app
    this needs to be extracted as: "the applicant called for an appointment; an exam was scheduled for 4/1/05 at 9am; called applicant to confirm app"
    How can i do this? Can the decode function be used to remove the carriage returns in this field?

    when i used translate its giving correctly,
    SQL> ed
    Wrote file afiedt.buf
    1 select translate('the applicant called for an appointment;
    2 an exam was scheduled for 4/1/05 at 9am;
    3 called applicant to confirm app
    4 this needs to be extracted as: "the applicant called for an appointment; an exam was scheduled
    5 How can i do this? Can the decode function be used to remove the carriage returns in this field
    6* ',' ') from dual
    SQL> /
    TRANSLATE('THEAPPLICANTCALLEDFORANAPPOINTMENT;ANEXAMWASSCHEDULEDFOR4/1/05AT9AM;CALLEDAPPLICANTTOCONF
    the applicant called for an appointment; an exam was scheduled for 4/1/05 at 9am; called applicant t
    SQL> ed
    Wrote file afiedt.buf
    1 select 'the applicant called for an appointment;
    2 an exam was scheduled for 4/1/05 at 9am;
    3 called applicant to confirm app
    4 this needs to be extracted as: "the applicant called for an appointment; an exam was scheduled
    5* How can i do this? Can the decode function be used to remove the carriage returns in this field
    SQL> /
    'THEAPPLICANTCALLEDFORANAPPOINTMENT;ANEXAMWASSCHEDULEDFOR4/1/05AT9AM;CALLEDAPPLICANTTOCONFIRMAPPTHIS
    the applicant called for an appointment;
    an exam was scheduled for 4/1/05 at 9am;
    called applicant to confirm app
    this needs to be extracted as: "the applicant called for an appointment; an exam was scheduled for 4
    How can i do this? Can the decode function be used to remove the carriage returns in this field?
    SQL>

  • Convert from PSE10 to Lightroom - metadata concerns

    After one too many frustrations with PSE, I've been looking for an alternative program.  I don't care about editing - metadata (Organizer type features) are my focus.  I looked at a few non-Adobe programs - a big problem with them is I can't import my PSE10 catalog, with 12,000 photos.  On the PSE forum, the most common advice was to go to Lightroom, so I was holding out hope for that.  However, I've played with the LR 5 trial for half a day now, and as far as I can tell, it doesn't make good use of the PSE catalog either!  This is very disappointing for me, but I'm wondering if some of you folks can show me things I'm missing.
    I'm looking into to converting from PSE10 to LR 5 on a Windows 7 machine.  I have about 12,000, half TIFs from scanned images and half JPGs from digital cameras.  As I said, I only care about metadata management.  My focus is genealogy, so getting the original dates of scanned pictures captured is very important, and these often are only roughly known.
    My main issue is that it seems to me that LR is taking the metadata from the photo files, not the catalog.  I used the LR feature "Upgrade Photoshop Elements Catalog".  The reason I say this is for two reasons:
    (1) When PSE10 writes tags to files, it adds to any tags that are already there.  So although PSE10 shows only the updated set of tags in the GUI, the photo files have both old and new tags.  After doing the LR Upgrade PSE Catalog, I'm seeing old and new tags.  It appears to be ignoring what is in the catalog and looking at the file.  (As far as I know, the old tags are not present in the PSE catalog anymore, so it can't be looking at the converted catalog.)
    (2) PSE10 allow you to tag photos with incomplete dates (e.g. no time, no day and/or no month).  But if PSE10 has an incomplete date, it won't write it to the file (very annoying for working with historical photos).  But LR does not show these partial dates, it only shows complete dates.  In this case, I'm not sure if LR is showing the metadata in the photo files, or if it dropped the PSE10 catalog date info during the "Upgrade".
    So my main question is, am I missing something with regards to the import, or am I correct in my impression that this "Upgrade PSE Catalog" isn't doing much of anything?  (ExifTool shows all the metadata in the photo files -- much more complete than LR for that matter -- so what am I gaining by importing the PSE catalog into LR?)
    A couple other miscellaneous questions if I may:
    -- In PSE10, there is a notes field in the metadata, which goes into XMP-album in the photo files.  Does LR not support this?  As far as I can tell, LR supports only a few XMP namespaces, with no support for others.
    -- In LR in the Folder pane, I have no scroll bar, so I can only see the first few entries.  This seems to be a serious bug to me.  Or am I missing something?
    -- It appears in LR that one cannot show your entire catalog in the main pane sorted by folder then by file name.  Is this correct?  (This also seems to be a major drawback to me!)
    -- When I try to change the date of a photo (Edit Capture Time in LR), it forces you to enter a complete date/time, unlike PSE10.  Overall, it is much easier to manage these dates in PSE, it seems.  Does LR handle incomplete dates to any level?
    -- When I did my PSE import/"Upgrade", it assigned the wrong file names to some of my photos (it used file names from other photos in the catalog).  Is this a known issue?
    I imagine I have a very unusual vantage point, but at this point it seems that PSE is far superior to LR!  And I'm not happy with PSE10!!  Anyways, thanks in advance for your input.  Sorry about the long post - wasn't sure if I should divide it up or not.
    Bill

    This is a reply to the post from John R. Ellis...
    You mentioned "Adobe has never bothered to fix...".  Note that the last post by Michel B in this thread
    http://www.elementsvillage.com/forums/showthread.php?t=78779&page=2
    indicates that PSE11 can handle this.
    You say "After importing.... I used ExifTool to append..."  Did you do this file by file, or with a script?  A Perl script?  (The reason I ask is that I would have to learn Perl, so I would have to decide how much this means to me...)
    Regarding your suggestion to use fake dates
    "(e.g. "1970" => "1/1/1970 00:00:00")"
    I've been aware of this since I read it in your psedbtool material a year or two ago, but I've resisted making such changes.  When dealing with historical photos, you want the ambiguity.  In fact, you'd like to use things like "About 1970" and such.  I wish the photo metadata community would get on board with that.
    Regarding your point about catalog conversion, for me it sounds like it would be just as good to import the photo files directly.  (Better for me, I think, since converting the catalog seems to lose the folder hierarchy in the LR Folder view for some reason.  However, if I'm going to import the photo files directly, then LR has no advantage for me over any other program that I can see.  The ExifTool GUI utility does a much better job with the metadata in general - the key drawback for me being the fact that you have to type out the keywords each time you want to add one to photo.  Looking at the ACDSee Pro trial, that appears to handle metadata better than any of the Adobe products - the critical drawback being that it uses its proprietary XMP namespaces, meaning interoperability issues.  LR has drawbacks for me, such as not being able to sort by folder than filename in the main view pane and the lack of support for other XMP namespaces (and the Folder pane scrollbar thing).  So at this point I'm in a state of depression.  As far as I can tell, I only have a partial solution to my problems - upgrade from PSE10 to PSE11.  Truly a depressing notion!!

  • Convert from Comma notation to Decimal Notation, Any FM ?

    Hi Experts,
    I am looking to convert from Europe format to US format for Quantity & amount fields, I mean
    e.g. Europe:  12.3456,78 -> US: 12,3456.78
    pls. i can not use offsetting, replace, pattern, overlay, concatenate etc.
    So, pls. let me know that, Is there any SAP FM for this purpose of DECIMAL NOTATION conversion?
    thanq
    Edited by: Srinivas on Feb 22, 2008 10:48 PM

    use.
    Replace all occurances of ',' in w_value with '.'.
    Check this thread.
    REgarding converting  ','  TO  '.'

  • How to truncate currency part from total field in SAP B1?

    Hi All,
    Is there any way to truncate the currency part (for exp USD 23.45 should give 23.45) from total columns while fetching its value thru DI API (without left-trailing the varchar part)?
    many thanks in advance..
    regards,
    Binita

    i can only give you some hints for your function
    make some globals like (to now the sap separator)
            oRecordSet.DoQuery("SELECT DecSep, ThousSep, MainCurncy FROM OADM");
            if (oRecordSet.RecordCount > 0)
                globals.SBODecSep = Convert.ToString(oRecordSet.Fields.Item("DecSep").Value);
                globals.SBOThousSep = Convert.ToString(oRecordSet.Fields.Item("ThousSep").Value);
                globals.SBOMainCurncy = Convert.ToString(oRecordSet.Fields.Item("MainCurncy").Value);
    and define a system global (to set the windows separator)
    public static string SysDecSep = ",";
    the problem is that the windows country settings are also important.
    regards
    David

  • Converting from Entourage to Mail for Mac on OS 10.5.6

    Can anyone give me tips on how to convert from Entourage 2008 for Mac to Mail for Mac. I am on version 10.5.6 OS. Also, I have some files on Outlook (windows PC) that I want to move over to the mail including old emails, addresses, etc.
    Any tips with specific instructions and other hints as to what to consider that won't transfer would be appreciated

    OK
    Scenario 1
    (assumes Mobile Me membership)
    Set up Apple Mail in your Mac Pro, iMac, ... and set preferences in Mobile Me to include email stuff
    Login to MacBook Pro, Air, ... other iMac, other Mac Pro > enter mobile me stuff there and Bongo! Apple Mail on the second machine synchronizes with stuff set in Apple Mail on first machine.
    Turn on the iPhone > Bongo! iPhone Mail will show the same email accounts as on the other two machines described above.
    One does not need to re-enter stuff for the sake of it. Mobile Me makes it easy.
    On the second machine create a new email account or add an existing one to Apple Mail > Bongo! Details updated on the first machine and also on iPhone.
    Scenario 2
    (assumes preferences set in Mobile Me for calendars and contacts)
    Create new contacts in each of the three machines (that is the first machine, the second machine and the iPhone) > Bongo! Details will be synched across all three machines (okay, iPhone calls them contacts and the other machines call it Address Book but ... )
    Create appointments in Calendar or iCal in ... well, they are synched as well.
    Scenario 3
    On a PC, away from each of the three machines detailed above. Need contacts and calendars (yes, iCal and iPhone calendar support multiple calendars with an overview summary of all, yep, ALL calendars.
    Fire up Safari on the PC (Safari 4 seems sweet) > go to www.me.com > enter username and password of Mobile Me account > Bongo!
    I suppose it may also be a time thing in sense that many people, self included, might recall a time when every calendar needed every detail keying in (other computer operating systems running different applications). Sure there were import/export utilities or thunks bet these tended to be at variance with each other regarding ordering of data fields, field parameters and in my own experience a bad import though swift was less reliable than re-keying in the details.

  • Convert from Word 2007 to Acrobat Pro 9; bookmark issue

    When converting from Word 2007 to PDF using Acrobat Pro 9, enabling "Convert Word Headings to Bookmarks", not only are Headings converted to bookmarks, but bulleted text (styles), as well.  I attached the subsequent PDF, but this forum does not permit the document attachment.  I really only want to show the Headings.  (It may be noteworthy to mention that when using this same set of styles in Word 2003 and Acrobat Pro7 the conversion was seamless.)
    Does anyone know how to correct this?  I have reviewed my Word styles and the issue does not appear to be on the document level.  Am I missing some obscure setting?
    I'd appreciate any help.
    Thanks.
    -PS

    I had a similar situation occur when converting Word 2007 docs to Acrobat Pro 9 Extended via the PDFMaker (Acrobat add-on tab in Word 2007), and I want to share a workaround. In summary, I had extraneous bookmarks appear in the PDF (heading 3s, body text, XE Index tags, etc.)  that I did not select to be in the PDF.  I contacted Adobe's support and ended up talking for approx. 2.5 hrs to 2 different reps with no solution. They reproduced the issue on their end, but couldn't figure out how to fix this. I recently upgraded to Tech Comm Suite 2.5 from 1.0. The Word 2007 conversion to PDF via Acrobat Pro 8.x worked fine.
    Scenario: I have 400-page user guides that I am required to publish as 'Press Quality' with navigable bookmarks to certain headings in the PDF. I have to generate the PDF via the Acrobat Add-On tab in Word, since I do not want to manually insert bookmarks in the PDF for 400 page documents (as you would when using the Adobe Print driver or 'Save As PDF' operation).
    In the Adobe PDF Maker dialog, I have the following Application Settings selected in the General tab:
    Create Bookmarks
    Add Links
    In the Bookmarks tab,  I originally had only two Elements selected for bookmarks:
    Heading 1 (a Word Heading already present) as the Level 1 Bookmark.
    Table of Contents Bookmark (a Word Style I created) as the Level 2 Bookmark.
    As a result, the Convert Word Headings to Bookmarks and Convert Styles to Bookmarks were both enabled in the Bookmarks tab.
    The resulting PDF contained extraneous bookmarks that I did NOT select, such as Heading 2s, 3s, even body text - too much to clean up for 400-page documents! Additionally, and this was annoying too - I noticed that all bookmarks appeared as Level 1 Bookmarks, making the PDF Bookmarks really messy. I converted multiple Word 2007 documents with the same results.
    How I resolved the issue:
    In the Word 2007 document, open the Styles window, select all instances of the specific Word Heading (in my case, Heading 1). All instances of the selected Word Heading will be selected in the doc.
    Click the New Style icon in the lower left part of the Styles window.
    In the Create New Style from Formatting dialog, create a new style name (e.g., I created H1).
    Just to be sure to NOT create the new style from an existing Word Heading, I selected (no style) in the Style Based On field.
    Configure the remaining formatting items as necessary, and then click OK. All of the selected instances from the old Word Heading style are now changed to the new style created (in my case, H1).
    Click the Preferences tab in the Acrobat add-on tab in Word 2007, and open the Bookmarks tab.
    Remove the old Word Heading (in my case, it was Heading 1) so it no longer will be included as a Bookmark in the PDF.
    Select the new Word Style that you created (in my case, H1) to be generated as the Level 2 bookmark. Note: My original Level 1 bookmark, "TOC Bookmark," is still selected. Now, only the Convert Word Styles to Bookmarks is enabled in the Bookmarks tab.
    Generate the PDF once again via the PDFMaker, and no extraneous bookmarks appear in the PDF.
    Note: I also noticed that when Index tags (XE tags) were present in an element selected to be a bookmark in the PDF (such as my new style, H1), they also appeared in the PDF Bookmarks pane. I just moved the XE tags down to the body text so they would no longer appear in the PDF.
    Question for discussion: Maybe there is a bug in the PDFMaker when both Convert Word Headings to Bookmarks and Convert Styles to Bookmarks are selected? The extraneous bookmarks do not appear in my PDF when only Convert Word Styles is selected.

  • Cannot convert from ImageIcon to Image

    Please tell me why I'm getting error: I have seen many example of this both in this forum and other places.
    Type mismatch: cannot convert from ImageIcon to Image[b]
    Thanks in advance
    here's my code, I m using fileupload to load my images:
    <%@ page import="java.util.List"%>
    <%@ page import="java.util.Iterator"%>
    <%@ page import="java.io.File" %>
    <%@ page import="java.io.IOException"%>
    <%@ page import="java.io.*"%>
    <%@ page import="java.awt.image.ImageFilter"%>
    <%@ page import="java.awt.Color"%>
    <%@ page import="java.awt.image.ImageProducer"%>
    <%@ page import="java.awt.image.ReplicateScaleFilter"%>
    <%@ page import="java.awt.image.FilteredImageSource"%>
    <%@ page import="javax.swing.*"%>
    <%@ page import="java.awt.image.BufferedImage"%>
    <%@ page import="java.awt.Image"%>
    <%@ page import="java.awt.Graphics"%>
    <%@ page import="java.awt.Toolkit"%>
    <%@ page import="com.sun.image.codec.jpeg.JPEGCodec"%>
    <%@ page import="com.sun.image.codec.jpeg.JPEGImageEncoder"%>
    <%@ page import="org.apache.commons.fileupload.servlet.ServletFileUpload"%>
    <%@ page import="org.apache.commons.fileupload.disk.DiskFileItemFactory"%>
    <%@ page import="org.apache.commons.fileupload.*"%>
    <%@ page contentType="text/html;charset=UTF-8" language="java" %>
       <center><table border="2">
            <tr><td><h1>Your files  uploaded </h1></td></tr>
       <%
        //setting the target w + h
         int targetWidth=0;
        int targetHeight=0;
         //session values used to rename loaded image.
         String adID = "EM225";
         session.setAttribute("adID", adID);
         String fileName = null;
      // String imageid = request.getParameter("imgageID");
         boolean isMultipart = ServletFileUpload.isMultipartContent(request);
         if (!isMultipart) {
         } else {
            FileItemFactory factory = new DiskFileItemFactory();
            ServletFileUpload upload = new ServletFileUpload(factory);
            List items = null;
            try {
                 items = upload.parseRequest(request);
            } catch (FileUploadException e) {
                 System.out.println("Unable to load image" +  e.getMessage());
            Iterator itr = items.iterator();
            while(itr.hasNext()) {
                   FileItem item = (FileItem) itr.next();
                   if (item.isFormField()) {
                        //String name = item.getFieldName();  //This will get the field names. for eg. if u have a hidden field this line will get the hidden filed name.
                    //value = item.getString();
                        //out.println(value);
                   } else {
                 try {
                      File fullFile  = new File(item.getName());
                      fileName = fullFile.getName();
                      String id = (String)session.getAttribute("adID");
                      String newName =  id+fileName;
                      //passing renamed uploaded image.
                      Image sourceImage = new ImageIcon(Toolkit.getDefaultToolkit().getImage(newName));
                      // Calculate the target width and height
                      float scale = 50/100;
                      targetWidth = (int)(sourceImage.getWidth(null)*scale);
                      targetHeight = (int)(sourceImage.getHeight(null)*scale);
                      BufferedImage resizedImage = this.scaleImage(sourceImage,targetWidth,targetHeight);
                      ByteArrayOutputStream baos = new ByteArrayOutputStream();
                   JPEGImageEncoder encoder = JPEGCodec.createJPEGEncoder(baos);
                      encoder.encode(resizedImage);
                   byte[] b = baos.toByteArray();
                     // File tosave = new File(getServletContext().getRealPath("/"),resizedImage);
                     // item.write(tosave);
                 } catch (Exception e) {
                      System.out.println("Unable to save the image" + e.getMessage());
       %>
       <%!
       private BufferedImage scaleImage(Image sourceImage, int width, int height){
            ImageFilter filter = new ReplicateScaleFilter(width,height);
            ImageProducer producer = new FilteredImageSource
            (sourceImage.getSource(),filter);
            Image resizedImage = Toolkit.getDefaultToolkit().createImage(producer);
            return this.toBufferedImage(resizedImage);
        private BufferedImage toBufferedImage(Image image){
            image = new ImageIcon(image).getImage();
            BufferedImage bufferedImage = new BufferedImage(image.getWidth(null),image.getHeight(null),BufferedImage.TYPE_INT_RGB);
            Graphics g = bufferedImage.createGraphics();
            g.setColor(Color.white);
            g.fillRect(0,0,image.getWidth(null),image.getHeight(null));
            g.drawImage(image,0,0,null);
            g.dispose();
            return bufferedImage;
       %>
        </table>
       </center>
        </table>
       </center>

    Hello. So, it's difficult to say, but the following line is probably the cause of the problem.:
    Image sourceImage = new ImageIcon(Toolkit.getDefaultToolkit().getImage(newName));Basically, you are making an ImageIcon by passing an image, but perhaps you can just replace the line with this:
    Image sourceImage = Toolkit.getDefaultToolkit().getImage(newName);I use ImageIcon when reading from files, such as:
    BufferedImage image = ImageIO.read(file);
    Icon icon = new ImageIcon(image);However, if you already have an Image, I don't see why you just can't just use the Image reference. Perhaps someone more wise will have a more concise answer. Good luck.

  • Button to Convert from Dynamic to Static form Attach to Email then Convert Back

    I have this working, but only on reader 9. What I need is a different way to accomplish this. The scenario is I have a dynamic form that we fill out for a customer. We want to email it to a customer, but we don't want them to have access to our calculations.
    So I want a button that turns the dynamic form into a static form than attach the static PDF to an email, than I want it to change back to dynamic on the original.
    This works in acrobat reader 9, but not in reader 7.
    my code for the submit button is this
    for (var nPageCount = 0; nPageCount < xfa.host.numPages; nPageCount++) {
    var oFields = xfa.layout.pageContent(nPageCount, "field");
    var nNodesLength = oFields.length;
    // Set the field property.
    for (var nNodeCount = 0; nNodeCount < nNodesLength; nNodeCount++) {
    oFields.item(nNodeCount).access = "readonly";
    that code works fine in acrobat reader 7 and later, the problem comes in when I switch it back to dynamic with this code in the postsubmit event
    for (var nPageCount = 0; nPageCount < xfa.host.numPages; nPageCount++) {
    var oFields = xfa.layout.pageContent(nPageCount, "field");
    var nNodesLength = oFields.length;
    // Set the field property.
    for (var nNodeCount = 0; nNodeCount < nNodesLength; nNodeCount++) {
    oFields.item(nNodeCount).access = "open";
    This nets me an error on opening the form in any reader previous to reader 9:
    Invalid enumerated value:postSubmit
    Anyone have any ideas?
    If there is a way to do this in formcalc I would rather do it that way, because there are a few fields I'd like to hide before the customer gets it as well.
    Thanks

    Well, I don't know, but one might suspect that one of these times when the DNG converter gets upgraded (and it does from time to time) one of the things that might happen is that at some point Nikon might free up all its proprietary stuff in a NEF and that would be available to Adobe to include in an upgrade.
    Hmmmm, in that case it might be worthwhile to reconvert NEFs--but that would mean redeveloping all those digital negatives.... Whoa....maybe I better stop this line of reasoning before I really upset you and others who have converted from NEFs. You are discovering some of the reasons why I don't do that just to save a little space--and be free of sidecars, of course (a noble motive, for sure).
    I do convert for other shooters who are clients, but I always store the NEFs and DINGs and derivatives together in the same folder, which of course raises storage loads, but that is the way they want them.
    Try the DNG UtoU forum. There are some very knowledgeable guys over there.

Maybe you are looking for

  • Did an install of Flash Player for FF

    ... and much to my surprise it installed a 'Macaffee, screw your computer app'. I hate anything they provide because they assume everyone is stupid and try to control your system, ultimately leading to system instability. I hope Adobe stops this stup

  • TRYING TO REPLY TO PREVIOUS ANSWER TO MY PROBLEM

    I have been trying to reply to an answer I got to a question I posted the first of the month.  When I replied to the message "eidnolb" sent me on March 5, it came back No Such Address."  I have been unable to find my question in the forum list anywhe

  • ESS webdynpro personal information iView SSN field

    Dear Support, I am working with Personal Data WebDynpro iView (sap.com/essuspdata/Per_Personal_US) in EP 6.0 SP18 and ECC 5.0.  Currently, the SSN field is editable.  How can I disable this feature. Please advise. Thanks, -Bharath

  • After upgrade from SP2010 Foundation to Enterprise, services/features are missing

    Hi I recently upgraded the SharePoint 2010 Foundation, that was installed with TFS 2012, to Enterprise. The upgrade went through.  The Products and Configuration wizard ran through to 100% without errors, however there are no Enterprise services avai

  • How to solve error code 150:30?

    Restarting my computer does not solve the error code 150:30, licensing problem. Any suggestions?