How to compare text box value with the table data??

Hello ALL,
I created one stored procedure in DB,it is as follows:-
CREATE or replace PROCEDURE chkUser
u in varchar2,
p in varchar2,
ap out varchar2
is
begin
select count(*) into ap from tbuser where loginid = u and password = p;
end;
And at the front end I have designed a form with 2 text boxes, now my question is I wanna compare these text box values(which user enters) with the data of the table....??? something like control (may be I am not sure)..... ???
If anybody can help me out with this issue...... help will be appreciated
Thank you.
regards,
Kumar

hi Elise,
I'm always getting the Error Message as "Invalid Creditianls"... let me tell you the whole scenario with sql synatx.
I have created tables as:-
CREATE TABLE "TBUSER"
(     "LOGINID" VARCHAR2(30) NOT NULL ENABLE,
     "PASSWORD" VARCHAR2(30),
     CONSTRAINT "TBUSER_PK" PRIMARY KEY ("LOGINID") ENABLE
than I created the Procedure on tbuser, it is as:-
create or replace PROCEDURE logincheck
u in varchar2,
p in varchar2,
ap out varchar2
is
begin
select count(*) into ap from tbuser where loginid = u and password = p;
end;
now at the front end side I have created one form with 2 text boxes (P8_USERNAME & P8_PASSWORD) and 2 buttons (Cancel and Submit)
as per you told me in the above post, I have created 'Validation' procedure with Type as 'Exists' and expression(into Validation Expression1)as:-
select 1 from tbuser
where loginid = :P8_USERNAME
and password = :P8_PASSWORD;
and
kept an error message as 'Invalid credentials'.....
but I don't know what's going wrong..... I do have few data into the table, and when I am entering the same data(with case sensitive) I am getting the Error message, rather than when the credentials are perfect user should be allowed to enter into the current page(where I have created this form and validation procedure)....
any idea what's going worng and where...????
thxs.... appreciated..
regards,
Kumar

Similar Messages

  • How to compare text field length with the length of input characers

    I hae a problem with the length of text field
    I want to fix the length of TextField by taking the length of attribute to, whihc i have to use in text field
    Like i have set the max length of Attribut to 10 and set the length of textfield also 10.
    But the problem is that if i enter 10 'i' it dosn't fill even half the space in TextField
    And opposit if i enter 10 'W'
    I wonder if there is a solution for this problem
    i ma using True Type of Font

    * paint method in your own class that extends Canvas
    * @param g where to paint e.g. printer, screen, ram
    public void paint (Graphics g)
    // display word "today" centred at x,y
    FontMetrics fm = getFontMetrics( g.getFont( ) );
    String wording = "today" ;
    int xadj = fm.stringWidth( wording )/ 2;
    // position bottom left corner of the text
    g.drawString(wording , x-xadj, y );
    // draw a red line from x1,y1 to x2,y2
    g.setColor( Color .red );
    g.drawLine( x1 , y1, x2, y2);
    // draw an pre-existing Image. imX,imY is top left corner of the Image.
    g.drawImage ( image , imX, imY , imWidth, imHeight , this);
    } //end paint

  • Text Box Value in the Query Bind Parameter

    Hi
    I have to use text box value in the query bind parameter
    Thanks to help...

    Hi,
    - drag Execute with params
    - use EL
    Frank

  • How to compare dropdown pre value with post value in sharepoint designer list workflow

    How to compare dropdown pre value with post value in sharepoint designer list workflow

    Hi,
    Can you provide more details about your requirement? It would make others easier to find a solution for you.
    By default, a workflow will be triggered after submitting data in the NewForm or EditForm.
    If you want to monitor the value changed in a drop down menu which is supposed to be in NewForm or EditForm, it would be more appropriate to apply custom JavaScript in the NewForm
    or EditForm page.
    About how to detect the value changed using JavaScript, the demos in this thread would be helpful:
    http://stackoverflow.com/questions/12080098/dropdown-using-javascript-onchange
    Thanks
    Patrick Liang
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Access report export to excel shows =sum() text boxes prefixed with the textbox name

    When exporting reports from access to excel the =sum() (group and total sums) text boxes all have the text box name prefixed to them in excel. They look good in access reports. Any way to turn this off? Why is this happening?
    I've seen the same issue on 2 computers running Access 2010. I also tried this in access 2013 and had the same issue.
    See the images below as examples, the first is from access, the second is the report exported to excel.
    Access 2010 (http://i.stack.imgur.com/4roFM.png)
    Exported report viewed in Excel 2010 (http://i.stack.imgur.com/6B1zj.png)

    I've seen the same issue on 2 computers running Access 2010. I also tried this in access 2013 and had the same issue.
    Hi Scott,
    Did you use the same database file? May I know how did you create the report and those TextBoxes?
    I couldn't reproduce your problem, this is what I did:
    Create a sample table and the corresponding report. Group it by one of the field, then give it a footer section. In the footer section I inserted a TextBox and set the ControlSource property to "=Sum([fieldname])". But the name of the TextBox didn't
    show in the exported Excel file. Check the screenshots here:
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Is there a way to have a "text box" stay with a table or chart?

    I have multiple tables on one sheet. I understand that the table is named over in the left side of the screen. For what i need to do,  I am looking at multiple tables on one sheet. Its easier to know which is which by having a text box above with its desctription. If I need to move that table I would like for the text box to move with the table it is for, rather than having to move them both seperately. Is there a way to like "merge" them together? I've selected the two together and looked for an option in the inspector & in the menu bar, yet still cant figure it out.
    =/ help!!

    For a table, you can use the Table Inspector to Show Name (checkbox near the top of the Inspector pane).
    As seen above, the Table name can be formatted using a choice of font, size and colour (not changed in the example). To format, click on the displayed name to select its frame/box. Then use the controls in the format bar to chose font, set size and color, and set the background colour if desired.
    I had finally just figured that out before I read this, after quite some time of messing around with it. Thanks for your quick response. Wish i realized these discussions were available when I first started using numbers! How very  helpful!!
    And to fireflyer, thanks for that advice I didnt know you can do that and I will be able to use that in many situations! =)

  • How to set a variable value on the BPC Data Manager

    Hello BPC Experts,
    I'm creating a BPC10 NW version demo environment for our prospect customer.
    I made a data manager to import  BW data into BPC model from BW cube.
    I need to import just one month data into BPC from the BW cube that has more than one month data.
    When I run the data package manually, I can select a member of the time dimension prompt and I can import specific month data I want.
    But, in a case where the program (data manager) runs by JOB monthly,
    I can't select a member of the time dimension prompt manually.
    So I want to know how to set a  variable value to the time dimension prompt from a system date etc. automatically.
    Are there any way to set a variable value to the time dimension prompt on the data manager automatically from a system date?
    Or, do you have any other solution to import just one month data into BPC from the BW cube that has more than one month data  by the data manager running on JOB ?
    (without selecting a member of the time dimension prompt of the data package manually)
    Thanks in advance,
    Keisuke

    Hi Gersh
    Sorry for my late reply and thanks for your helpful information.
    I tried the second way of your information and I could configure it.  
    And I 'll try first way of your information.
    Regards,
    Keisuke

  • How to pass line item values in the table paramer of FM

    Hi all,
    When i will give the import of  the FM as VBELN"sales order number.
    I want to display all the line items for "PO Quantity in the out put of the FM.
    For this i thnk i have to pass the line item values in the table parameter of the FM.
    Can any body please tell me how to pass the values for the line items in the table parameter fo teh FM.
    Please give a example.
    Thanks

    Sub pLoopThroughPivotFields()
    Dim oItem As Excel.PivotItem
    Dim oField As Excel.PivotField
    Set oField = ThisWorkbook.Worksheets("Sheet1").PivotTables("Pivot Table name").PivotFields("field name")
    For Each oItem In oField.PivotItems
    oField.CurrentPage = oItem.Name
    'Put your copy code here
    DoEvents
    Next oItem
    End Sub
    Felipe Costa Gualberto - http://www.ambienteoffice.com.br

  • How can I insert a value into the Oracle Date column using JDBC?

    Suppose I have a table TEST created by "create table TEST (c1 INT, c2 Date);"
    Now I want to insert some proper value into the table TEST's column c2. I couldn't do that by TRYing using Java.sql.Date, Java.Util.Date, Java.String.
    Could anyone give me some suggestions by providing the sample code?
    Many thanks for your help!
    Wendy

    What about building the java string:
    "Insert into test (c1,d1) values ("+
    Integer.toString(var)+
    ", TO_DATE("
    formatYourDateVariableWithCalendarMethods
    ",'DD-MON-YYYY')"
    and executing it ??

  • How can I make the »Text Box« blend with the background?

    I have a problem that my document is almost finished, but still I cannot solve one basic problem. My “Text box” fields are still selectable (I get the blue select/resize buttons around the text) when I click on them when reviewing my document in the reader. In this “Text box” fields there is text that is not meant to be changed by the end user. It should just be shown (blend with the background) and not selectable. This resize buttons around the text box don’t work and don’t allow the end user to change the size but their presence alone drives me crazy.
    Should I use the “Stamp” tool in this case or is there a setting (with the text box tool) that I’m missing?

    It seems that I found the solution. Is the only way to avoid the before mentioned edit box that I use the TouchUp Text tool to add text?

  • How to make text clicks go with the volume?

    My old iPod 3G used to make text typing sounds according to my volume. So if my volume was off there would be no text noises but with my new iPod touch the texting sounds are there regardless.  What do I do?

    Roxpat wrote:
    I'm beginning to consider learning other applications (Dreamweaver and/or specific languages), so feel free to offer those up as well.
    roxpat ~ Since your web site content is community oriented, you may be interested in this free, web-based site builder for social networks:
    http://about.ning.com/product.php
    ...Their Events feature lets members know about upcoming playgroups, coffee mornings, etc. related to your social network's theme. Read more here.
    You may want to consider hyperlinking from your iWeb site to a Ning site to provide some specific feature that iWeb doesn't offer.

  • How to run webi report automatically with the current date/system date in webi report

    Hi Friends,
    I have a webi report which has a date prompt now. Based on the selection that user makes while running a report, he will get the related data for that particular date selection. Now I want to make that date prompt automated that is the report should run automatically based on the system date daily on scheduling.
    I want it to run current day automatically without have to go in and pick the date in webi report. I will be scheduling the webi report. Can you please let me know how to achieve this functionality of running a webi report automatically with a system date.
    Please let me know if I couldn't make you understand so that I will write with an example.
    Waiting for your valuable solutions.
    Thanks in advance.
    Regards,
    Bhaskar

    Hello Bhasakar,
    1.Create sysdate object in the universe
    2.Create another query in webi and select only sysdate object
    3.In the original query drag the Day object in the filter pane and choose the "List of values" from another query.and select the sysdate object from the second query.
    So your report always will run for sysdate...
    regards,
    Naveen D

  • How can I create a sample with the Flex data?

    Hi mates, I'm thinking about doing some stutter vocals with the ultrabeat so I've got a vocal and I have flexed it in time so it fits well on the song's tempo, the problem is that when I create an audio file of the part of the vocal I want to use on my ultrabeat, it creates an audio file that's not fitted in time.
    How can I create the audio file fitted in time?with the flex info?
    Thanks so much!

    psikonetik wrote:
    How can I create the audio file fitted in time?with the flex info?
    You need to create Apple Loop, REX etc.
    For example select the region that you have already flexed, right click ->Bounce Merge->Bounce Inplace. I will create a new audio track with the bounced Flex work.
    Select the new region and go to Audio menu ->Open in Apple Loop Utility and check "Loop" and other attributes to create an Apple Loop. Save the Apple Loop and close the utility. It's expected that the Apple Loop aif must be created in your Project path folder or have a look at the Audio Bin in Logic where is the aif path.
    Drug the Apple Loop in the Arrange audio track ( or it will create one ) and operate with any tempos.
    !http://img59.imageshack.us/img59/4967/aglogo45.gif!

  • How to create an IDoc just with the updated data.

    Hello I have a question regarding IDocs.
    In case I updated an existing material.
    Is there a transaction where I can put a matnr in, that reads the change pointer table and creates an IDOC with just the updated fields for an existing material.
    Like the transaction BD21, for example. But there I just have the possibility to enter a message type and not a material number.
    If there is no standard transaction. What steps do I have to do to achieve this goal?
    Kind regards,
    Tobias

    thanks a lot for your fast answers. but I want to decide weather I want to create a idoc that includes all data for a material (using transaction bd10) or create an idoc that includes just the updated data.
    The program logic should be the following:
    Select all materials in the change pointer table (that have been changed or new created).
    Check what value has been changed.
    If it is value YSAPSYSTEMXX (extension of mara) then create a idoc with all data for the material.
    If not YSAPSYSTEMXX has been changed create an idoc that includes just the updated data.
    For Idocs that include all material data I would use sap standard transaction BD10 and batch-input.
    For Idoc that should only include the changed/updated data I am searching for a corresponding transaction….
    Kind regards,
    Tobias

  • How can I debug a problem with the 3g data connection on my iPhone 4s?

    This question didn't get any answers in the "Using iPhone" forum. Thought I would re-ask here. Note, I had to reset the network again today 2 days after the last reset:
    I've been having intermittent problems with my 3g data connection on my iPhone 4s on ATT. Whenever this happens I see full bars etc, but can't browse from safari or get any data in other apps. My wife's iPhone 4 right next to me has no issues at all. Switching on/off airplane mode and turning off/on Cellular Data does not help. The only thing that helps is resetting the Network Settings or hard restarting the phone.
    I figured my problems were hardware related so I took my phone in for a replacement the other day. Things started out fine but after I upgraded it to 5.01 and restored my backup and now I am back to having the same issue today. I assume the issue is with something coming from my backup / restore but is there any way for me to pinpoint what could be causing the issue. I have a lot of apps, I'd rather not have to reinstall and set them all backup manually, but I would if I knew that would fix the problem... but for all I know one of the apps could be causing it.
    Anyone have any logs I can check or testing I can do on my end?
    Thanks!

    Unfortunately, Apple does not make any logs available to the average schmoe (like us) for networking, kernel dumps, or anything else (assuming, of course, it is not jailbroken).
    Your best bet is to take it back into the store. Ask them to look at the notes in GCRM regarding the last time this occured, then explain after upgrading to 5.01 it is occuring again. Then ask them for a phone swap since it is a reoccuring issue and doesn't sound like an OS/SW issue. Good luck!

Maybe you are looking for

  • Can I designate what specific playlists I want to play in order or shuffle?

    With either the newer or older version of iTunes, is there a way I can designate a specific playlist to play in order or shuffle? I have specific playlists that I want to play in a particular order. I also others that I wouldn't mind shuffling them.

  • How to call a concurrent program with some parameters in a stored procedure

    Hi All, I have made two procedures, xx_nidhi_proc1 and xx_nidhi_proc2. xx_nidhi_proc1 takes four parameters from front end and is registered as concurrent program in oracle apps and running fine alone. xx_nidhi_proc2 calls the concurrent program of x

  • How to make iPhoto the default photo program

    I belong to a photo sharing site where I upload photos. When I click "browse" at the site, iPhoto automatically opens and I can select and upload my photo. A friend with a new Mac does the same thing - clicks "browse," but iPhoto doesn't open.  I thi

  • Paragraph spacing in an epub

    I'm preparing a file for export to epub. I have applied paragraph styles to the content, including space after values. When I view the epub in ADE or Firefox, the space after value is not there. Anyone have any suggestions? Thanks!

  • What is a possible solution on this error?

    I can't find any information on this error that I have been getting for both Facebook and MySpace. The error is as follows: "You are currently on a service plan that does not support this application. Please contact your service provider for addition