Know about page parameter

Hi,
I want is there any page parameter portlet if it is then where it is in oracle portal

Hi,
Can you tell us more details about the functionality you are trying to achieve ?
Regards,
Sandeep

Similar Messages

  • How does page parameter work?

    Hello,
    I got a question about page parameter.
    I created a page parameter, e.g. userName
    and assingn it a value : smith, also allow customer change the default value.
    When I try to pass a new value to Username, I do something like:
    http://myportal/portal/page?_pageid=34,421&_dad=portal&_schema=PORTAL&userName=tom
    My question is how do I know the value has been pased to userName? how to retrieve the value of userName?
    Thank you so much for your attention,
    Emily

    Hi Christian-Can can Page parameters be used in Page Portlets?
    I have created an attribute and then assigned that attribute as a paramater to a page and set a default value for each page for instance for Page 1 have the value, Page2 I have value 2 and so on and so forth....
    i have published all these pages as portlets....
    and now I have added portlet of page one to my page....
    i have a bunch one links i have added to another region on the same page that go to Page1, Page2, and appended the parameters to the page.... as follows...
    http://myURL&myAttribute=2
    this should change the content of the Page Portlet to the Page2 or Page3 depending on the value of the myAttribute set right...
    but it does what is the reason?
    Rebecca

  • When i am typing in a browser window, my browser page shifts slightly, highlights in blue, and does not allow me to keep typing.  i have to keep clicking on the page to continue to type letter by letter...is there some function on that i don't know about?

    When I am typing in a browser window, my browser page shifts slightly, highlights in blue, and does not allow me to continue typing...i have to click in the browser to allow typing to continue...is there a function running that I don't know about?

    Please read this whole message before doing anything.
    This procedure is a test, not a solution. Don’t be disappointed when you find that nothing has changed after you complete it.
    Step 1
    The purpose of this step is to determine whether the problem is localized to your user account.
    Enable guest logins and log in as Guest. For instructions, launch the System Preferences application, select Help from the menu bar, and enter “Set up a guest account” (without the quotes) in the search box.
    While logged in as Guest, you won’t have access to any of your personal files or settings. Applications will behave as if you were running them for the first time. Don’t be alarmed by this; it’s normal. If you need any passwords or other personal data in order to complete the test, memorize, print, or write them down before you begin.
    Test while logged in as Guest. Same problem(s)?
    After testing, log out of the guest account and, in your own account, disable it if you wish. Any files you created in the guest account will be deleted automatically when you log out of it.
    Note: If you’ve activated “Find My Mac” or FileVault in Mac OS X 10.7 or later, then you can’t enable the Guest account. Create a new account in which to test, and delete it, including its home folder, after testing.
    Step 2
    The purpose of this step is to determine whether the problem is caused by third-party system modifications that load automatically at startup or login.
    Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards. Boot in safe mode and log in to the account with the problem. The instructions provided by Apple are as follows:
    Be sure your Mac is shut down.
    Press the power button.
    Immediately after you hear the startup tone, hold the Shift key. The Shift key should be held as soon as possible after the startup tone, but not before the tone.
    Release the Shift key when you see the gray Apple icon and the progress indicator (looks like a spinning gear).
    Safe mode is much slower to boot and run than normal, and some things won’t work at all, including wireless networking on certain Macs.
    The login screen appears even if you usually log in 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(s)?
    After testing, reboot as usual (i.e., not in safe mode) and verify that you still have the problem. Post the results of steps 1 and 2.

  • I'm looking for a template for writing an eBook in Pages. I know about exporting to PDF but wondered if I needed a specific type of template or another software of some kind. I have an older iBook G4 (and love it BTW) and am using Pages 3.03

    I'm looking for a template for writing an eBook in Pages. I know about exporting to PDF but wondered if I needed a specific type of template or another software of some kind. I have an older iBook G4 (and love it BTW) and am using Pages 3.03. Anybody with any ideas on what to od? Thanks

    Peter,
    does Pages v4 (09) work on a G4 chip? I think I've updated this old Mac iBook as far as it will go. In other words will I need to buy a newer laptop to get the Pages 09 to work and ouput to an eBook? Thanks. Richard

  • How can i know about the page breaks that occur in excel sheet during report gen

    Hello,
    I am trying to generate an Excel report with a large number of columns. and i am facing the problem of some of the columns not fitting into the page due to the page break. as a result, these columns are being printed at the end of the report. I would like to add the Row and Column headers to the remaining of the columns so that it is easy to recognise as to which table they belong to. i would like to know if there is any method to find out when the page break occurs in the excel sheet, along with the last printed column number, so that it would be easy for me to add the Row and Column headers before the next row/column is printed.
    Thank You
    Regards
    Tweetz.

    Hi Tweetz,
    I have tried to find a way to do what you are asking, but have been unsuccessful.  However, you can control where the page breaks occur by using the "New Report Page.vi".  You can call this VI after appending the table to the report, and specify the cell where you wish to insert a new page break (using the "position" or "name" elements of the "MS office parameters" input).  If you know the page size and you specify the column widths, you should be able to pick reasonable places to start a new page.
    I hope that helps!
    Devin K
    Systems Engineering - RTT & HIL

  • Page Parameter Overflow

    I have working with portal for about two weeks now, and the more I think I have figured out, the more I realize I have nothing figured out. Can someone help me out?
    Here's my situation. We've got a portal that a user can log into to view a list of accounts he/she is in charge of. When he/she selects an account, it submits a form that will set the 'account' page parameter, as well as some others. We also have a tab page on that page that has a tab for each department (shipping/recieving, inventory, billing, etc.). Each of these tabs has another PDK portlet in it, which is exactly the same across tabs, but it needs to be in the tab.
    Anyway, everything works fine, I can set and get the page parameter just fine, and I get all the data I need. The problem is that when I switch tabs, it essentially doubles my query string. So when I start out I have nothing in my query string, when I switch tabs, I get ?account=123. If I switch tabs again I get account=123&account=123 so on and so on. When I change the account, and submit the form again, the query string clears out, and it starts all over again.
    I guess I was just wondering if there is some concept that I'm not getting, or if it's something Portal has a problem with, or what exactly is going on.
    Any help, or advice would be greatly appreciated. I hope my description of the problem made sense.
    Thanks,
    Doug
    PS If anyone knows of any good documentation on portlet events, I'd like to hear about that too. Oracles documenation has a lot to be desired.

    I have working with portal for about two weeks now, and the more I think I have figured out, the more I realize I have nothing figured out. Can someone help me out?
    Here's my situation. We've got a portal that a user can log into to view a list of accounts he/she is in charge of. When he/she selects an account, it submits a form that will set the 'account' page parameter, as well as some others. We also have a tab page on that page that has a tab for each department (shipping/recieving, inventory, billing, etc.). Each of these tabs has another PDK portlet in it, which is exactly the same across tabs, but it needs to be in the tab.
    Anyway, everything works fine, I can set and get the page parameter just fine, and I get all the data I need. The problem is that when I switch tabs, it essentially doubles my query string. So when I start out I have nothing in my query string, when I switch tabs, I get ?account=123. If I switch tabs again I get account=123&account=123 so on and so on. When I change the account, and submit the form again, the query string clears out, and it starts all over again.
    I guess I was just wondering if there is some concept that I'm not getting, or if it's something Portal has a problem with, or what exactly is going on.
    Any help, or advice would be greatly appreciated. I hope my description of the problem made sense.
    Thanks,
    Doug
    PS If anyone knows of any good documentation on portlet events, I'd like to hear about that too. Oracles documenation has a lot to be desired.

  • Did you know about Flash Cookies?

    I know about regular cookies, and delete them... but had no idea there was such a thing as a Flash Cookie
    Read about 1/2 way down here http://windowssecrets.com/comp/100805

    Rod,
    Since you're a confessed geek with some actual coding chops, I'm sure you'll understand the hair I'm about to split here. Hang on a moment while I grab my axe...
    Even with your page jumps, the cookie isn't doing anything. It's just a text file named after a snack. What's causing your page to jump, browsers to redirect, and the moon to shift its gravitational field three degrees to the north is the code in the web page that's being loaded. True, it may look in the text file to see what IP address to report to, but the connection, handshaking, transfer of data and powering up of lasers are all on your web page (or the server side code being executed on its behalf). The cookie is little more than a poorly dressed informant hanging out on the street corner waiting to pass along tidbits of information when the right person asks. Doesn't exactly make it a savory character (name notwithstanding), but it's a harmless one nonetheless. If it's evil you seek, you'll find it in the web site, not the cookie. And that's why I never understood the religious fervor against cookies.
    Now, if you want a truly dangerous leave behind, at least on Windows, ActiveX controls are your guys. They're really just glorified COM objects, and thus have complete access to the entire Windows API. Give me permission to install an ActiveX control on your machine and I can rewrite your file system, start and stop services, reboot your computer, or just turn the screen a hyperintelligent shade of the color blue because it amuses me. Anything that can be done in Windows programming is essentially available to the ActiveX control.
    Of course, browsers got hip to this years ago, and now the default security settings for ActiveX are to not install automatically, or at least to query the user first. Or, as it's configured on my machine, feel free to install if you can make it past this shotgun pointed at your head. Maybe that's why there's not as much of a flap about ActiveX as there is about cookies. Because they're truly dangerous, the browser community took it seriously.and now only someone with a death wish allows a web page to install an ActiveX component.
    And overall, this is kinda my point. The much maligned cookie gets a bad rap while in truth it's the web page staring you right in the face that's preparing to rob, rape and pillage. But then, misdirection has always been a classic tactic in warfare.

  • Unable To Pass Input Page Parameter Using PageDef File.

    Dear All,
    I am currently exploring task flows as I dont have that much knowledge in it.
    Here's my use case
    1. I setup a taskflow which has a Method Call and a View Activity in it.
    2. The method call is a default activity which just calls a web service.
    3. After execution, I just wanted to display the result of the method.
    I used input page parameters to pass data between the method call and the view activity.
         (I passed the data by accessing the pagedef file directly. I know I can do it using pageflowscope..but this is
         my self exercise so that I could understand ADF fully );)
    <?xml version="1.0" encoding="windows-1252" ?>
    <adfc-config xmlns="http://xmlns.oracle.com/adf/controller" version="1.2">
      <task-flow-definition id="ManageEmployeeTaskflow">
        <view id="viewEmployee">
          <page>/viewEmployee.jsff</page>
          <input-page-parameter>
            <from-value>#{data.com_test_ManageEmpFlow_methodPageDef.empInfoIterator.currentRow.dataProvider.name}</from-value>
            <to-value>#{data.com_test_viewEmployeePageDef.name.inputValue}</to-value>
          </input-page-parameter>
        </view>
        <method-call id="EmployeeSetup">
          <method>#{bindings.EmployeeSetup.execute}</method>
          <outcome id="__12">
            <fixed-outcome>viewEmployee</fixed-outcome>
          </outcome>
        </method-call>
        <use-page-fragments/>
      </task-flow-definition>
    </adfc-config>Problem is, when I display the data. Nothing is being displayed.
    <af:inputText value="#{bindings.name.inputValue}"
                      label="#{'Name'}"/>          I debug the taskflow and the <from-value> really has a value, but I am not sure why it cant be passed to next pagedef.
    Any idea please?
    Edited by: Marky on May 15, 2011 11:25 PM

    Hi,
    I've been thinking... Is this way of passing parameters not possible?
          <input-page-parameter>
            <from-value>#{data.com_test_ManageEmpFlow_methodPageDef.empInfoIterator.currentRow.dataProvider.name}</from-value>
            <to-value>#{data.com_test_viewEmployeePageDef.name.inputValue}</to-value>
          </input-page-parameter>Thanks.

  • I am getting messages that I can't download and read .pdf files since I have the wrong Adobe reader. I know about their security disasters of course, but I downloaded the latest version of Adobe Reader from the Adobe web site and I have other ,pdf file re

    I am getting messages that I can't download and read .pdf files since I have the wrong Adobe reader. I know about their security disasters of course, but I downloaded the latest version of Adobe Reader from the Adobe web site and I have other ,pdf file readers as well, and for some reason they won't work either. I have 5 computers running top end processors and RAM. By this I mean I have one, this one which I am using that has an AMD Phenom Black 3.2 Quad-core with 8 GBs of Corsair top DDR2 RAM, my other two AMD have either an Athlon II triple core with 4 GBs of DDR2 Corsair RAM, one with the Phenom X4 965 3.4 GHz Quad-core with 8 GBs of their best DDR2 RAM, and two Intels with the i7 920 Processors using the triple channel 1366 socket processors and one with 8 GBs of low latency DDR3 RAM and the other with 4 GBs of the same RAM. I am getting the message on this one, which has a fresh install of XP Pro X64 operating system, as do the other 4 as well. I have run Avast Business Pro Anti-virus on this one, which I am getting the message on with a single result which I deleted, and also both Spybot Search and Destroy, which came back clean as well as Malwarebytes Antimalware, which got a lot of tracing cookies now removed, and SuperAntiSpware which also found a few cookies also now deleted. Can you tell me what I need to do to get these files to show as .pdf files rather than as a clean blank page. One other issue is that I wish to know how to turn off my downloads so they are saved and Mozilla will give me the option of returning them instead of me losing them all together as it does now. Thanks for your assistance. If there is another Adobe reader I should download and install, could you provide me with the link to it? I appreciate your assistance here
    == When I download and try to read a .pdf file and when I am asked to turn off all Firefox files and if I do, I lose them since I need to know how to save them without rebooting my computer.

    Brilliant! Problem solved! Thanks so much.

  • I just got my replacement phone from Warranty. The phone was on for just 2 hours and it crashed. I was told that motorola knows about this "possible" issue. I got a new sim, hard reset, If it can be done I did it. They are now sending me the same phone ag

    I just got my replacement phone from Warranty. The phone was on for just 2 hours and it crashed. I was told that motorola knows about this "possible" issue. I got a new sim, hard reset, If it can be done I did it. They are now sending me the same phone again. Number 3. I would hope this one doesn't crash but I rather have a different phone so I can enjoy using my account. The phone's most recent error was today. " Unfortunately, the process com.motorola.widget.circlewidget3d" has stopped. At least the error message works and it's polite. I told tech this and they could not answer my question or help me other then "let's do a hard reset" My warranty replacement is coming on Monday. Let's hope this one works. Anyone else havinbg the same problem. it says "such and such as stop working" on all sorts of stuff! Help! I want my iPhone Back!

    I just did a google search on this issue. OMG, I got a ton of videos on this or similar issues. Each one says in some way to clear the cache, reset the data, etc. Why in the world would this continue to happen and they not do a fix that resloves this without having to lose or stop what your doing. This is a very long and constant issue it seems with Android phones as there must have been pages and pages of what I now call "Unfortunately"  So I am going to pray that Verizon helps me  out and gets me away from this issue and helps me go back to iPhone or try the Samsung.

  • What every developer should know about character encoding

    This was originally posted (with better formatting) at Moderator edit: link removed/what-every-developer-should-know-about-character-encoding.html. I'm posting because lots of people trip over this.
    If you write code that touches a text file, you probably need this.
    Lets start off with two key items
    1.Unicode does not solve this issue for us (yet).
    2.Every text file is encoded. There is no such thing as an unencoded file or a "general" encoding.
    And lets add a codacil to this – most Americans can get by without having to take this in to account – most of the time. Because the characters for the first 127 bytes in the vast majority of encoding schemes map to the same set of characters (more accurately called glyphs). And because we only use A-Z without any other characters, accents, etc. – we're good to go. But the second you use those same assumptions in an HTML or XML file that has characters outside the first 127 – then the trouble starts.
    The computer industry started with diskspace and memory at a premium. Anyone who suggested using 2 bytes for each character instead of one would have been laughed at. In fact we're lucky that the byte worked best as 8 bits or we might have had fewer than 256 bits for each character. There of course were numerous charactersets (or codepages) developed early on. But we ended up with most everyone using a standard set of codepages where the first 127 bytes were identical on all and the second were unique to each set. There were sets for America/Western Europe, Central Europe, Russia, etc.
    And then for Asia, because 256 characters were not enough, some of the range 128 – 255 had what was called DBCS (double byte character sets). For each value of a first byte (in these higher ranges), the second byte then identified one of 256 characters. This gave a total of 128 * 256 additional characters. It was a hack, but it kept memory use to a minimum. Chinese, Japanese, and Korean each have their own DBCS codepage.
    And for awhile this worked well. Operating systems, applications, etc. mostly were set to use a specified code page. But then the internet came along. A website in America using an XML file from Greece to display data to a user browsing in Russia, where each is entering data based on their country – that broke the paradigm.
    Fast forward to today. The two file formats where we can explain this the best, and where everyone trips over it, is HTML and XML. Every HTML and XML file can optionally have the character encoding set in it's header metadata. If it's not set, then most programs assume it is UTF-8, but that is not a standard and not universally followed. If the encoding is not specified and the program reading the file guess wrong – the file will be misread.
    Point 1 – Never treat specifying the encoding as optional when writing a file. Always write it to the file. Always. Even if you are willing to swear that the file will never have characters out of the range 1 – 127.
    Now lets' look at UTF-8 because as the standard and the way it works, it gets people into a lot of trouble. UTF-8 was popular for two reasons. First it matched the standard codepages for the first 127 characters and so most existing HTML and XML would match it. Second, it was designed to use as few bytes as possible which mattered a lot back when it was designed and many people were still using dial-up modems.
    UTF-8 borrowed from the DBCS designs from the Asian codepages. The first 128 bytes are all single byte representations of characters. Then for the next most common set, it uses a block in the second 128 bytes to be a double byte sequence giving us more characters. But wait, there's more. For the less common there's a first byte which leads to a sersies of second bytes. Those then each lead to a third byte and those three bytes define the character. This goes up to 6 byte sequences. Using the MBCS (multi-byte character set) you can write the equivilent of every unicode character. And assuming what you are writing is not a list of seldom used Chinese characters, do it in fewer bytes.
    But here is what everyone trips over – they have an HTML or XML file, it works fine, and they open it up in a text editor. They then add a character that in their text editor, using the codepage for their region, insert a character like ß and save the file. Of course it must be correct – their text editor shows it correctly. But feed it to any program that reads according to the encoding and that is now the first character fo a 2 byte sequence. You either get a different character or if the second byte is not a legal value for that first byte – an error.
    Point 2 – Always create HTML and XML in a program that writes it out correctly using the encode. If you must create with a text editor, then view the final file in a browser.
    Now, what about when the code you are writing will read or write a file? We are not talking binary/data files where you write it out in your own format, but files that are considered text files. Java, .NET, etc all have character encoders. The purpose of these encoders is to translate between a sequence of bytes (the file) and the characters they represent. Lets take what is actually a very difficlut example – your source code, be it C#, Java, etc. These are still by and large "plain old text files" with no encoding hints. So how do programs handle them? Many assume they use the local code page. Many others assume that all characters will be in the range 0 – 127 and will choke on anything else.
    Here's a key point about these text files – every program is still using an encoding. It may not be setting it in code, but by definition an encoding is being used.
    Point 3 – Always set the encoding when you read and write text files. Not just for HTML & XML, but even for files like source code. It's fine if you set it to use the default codepage, but set the encoding.
    Point 4 – Use the most complete encoder possible. You can write your own XML as a text file encoded for UTF-8. But if you write it using an XML encoder, then it will include the encoding in the meta data and you can't get it wrong. (it also adds the endian preamble to the file.)
    Ok, you're reading & writing files correctly but what about inside your code. What there? This is where it's easy – unicode. That's what those encoders created in the Java & .NET runtime are designed to do. You read in and get unicode. You write unicode and get an encoded file. That's why the char type is 16 bits and is a unique core type that is for characters. This you probably have right because languages today don't give you much choice in the matter.
    Point 5 – (For developers on languages that have been around awhile) – Always use unicode internally. In C++ this is called wide chars (or something similar). Don't get clever to save a couple of bytes, memory is cheap and you have more important things to do.
    Wrapping it up
    I think there are two key items to keep in mind here. First, make sure you are taking the encoding in to account on text files. Second, this is actually all very easy and straightforward. People rarely screw up how to use an encoding, it's when they ignore the issue that they get in to trouble.
    Edited by: Darryl Burke -- link removed

    DavidThi808 wrote:
    This was originally posted (with better formatting) at Moderator edit: link removed/what-every-developer-should-know-about-character-encoding.html. I'm posting because lots of people trip over this.
    If you write code that touches a text file, you probably need this.
    Lets start off with two key items
    1.Unicode does not solve this issue for us (yet).
    2.Every text file is encoded. There is no such thing as an unencoded file or a "general" encoding.
    And lets add a codacil to this – most Americans can get by without having to take this in to account – most of the time. Because the characters for the first 127 bytes in the vast majority of encoding schemes map to the same set of characters (more accurately called glyphs). And because we only use A-Z without any other characters, accents, etc. – we're good to go. But the second you use those same assumptions in an HTML or XML file that has characters outside the first 127 – then the trouble starts. Pretty sure most Americans do not use character sets that only have a range of 0-127. I don't think I have every used a desktop OS that did. I might have used some big iron boxes before that but at that time I wasn't even aware that character sets existed.
    They might only use that range but that is a different issue, especially since that range is exactly the same as the UTF8 character set anyways.
    >
    The computer industry started with diskspace and memory at a premium. Anyone who suggested using 2 bytes for each character instead of one would have been laughed at. In fact we're lucky that the byte worked best as 8 bits or we might have had fewer than 256 bits for each character. There of course were numerous charactersets (or codepages) developed early on. But we ended up with most everyone using a standard set of codepages where the first 127 bytes were identical on all and the second were unique to each set. There were sets for America/Western Europe, Central Europe, Russia, etc.
    And then for Asia, because 256 characters were not enough, some of the range 128 – 255 had what was called DBCS (double byte character sets). For each value of a first byte (in these higher ranges), the second byte then identified one of 256 characters. This gave a total of 128 * 256 additional characters. It was a hack, but it kept memory use to a minimum. Chinese, Japanese, and Korean each have their own DBCS codepage.
    And for awhile this worked well. Operating systems, applications, etc. mostly were set to use a specified code page. But then the internet came along. A website in America using an XML file from Greece to display data to a user browsing in Russia, where each is entering data based on their country – that broke the paradigm.
    The above is only true for small volume sets. If I am targeting a processing rate of 2000 txns/sec with a requirement to hold data active for seven years then a column with a size of 8 bytes is significantly different than one with 16 bytes.
    Fast forward to today. The two file formats where we can explain this the best, and where everyone trips over it, is HTML and XML. Every HTML and XML file can optionally have the character encoding set in it's header metadata. If it's not set, then most programs assume it is UTF-8, but that is not a standard and not universally followed. If the encoding is not specified and the program reading the file guess wrong – the file will be misread.
    The above is out of place. It would be best to address this as part of Point 1.
    Point 1 – Never treat specifying the encoding as optional when writing a file. Always write it to the file. Always. Even if you are willing to swear that the file will never have characters out of the range 1 – 127.
    Now lets' look at UTF-8 because as the standard and the way it works, it gets people into a lot of trouble. UTF-8 was popular for two reasons. First it matched the standard codepages for the first 127 characters and so most existing HTML and XML would match it. Second, it was designed to use as few bytes as possible which mattered a lot back when it was designed and many people were still using dial-up modems.
    UTF-8 borrowed from the DBCS designs from the Asian codepages. The first 128 bytes are all single byte representations of characters. Then for the next most common set, it uses a block in the second 128 bytes to be a double byte sequence giving us more characters. But wait, there's more. For the less common there's a first byte which leads to a sersies of second bytes. Those then each lead to a third byte and those three bytes define the character. This goes up to 6 byte sequences. Using the MBCS (multi-byte character set) you can write the equivilent of every unicode character. And assuming what you are writing is not a list of seldom used Chinese characters, do it in fewer bytes.
    The first part of that paragraph is odd. The first 128 characters of unicode, all unicode, is based on ASCII. The representational format of UTF8 is required to implement unicode, thus it must represent those characters. It uses the idiom supported by variable width encodings to do that.
    But here is what everyone trips over – they have an HTML or XML file, it works fine, and they open it up in a text editor. They then add a character that in their text editor, using the codepage for their region, insert a character like ß and save the file. Of course it must be correct – their text editor shows it correctly. But feed it to any program that reads according to the encoding and that is now the first character fo a 2 byte sequence. You either get a different character or if the second byte is not a legal value for that first byte – an error.
    Not sure what you are saying here. If a file is supposed to be in one encoding and you insert invalid characters into it then it invalid. End of story. It has nothing to do with html/xml.
    Point 2 – Always create HTML and XML in a program that writes it out correctly using the encode. If you must create with a text editor, then view the final file in a browser.
    The browser still needs to support the encoding.
    Now, what about when the code you are writing will read or write a file? We are not talking binary/data files where you write it out in your own format, but files that are considered text files. Java, .NET, etc all have character encoders. The purpose of these encoders is to translate between a sequence of bytes (the file) and the characters they represent. Lets take what is actually a very difficlut example – your source code, be it C#, Java, etc. These are still by and large "plain old text files" with no encoding hints. So how do programs handle them? Many assume they use the local code page. Many others assume that all characters will be in the range 0 – 127 and will choke on anything else.
    I know java files have a default encoding - the specification defines it. And I am certain C# does as well.
    Point 3 – Always set the encoding when you read and write text files. Not just for HTML & XML, but even for files like source code. It's fine if you set it to use the default codepage, but set the encoding.
    It is important to define it. Whether you set it is another matter.
    Point 4 – Use the most complete encoder possible. You can write your own XML as a text file encoded for UTF-8. But if you write it using an XML encoder, then it will include the encoding in the meta data and you can't get it wrong. (it also adds the endian preamble to the file.)
    Ok, you're reading & writing files correctly but what about inside your code. What there? This is where it's easy – unicode. That's what those encoders created in the Java & .NET runtime are designed to do. You read in and get unicode. You write unicode and get an encoded file. That's why the char type is 16 bits and is a unique core type that is for characters. This you probably have right because languages today don't give you much choice in the matter.
    Unicode character escapes are replaced prior to actual code compilation. Thus it is possible to create strings in java with escaped unicode characters which will fail to compile.
    Point 5 – (For developers on languages that have been around awhile) – Always use unicode internally. In C++ this is called wide chars (or something similar). Don't get clever to save a couple of bytes, memory is cheap and you have more important things to do.
    No. A developer should understand the problem domain represented by the requirements and the business and create solutions that appropriate to that. Thus there is absolutely no point for someone that is creating an inventory system for a stand alone store to craft a solution that supports multiple languages.
    And another example is with high volume systems moving/storing bytes is relevant. As such one must carefully consider each text element as to whether it is customer consumable or internally consumable. Saving bytes in such cases will impact the total load of the system. In such systems incremental savings impact operating costs and marketing advantage with speed.

  • FAQ: I already have a Revel account. What do I need to do? What do I need to know about this?

    Q: I already have a Revel account. What do I need to do? What do I need to know about this?
    A: If your Revel account uses the same Adobe ID as your Photoshop.com account, your JPEGs will be moved there. Otherwise, a new Revel account will be set up for you using the same Adobe ID you use with your Photoshop.com account.
    Revel accounts can be merged manually. Use the Adobe Media Downloader to download all of the JPEG photos from your Photoshop.com library and then upload those photos to your existing Revel account.
    Click here to archive your Photoshop.com library so you do not lose any files.
    You will be asked to download an Adobe Air application called Media Downloader

    Your .mac Mail account will continue to operate normally as long as you access the account from the Mac's Mail program. Read this:
    What if I just want to keep using my email on all my devices?
    As of May 1, you can choose to keep using your mail after MobileMe ends, even on devices that don’t meet the iCloud system requirements. Just go to me.com/move and select the option to keep using your email after MobileMe ends. Once you have completed this short process, your mail will continue to work on devices that don’t meet the iCloud requirements after MobileMe ends on June 30th, 2012.
    iCloud is a collection of features that allows you to sync Safari bookmarks, Calendar items, Contacts, and iWork documents (Pages, Numbers) among multiple devices, among other things. Your photos in iPhoto will not be affected.
    iCloud is most valuable for people with iOS devices and Macs and requires OS X 10.7 "Lion".
    Here is some more information: http://www.apple.com/mobileme/transition.html

  • Need info about the parameter _FIX_CONTROL in a BW environment

    Hi ,
    I have done some research about the parameter FIXCONTROL and went through the SAP note 1165319.
    We have a task at hand where SAP has recommended a new value to be added to this parameter in a BW production environment.
    Now in the above note there are an entire set of values which this parameter can take up.
    I have understood to some extent that this has to do with this Fixes if case of any issues.
    last month we have upgraded the oracle version of the database from 10.2.0.2 to 10.2.0.4.
    Can anyone help me in understanding what this MergeFix is all about?
    I need to better understand this concept.
    Thank you.
    Regards,
    Hari Kishan.

    Hello,
    still not sure if I fully understood your question; but the recommended approach regarding patches is:
    1) Apply all the interim patches recommended by SAP. For Oracle 10.2.0.4 these will those from SAP note 1137346. The merge fix from SAP note also 1165319 is mentioneded there.
    And by the way, SAP note 1137346 is updated about once a month; new patches may be added, old ones may be removed. SAP recommends to follow accordingly; but if there aren't any problems, you might want to you keep your current state for a longer period.
    2) Read all the SAP notes mentioned there. You may have to do additional tasks like setting Oracle parameters, FIXCONTROL or others. The value you have to set now may or may not be mentioned in one of these notes, I can't know.
    3) If you encounter some problem, first search in SAP notes, or if necessary open a support call with SAP. You may then have to apply additional patches and set addtional values for FIXCONTROL.
    And yes, this way the list of required patches may become specific to each customer, as customer requirements are specific.
    But it would be difficult to find the exact list of needed patches in advance.
    I think a BW consultant who is familiar with Oracle installations will tell you something similar. One who is very experienced in your scenario might also be able to recommend additional patches in advance.
    regards

  • Help - Passing parameter to report using page parameter

    I have a SQL Report on a page
    The report query is
    select * from scott.emp where deptno = :department
    The URL for the page containing the report is:
    http://developer03.fis:7777/portal/page?_pageid=95,36455&_dad=portal&_schema=PORTAL
    I have added a page parameter = departnment
    and associated the page parameter to the report bind variable in the Portlet Parameter Values as follows:
    department = Page Parameter, department
    I displayed the page by going to the above URL
    and then added &department=10 to the end of the URL in the browser address.
    I expected the report to display records for deptno = 10, but the query didn't return any records.
    Anyone know what's wrong??
    Thanks Larry

    Yes, except you need to add &department=10 to the end of the page URL, not what I had.
    Look at
    How to pass values from a Page to portlet in Portal.
    http://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=FOR&p_id=335031.996
    for a complete description on how to setup page parameters and associate them with bind variables.

  • Designer6i:  How change About Page template filename Web PL/SQL

    Hi
    how i can change the About Page template filename on Web Pl/Sql
    Thank!!

    Hi,
    Have you upgraded Apex?
    I assume you use XE EPG.
    Have you grant execute privilege on procedure to DAD user ANONYMOUS?
    GRANT EXECUTE ON WOLF_22.HELLO_WORLD TO ANONYMOUS;Have you changed wwv_flow_epg_include_mod_local that it allow execute WOLF_22.HELLO_WORLD?
    And write schema.procedure at upper case to function.
    If you have not upgraded Apex, run as SYS or SYSTEM
    CREATE OR REPLACE function FLOWS_020100.wwv_flow_epg_include_mod_local(
        procedure_name in varchar2)
    return boolean
    is
    begin
        -- Administrator note: the procedure_name input parameter may be in the format:
        --    procedure
        --    schema.procedure
        --    package.procedure
        --    schema.package.procedure
        -- If the expected input parameter is a procedure name only, the IN list code shown below
        -- can be modified to itemize the expected procedure names. Otherwise you must parse the
        -- procedure_name parameter and replace the simple code below with code that will evaluate
        -- all of the cases listed above.
        if upper(procedure_name) in (
              'WOLF_22.HELLO_WORLD'
        ) then
            return TRUE;
        else
            return FALSE;
        end if;
    end wwv_flow_epg_include_mod_local;
    /Regards,
    Jari

Maybe you are looking for

  • Changing From Workgroups to Domain

    Hi Alli know this has been floating around the community but i have not seen a answer that explains what i need. Here goes.I am support a company with over 500+ users across 4 sites.At our main site, they have decided to change to a domain instead of

  • Projector error requires Xtra (flash movie ...

    I have flash asset xtra in my xtras folder next to the projector. Yet, when clicked on the projector, I get this error. This application requires xtra (flash movie ...) that either did not How can I fix it? I am using D11.5. Is the Flash asset xtra c

  • How to display op amp as 14-pin chip rather than 4 individual amp circuits?

    As the title says; can I change the way Multisim displays an op amp from 4 individual amp circuits to 1 14-pin chip? I'm just interested in placing the chip and building my components around it.  thanks. SCXI- 1000 Chassis w/ 1346 adapter PCI 6281 DA

  • Post your changes upon disabling discrete video card.

    Hi, I had problems with disabling discrete video card on my laptop and results are very disappointing. I think its good to compare my results with others. So could you post it, pls. For example my results: - laptop asus x53sc - nvidia 520mx - temp: 5

  • JDeveloper 11.1.2 : Database Schema Drop-down List

    Hi After installing the new version, we have found that database schema's, that were visible in the previous versions, are no longer visible in the Business Components from Table wizard. The schema's that are still visible, have objects with grants t