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

Similar Messages

  • 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

  • Passing multiple values to the QUERY BDOC parameter?

    hi All,
    Below is my Query BDOC Anchor Before Query Execute even handler... I'm trying to pass multiple values to the         bq.Z_PartnerFunction query parameter... i.e. 
    PARTNER_FCT in( '00000012','ZDIVMGR','ZAREADR')
    is it possible without creating new Query Bdoc ?
    ====================================
    Private Sub aempchoicewinTCWSearchTAnchor_beforeQueryExecute(ByRef bq As BusinessQuery, ByRef cancel As Boolean)
    If Not bq Is Nothing Then
            If sWcDummy = "Yes" Then
                    bq.WcDummy = sWcDummy
            End If
            bq.Z_PartnerFunction = "00000012"
            If ctrlZ_Territory.Value <> "" Then
                 bq.PRNB_TerrID = "*" & ctrlZ_Territory.Value
            End If
    End If
    End Sub
    ================================
    Thanks in advance
    Hetal

    Hi,
    it looks that you already enhanced the query BDoc because you have a new query parameter bq.Z_PartnerFunction, right?
    To which BDoc parameter is this BQ parameter mapped? And how looks the related where clause?
    For a single filter normally a "=" operator is used. Therefore your example with "in" won't work.
    If these three partner functions are fixed then you might hardcoded them directly in the where clause (supposed the BDoc is not used somewhere else where you don't want to have this filter).
    Or you might add 3 new BDoc parameters, add 3 new where clauses using a disjunction for them (and using an embracing bracket). In this case always all these 3 BQ parameters need to be filled (or all stay empty) to avoid a SQL syntax error.
    Regards,
    Wolfhard

  • Button to call pl/sql stored proc using text box value as parameter

    I need to create a portal page with an input text box and a button (or a clickable pl/sql item). A user will enter a value in the text box and click the button, a stored pl/sql procedure will be executed that takes the value of the text box as an input parameter. The procedure output (basically a success or an error message) must be printed in a new window which the user can close after checking the output. No redirection to another page is required.
    I have no experience in developing portal pages and would appreciate if you point me in a right direction. Do I need to create an html form and obtain the value of the text box via p_session object? In this case what do I need to specify as ACTION for the form - the same page URL? Where should I place the call to the stored procedure? Or can I somehow use a pl/sql item?
    Thank you for your help

    Hi Arnaud
    Thank you for the reply. Could you please give me dome more details. I have created a procedure:
    create or replace procedure grant_roles (p_username varchar2) as
    begin
    <code>
    htp.p('Grant succeeded for username is '||p_username);
    exceptions when others then
    htp.p('Grant failed. '||v_err_msg);
    end;
    and an html portlet:
    <html>
    <body>
    <form name="input" action="/pls/portal/pls/portal_public.grant_roles_test?p_username=anna" method="get">
    <input type="text" name="t_username" size="20">
    <br>
    <input type="submit" value="Grant">
    </form>
    </body>
    </html>
    Obviously this is not the right way to call my procedure as it does not work. And of course I want to pass the value of the t_username text box to the procedure not the string "anna". I am also not sure where a procedure prints its output. Is it possible to open a new window to display the output?
    Thank you for your help,
    Anna

  • Query bind parameter in Advanced Search

    Hi,
    We are using a query bind parameter in an Advanced Search . The parm that is passed is on an Lov field which works when we use the lov to populate the field but doesn't get passed if we enter the value manually instead.We are using the setActionListener tag in a copy of the findLovItem.vm file:
    &lt;af:setActionListener from="#{searchxxxx.criteria.xxxx+attributename+}"
    to="#{QueryBindParamBean.+attributename+}"
    The 'from' value is taken from the 'value' field in SelectInputText tag of that attribute ('+attributename+') found in the Advanced_Search_Lov_Item in the .jspx. We are doing the exact same thing in a form view (not the search) for the same attributes but are using the corresponding value for that attribute instead and it works no problem:
    &lt;af:setActionListener from="#{xxxx+attributename+LovItem.lovFieldValue}"
    to="#{QueryBindParamBean.+attributename+}"
    any ideas why the value isn't being passed in the search page when entered manually?
    thanks!

    Hi,
    It does not directly ring a bell for me why you cannot copy this value. But since JHeadstart is simply using a bean with a Map to store it's values, it does not sound like a JHeadstart issue per se.
    To simplify the test case, you could create a simple drag-and-drop ADF application without JHeadstart and see if the same problem occurs there. If so, can you please log a TAR at MetaLink ( http://metalink.oracle.com/ ), or ask this question at the JDeveloper forum? Thanks.
    Evert-Jan de Bruin
    JHeadstart Team

  • Using JhsUserRole in Query Bind Parameter

    Hi there,
    I'm working with JDeveloper 10.3.4.0.
    I've define a bind variable, and I want to fill it in Jheadstart as "Query Bind Parameter".
    It should be a conditional statement which checks user permissions, like this:
    BindUserID=#{JhsUserRoles['Issue.OwnOrg'] ?  413 : 412} Using this statement, I receive this error message:
    javax.faces.FacesException: javax.faces.el.ReferenceSyntaxException: '#{JhsUserRoles['Issue.OwnOrg'] ?   413 : 412}'It seems that the ' (single quote) character causes problem in the bean file (XML syntax, nested single quotes):
    <key>BindUserID</key>
              <value>#{'#{JhsUserRoles['Issue.OwnOrg'] ? 413 : 412}'}</value>As I've searched, the character escaping mechanism in XML, is based on using Unicode, so I changed the statement to this:
    {noformat}<key>BindUserID</key>
              <value>#{'#{JhsUserRoles[#39;Issue.OwnOrg#39;] ? 413 : 412}'}</value>{noformat}But It interprets #39; to ' and I still get the same error message. (Obviously the Unicodes start with &, I've omitted them to be able to display it in this message)
    So, I want to know if there is anyway to fix this problem.
    Thank you in advance
    Farnoush

    Steven,
    Thanks for your reply.
    But, it seems that .xml bean files are not case sensitive, so JhsUserRoles works as well.
    About your suggested expression it does not work either.
    I solved the problem in this way, I edited the bean file and replace the outer *'* with *"*.
    {code}<key>BindUserID</key>
    <value>#{"#{JhsUserRoles['Issue.OwnOrg'] ? 413 : 412}"}</value>
    {code}
    And then I removed the tick of "Generate Controller Group" of the my jheadstart group.
    This solves the problem.
    Farnoush

  • LOV with a query Bind Parameter

    Hello,
    I am following the JHeadStart PDF tutorial over the HR Schema. On the page 45 this tutorial shows how to make a Dynamic Lookup with a Query Bind Parameter to choose the employees of a department with the expresion "p_dpt_id=#{bindings.DepartmentsDepartmentId.inputValue}".
    After that I tried to make the same using a LOV instead of a Lookup but on the popup window opened with the LOV table the "#{bindings.DepartmentsDepartmentId.inputValue}" value is null and I can´t access to this information. If on the LOV definition I write for example "p_dpt_id=30" this work ok and filters the query for the employees of the departen 30, but not with "p_dpt_id=#{bindings.DepartmentsDepartmentId.inputValue}"
    There is another way to do that?
    Thank you very much

    I have done this task using the aid of the JHeadstart manual and these two previously posted threads,
    Group Used as LOV does not return records
    Query Bind Parameters and LOV's [JHS 10.1.3.1]
    The actual process to do it feels rather unintuitive and complicated, but I've tested it and thus far is works flawlessly.
    I whipped up a demo of this using the HR schema and JHeadstart, maybe I will post it on here.

  • Query bind parameter

    Hi,
    I have version JHeadStart 10.1.2.1
    I use the same way as "UserContext" for my session values.
    I have a view with a "where clause" id_number = to_number(:1)
    In my field "Query bind parameter" I put ${jhsUser.p_idnumber}.
    When I execute, I get an error ORA-01722: invalid number...
    How can I resolve or debug this problem?
    Any help is appreciated.
    Thanks.
    Luc

    Luc,
    For ${jhsUser.p_idnumber} to work, the Java class implementing JhsUser (that is, UserContext) must have a method getP_idnumber() or getP_Idnumber(). I'm not sure about the capitalization because in Java Beans usually there are no underscores in variable or method names.
    To prevent this confusion, it's best to create a method getIdNumber() in your UserContext class, and use the JSTL expression ${jhsUser.idNumber}.
    For an example, see the JhsDemo shipped with JHeadstart 10.1.2.1, and look in the Model project for the UserContext class (in package oracle.jhsdemo.model), it has a method getDisplayName(), which is called when the standardPageLayout.uit references ${jhsUser.displayName}.
    When you have the JHeadstart logging turned on, and you run the application in Embedded OC4J, the OC4J Log window in JDeveloper will show a message when the binding parameter is applied, and which value it uses.
    Hope this helps,
    Sandra Muller
    JHeadstart Team
    Oracle Consulting

  • CHAR's value in the query but not in the report??

    Hi all,
    I loaded master data and crm transaction data from ODS to Cube. The data is in the cube but there is no value in my report when running it. EX: there are some CHARs in my report, I checked those CHARs have value in the query but it shows 'not assign' in my report when I run it. What happen?
    Thanks.
    J.

    Please see below text and also the sent link..
    If a navigation attribute is used in an aggregate, this aggregate has to be adjusted using a change run as soon as new values are loaded for the navigation attribute (when master data for the characteristic belonging to the navigation attribute is loaded.) This change run is usually one of the processes that are critical to the system performance of a production BW system. This is why, by avoiding using navigation attributes or not using navigation attributes in aggregates, you can improve the performance of this process. On the other hand, not using navigation attributes in aggregates can lead to poor query response times. The data modeler needs to find the right balance.
    http://help.sap.com/saphelp_nw04/helpdata/en/b2/e50138fede083de10000009b38f8cf/frameset.htm
    cheers,
    Vishvesh

  • How to retrieve the Text entered in the Text Box provided in the UWL Inbox

    Hi Experts,
    I have created a workflow with user decision task. for that task in UWL inbox i provided a text box using XML Code, but i couldnt retrieve the Text entered in the text box. I hope the text will automatically upload in the "_Attach_object" container element of the Workflow,  but it couldnt upload in that,  If anyone can help me to solve this issue.
    Thanks & Regards,

    Hi,
    <ItemType name="uwl.task.webflow.decision.TS91100000" connector="WebFlowConnector" defaultView="DefaultView">
    <ItemTypeCriteria connector="WebFlowConnector" externalType="TS91100000"/>
    <Actions>
      <Action name="accept" groupAction="yes" handler="UserDecisionHandler">
       <Properties>
        <Property name="decisionKey" value="2"/>
        <Property name="UserDecisionNote" value="true"/>
       </Properties>
      </Action>
      <Action name="reject" groupAction="yes" handler="UserDecisionHandler">
       <Properties>
        <Property name="decisionKey" value="1"/>
       </Properties>
      </Action>
    </Actions>
    </ItemType>
    I have implemented the above code and i got the Text Box,  but now the problem is i couldnt retrieve the
    text entered in the Text box.  I checked in the  attachobjects   container element related to the task and the subsequent task but the text is not appearing there.  Can you help me to get the text entered in the text box.
    Thanks & Regards,
    Manikandan.S

  • Compare two text box values????

    Hello All,
    I do have one logic, but not sure where to write it so want your guys help for the same.
    The logic is:-
    if (&P13_NEW_PASSWORD. == &P13_CONFIRM_NEW_PASSWORD.) then
    insert into tbuser (password) values (&P13_NEW_PASSWORD.);
    else
    dbms_output.line_('Both the text boxes should be same!!')
    P13_NEW_PASSWORD and P13_CONFIRM_NEW_PASSWORD are two text boxes, where in above statment I'm comparing two text box values, if yes than insert that values into the DB tables otherwise displaying else messges.
    so can anybody tell me where should i write the above logic to make it work perfect..!!!
    thanks
    regards,
    Kumar

    Kumar,
    I'm glad you asked! Here's a great blog post on a custom auth scheme that hashes passwords:
    http://djmein.blogspot.com/2007/07/custom-authentication-authorisation.html
    I would suggest a few changes to the "get_hash" function. First, the DBMS_OBFUSCATION_TOOLKIT has been deprecated in favor of DBMS_CRYPTO:
    http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14258/d_crypto.htm
    http://www.psoug.org/reference/dbms_crypto.html
    DBMS_CRYPTO offers Message Authentication Code (MAC) functions which are keyed hashes. If you use a non-keyed function such as MD5 (which is VERY well known), someone can easily generate a table of all possible passwords within reason and their matching hash, which essentially allows them to get the passwords. MAC functions take in the data (password in this case) and a key. You can probably just use a big random string for your key. Now someone would need to the key as well to generate a hash table. In short, just use DBMS_CRYPTO.MAC where Duncan used DBMS_OBFUSCATION_TOOLKIT.md5.
    Tyler

  • Restrict the values in the Query Designer

    Hi Guru’s,
    I want to Restrict PLANT or  SALES ORG  values in the Query Designer, in the Query, PLANT has selected in the rows and having variable and SALES ORG is display attribute of the PLANT. In this scenario How can we Restrict the values?
    Thanks in Advance,
    Ravi.

    Hi Ravi,
    You cannot restrict values on the display attributes. Better change it to navigational attribute and check the box as navigational in the cube.
    Regards
    Ram

  • Send values to IN query with parameter

    Subject: send values to IN query with parameter
    Hello. Hope I'll explain my problem well enough:
    I have a query:
    -- select id from table where id in ('100')
    Now I used parameter for the IN part:
    -- select id from table where id in (:param)
    and I gave the parameter the value 100.
    now I want to have the query with two values:
    -- select id from table where id in ('100','200')
    I tried to use the parameter and give him the value of: '100','200'.
    It didn't worked :(
    Is there a syntax to give the parameter more then one value for the IN query (with out using another table or function etc')?
    Thanks in advance,Roy.

    This is the best solution I have for it.
    variable parameter varchar2(4000);
    exec :parameter := 'SYSTEM,SYS';
    select username
    from dba_users
    where username in ( select COLUMN_VALUE from table  (split_string(:parameter,',')))It uses this function
    CREATE OR REPLACE
    type string_table  as table of varchar2(4000)
    CREATE OR REPLACE
    FUNCTION split_string (
         string IN varchar2,
        delimiter IN varchar2
    ) RETURN  string_table IS
         tab string_table;
         pre integer;
         post integer;
         step integer;
         i integer;
    BEGIN
         pre := 1;
         step := length(delimiter);
         i := 0;
         tab := string_table();
         loop
              tab.extend;
              i := i + 1;
              post := instr(string,delimiter,pre);
              if ( post = 0 ) then
                   tab(i) := substr(string,pre);
                   return tab;
              end if;
              tab(i) := substr(string,pre,post-pre);
              pre := post + step;
         end loop;
    END;
    /Bye Alessandro

  • Accessing the Query String parameter from a portlet

    Hi!
    I have developed a PDK portlet in Jdev 10.1.3.3 for Web Center (Just for testing, later it'll go on Oracle Portal 10.1.4). I am trying to access the query string parameter coming in the URL but not successfull at all. Following are the options that I have tried in vain :
    In MyPDkPortletShowPage.jsp with *<passAllUrlParams>true</passAllUrlParams>*
    1.) PortletRenderRequest pReq = (PortletRenderRequest) request.getAttribute(HttpCommonConstants.PORTLET_RENDER_REQUEST);
    pReq.getParameter("data");
    2.) request.getParameter("data");
    3.) request.getAttribute("data")
    This makes me ask that is there any other way to access the parameter or is it simply not possible?
    Please suggest!
    Regards,
    Neeraj.

    Hi Neeraj:
    I didn't deal with web center before i am working on Oracle Portal 10.1.4 so if you done that on oracle portal and got the same problem check for this?
    - add the parameter in the page parameter then you will get the value from either preq.getParameter or from request.getParameter,just go to page properties and add a page
    parameter called data
    - did you publish your page containing your portlet as portlet and included it in other page or it is just a page containing this portlet?

  • Can I shrink the size of a form text box based on the content?

    We are helping a customer migrate from some MS Word forms to use pdf forms.  We are screenscraping the data from an AS400 green screen system and populating these new pdf forms with data.  however some of the text boxes are in the middle of a sentence and the text box needs to be large enough to fit 50 characters but there are many times when the data we are entering is much less than 50.  The resulting document looks very strange with all of that extra white space in the middle of a sentence due to the size of the text box.
    So can we somehow shrink the size of the text box to fit the number of characters in the box?
    I considered making the box smaller and setting the font size to auto but I think that would look even more strange to have a word with smaller font in the middle of a sentence.
    Thanks,
    Trent

    Sorry, I should have mentioned I am using acrobat professional 9.  I see that I can change the size of the text field when I am designing the form but what I don't see is how to dynamically change the size of the text field based on what data is put inside it.
    Thanks,

Maybe you are looking for

  • 80GB Vid Disconnect Issue

    My 80GB iPod is only 2 weeks old. I have been using manual download for all songs and pictures since I have two computers. My library is on my home PC, but I connect at work to play through my computer and to purchase from iTunes (I transfer purchase

  • Show/hide elements

    Hi In DW8 I often used the possibility to put several layers on top of eachother with images in them, this way I could show/hide layers so the images would be visible when having a mouse-over action on a thumbnail for example. Now DW-CS3 gives the op

  • I have a big problem of frequent shutdown on my power mac

    Hallo to everyone. I have this problem of shutdwon of my power mac that often happens during an internet session. ANother crazy thing is that soemtimes it sends to my two monitors not both of the wallpapers but only one. Can someone help me? Thank yo

  • File Info Description Copyright Notice text problem

    I want to change the Copyright Notice text in File>File Info>Description in a way that is permanent.  Back in 2009  I set the text to say "Copyright 2009" and now I want it to say Copyright 2011.  Changing the text works for the current image but the

  • Unable to start asm on one of the nodes

    Dear Friends due to some problem with our AC all servers in our datacenter where powered off, and after all is fixed and try to start the RAC, it is showing the following errors, can you please help me [root@KIFIYA-UBS-ORA-RAC1 bin]# ./crsctl start c