For every login i have to display different proverbs.

Hi all,
Now i am using forms 6i ,database is oracle 10g..
I have to display first proverb in the login screen at users first login.
If user login for second time i have to display second proverb or another new proverb stored in the table..
If anybody Knows how to solve this reqirement..Please Reply me
Regards,
Ansaf..

Create a table to store the last used proverb per user like
CREATE TABLE USER_PROVERB (USERID VARCHAR2(30), LAST_PROVERB NUMBER);Create a database function with an autonomous transaction to retrieve the next proverb:
CREATE OR REPLACE FUNCTION FK_GET_PROVERB(i_vcUser IN VARCHAR2)
RETURN VARCHAR2 IS
  PRAGMA AUTONOMOUS_TRANSACTION;
  CURSOR crLastProverb IS
    SELECT LAST_PROVERB
      FROM USER_PROVERB
     WHERE USERID=i_vcUser;
  CURSOR crNextProverb(i_nLastProverb IN NUMBER) IS
    SELECT SLNO,
           MESG
      FROM PROVERBS
     WHERE SLNO>i_nLastProverb
     ORDER BY SLNO;
  nProverb PROVERBS.SLNO%TYPE;
  vcMesg   PROVERBS.MESG%TYPE;
  bInsert   BOOLEAN:=FALSE;
BEGIN
  OPEN crLastProverb;
  FETCH crLastProverb INTO nProverb;
  IF crLastProverb%NOTFOUND THEN
    nProverb:=-1;
    -- Set flag to insert
    bInsert:=TRUE;
  END IF;
  CLOSE crLastProverb;
  -- Fecth next proverb
  OPEN crNextProverb(nProverb);
  FETCH crNextProverb INTO nProverb,
                                 vcMesg;        
  CLOSE crNextProverb;
  -- remember last one
  IF bInsert THEN
    INSERT INTO USER_PROVERB (
      USERID,
      LAST_PROVERB
    ) VALUES (
      i_vcUser,
      nProverb
  ELSE
    UPDATE USER_PROVERB SET
      LAST_PROVERB=nProverb
     WHERE USERID=i_vcUser;
  END IF;
  -- Autonomous transaction commit
  COMMIT;
  -- return the retrieved text
  RETURN vcMesg;
END;(Code is just prototyped, not tested)
Now, just call that function to show the text

Similar Messages

  • Why does the i5 add a contact to my contacts list for every person I have ever emailed?  My 4 didn't.

    Why does the i5 add a contact to my contacts list for every person I have ever emailed using Outlook and Gmail?  The i4 didn't have this issue.

    Hi drewskiiiiiiiii,
    If you are having issues with your iPhone's Contacts application acting oddly, you may want to try some things to troubleshoot.
    First, quit all running applications and test again -
    Force an app to close in iOS
    Next, I would try restarting and if needed resetting the iPhone -
    Restart or reset your iPhone, iPad, or iPod touch
    If the issue is still present, you may want to restore the iPhone as a new device -
    How to erase your iOS device and then set it up as a new device or restore it from backups
    Thanks for using Apple Support Communities.
    Best,
    Brett L  

  • HT5622 Do we need to make a new Apple ID for every iPhone we have?

    I seem to be getting family members conversations and also when I send a message it gets sent back to me in text message as well as go to who I sent to. Was just curious as to if we all made our own Apple ID if this would be corrected?

    RECEIVING MESSAGES INTENDED FOR OTHER DEVICES
    This occurs if you are sharing the same Apple ID for imessages.
    If you are receiving imessages intended for other devices you can fix this by going to Settings>Messages>Send & Receive and do one of the following:
    1. Uncheck the email address shown under "You can be reached by iMessage at" on both devices if they are iPhones; or
    2. On one of the devices go to Settings>Messages>Send & Receive, tap the Apple ID, sign out, then sign in with a different Apple ID.  Note: you can continue to share an Apple ID for the iTunes & App store for purchasing if you wish; it does not need to be the same as the ID you use for iMessage, FaceTime, iCloud and other services.
    To prevent merging of your calendars and contacts when syncing calendars and contacts if you are using the same Apple ID for the iCloud account, be sure to set up separate iCloud accounts on each phone with separated IDs.  Remember that if you change your ID in iTunes & App store, that apps and other purchased content is forever linked to the ID that was used to download the apps and the apps can only be updated with the ID that was originally used to download them.  To download content purchased previously downloaded with a particular ID then that ID needs to be used to download past purchases.  If you want all apps to be connected with the same ID you need to delete those apps downloaded with the old ID and download them again with your current and if the apps in question were paid apps then you need to pay again.
    Read http://macmost.com/setting-up-multiple-ios-devices-for-messages-and-facetime.htm l
    If you wish to share an Apple ID with family members then read: http://www.macstories.net/stories/ios-5-icloud-tips-sharing-an-apple-id-with-you r-family/

  • Font smoothing settings doesn't consistently work for every login on Windows 2008 R2 when using a RDP client

    I'm trying to use the MSTSC client on a Windows 8.1 machine to connect to a Windows 2008 R2 server. In the MSTSC experience tab I checked the font smoothing option. Font smoothing works some times and doesn't work the other times. I don't see a pattern here.
    any kind of help is much appreciated.
    Thanks,
    Prasanna

    Hi Prasanna,
    Thank you for posting in Windows Server Forum.
    As you have Server 2008 R2, there is GPO setting available to specify whether font smoothing is allowed for remote connections.
    Computer Configuration\Policies\Administrative Templates\Windows Components\Remote Desktop Services\Remote Desktop Session Host\Remote Session Environment
    Do not allow font smoothing
    If you disable or do not configure this policy setting, font smoothing is allowed for remote connections.
    You can configure font smoothing on the Experience tab in Remote Desktop Connection (RDC) or by using the {allow font smoothing:i:1} setting in a Remote Desktop Protocol (.rdp) file.
    Hope it helps!
    Thanks.
    Dharmesh Solanki
    TechNet Community Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • Lync 2010 client promt for credentails to EWS server, ONE time on every login

    Hello
    I have a problem with Lync promting user to login to the EWS service.
    There is a lot of articles regarding this issue on the forums out there. But all the articles address issues with the autodiscover endless passwords promt and EWS not beeing deployed at all. That is not my case.
    If the user types credentials one time for every login to Lync, everything is okay. But this promt should not be shown at all....
    The EWS service is deployed, and if i right click on my lync client while holding the CTRL down I can in the configuration information that it is the correct EWS URL.
    If i manually browse the EWS URL in Internet Explorer I see the webservice WITHOUT having to enter any credentails (it uses my AD credentials that I'm logged in with)
    If Internet Explorer understand to use my AD-Credentials for authentication to the EWS webservice - I can't understand why the Lync client fails to do so???
    This error has started after we have added another SIP domain so we now have to SIP-domains. Certificate (wildcart) and aotudiscover is ok.
    Best Regards, Steffen.

    Hi,
    We were facing same issue in lync 2013.but prompt was not coming for everyone and every login.
    i have noticed few things and corrected it.you may check below points,if it helps.
        1)   Check EWS status in configuration manager. If status is OK or not deployed,   prompt will not come.
        2) If Status is trying to connect or retrying, then need to check for below   configurations.
        • Reset password if it is expiring in few days(mostly prompt come in this case).
        • recheck Credential format in prompt window.
        • Try with automatic configuration in internet connection LAN settings as   some time proxy is preventing Lync from connecting to EWS.
     If using proxy , try using automatic settings or exclude EWS and autodiscover url in   proxy server.
        • SMTP Address matches their SIP address or need to make registry.
        • Delete sip folder from machine for EWS cache information.
        • Enter the EWS External/internal URL value into a web browser and check if   it is resolving.
     

  • Display a label for every other category on a graph

    I have a line graph created in Illustrator with years on the horizontal axis (1998, 1999, 2000, 2001, 2002, etc.). There is data for each year that will be plotted on the line, however I would only like to display every other year (1998, 2000, 2002, 2004, 2006, etc.). Is there a way to show every other year on the horizontal axis.

    I can't leave the years out because there is data for those years. In Excel, there is an option to 1 display a label for every category, 2 to display a label for every other category, 3 to display a label for every third category. How do you do it in Illustrator. My table looks something like this but begins in 1980.
    "2001"
    52
    "2002"
    56
    "2003"
    81
    "2004"
    84
    "2005"
    91
    "2006"
    97
    "2007"
    102
    "2008"
    103
    "2009"
    104
    "2010"
    110
    "2011"
    106

  • Page Displays Different in Firefox

    I am new to web site development and new to Dreamweaver.  When I display the webpage in FireFox 3.6.3, the header picture shows below the logo on the left.  It displays fine in IE.  BTW, the font choice is not mine I tried to talk the person out of it.
    http://www.mulberrylanehillsdale.com/sample3.html

    You answered to the most little part of my comment (there was a suggestion for paged medias or for rendering on smaller displays, but this was not so critical, you should have seen it).
    The main point was about font smooting, that you have enabled in ALL browsers, EXCEPT Firefox on Windows.
    And this gives really a bad/unfair view of what is really Firefox on Windows.
    If one wanted to test a page for Firefox on Windows, he would certainly expect to see what he really sees on its PC, now most often with a flat panel display with pixel precision, but certainly not the non-smoothed rendering which is only for those users that have CRT displays.
    That's why I was not suggesting  really an expansion of the number of browsers. But:
    - if you have renderings for some browsers WITHOUT font smoothing, offer it on ALL browsers, to be fair
    - if you also have renderings for some browsers WITH font smoothing, offer it on ALL browsers, to be fair
    In other words, it should be a generic display option, that is independant of the browsers tested, and that should be selected by your users in their preferences, according to their own preferences: if a browser only supports one option (with or without font smooting), just display this version, otherwise, use the selected option on all compared browsers.
    And you will then see that most of your users are already preferring the pages rendered on any browser with the font smoothing enabled.
    Don't use the Microsoft's ClearType option, which uses subpixel precision, as it would require you to manage at least two versions: for display on your site with a RGB panel, or with a BGR panel : subpixel order would then have to be selected, adding two other versions of the same page for the same browser on the same OS... Instead just offer the pixel-level only smoothing, where smoothing applied equally to all R/G/B subpixel color planes, so that a black font on white background will be smoothed only using only "white-gray-black" full pixels without position-dependant colors).
    Side notes:
    For the long term, note that subpixel precision will be deprecated/obsoleted sooner or later (including on small display panels such as mobile phones, that will be the first to offer the highest pixel densities):
    It should be up to the display panel technology to map internally the standard sRGB colors (computed by softwares or in digital image formats or in web browsers and other computer GUI interfaces) to actual subpixels in a pixel (which may have different patterns, different coverage, different relative positions, possibly also 4 subpixels or more, just like with new Yamaha HDTV sets that use a non rectangular grid for the arrangement of subpixels, and that also use an additional yellow or white subpixel). Subpixel rendering technologies in software will also be deprecated because the display panel technologies will continue to improve to offer higher pixel densities, up to a level where the position of subpixels will not be noticeable : only the full-pixel smoothing will remain as it will reduce a lot the CPU/GPU cost of rendering and will be much faster to compute, using also less memory for finally the same resolution.
    Subpixel smoothing anyway is patented, and only a temporary "cheap" solution that can be implemented in CPU/GPU software, as long as flat panels don't have a higher pixel density (i.e. measured in full pixels per inch, not in colored subpixels per inch). These subpixel software technologies are in fact a nocive brake to allow the technical evolution of hardware display panels (the existing panels using rectangular R/G/B girds arranged in parallel vertical stripes have a poor color gamut, and display noisy color artefacts, as demonstrated by ClearType). The true evolution will not be in software but in hardware display panels, that will still benefit a lot from full-pixel font-smoothing only:
    - for example, the existing software subpixel artificially smoothing triples the horizontal resolution (but effectively only doubles the apparent horizontal resolution, due to correction of color artefacts), but do not increase the vertical resolution which remains poor. This gives an anisotropic result, which is desastrous for natural photographs or videos).
    - newer hardware subpixels arrangements (such as Yamaha's) can effectively double BOTH the horizontal and vertical resolution (and not just for text, but also for photos), using exactly the SAME subpixel density, and will produce a much better isotropic result without color artefacts (fair for high-fidelity colors and smooting of photos and video): this means similar costs of production of these panels, that should already be available in shops today and on notebooks, if this was only compatible with subpixel rendering softwares such as Microsoft's ClearType. and for now, we can't still have them on cheap PCs and notebooks, but only on the most expensive HDTV sets (notably the largest 1080p screens, whose size is more than 35 inches): note that these HDTV sets are also used for computer display (notably as a secondary "theater" screen for playing digital videos on online VOD contents) and for them the subpixel font-smoothing softwares have absolutely no use, only full-pixel smoothing will work correctly.

  • Embedded fonts display differently in mx and spark

    Hi there,
    My apologies if this is an known issue but I have not been able to find any posts describing this problem. As the title of the discussion describes the problem I see is that when embedding the same font for spark and mx components they display differently to the point of making the application look sloppy. I created a small app to illustrate the problem:
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application
        minWidth="955" minHeight="600"
        xmlns:fx="http://ns.adobe.com/mxml/2009"
        xmlns:s="library://ns.adobe.com/flex/spark"
        xmlns:mx="library://ns.adobe.com/flex/mx">
        <fx:Declarations>
            <!-- Place non-visual elements (e.g., services, value objects) here -->
        </fx:Declarations>
        <fx:Style>
    @namespace s "library://ns.adobe.com/flex/spark";
    @namespace mx "library://ns.adobe.com/flex/mx";
    @font-face
    src:url("arial.ttf");
    fontFamily: arialCFF;
    embedAsCFF: true;
    @font-face {
    src:url("arial.ttf");
    fontFamily: arialNoCFF;
    embedAsCFF: false;
    advancedAntiAliasing: false;
    s|Label
    fontFamily: arialCFF;
    fontSize: 20px;
    mx|Label
    fontFamily: arialNoCFF;
    fontSize: 20px;
    </fx:Style>
        <s:layout>
            <s:VerticalLayout
                paddingLeft="10"
                paddingTop="10"/>
        </s:layout>
        <s:Label text="This is a label that uses spark"/>
        <mx:Label text="This is a label that uses mx"/>
    </s:Application>
    I used the Arial.ttf font I found in my mac, though I have also tried with courier new and even the myriad web pro provided with an example in the SDK. Also I have tried with SDKs 4.1, 4.5 and 4.5.1. I have played with the value of advancedAniAliasing as well. Regardless of the combination I will still see differences such as this:
    Is this a known issue? Any solutions at hand?
    Thanks in advance for the help!!

    Hi there,
    Thanks for the quick reply. I was able to make fonts display correctly after hacking the display of some components (mx.controls.FormItem for example) however I did notice a whole buch of runtime warnings that showed up as a result of the workaround such as:
    warning: incompatible embedded font 'arialCFFFont' specified for mx.core::UITextFormat. This component requires that the embedded font be declared with embedAsCFF=false.
    TextFieldAutomationHelper:captureSelection() - 'selectionBeginIndex' is not implemented in FTETextField.
    And in some cases for components I do not even use:
    warning: incompatible embedded font 'arialCFFFont' specified for mx.controls::TextInput (TextInput1967) . This component requires that the embedded font be declared with embedAsCFF=false.
    Any ideas on how to avoid this noise or do we have to live with this?

  • Creating 1 spool for every 1000 sapscripts

    Hi Friends ,
    I have a program where i am printing W-2 forms (sapscripts) . There are a total of 3000 forms . I need to be able to split them into 3 spools of 1000 each instead of creating 3000 spools . Please advise as to wat parameters need to be set in the beginning and when starting a new set of spool with 1000 forms .
    Thanks,
    Teresa

    You need to count the records and then for every 1000 you have to make a new SPOOL..
    LIke:
    LOOP AT ITAB.
    CNT = CNT + 1.
    ITCPO-TDNEWID = ' '.
    IF CNT =  1.
      ITCPO-TDNEWID = 'X'.
    ENDIF.
    OPEN_FORM
    wtih OPTIONS = ITCPO.
    WRITE_FORM
    CLOSE_FORM
    IF CNT = 1000.
      CLEAR CNT.
    ENDIF.
    ENDLOOP.
    Regards,
    Naimesh Patel

  • Loop the table entry and for every entry perform some action.

    Hello Experts,
    I have a requirement where there are let say n no. of entries in my ITAB and now for every entry i have to check certain field value and based on that i have to send respective mail.
    Now this has to run in background mode and the job will run on daily basis so the entries of table that are already processed should not be reprocessed.The scenario is every day the new entries will be added to ITAB and the newly added entries should be processed only.
    Please provide some sample code if possible.
    Thanks,
    Naveen

    Hi,
    I can not add a new field to the existing ztable. Crating a copy of ztable with addtional field status and setting it as processed against the record whenever i populate ITAB from ztable could be a solution but seems very lenthy method.
    There is one filed zdate  so write the code as below:-
    loop at itab where zdate = sy-datum
    email code------
    endloop.
    OR can i make use of
    loop at itab into wa
      ON change  of <filed1>
    email code-----
       ENDON
    endloop.
    Thanks,
    Naveen

  • Why doesn't Apple make iPhoto free to older versions of the iPhone, iPad, or iPod? They made it free for the new products and I don't understand they don't make it free for every device.

    I want iPhoto and iMovie and I don't understand why Apple doesn't make them free for every device they have.

    I want iPhoto and iMovie and I don't understand why Apple doesn't make them free for every device they have.
    They are not exactly free on the new devices either. iMovie and iPhoto are included, when you buy a new device. You're purchase price for your older devices did not include the apps, so you have to buy them, sorry.

  • I have 2 displays 1920 and 3840, use 1920 for every day work, some pages I would like to open in 3840 display, is this possible?

    I have 2 displays 1920x1080 and 3840x2160,
    I use 1920x1080 for every day work, some pages I would like to open in or redirect to the 3840x2160 display, is this possible?

    No, but there is a developer tool that you can add a custom size to. It is called Responsive Design View.

  • Hi Everyone,  I am using iPhone5, my question in how to display name and contact number both stored for incoming and outgoing calls? If I have saved five different numbers with a same name, how do I recognise that from which number caller is calling?

    Hi Everyone,  I am using iPhone5, my question in how to display name and contact number both stored for incoming and outgoing calls? If I have saved five different numbers with a same name, how do I recognise that from which number caller is calling?

    I have friends all over Europe, does it matter what number they use to call me? Nope! All incoming calls are free for me.
    The only time you ever have to worry about which number is if you get charged for incoming domestic/international calls.
    You can tag their number (work/home/iphone) and that may show on the CallerID accordingly.
    It should show, John Doe
    underneath,    work/home/mobile
    For example:
    http://shawnblanc.net/images/img-0009-1.png

  • When I click "remember my user name" for web pages, it does not work for web pages - I have to login after every restart (eg Hotmail)

    On websites I visit daily – newspapers, Hotmail, etc, even though I have clicked "remember me on this computer", it does not work. I have to log in every time I have restarted my computer (Mac OSX 10.5.8). Also, this may be related. I have iGoogle as my home page, but "themes", location, widgets, etc are not saved when I shut down.

    * Such details are stored in a cookie.
    * You need an allow cookie exception (Tools > Options > Privacy > Cookies: Exceptions) to keep that cookie, especially for secure websites and if you let cookies expire when Firefox closes
    * Make sure that you do not use [[Clear Recent History]] to clear the "Cookies" and the "Site Preferences"
    Clearing "Site Preferences" clears all cookies, images, pop-up windows, software installation, and password exceptions.
    Clear the cache and the cookies from sites that cause problems.
    * "Clear the Cache": Tools > Options > Advanced > Network > Offline Storage (Cache): "Clear Now"
    * "Remove the Cookies" from sites causing problems: Tools > Options > Privacy > Cookies: "Show Cookies"
    "Remove the Cookies" from sites causing problems: Firefox > Preferences > Privacy > Cookies: "Show Cookies"
    If clearing the cookies doesn't help then it is possible that the file <i>cookies.sqlite</i> that stores the cookies is corrupted.
    Rename (or delete) <b>cookies.sqlite</b> (cookies.sqlite.old) and delete <b>cookies.sqlite-journal</b> and <b>cookies.txt</b>, if they exist, in the [http://kb.mozillazine.org/Profile_folder_-_Firefox Profile Folder] in case the file cookies.sqlite got corrupted.
    * http://kb.mozillazine.org/Cookies#Removing_cookies

  • I just upgraded to Lion. I was trying to set up the iCloud and it asked for my "login" keychain password. I've never been asked for that before. I've tried every password I can think of and nothing works. Is there a way to reset the keychain password?

    I just upgraded to Lion. I was trying to set up iCloud and it asked for my "login" keychain password. I've never been asked for the keychain password before. I've tried every password I can think of and nothing works. I'm normally asked for the password to my machine when upgrading software, signing on, etc. but this is different apparently. I tried the same password and it didn't work either. I read a couple of posts and they all want to take me through Applications/Utilities but that requires knowing your password in order to change it. I don't know it. Don't remember ever setting up a keychain password. Does anyone know how to change the keychain password if you don't know the keychain password???

    Most of the time your Keychain password is the same as your login password. If you configured your computer to log you in automatically, you may not have used your login password in so long you forgot it.
    There is no way to retrieve the "login" Keychain password, but you can reset the Keychain from the Preferences menu: select it in the Keychain Access menu and select "Reset My Default Keychain". This will create a new, empty Keychain but the old one will be saved should you ever remember its password.
    The result of this is that you will have to supply passwords for everything that requires it, since without your Keychain they will no longer automatically fill themselves. However, once you supply them and store them in your new Keychain, they will be remembered.

Maybe you are looking for

  • Internal table in bdc

    I am new to the bdc . i have gone to SHDB and created a new recording  for the some T-code . After that i have created a prog (transfer from recording ) . i got some values in the file in my presenation server. i got default code generated . I have t

  • Need to upgrade iPhoto before i can upgrade to Photos. It says it's not available in the UK. Help!

    I have iphoto 9.2.1 (don't ask...it's not my computer...) and I can't seem to find a way to update to the latest so I can migrate pix to Photos. It says I need to do it; it takes me to the app store and then says it's not available in the UK. Any ide

  • How do I (or can I) convert an embedded smart object into a linked smart object

    If I start with an embedded Smart Object (S.O)., can I easily convert in into a linked type of S.O.? I have not seen this feature available in the tooling yet. Please advise.

  • Why is my song duration multiplied?

    I recently loaded a few new mp3s into ITunes. Most of them loaded in fine but i had a weird problem with a few of them. One 2 and a half minute song is now over 20 minutes, if i listen to the entire song it just plays the original one 19 times or so

  • Bapi to Asign standing instructions to BP (Authorizations).

    Hi all. I'm using BAPI_BUPA_ROLE_ADD_2 to asing role TR0150 to the Business Partner. I would like to determine the Standing Instructions to this BP. Particularly the SI: Authorizations. I can't find this BAPI. Is there a BAPI to assign this informati