Passing parameters for fuzzy search

Hello,
I am using Oracle 11.2 and do fuzzy search as following:
Create table tb_test(Nm varchar2(32));
create index fuzzy_idx on tb_test(Nm) indextype is ctxsys.context parameters(' Wordlist STEM_FUZZY_PREF');
select * from tb_test where contains(Nm, 'fuzzy(Wndy,,,weight)',1) >0;
The query works fine for hardcoded string 'Wndy'. I just wonder how can I use parameter to pass the match string in PLSQL?
Thanks,

try this (not tested):
Procedure findMatchNm(nmStr in VARCHAR2)
IS
oraCursor REF CURSOR
str_val varchar2(100);BEGIN
str_val := 'fuzzy('||nmStr||',,,weight)';OPEN OraCursor FOR
'SELECT NM FROM TB_test WHERE contains(Nm, :s, 1)>0' USING str_val;LOOP
FETCH...
END LOOP;
END;
Edited by: stefan nebesnak on Jan 17, 2013 12:49 PM
using bind variable

Similar Messages

  • Is it possible to pass parameters to custom search portlet?

    Hello!
    I use custom search to display automatically results.
    But I need to dynamically add some conditions or change sort order based on user selection in another portlet.
    So, is it possible to pass parameters to custom search portlet?
    Boris
    P.S. I am use Portal 9.0.4

    Hello!
    Ok, I find how to hack it and find out parameters (p_mainsearch, p_order_by_attribute...), but is there any documentation or notes about it?
    And is it possible to change order by list & add there my attributes?
    Kind regards,
    Boris

  • Transactional Iview passing parameters for search help window

    Hi Experts,
    I have to create a transaction ivew through which i need to pass parameters to search help window (having two entries ). In has to select the particular entry and then go to next step.
    Can somebody give me guide me how to do it as i couldn't fine correct answer in the existing forum answers.
    Regards,
    Suresh

    Hi Suresh,
    Have you read the [documentation|http://help.sap.com/saphelp_nw70ehp1/helpdata/en/88/266a3e54a2e946e10000000a114084/frameset.htm]?
    >ApplicationParameter
    >
    >You can enter parameter values for certain screen fields for displaying a SAP transaction here.
    >This field is optional.
    >
    >The parameter values are specified with the following syntax:
    >
    ><Screen_field1>=<Parameter1>
    >&<Screen_field2>=<Parameter2>
    >&<...>=<...>,...
    >
    >Process First Screen
    >
    >The possible values are trueand false. By default this field is defined as false. It is a required field.
    >
    >If the value is set to true, this corresponds to the input key function in the transaction. It takes effect if there are no required >fields in the transaction or if all the required values are maintained in the ApplicationParameter property.
    Regards,
    Pierre

  • Passing parameters for a query throught XML and capturing response in the same

    Hi All,
    I have defined a RequestParameters object and i am passing paramerts for a query through XML and trying to capture the result in the same and send back to the source. In this case i am send XML from excel.
    Below is my XML format.
    <?xml version="1.0" encoding="utf-8"?>
    <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
    <s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <Insert xmlns="http://tempuri.org/">
    <dataContractValue>
    <dsRequest>
    <dsRequest>
    <SOURCE></SOURCE>
    <ACTION>Insert</ACTION>
    <RequestParams>
    <RequestParams>
    <ACC_NO>52451</ACC_NO>
    <EMP_CITY>HYD</EMP_CITY>
    <EMP_NAME>RAKESH</EMP_NAME>
    <EMP_CONTACT>99664</EMP_CONTACT>
    <EMP_JOM>NOV</EMP_JOM>
    <EMP_SALARY>12345</EMP_SALARY>
    </RequestParams>
    <RequestParams>
    <ACC_NO>52452</ACC_NO>
    <EMP_CITY>HYD</EMP_CITY>
    <EMP_NAME>RAKESH</EMP_NAME>
    <EMP_CONTACT>99664</EMP_CONTACT>
    <EMP_JOM>NOV</EMP_JOM>
    <EMP_SALARY>12345</EMP_SALARY>
    </RequestParams>
    </RequestParams>
    </dsRequest>
    <dsRequest>
    <SOURCE></SOURCE>
    <ACTION>Update</ACTION>
    <RequestParams>
    <RequestParams>
    <ACC_NO>52449</ACC_NO>
    <EMP_CITY>HYD1</EMP_CITY>
    <EMP_NAME>RAKESH1</EMP_NAME>
    <EMP_SALARY>1345</EMP_SALARY>
    </RequestParams>
    <RequestParams>
    <ACC_NO>52450</ACC_NO>
    <EMP_CITY>HYDer</EMP_CITY>
    <EMP_NAME>RAKEH</EMP_NAME>
    <EMP_SALARY>1235</EMP_SALARY>
    </RequestParams>
    </RequestParams>
    </dsRequest>
    </dsRequest>
    </dataContractValue>
    </Insert>
    </s:Body>
    </s:Envelope>
     Where i have a List of dsRequest and RequestParams, where i can send any number of requests for Insert,Update. I have two a XML element defined in RequestParams "RowsEffected","error" where the result will be caputred and is updated
    to the response XML.
    I have 6 defined in RequestParams
    EMP_SALARY(int),ACC_NO(int),EMP_CITY(string),EMP_NAME(string),EMP_CONTACT(string),EMP_JOM(string)
    My Question is:
    When i am trying to build response XML with the following code, the parameters which are not given in the Request XML are also appearing in the Response.
                    ResponseParams.Add(
    newdsResponse()
                        ACTION = OriginalParams[a].ACTION,
                        SOURCE = OriginalParams[a].SOURCE,
                        Manager = OriginalParams[a].Manager,
                        RequestParams = OriginalParams[a].RequestParams
    Where the OriginalParams is dsRequest
    Ex: In my update query i will only send three parameters, but in my response building with ablove code, i am getting all the variables defined as INT in the RequestParameters.
    Is there any way i can avoid this and build response with only the parameters given in the Request ??
    Appreciate ur help..Thanks
    Cronsey.

    Hi Kristin,
    My project is, User will be giving the parameters in the excel, and using VBA, the values are captured and an XML is created in the above mentioned format and is send to web service for the Insert/Update.
    I created a webservice which reads the values from <datacontract> and it consist of list of <dsRequests> where any number of Insert/Upate commands can be executed, with in which it contains a list of <RequestParams> for multiple insertion/Updation.
    //function call
    OriginalParams = generator.Function(query, OriginalParams);
    where OriginalParams is List<dsRequest>
    //inside function
    command.Parameters.Add()// parameters adding
    int
    val = command.ExecuteNonQuery();
    after the execution,an XML element is added for the response part.and it is looped for all the RequestParams.
    OriginalParams[i].Result.Add(
    newResult()
    { ERROR = "No Error",
    ROWS_EFFECTEFD = 1 });
    //once all the execution is done the response building part
    for(inta
    = 0; a < OriginalParams.Count; a++)
                    ResponseParams.Add(
    newdsResponse()
                      Result = OriginalParams[a].Result
    QUEST: When i am trying to build response XML with the following code, the parameters which are not given in the Request XML are also appearing in the Response.
    Ex: In my update query i will only send three parameters, but in my response building with ablove code, i am getting all the variables defined as INT in the RequestParameters.
    Is there any way i can avoid this and build response with only the parameters given in the Request ??
    Appreciate ur help..Thanks
    Cronsey.

  • Not able to pass parameters to append search help

    Hi
    I have created a new search help, when I am testing it, its working fine.
    My requirement is to append this search help to an existing search help.
    The problem is, after appending the parameters are not getting passed through the new search help tab.
    The parameter assignment and all are done.
    Kindly help me in this regard.
    Thanks,
    Pallavi.

    look at how the other elementary search helps are set up within the collective...sounds like you have errors in your settings.

  • Passing  Parameters for url in portlet

    I want to pass parameters through the url to a portlet.
    As I can make that?
    There is some example.
    I am working with the portal 9i release 2 and jpdk november 2002 v2

    hi Frank,
    Thanks for the response. We followed your suggestion and managed to capture URL parameters in afterPhase(LifeCycle.PREPARE_MODEL) and save parameters to ViewScope.
    Then in beforePhase(LifeCycle.PREPARE_RENDER), we retrieve parameters back and invoke FndUIController.openMainTask method to launch the correponding taskflow but nothing happens.
    public static void openTaskflowOnNewTab(String taskflowId) {
    try {
    FacesContext fc = FacesContext.getCurrentInstance();
    ELContext elc = fc.getELContext();
    ExpressionFactory ef = fc.getApplication().getExpressionFactory();
    ValueExpression valExp = ef.createValueExpression(elc,"#{bindings.openMainTask}",Object.class);
    JUCtrlActionBinding methodBinding = (JUCtrlActionBinding)valExp.getValue(elc);
    Map params = methodBinding.getParamsMap();
    params.put("label", "Some Title");
    params.put("taskFlowId", taskflowId);
    params.put("reuseInstance", true);
    methodBinding.invoke();
    } catch (Exception e) {
    e.printStackTrace();
    To prove that this method works, we create a UI button on the page (which binds this method in PageDef.xml), and associate this method to onclick event. At runtime after page is opened, clicking on the button does launch the taskflow on new tab successfully.
    Do you happen to know what I do wrong in the beforePhase() method?
    Thanks
    -Phi

  • Is it possible to pass parameters for the action in the confirmation dialog

    I tried it but a null pointer exception is occuring. Is it possible to pass parameters ,if s give the solution....
    Thanks and regards.
    Karthik.

    Hi Karthi,
    Directly it is not possible. You can achieve it by this way.
    1>     Create 2 Event Handlers  say “OK” and “OKTest”.
    public void OK(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
        //@@begin OK(ServerEvent)
        String param = "abc";
        wdThis.OKTest(wdEvent,param);
        //@@end
    public void OKTest(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent, java.lang.String paramtest )
        //@@begin OKTest(ServerEvent)
         wdComponentAPI.getMessageManager().reportSuccess("Param : "+paramtest);
        //@@end
    2>     Code for popup.
                    String dialog = "No of Rows : ";
                    IWDConfirmationDialog confDialog = wdComponentAPI.getWindowManager().createConfirmationWindow(dialog,wdThis.wdGetAPI().getViewInfo().getViewController().findInEventHandlers("OK"),"OK");
                    confDialog.setTitle("Test Window");
                    confDialog.show();
    /thread/66776 [original link is broken]
    Regards,
    Mithu

  • What are minimum passing parameters for function module CS_BOM_EXPL_MAT_V2

    Hi
    Im going to use FM: CS_BOM_EXPL_MAT_V2 and I want to only pass WERKS, but when I execute FM is gives exception as CALL_INVALID.
    I saw all the Import parameters are Optional, but I think I need to pass more inputs to FM.
    Please let me know what are MINIMUM input parameters required to run this FM
    Thanks

    Hi
    In my requirement, there are range of WERKS and MATNR which has to be given from selection screen, where as In CS_BOM_EXPL_MAT_V2 function module I can only give single value for WERKS and MATNR.
    Can any one guide me how can I implement this?

  • Passing Parameters For Same Columns In 2 Different Tables

    OBIEE 11g
    I have 2 different dimension tables in my Subject Area.
    Dim1 has following columns: Promotion Code, Promotion Description, Promotion Date
    Fact1 has following columns: a_count, b_count, c_count
    Dim2 has following columns: Promotion Code, Promotion Description, Promotion Date
    Fact2 has following columns: a_count, b_count, c_count, d_count
    Report 1 has following columns: Promotion Code, Promotion Description, Promotion Date, a_count, b_count, c_count (From Dim1 & Fact1)
    Report 2 has following columns: Promotion Code, Promotion Description, Promotion Date, a_count, b_count, c_count, d_count (From Dim2 & Fact2)
    I have tried to pass the parameters Promotion Code, Promotion Description, Promotion Date from Report 1 to Report 2 but this has not worked for me as Report 2 is not receiving the parameters. Is there a way I can do this. Thanks in advance.

    Thanks for your response Jay,
    In Report 1 I have added prompts (Prompts tab) for Promotion Code, Promotion Description and Promotion Date. I have also set the following presentation variables in the prompts:
    PromotionCode,
    PromotionDescription
    PromotionDate
    In Report 2 I then add a filter for each of the same columns and match them to the presentation variables created in Report 1 as follows:
    Promotion Code is equal to / is in @{PromotionCode}
    Promotion Description is equal to / is in @{PromotionDescription}
    Promotion Date is equal to / is in @{PromotionDate}
    My expectation is that the values in the presentation variables will be passed from the Prompts in Report 1 to the filters in Report 2. This is not what is happening. Im not sure what I am doing wrong.

  • Problems with passing parameters for WEB template in URL in NW2004s

    Servus,
    We have NW2004s, BI 7.0, SP9
    does anybody know where do I make a mistake? There are 9 variables which the user has to fill out.
    Passing the parameters in URL string for a web template like: http://server:50100/irj/servlet/prt/portal/prtroot/pcd!3aportal_content!2fcom.sap.pct!2fplatform_add_ons!2fcom.sap.ip.bi!2fiViews!2fcom.sap.ip.bi.bex?TEMPLATE=TEMPLATENAME&var_name_1=ZvarX&var_value_ext_1=2000 ....
    but this doesn't function, I get only the first variable screen and not what's set in my URL.
    Is it a bug? Any suggestions?
    Thank you very much
    Standa

    I solved it.
    Solution:
    URL Link "http://......./TEMPLATE=nameofthepage&TEMPLATE=nameofthepage
    &VARIABLE_VARIANT=nameofthevariant"

  • Un-checking "Pass through" for image searching

    When I search my hd for an image from iPhoto, the "Pass through" box remains grayed out and checked. Is there any way to un-check this box? In other folders, I have the option to check and un-check, only not when I search the hd, which is my preferred searching method.

    Dear Alexandra,
    Other processes to consider might be to manipulate a row or column of pixels at a time. There are IMAQ Vision functions that will allow you to extract selected rows and columns (just in the same way as you can with regular data arrays). The extracted column or row (line profile) is effectively a 1D array of pixels (ranging from 0 to 255 if you image is 8-bit). By taking this approach you may be able to make use of the polymorphic nature of many of LabVIEW's core VIs (numeric operators, comparison VIs and so on).
    This approach should avoid the need to examine each individual pixel within your image. If you find that this approach is not suitable or I have misunderstood your question, could you supply some more detailed information as to how
    you need to "prove the pixel values"?
    Jeremy

  • Problem while passing parameters for dashboard prompts in URL

    Hi,
    We have created a dashboard on OBI which has some dashboard prompts. We have a requirement that we shall open the dashboard from an external application. We are doing this by invoking an URL. We want the dashboard to turn with prompts already being applied.
    I was trying to open the dashboard with the following URL
    http://<servername:port>/analytics/saw.dll?Go&PortalPath=/shared/Procurement%20and%20Spend/_portal/Supplier%20Performance&Page=Overview
    But when I use the above Go URL the dashboard is not coming up. It shows the following error
         No Columns
         The request cannot be performed because it contains no columns.
    When I use the following URL(which has the keyword 'Dashboard' not 'Go') the Dashboard is coming up fine
    http://<servername:port>/analytics/saw.dll?Dashboard&PortalPath=/shared/Procurement%20and%20Spend/_portal/Supplier%20Performance&Page=Overview
    There are dashboard prompt defined in dashboard. When I try to send the filter value via URL(given below) it is not working. I just see the Dashboard coming up.
    http://<servername:port>/analytics/saw.dll?Dashboard&NQUser=Administrator&NQPassword=SADMIN&PortalPath=/shared/Procurement%20and%20Spend/_portal/Supplier%20Performance&Page=Overview&P0=1&P1=eq&P2=Supplier."Supplier%20Name"&P3=1+AccessMicron
    when we use the keyword Dashboard in the URL , can we pass the parameter for the dashboard proimpt ..? If we can do that .. how to do that ..? Is it the same manner that we do for Go URL. ..?
    Please let me know if you need any more information on this.
    Thanks in advance for your time,
    Raj Kumar
    Edited by: Raja Kumar on Jan 22, 2010 3:29 AM

    Hi Raj,
    Raghu is correct, you need the Action=Navigate to make prompts work, otherwise you get move to the target dashboard without prompts.
    I think you figured it out your self, but the ?Go is for Answer Requests and ?Dashboard is for navigating to dashboards.
    I would also recommend using col1="COLUMN_NAME" and val1=value syntax instead of the P0,P1, etc, etc. It's a little easier to read and implement.
    Try this:
    http://<servername:port>/analytics/saw.dll?Dashboard&Action=Navigate&NQUser=Administrator&NQPassword=SADMIN&PortalPath=/shared/Procurement%20and%20Spend/_portal/Supplier%20Performance&Page=Overview&col1=%22Supplier%22.%22Supplier%20Name%22&val1=1+AccessMicron
    Good luck!
    Best regards,
    -Joe

  • Passing parameters for events

    Hi,
    I have a lot of buttons in my jsp page.. I would like to use the same event handler for all of them.. differentiating which one is clicked by means of a parameter.. How do i pass somthin like tat ....!
    Any hints !
    Regards
    Bharathwaj

    Hi,
    I guess you dont get it yet !
    In WebDynpro we have an option of adding a parameter as a argument with the Event.
    (like public void onText(Event event,String myParameter)
    Considering your case ..Assuming i dont want to use the button id .. how will i acheive this !
    This is the requirement i am looking in ..What you are suggesting is using the id and manipulating values..
    Regards
    Bharathwaj

  • How to pass parameters for second screen to SAP webgui URL

    Hi
    I want to call SAP webgui from an application and want to pass some data which need to be prefilled in the screen.
    Have gone through many threads
    /people/durairaj.athavanraja/blog/2004/09/23/pass-parameter-to-its-url-upadated-21st-june-2008
    https://www.sdn.sap.com/irj/scn/wiki?path=/pages/viewpage.action&pageid=22375
    webbgui  - calling a transaction and specify variant or parameter in url
    Things work fine if I pass values to fields which are on first screen, but I am unable to pass data to fields on next screens.
    Taking an example :
    tCode for vendor creation is XK01 and it has many screens, now when I call url
    http://HOST_NAME:8000/sap/bc/gui/sap/its/webgui/!?sap-client=CLIENT_ID&sap-user=SAP_USER&sap-password=SAP_PASSWORD&language=EN&~transaction=*XK01 RF02K-LIFNR=Ven1001;
    I am able to view Ven1001 in vendor code in first screen
    But when I call
    http://phxng4709:8000/sap/bc/gui/sap/its/webgui/!?sap-client=100&sap-user=testuser1&sap-password=SAP12345&language=EN&~transaction=*XK01 RF02K-LIFNR=Ven1111;RF02K-BUKRS=COCO;RF02K-EKORG=NG01;RF02K-KTOKK=0001;ADDR1_DATA-NAME1=VEN_NAME
    All the fields on first screen get populated but I don't get VEN_NAME in Name1 field on GUI
    Tried this
    http://phxng4709:8000/sap/bc/gui/sap/its/webgui/!?sap-client=100&sap-user=testuser1&sap-password=SAP12345&language=EN&~transaction=*XK01 RF02K-LIFNR=Ven1111;RF02K-BUKRS=COCO;RF02K-EKORG=NG01;RF02K-KTOKK=0001;Ok_Code=ENTR;ADDR1_DATA-NAME1=VEN_NAME
    as well, but no success
    Can anybody help. Thanks in advance
    Ruhi

    you can only pass values to first screen fields

  • How to pass parameters for second screen to SAP webgui URL (ITS)

    Hi
    I want to call SAP webgui from an application and want to pass some data which need to be prefilled in the screen.
    Have gone through many threads
    /people/durairaj.athavanraja/blog/2004/09/23/pass-parameter-to-its-url-upadated-21st-june-2008
    https://www.sdn.sap.com/irj/scn/wiki?path=/pages/viewpage.action&pageid=22375
    webbgui  - calling a transaction and specify variant or parameter in url
    Things work fine if I pass values to fields which are on first screen, but I am unable to pass data to fields on next screens.
    Taking an example :
    tCode for vendor creation is XK01 and it has many screens, now when I call url
    http://HOST_NAME:8000/sap/bc/gui/sap/its/webgui/!?sap-client=CLIENT_ID&sap-user=SAP_USER&sap-password=SAP_PASSWORD&language=EN&~transaction=*XK01 RF02K-LIFNR=Ven1001;
    I am able to view Ven1001 in vendor code in first screen
    But when I call
    http://phxng4709:8000/sap/bc/gui/sap/its/webgui/!?sap-client=100&sap-user=testuser1&sap-password=SAP12345&language=EN&~transaction=*XK01 RF02K-LIFNR=Ven1111;RF02K-BUKRS=COCO;RF02K-EKORG=NG01;RF02K-KTOKK=0001;ADDR1_DATA-NAME1=VEN_NAME
    All the fields on first screen get populated but I don't get VEN_NAME in Name1 field on GUI
    Tried this
    http://phxng4709:8000/sap/bc/gui/sap/its/webgui/!?sap-client=100&sap-user=testuser1&sap-password=SAP12345&language=EN&~transaction=*XK01 RF02K-LIFNR=Ven1111;RF02K-BUKRS=COCO;RF02K-EKORG=NG01;RF02K-KTOKK=0001;Ok_Code=ENTR;ADDR1_DATA-NAME1=VEN_NAME
    as well, but no success
    Can anybody help. Thanks in advance
    Ruhi

    you can only pass values to first screen fields

Maybe you are looking for

  • FireFox 3.6.13. BING Maps are being blocked. New Problem

    I am using Windows XP Pro. FireFox 3.6.13. I am having a new problem using Bing Maps. When I first go to the Bing Maps page, I can see the map of the U.S. as usual. When I enter the name of a single specific location (e.g. a city name or a street add

  • Fuji raw files from iPad Camera Roll to Lightroom Mobile

    I can not transfer Fuji XE2 Raw files from my iPad Camera Roll into  Lightroom Mobile. They will transfer from Lightroom 5.4 into mobile and can be edited which proves mobile can handle them. However not a lot of good for location use! Does anyone el

  • Calling SQL Loader from ColdFusion Web Server

    We are trying to Load Data files into Oracle through a Cold Fusion Web Application. Users will browse to a local file on their computers, click a button, and our application will use SQL Loader to load the data into oracle. The ColdFusion web server

  • What is the use of ls_fcat-hotspot  in alv

    hi everybody, i have a editable alv report can anybody tell what is the use of ls_fcat-hotspot in alv and how to use it. can anybody help out how to use other components of field catalog if possible with examples. regards, venu.

  • About converting office doc to swf format

    hi Experts, My customer is asking me for online browsing document solution from wcc11.1.1.7, they need something like this: http://wenku.baidu.com/view/67abcdef856a561252d36f97.html Do we have word/ppt/excel/pdf to swf converter solution? I am newbie