Trailing 0's being stripped

I have an application that allows folks to enter version numbers and they should be able to enter 1.10 but that 0 is getting stripped. This is a custom tabular application and I am using collections. The database column is a VARCHAR2. How do I prevent those trailing 0's from being stripped? Below is the code to create the collection, the populate it.
declare
   la_cks wwv_flow_global.vc_arr2;
begin
   if htmldb_application.g_fcs.count > 0 then
      la_cks := htmldb_application.g_fcs;
   else
      la_cks := htmldb_application.g_f07;
   end if;
   htmldb_collection.create_or_truncate_collection('UPDATE_DTL');
   htmldb_collection.create_or_truncate_collection('INSERT_DTL');
   for i in 1..htmldb_application.g_f01.count
   loop
      if htmldb_application.g_f01(i) is not null then
         htmldb_collection.add_member(
             p_collection_name => 'UPDATE_DTL'
            ,p_c001 => htmldb_application.g_f01(i)
            ,p_c002 => htmldb_application.g_f02(i)
            ,p_c003 => htmldb_application.g_f03(i)
            ,p_c004 => htmldb_application.g_f04(i)
            ,p_c005 => htmldb_application.g_f05(i)
            ,p_c006 => htmldb_application.g_f06(i)
            ,p_c007 => la_cks(i));
      else
         htmldb_collection.add_member(
             p_collection_name => 'INSERT_DTL'
            ,p_c001 => htmldb_application.g_f01(i)
            ,p_c002 => htmldb_application.g_f02(i)
            ,p_c003 => htmldb_application.g_f03(i)
            ,p_c004 => htmldb_application.g_f04(i)
            ,p_c005 => htmldb_application.g_f05(i)
            ,p_c006 => htmldb_application.g_f06(i)
            ,p_c007 => la_cks(i));    
      end if;
   end loop;
end;_______________________________________________________________________________________________
DECLARE
   l_cks   wwv_flow_global.vc_arr2;
   j       PLS_INTEGER             := 1;
   vrow    BINARY_INTEGER;
BEGIN
   -- Get original MD5 checksum
   SELECT wwv_flow_item.md5 (sak_co_impl_plan_dtl
                           , sak_co_impl_plan_hdr
                           , cde_co_impl_type
                           , nam_path
                           , nam_file
                           , num_version
                            ) cks
   BULK COLLECT INTO l_cks
     FROM t_co_impl_plan_dtl
    WHERE sak_co_impl_plan_hdr = :p30_sak_co_impl_plan_hdr;
   IF HTMLDB_APPLICATION.g_fcs.COUNT > 0
   THEN
      -- Compare the original checksun, l_cks,
      -- with submitted checksun, htmldb_application.g_fcs
      -- If they are different, raise an error
      FOR i IN 1 .. l_cks.COUNT
      LOOP
         IF HTMLDB_APPLICATION.g_fcs (i) != l_cks (i)
         THEN
            ROLLBACK;
            raise_application_error
                        (-20001
                       ,    'Current version of data in database hs changed '
                         || 'since user initiated update process.'
            RETURN;
         END IF;
      END LOOP;
   ELSE
      -- Compare the original checksun, l_cks,
      -- with submitted checksun, htmldb_application.g_fcs
      -- If they are different, raise an error
      FOR i IN 1 .. l_cks.COUNT
      LOOP
         IF HTMLDB_APPLICATION.g_f07 (i) != l_cks (i)
         THEN
            ROLLBACK;
            raise_application_error
                        (-20001
                       ,    'Current version of data in database hs changed '
                         || 'since user initiated update process.'
            RETURN;
         END IF;
      END LOOP;
   END IF;
   -- update t_co_impl_plan_dtl
   FOR i IN 1 .. HTMLDB_APPLICATION.g_f01.COUNT
   LOOP
      IF HTMLDB_APPLICATION.g_f01 (i) IS NOT NULL
      THEN
         UPDATE t_co_impl_plan_dtl
            SET cde_co_impl_type =
                   REPLACE (HTMLDB_APPLICATION.g_f03 (i), '%' || 'null%'
                          , NULL)
              , nam_path = HTMLDB_APPLICATION.g_f04 (i)
              , nam_file = HTMLDB_APPLICATION.g_f05 (i)
              , num_version = HTMLDB_APPLICATION.g_f06 (i)
          WHERE sak_co_impl_plan_dtl = HTMLDB_APPLICATION.g_f01 (i);
      ELSE
         IF (HTMLDB_APPLICATION.g_f02 (i) IS NOT NULL) AND (REPLACE (HTMLDB_APPLICATION.g_f03 (i), '%' || 'null%', NULL) IS NOT NULL)
         THEN
            INSERT INTO t_co_impl_plan_dtl
                        (sak_co_impl_plan_dtl
                       , sak_co_impl_plan_hdr
                       , cde_co_impl_type
                       , nam_path
                       , nam_file
                       , num_version
                 VALUES (seq_co_impl_plan_dtl.NEXTVAL
                       , HTMLDB_APPLICATION.g_f02 (i)
                       , REPLACE (HTMLDB_APPLICATION.g_f03 (i)
                                , '%' || 'null%'
                                , NULL
                       , HTMLDB_APPLICATION.g_f04 (i)
                       , HTMLDB_APPLICATION.g_f05 (i)
                       , HTMLDB_APPLICATION.g_f06 (i)
         END IF;
      END IF;
   END LOOP;
   FOR i IN 1 .. apex_application.g_f30.COUNT
   LOOP
      vrow := apex_application.g_f30 (i);
      DELETE t_co_impl_plan_dtl
       WHERE sak_co_impl_plan_dtl = HTMLDB_APPLICATION.g_f01 (vrow);
   END LOOP;
END;Edited by: kims on Aug 24, 2010 7:52 AM

Please edit your post so that the code extract is wrapped in *\...\* tags as described in the FAQ. That will make it easier to read and hopefully stop the subscripts being converted into icons...
Note that you should always provide the information requested in the forum sticky threads:
- APEX version?
- DB version and edition?
- Web server architecture (EPG, OHS or APEX listener)?
- Browser(s) used?

Similar Messages

  • RTP stream being stripped

    How can I check to see if 802.1Q VLAN tagging information is being stripped from the RTP stream by the workstation's NIC?

    Some network cards strip the dot1q headers, so your packet capture won't  have this data. If you're not seeing dot1q headers please check the  following link from wireshark:
    http://wiki.wireshark.org/CaptureSetup/VLAN#head-81781716144f2855ab0aff2f8b752e95f2562efb
    Apply the previous settings to the machine you're capturing with.

  • Hyperlinks being stripped

    So I upgraded to Excel 2008 only to discover that it is stripping all the hyperlinks out of any of my work spreadsheets that I open.
    So, I went over to Numbers and opened the same spreadsheet. The first two columns of this spreadsheet are lists of numbers, all hyperlinked to a web page. Well, in Numbers the first cell's hyperlink is still there, but all the rest have been stripped!
    There's nothing complicated about this spreadsheet, its simply 7 columns of info, the first two columns being numbers that have hyperlinks to web pages. Thats it, wasn't created with any macro's or anything. My IS guy created them in perl using Spreadsheet::WriteExcel, using the write_url() function, and everything looks fine in his copy of excel 2k8 or my copy of Excel 2004.
    I really don't want to have to keep using Excel 2004 if I don't have to. Since MS was stupid enough to break their own software and these spreadsheets seem to TRY to open correctly in Numbers, does anyone have any idea why the hyperlinks are being stripped out so I can at least use this?

    Hello
    In a not so old thread (02/13) I passed a list of Numbers error messages related to exchanges with XL.
    http://discussions.apple.com/thread.jspa?messageID=6587857
    You may copy them in a doc for future ref
    Some of these messages are related to hyperlinks.
    Here they are.
    +Couldn’t export hyperlinks outside table cells+
    +Hyperlinks in cells that don’t contain text weren’t imported.+
    +Hyperlinks on shapes aren’t supported and were removed.+
    +Hyperlinks within workbooks and hyperlinks to other files aren’t supported and were removed.+
    Maybe they explain what you get.
    Yvan KOENIG (from FRANCE mercredi 19 mars 2008 18:14:31)

  • TS3276 attachments are being stripped

    Recently attachments are being stripped from incoming email messages. If I open the same message on my Blackberry PlayBook all the attachments are there. I have even had the sender resend the email and the same attachments come through fine on the second attempt. Nothing about the account or mail settings have changed that I'm aware of and the problem seems very random.

    My wife texted me this morning and said my texts to her Blackberry are coming up with weird looking text and it has 15 attachments added to it. So weird because it's a brand new text message (not carried over from a previous one) and I've never sent an attachment before by text to anyone in the past from my iphone.
    I did turn the MMS off after she told me about this, not sure what was sent in terms of an attachment as she cannot open them up.

  • Clients mails being stripped

    Hi
    I have a clients machine, the server is running Small Business Server 2011, and ESET file security, so the exchange is excluded, the client also has mimecast, so I have created the mailbox on my side and there are intermittent mails that are stripped and
    sent through blank, 
    I also looked on OWA and it was the same story, mails are blank, so we got access to the mail on mimecast and on inspection the mail is all there, so its being stripped once it hits the server,
    all anti-spam had already been disabled on the server months ago, so that cant be the problem. 
    Please help.

    Hi
    I have seen problems like this on Exchange with ESET file security. You should rather run the Exchange version of ESET.
    Uninstall ESET, reboot your server and then test. You already have redundancy with Mimecast and Exchange 2013 has a builtin anti spam feature.
    Hope this helps. Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

  • Why do I have trouble with attachments being stripped when sending email via Earthlink Webmail using Firefox?

    I recently built a new computer running Win 8.1. However, I have had trouble sending and receiving attachments with Earthlink Webmail on Firefox. I sometimes cannot see attachments to emails I receive, although the size of the file indicates they are there. When I try to send an email with attachments, the browser contacts Earthlink, and then the message reappears, but the attachments have been stripped. If I hit Send again, the message goes, but without the attachments. If I re-attach the attachments and hit send, they are again stripped. I contacted Earthlink support, and they told me it is a problem with Firefox. I then tried IE and was able to send the attachments without a problem.
    I would really appreciate any help as Firefox is my browser of choice.

    1. Not sure how to send an email in a private browsing window... I use Earthlink Web Mail and I cannot find anything on that site about private browsing window.
    2. Have not tried this yet, but will when I get a chance.
    3. Not sure. My old computer ran XP. Never had the problem with it. Right now, it is not connected to the internet, so can't check it.
    4. I neglected to mention... I did try IE and it worked fine.
    I do have Norton 360 installed, but it was not a problem on the XP machine.
    Thanks for your response. I have been so busy lately that I just now picked up your response. I have not had time t to try anything else.
    As far as the file type, I was trying to send pdf files. Have not tried other file types.
    Earthlink limits messages (and attachments) to 20 MB. The files were less than 3 MB.

  • Content-Length Header being stripped out of Gatewayed pages

    I am working to integrate the GPL'ed Moodle e-learning web application with Plumtree.  However, I'm hitting a snag.  For certain POST events, Moodle expects to receive a content-length header.
    When I use the application outside the portal, it works fine, and the Content-Length header is sent.  However, when I have the application gatewayed through the portal, the Content-Length header seems to get stripped out of the HTTP request and I get HTTP error 411 (Content Length Required).
    Is there a way I can convince the portal to not strip out the Content Length HTTP header?

    I'm working with .NET portal.
    For the particular file that caused the error as reported in the tcptrace log, I opened IIS manager, found the virtual directory, right clicked to open the properties dialog and checked directory security.
    Select edit anonymous access to check the account used for anonymous access, supply the user account needed and allow IIS to manage password. If in doubt check the settings on pages containing http post that are functioning properly.
    Check Integrated Widows Authentication
    I found this virutal directory had no user in the anonymous account, not sure how this happened. This resulted in pages that contained post/postbacks giving the "length required" error when I hit a button to perform the post/postback. Pages that did not contain Posts/Postback work correctly.

  • Why is Formatting Being Stripped?

    About a month ago I discovered an issue in Safari 7.1 that I have not been able to resolve.  Whenever I visit www.Wordpress.org, Safari strips all the formatting code and leaves the raw html.  (See attached photo).
    It renders fine when I open in Firefox or Google.  It is only on Safari, and only with this website (Wordpress.org).
    Has anyone else encountered this issue, or have any suggestions?
    Thanks.

    Please read this whole message before doing anything.
    This procedure is a diagnostic test. It’s unlikely to solve your problem. Don’t be disappointed when you find that nothing has changed after you complete it.
    The purpose of the test is to determine whether the problem is caused by third-party software that loads automatically at startup or login, by a peripheral device, by a font conflict, or by corruption of the file system or of certain system caches.
    Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards, if applicable. Start up in safe mode and log in to the account with the problem. You must hold down the shift key twice: once when you turn on the computer, and again when you log in.
    Note: If FileVault is enabled, or if a firmware password is set, or if the startup volume is a software RAID, you can’t do this. Ask for further instructions.
    Safe mode is much slower to start up and run than normal, with limited graphics performance, and some things won’t work at all, including sound output and Wi-Fi on certain models. The next normal startup may also be somewhat slow.
    The login screen appears even if you usually login automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.
    Test while in safe mode. Same problem?
    After testing, restart as usual (not in safe mode) and verify that you still have the problem. Post the results of the test.

  • ICC profile being stripped when pushing image to PS with PS Touch

    Hi guys, we are having some problems keeping the icc profile intact of the image files we are pushing from tablet to PS. They always appear in PS as untagged. This is a probelm for users who have highly claibbrated systems as the images appear very, very weird. Any ideas how to keep the profile intact?
    Cheers,
    Philip

    The most recent version I've seen was pretty clear in the documentation:
    "ICC profile, not implemented in this version of Photoshop"
    So the image you send needs to be sRGB
    Sandy

  • URLs (ports) are being stripped by 10gAS?

    Hi,
    We are having a problem with a 10gAS installation. In general most everything is working, but it looks like in some cases, when we connect to it using a URL that ends without an ending slash ("/"), OAS is redirecting the browser to a different URL with an ending slash. The problem is that the redirect URL is missing the port.
    For example, if I point my browser to http://<host>:7777/oiddas (URL with no ending slash), OAS is sending a 301/redirect to http://<host>/oiddas/ (URL with ending slash, but with port missing). From what we can tell, it looks like OAS is trying to redirect the browser to port 80.
    The "oiddas" is where we mainly encountered the problem, but there may be others.
    I've been researching this problem, but haven't had any success. The only thing that I've found that's close is is to set the "ServerName" in the Apache httpd.conf to the fully-qualifed domain name (apparently, Apache uses this to build the URL for redirect). However, I checked, and "ServerName" is set to the FQDN in our httpd.conf, so that doesn't seem to be the problem.
    Has anyone else run across this problem before? If so, any suggestions as to how to fix the problem?
    Thanks,
    Jim

    Hi,
    Comments interspersed...
    We are having a problem with a 10gAS installation.
    Which 10g version? And platform?I'll check tomorrow re. version. This is actually an Ebusiness 11i installation, with the infrastructure running under 10gAS (per Metalink article). Platform is Solaris 9 SPARC.
    The problem is that the redirect URL is missing the port.
    How did you find that out?When we use IE, if we go to http://<host>:7777/oiddas, we get a "no server or DNS" error, and the address bar shows http://<host>/oiddas.
    Similar thing happens with Netscape 7, if we go to http://<host>:7777/oiddas, we get a popup saying "connection refused by <host>" (i.e., not by <host>:7777).
    Did you look around in the installActions.log? E.g. for the config tools parameters
    # grep apacheport= installActions<datetime of infra install>.logI will pass the above along to the person who did the installation, or check on it myself, but FYI, the Listen and Port directives in the infrastructure Apache httpd.conf is set to 7777. Is a port setting stored somewhere in the configs other than that?
    Does SSO login work? http://<host>:7777/pls/orasso
    Yes, I think that part works.
    Jim

  • SpryHiddenRegion Not being stripped

    See example
    here.
    Just trying to hide a region while the data is loading. I used the
    SpryHiddenRegion class elsewhere on the same site and it worked
    fine, but there's a lot less going on on that page.

    Hello Luke,
    I'm unfamiliar with the solution you try to implement here.
    Could you please give me more details or give a link to a working
    example to understand how this solution works and explain you why
    in your situation the page is not working as you expect.
    Regards,
    Cristian

  • Escape characters not being stripped

    It seems as though Java holds on to escape characters until final output is created (i.e. writing to a file, or printing to System.out). I'm creating a string that will be sent to a cgi script via a post variable, but when I look at the string within the cgi script it still has the backslash escape character (in my case, escaping quote characters). If I save the same string to a file the backslashes are properly removed.
    I'm passing the string through URLEncode.encode() but that only takes care of characters like ampersands and other special URL characters. I have even tried appending the quotes as Charters instead of escaping them within the string, but Java then put the backslashes in itself. So the out put wasn't changed at all.
    Im sending the string to the outputStream of the HttpURLConnection object by wrapping the stream in a PrintWriter. I've tried a couple of different writers, all with the same result. There doesn't seem to be any kind of an option that tells the stream or the writer that the output is final. It seems I'm probably just missing something small.
    As a side note, what's the difference between PrintWriter.print() and PrintWriter.write()?
    Josh

    Ok, here is what I have done:
    URL lurl_bene;
    HttpURLConnection lcon_bene;
    BufferedReader in;
    PrintWriter out;
    lsb_xml.append("<?xml version=\"1.0\" encoding=\"iso-8859-1\"?>"); // plus more, but you get the idea
    lurl_bene = new URL("http://192.168.100.5/cgi-bin/sync.php");
    lcon_bene = (HttpURLConnection)lurl_bene.openConnection();
    lcon_bene.setDoOutput(true);
    lcon_bene.setRequestMethod("POST");
    out = new PrintWriter(lcon_bene.getOutputStream());
    out.print("sync=" + URLEncoder.encode(lsb_xml.toString(),"UTF-8"));
    Then within my php script I simply displayed the string:
    $xmlFeed = $_POST['sync'];
    print($xmlFeed);
    This produced the output:
    <?xml version=\"1.0\" encoding=\"iso-8859-1\"?>
    My only recourse at the moment seems to be to do a search an replace within my php script to change \" to " and \' to '. I have even tried appending " as a character like so:
    lsb_xml.append("<?xml version=").append('"').append("1.0").append('"').append("encoding=").append('"').append("iso-8859-1").append('"').append("?>");
    Josh

  • Supress Header and Trailer from being generated and printed

    I am using oracle 9i Reports Builder.
    Is there a way to supress the header and trailer pages from being generated and printed.

    Increase the marigin size to zero size header and trailer in the layout editor and then run the report.

  • Web links (URLs) are being parsed in the conversation feed - disable this?

    I noticed that some of recent updates in skype for mac started to be too clever with links I post in conversations - it tries to fetch the content, parse it and present some small excerpt if it in the conversation.  But I mostly message links to closed sites - like Google Docs or internal knowledge base - and they require logging in. So, I know mostly see in my conversations with collegues something like this. How can I disable this behavior? I want to see plain links, I do not need this supersmart parsing.  

    Well, I want to see IMAGES in the chat (i.e. someone transmits actual image data), but I don't want to see WEB PREVIEWS (previews of web pages, or the picture an image URL points to) in the chat. Data is data, and a link is a link. Data should be displayed, and links should remain links. If someone wants me to see a web page, they should make a screen grab to their local computer, and then send me the picture as an image. Otherwise they should send me a link, which then I can peruse at my own convenience (which usually includes first scrubbing the link of any identifying trailing garbage.)
    As a matter of fact, I don't want Microsoft/Skype to PARSE ANYTHING that I transmit.
    Just as automatic loading of remote images in HTML e-mail messages constitutes a major security risk and privacy breach, so does this web preview function.
    I have absolutely no intention to disclose who I'm conversing with and what we talk about, but if someone sends me a link that hasn't been properly "cleaned up", then the site will know who sent me the link, who received it, what the conversation might have been about etc. and that information is sent without my consent.
    I have ZERO tolerance for Microsoft's lack of sensitivity to privacy, and where we users are being stripped naked to prying eyes, all in the guise of some "neat features".
    I don't need no "neat features". If you want web links to work the way they are supposed to work on the Mac, then allow for a right-click with a QuickLook option, but display the link in it's full length with all the "garbage" that will be transmitted to the site when the link is clicked upon, no "user friendly URL" version, that makes a link look like it were a harmless, state-free static link, while in fact it's a 900 character long monster with encoded state and personal details. One might think that's part of the PRISM program...

  • Web links (URLs) are being parsed in the conversat...

    I noticed that some of recent updates in skype for mac started to be too clever with links I post in conversations - it tries to fetch the content, parse it and present some small excerpt if it in the conversation. 
    But I mostly message links to closed sites - like Google Docs or internal knowledge base - and they require logging in. So, I know mostly see in my conversations with collegues something like this.
    How can I disable this behavior? I want to see plain links, I do not need this supersmart parsing. 

    Well, I want to see IMAGES in the chat (i.e. someone transmits actual image data), but I don't want to see WEB PREVIEWS (previews of web pages, or the picture an image URL points to) in the chat. Data is data, and a link is a link. Data should be displayed, and links should remain links. If someone wants me to see a web page, they should make a screen grab to their local computer, and then send me the picture as an image. Otherwise they should send me a link, which then I can peruse at my own convenience (which usually includes first scrubbing the link of any identifying trailing garbage.)
    As a matter of fact, I don't want Microsoft/Skype to PARSE ANYTHING that I transmit.
    Just as automatic loading of remote images in HTML e-mail messages constitutes a major security risk and privacy breach, so does this web preview function.
    I have absolutely no intention to disclose who I'm conversing with and what we talk about, but if someone sends me a link that hasn't been properly "cleaned up", then the site will know who sent me the link, who received it, what the conversation might have been about etc. and that information is sent without my consent.
    I have ZERO tolerance for Microsoft's lack of sensitivity to privacy, and where we users are being stripped naked to prying eyes, all in the guise of some "neat features".
    I don't need no "neat features". If you want web links to work the way they are supposed to work on the Mac, then allow for a right-click with a QuickLook option, but display the link in it's full length with all the "garbage" that will be transmitted to the site when the link is clicked upon, no "user friendly URL" version, that makes a link look like it were a harmless, state-free static link, while in fact it's a 900 character long monster with encoded state and personal details.
    One might think that's part of the PRISM program...

Maybe you are looking for

  • Text caption capture

    Sinc I have (on my previous computer) captured Captivate demonstrations where Captivate automatically inserted captions. I'm trying to create an interactive training simulation and it doesn't matter what Options I select under the auto-capture, Capti

  • The newest version of iTunes will not recognize my iPod

    I have never had any problems with iTunes recognizing my 4th generation iPod touch until I installed the newest version of iTunes. I have went through the troubleshooting tip in the Apple Support Center...all of them...several times. However, my iPod

  • FMS publish record - Video freeze

    Hello, I have a problem to record and replay my video with flvplayback. I publish a mp4 file with mic and camera. When i would like to play after, if the video is too long the video freeze i think after 5000ko. I my video is more short its ok. It is

  • How to hide/disable certain features in left panel, need help...

    Heya, So I upgraded to Leopard recently and I see that Mail has some lovely new features that appear in the left panel. Things like "On My Mac", "RSS", "Reminders" and my IMAP drive. Basically all I want to see is my "Inbox" drop down (this connects

  • Image does not embed - urgent

    Hi, I have a pdf that looks like a letter. I need an image object to be inserted of the user's signature - automatically. This used to work form me in 7, but does not work in 8 (like everything else I've done). In 7 I imported an xml file, but I can'