MS-SQL - Like search form from a group of products.

SELECT P.ID AS ProductID, P.Name, P.Price, P.ProdID,
P.ShipCost,
P.ClearSale, P.SalePrice, G.gid, G.pid AS Gpid, G.ord,
PC.cid, PC.gid AS
PCgid
FROM atblProducts P INNER JOIN Groups G ON P.ID = G.pid INNER
JOIN PCat
PC ON G.gid = PC.gid
WHERE (P.price IS NOT NULL AND PC.cid = 51 OR PC.cid = 52 OR
PC.cid = 53
OR PC.cid = 54) OR P.Name LIKE '%MMColParam3%' OR P.ID LIKE
'%MMColParam3%'
ORDER BY P.ProductID
WHERE P.Price IS NOT NULL AND PC.cid = 51 OR PC.cid = 52 OR
PC.cid = 53
OR PC.cid = 54
This gives me the group of products that I need but as soon
as I add the
'%MMColParam3%' bit to see the items searched on, it fails.
What I am doing is pulling in the '%MMColParam3%' using a
form to check the
product name, and the description out of a group of 4
categories: 51, 52,
53, 54. I can get the 4 categories to display but as soon as
I add the OR
P.Name LIKE '%MMColParam3%' OR P.ID LIKE '%MMColParam3%'
bit, it fails.

hi
I don't think that building a search page on a read-only View Object should be a problem.
Maybe these screencasts by Steve Muench about creating simple search pages with ADF Business Components and ADF Faces (JSF) could help.
- Part 1: Web-Style Search Form
- Part 2: Oracle Forms-Style EnterQuery/ExecuteQuery Mode Page
- Part 3: Search Form Using View Object with Named Bind Parameters
success
Jan Vervecken

Similar Messages

  • Can we move InfoPath forms from development site to production site?

    From the question I mean only the form, not the site itself.
    Is there any way to move a InfoPath form from SharePoint development site to production site?
    Thanks,

    just publish it to production site
    http://office.microsoft.com/en-in/infopath-help/move-a-published-form-template-to-a-new-sharepoint-library-HP010102446.aspx
    Step 1: Publish the form template to the new document library
    Open the working copy of the form template in design mode.
    On the File menu, click Publish.
    In the Publishing Wizard, click To a SharePoint server with or without InfoPath Forms Services, and then click
    Next.
    In the Enter the location of your SharePoint or InfoPath Forms Services site box, type the location of the SharePoint site that contains the new document library that you want to move your form template to, and then click
    Next.
    On the next page of the wizard, click Document Library, and then click
    Next.
    Click Create a new document library, and then click
    Next.
    On the next page of the wizard, type a name and description for the new document library, and then click
    Next.
    Choose the fields in the form template that you want to appear as columns in the default view of the document library.
    How?
    Click Next.
    On the next page of the wizard, verify that the information shown is correct, and then click
    Publish.
    To open the document library and test the process for filling out a form that is based on this form template, select the
    Open this document library check box, and then click Close.
    The document library will open in a browser. When you click New on the list toolbar, a form based on this form template will open in Microsoft Office InfoPath.
    http://sharepoint.stackexchange.com/questions/17383/infopath-change-publish-location
    If this helped you resolve your issue, please mark it Answered

  • Deploy Browsable Infopath form from Development server to Production server

    Hi All,
    I have designed and published an 'Infopath 2010' browser enabled form 
    as site content type to a sub site names SITENEW.
    Form security level is 'Domain' level.
    The form contains following types of data connections and one SPD worklfow attached to form library..
    1. Send multiple Emails of current/active view
    2. Submit data to form library
    3. Get Details from SharePoint lists.
    4. WEB sercice calling GetUserProfileByAccountname ( Same site collection).
    Form library, lists in point number 3 are located in same site i.e SITENEW
    I need proper steps to deploy this to production sub site.
    Is  saving the 'SITENEW' as site template and upload to production  good idea?
    How should I take care of data conncetions?. Please advise.
    Thanks to all
    Murali Krishna Dittakavi *********************** If my answer/post resolved your query could you mark the post as answered. If it is helpful then vote as Helpful. Thanks

    hi All,
    Can any one help me for the following issue.
    Issue:-
    i am able to see the promoted column name "Test2" , but not able to see the data(Value) of the "Test2" in production server "TestFormLib" Library when i did second time promoted in second time imported subsite cmp.
    I have a issue with info path form  promotion fields in production server.
    Scenario:-
    I have a site ,ex:- http://host/sitecollection/subsite1 in dev. machine, the subsite1 have
    a form library "TestFormLib".
    published infopath form wtih some promotional fields (ex:- Test1) to "TestFormLib" library.
    i am able to see all promoted 'Test1' field data  in the library.
    taken  back up form the dev upto sitecollection and restored in the production.
    created subsite1 in prodiction server and taken subsite1 cmp from dev , imported into production server and published form which have promoted columns to "TestFormLib" library.
    able to see the promoted (Test1) field data in "TestFormLib" library in production subsite1.
     re-activated info path form to "TestFormLib" library in dev machine with additional (Test2) field promotion.
    i am able to see the "Test2" promotion field data(Value) in dev machine "TestFormLib" library.
    then , taken cmp for "SubSite1"  from the dev. machine, imported into production server on "SubSite1" .
    re-activated the latest form which is promoted "Test2" field to production server.
    i am able to see the promoted column name "Test2" , but not able to see the data(Value) of the "Test2" in production
    server "TestFormLib" Library.
    Any Suggestions to solve the above issue and i dont want to recreate the library in production . Because the data has been deleted.
    Help please..
    Thanks & Regards,
    Raghava Reddy S

  • Problem when transporting form from DEV system to PRODUCTION system

    Hi Experts,
    We are developing forms in ABAP, for example there is a form developed in dev system and this form has JS coding in some UI elements events like initialize, on change and on exit; also has one script object defined as variable. this script object has some functions defined in order to do some common validations and field specific ones too.
    The form in DEV work fine, all the functions calling, all the validations and the events are working properly as expected. But there is a problem when we moved the changes done in development system into production system. Specifically the script object has the problem: even though the coding is the same in both systems, in production system we had an script error: "Body.CATALOGPARAMS has no properties", as if the Body.CATALOGPARAMS was never instanciated, or it is not defined...
    The code that produces this error is the following:
    var itemCount = 0;
    itemCount = Body.CATALOGPARAMS.DATA.instanceManager.count;
    CATALOGPARAMS is table defined as context table coming from an ABAP FM where is filled and passed into the form.
    In order to fix this problem I changed that part for the following
    var itemCount = 0;
    var catalogTable = null;
    catalogTable = xfa.resolveNode("Body.CATALOGPARAMS.DATA");
    itemCount = catalogTable.instanceManager.count;
    This still works as fine as the other in DEV system. But my question is: will I have the same problem when we transport the changes to production system, you have to know that a transport is not something that you can do every day, so I am taking precautions before the transport. Which of both coding is the best for doing this?
    Any observations, comments, questions in order to clarify some points are welcome, so please do it.
    In advance, thanks a lot.
    Mauricio.-
    Edited by: Mauricio Poblete on May 11, 2010 4:20 PM

    As always, you are the first one to reply... thanks for that!
    before everything, I activated the form, then I added this form to a new transport using se80 transaction: I navigated through the form objects and I added the form to a new transport by second click on the form -> other functions -> write transport entry. is this the correct way to assign a transport package with the entire form (including script objects, layouts, and all you told in the last reply)??
    Can you give me a guide on how-to add the specific parts to the same transport for forms?
    as always, thanks in advance.
    Mauricio.-

  • ADF UIX Search Form - Is this a bug?

    I created a JDev 9.0.5.2 ADF UIX Search form from the component palette. I ran the page without making any changes. I chose the Find button which displayed the search criteria. I selected the delete button and then the create button, which created 2 blank records (possible bug?) in the search criteria table at the top. I selected one of the blank records and entered search criteria. I chose the submit button which changed the data in the search criteria table as it is supposed to do. I selected the other blank record, entered search criteria and submitted it. Again the data in the search criteria table was changed appropriately. I selected the delete button and the wrong record was deleted (bug?).
    Are these bugs?

    Hello,
    a similar sort of situation is created if you have a Read-only table on a page which drills down to an edit/create input form page. If you enable a create functionality you need to enable some way for the user to back out of the created record and clean up the newly created row. On the detail page (JobsEdit.do) i created a link to a custom event on the master page action (JobsView.do) like this:
    <button text="Cancel" destination="JobsView.do?event=cancelinput"/> In the Data Action class for the JobsView page i have a method defined as follows:
    public void onCancelinput(DataActionContext ctx)
        Row row = ctx.getBindingContainer().getApplicationModule().findViewObject("JobsView1").getCurrentRow();
        row.refresh(row.REFRESH_REMOVE_NEW_ROWS );
    }as a workaround, it sounds like you may need put some manual controls in place to tightly control any newly created rows which have/will not been used. I don't know if this will resolve the deleting wrong record problem...
    regards,
    Brenden

  • ADF Search form inside a jsp page's panel page container

    I am going through the Oracle JDeveloper 10g for Forms & PL/SQL book and I got to page 391 where I need to drop a search form onto a jsp page set up with a panelpage. The form show up but when I go to delete the extra fields JDeveloper completely locks up. I am running JDeveloper version 10.1.3.3.0.4157. I tried reinstalling it and it still locks up. I tried going back a few steps and recreate the search form and it still locks up.
    Can anyone explain why it is locking up or how to delete the extra fields without locking up?

    I also tried selecting a field in the source file code window. Just selecting a field in any form or window locks up JDeveloper. My program worked find until I created a search form from a data set. I think it is a bug in the version of JDeveloper I have. I did a similar task in a previous version and it worked fine. I could select and delete fields with no problem.

  • Sql like function in View Object for progammatically

    Hi friends,
    I used Jdeveloper 11.1.1.4.0 ,I need how to get the datas from database using sql like function(select * from tablename where name like 'p%') using viewCriteria by
    programmatically.
    Thanks & Regards,
    Priya.
    Edited by: priya on Apr 8, 2011 3:48 AM
    Edited by: priya on Apr 8, 2011 3:49 AM

    Check the docs: http://download.oracle.com/docs/cd/E15523_01/web.1111/b31974/bcadvvo.htm#sm0341
    Timo

  • Derivation rule for Product from Material Group

    Dear All,
    Is it possible derive product from Material Group. The scenario is as below.
    We executed KE30 report (Classic Drill down) for Product, the we are able to see the profitability for different products, when we click on the list button (Find button) againist the product at the bottom we found not assigned, we selected that and we found there are some un assigned amounts (without product). when we see the line items for the same the line items are coming with out product ( product field is emply)
    Another observation is we created profitability assessment cycle (KEU5) in which cost center is the sender and material group is the receiver. when we run this cycle system is not distibuting the costs to the products, in the sender and receiver its executed with zero values.
    In derivation rule KEDR we gave the logic to derive product from material group.
    please guide the way which we are following is correct or not. can we derive product from material group.
    Thanks,
    Siva Reddy.S

    Hi
    Yes you can derive using "Derivation" method in KEDR and maintain a mapping of Mat Grp to Product... But that is not the right way
    You need to find out why some lines are posted w/o products.. They can be genuine cases....
    Also for assessment, either specify the Product as receiver or run KE28 Top Down Dist in order to allocate values from Mat group to Products..... Deriving Product from Mat group does not seem to be the nice way
    br, Ajay M

  • SQL word search from HTML form

    Hi,
    first let me apologise for putting (what is probably) a really simple question in this forum. I have Googled this query and tried many different variations to make it work without any luck, Im hoping you will be able to stop me pulling my hair out!
    I have a html search form called "messageSearch" with a text input field called "keyword". This form is submitted using the GET method and goes to another page which has a SQL SELECT statement to search for the keyword in a column called "message" in the table.
    var sql = 'SELECT threadID, forumID, masterID, subject, message, datePosted'
                   + 'FROM threads'
                   + 'WHERE UPPER (message) LIKE ("keyword")'
    There is something missing as this does not work. Do i need to declare the "keyword" variable first and how? Am i referencing it in the right way in the SELECT statement?
    (I dont know SQL very well at all yet as i am learning it on the job!)
    Any pointers are much appreciated!
    Thanks in advance for helping a noob in need! :)

    For a start, you can try with the following statement:
    SELECT threadID, forumID, masterID, subject, message, datePosted
    FROM threads
    WHERE UPPER (message) LIKE upper('%keyword%')As you will use this statement inside your string variable, you have to use two single quotes where I hav used one single quote.
    The statement will work, also it will have a bad performance. To correct this, search for "bind-variable" on the net. As you seem to use VB, I can not help here.
    Message was edited by:
    Leo Mannhart
    You also might create a function-based-index on upper(message)

  • Infopath form for sharepoint 2013 lags when searching for person or group.

    Dear all,
    After implementing a infopath form on sharepoint, the search for person or group column lags when I search for someone the second time. (The first time won't lag). Is there a fix to this? And is there a way to modify the search for person or group function
    to sharepoint OOTB person or group search? I think the OOTB one is a lot better. Thanks all.
    Timothy Liu

    Have a look at this thread which discussed a same question:
    http://social.msdn.microsoft.com/forums/sharepoint/en-US/c55f4245-b2b0-410b-94fc-2afd1ef80da8/preventing-users-from-editing-other-users-infopath-forms
    thanks,
    Flynn

  • How to show data in a matrix form from a table using SQL

    Dear Friends,
    I have a table with three columns with the following data:
    Market, Product, Date, Value
    Market-A Product-A 01/01/04 34
    Market-A Product-A 01/02/04 33
    Market-A Product-A 01/03/04 67
    Market-A Product-A 01/04/04 64
    Market-A Product-B 01/01/04 34
    Market-A Product-B 01/02/04 36
    Market-A Product-B 01/03/04 77
    Market-A Product-B 01/04/04 32
    Market-B Product-C 01/01/04 25
    Market-B Product-C 01/02/04 56
    Market-B Product-C 01/03/04 45
    Market-B Product-C 01/04/04 68
    Market-B Product-D 01/01/04 78
    Market-B Product-D 01/02/04 75
    Market-B Product-D 01/03/04 32
    Market-B Product-D 01/04/04 35
    I have a requirement where in I have to filter the products based on market and then show in the following format on the screen:
    After filtering based on Market-A (eg) the data should look like:
    01/01/04 01/02/04 01/03/04 01/04/04
    Product-A 34 33 67 64
    Product-B 34 36 77 32
    Kinldy suggest how can I write a query to get the data in this format using SQL
    Thanks & Regards,
    Vinay

    scott@ORA92> -- test data:
    scott@ORA92> SELECT * FROM a_table
      2  /
    Market-A Product-A 01/01/04         34
    Market-A Product-A 01/02/04         33
    Market-A Product-A 01/03/04         67
    Market-A Product-A 01/04/04         64
    Market-A Product-B 01/01/04         34
    Market-A Product-B 01/02/04         36
    Market-A Product-B 01/03/04         77
    Market-A Product-B 01/04/04         32
    Market-B Product-C 01/01/04         25
    Market-B Product-C 01/02/04         56
    Market-B Product-C 01/03/04         45
    Market-B Product-C 01/04/04         68
    Market-B Product-D 01/01/04         78
    Market-B Product-D 01/02/04         75
    Market-B Product-D 01/03/04         32
    Market-B Product-D 01/04/04         35
    scott@ORA92> -- query:
    scott@ORA92> SELECT product,
      2           SUM (DECODE (the_date, to_date ('01/01/2004', 'mm/dd/yyyy'), value)) AS "01/01/04",
      3           SUM (DECODE (the_date, to_date ('01/02/2004', 'mm/dd/yyyy'), value)) AS "01/02/04",
      4           SUM (DECODE (the_date, to_date ('01/03/2004', 'mm/dd/yyyy'), value)) AS "01/03/04",
      5           SUM (DECODE (the_date, to_date ('01/04/2004', 'mm/dd/yyyy'), value)) AS "01/04/04"
      6  FROM   a_table
      7  WHERE  market = 'Market-A'
      8  GROUP  BY product
      9  /
    Product-A         34         33         67         64
    Product-B         34         36         77         32
    scott@ORA92>

  • Call Developer 2000 Reports/Forms from PL/SQL stored proc.

    Hello all,
    I am searching for a method for a stored procedure on Oracle 8.0 to call a Oracle Developer 2000 Report or Form.
    Any suggestions,
    Thanks,
    Julian

    No offense,
    Do you mean calling a trigger in a Form or Report to fire off another of the same? Or do you mean how do I fire Forms from a Database stored procedure?
    Please I don't mean any offense, it is just hard, sometimes to say simple concepts and not sound, well, bad.
    Otherwise think about it. A Stored procedure is run inside the database, it has no idea where you client is, and doesn't know which type of client you have (X-Windows, Microsuck), and doesn't know how to fire off an app on the client.
    One concept that is hard, sometimes, to get is where things are run. Forms runs on an Apps Server (Java screens), or a client, like on a PC. Stored procedures run, usually, on a whole different box, a database server. The database server is not that well connected that it can fire off a app on a client. Try to go to a Unix database server and run a command to fire off Internet Explorer on your client!? Not real easy to do.

  • Reg - Search Form for a VO with group by clause

    Hi,
    I have a Bar graph that displays data based on the Query below.
    SELECT STATUS.STATUS_ID AS STATUSID,STATUS.STATUS,COUNT(SR.SERVICEREQUEST_ID) AS SRCOUNT
    FROM SERVICE_REQUEST SR ,SERVICEREQUESTSTATUS STATUS
    WHERE SR.STATUS_ID = STATUS.STATUS_ID
    GROUP BY STATUS.STATUS_ID,STATUS.STATUS,SR.STATUS_ID
    It displays the count of SRs against a particular status.
    Now I need to add a search form to this graph with customer and date range.
    So we need to add the line below to the where clause.
    "SR.CUSTOMER_ID = :customerId AND SR.REQUESTED_ON BETWEEN :fromDate and :toDate"
    But the columns SR.CUSTOMER_ID, SR.REQUESTED_ON also need to be added to the select clause to create the View criteria for search panel.
    The two columns should also need to be added to the group by clause if we are to add them in the select clause.
    This would not produce the expected results.
    How do I create a search form with the criterias applied only at the where clause.Please help.
    With Regards,
    Guna

    The [url http://docs.oracle.com/cd/E16162_01/apirefs.1112/e17483/oracle/jbo/server/ViewObjectImpl.html]ViewObjectImpl has methods for doing this programmatically (setQuery, defineNamedWhereClauseParam, setNamedWhereClauseParam) that you can use to manipulate the query, the bind variables expected, and the values for the binds.
    John

  • SQL query to build search form

    I have a table Department, with primary key DeptId.
    Table: Department
    DeptId Text
    1 xx
    2 yy
    3 zz
    I have another table Person, with key (not primary, and not unique) PersonId, and foreign key DeptId
    Table: Person
    PersonId DeptId
    10 1
    11 1
    11 2
    12 2
    I want to build a search form, with search fields PersonId and DeptId, so that in the resulting table, some rows from the Department table are returned. It should obey the following:
    - If both PersonId and DeptId are selected, and there is a row in the table Person that matches the selection, the row from the Department table should be returned.
    - If only PersonId is selected, any row in Department table that matches a DeptId corresponding to that PersonId should be returned.
    - If only DeptId is selected, return that row from Department exactly once (even if that DeptId doesn't appear in Person table, like DeptId 3 in this example)
    - If neither is selected, return all rows from Department
    I'm using JDeveloper 11.1.2.2.0.
    Thanks,
    Zach

    Hi Navaneeth,
    Taking the example from your link:
    SELECT org.org_id, org.name FROM organisations org WHERE EXISTS
    (SELECT 1 FROM events evt WHERE evt.org_id = org.org_id
    AND evt.contact_name = 'Eddie Harris')
    Let's say I make evt.contact_name a dropdown list, and when I query it, I leave it unselected. Would it return org.org_id, org.name from a row that has no corresponding event row?

  • I would like to see history on my form from Day 1, currently I can only see partial history! Help!

    I would like to see history on my form from Day 1, currently I can only see partial history! Help!

    Hi;
    Is the form a form that was shared with you or one that you created originally?  The History you see is from the point you had access to the form, so if the form was shared with you it would only show history from that point forward.
    If this doesn't explain what you see you can email me the link to your form at [email protected] and I will see if we can see anything.
    Thanks,
    Josh

Maybe you are looking for