How to restrict customer records being displayed using 'sales_channel_type' criteria in customer search form at 11g?

OS: Linux
DB: 11.2.0.3
ERP: 11g
Hi There,
     I would like to create a new custom responsibility, which the responsibility is having access to Standard Customer Form (ARXCUDCI.fmb) , but I would like to make a restriction in the customer search form is that, everytime the responsibility user search by customer number, customer name, party name or what ever search field, I would like to limit to restrict further of searching criteria where SALES_CHANNEL_TYPE = 'RTL' is allowed to populate the customer records, there rest of customer records are not allowed to search out.
    This SALES_CHANNEL_TYPE column is from HZ_CUST_ACCOUNTS table.
    I have tried the Form Personalization already, but the customer searching form has too many fields for user to search, therefore form personalization will be putting all over the places in the form. Therefore I saw others recommended of doing "Custom DLL"...may I know for my scenario, how to I go about Customer DLL? or any other more effective solution?
   Appreciate if anyone can share your experience related to matter above.
Regards,
Lygine

Hi Lygine,
The personalization i sent you works in this way:
-It does not matter which field you choose to enter the query.
-If a record is found, when the form opens and the cursor hits the Customer Name field, the personalization looks for the content of the Sales Channel field.
-If the content of this field is different from the 'RTL' string, the form Customers form (ARXCUDCI) is cleared.
Independently from the field you fill to perform the query, is a record is found, the Customer Name field is the first the cursor hits when the form is opened.
Octavio

Similar Messages

  • How to restrict number of rows display using ig:gridView

    Hi
    All
    How to restrict number of rows display using <ig:gridView datasource="{mybean.mylist}">
    i am getting 10 rows using data_row . i wanna show only first 5 rows .
    pageSize ="5" will be ok . but it displays remaining rows in next page. but i want to display only first 5 rows . is there any attribute to restrict number of rows.
    thanks
    rambhapuri

    I have no idea which component you're talking about. If want to discuss here about a non-Sun JSF component, then please mention about the name, version and build in detail. You can also consider posting this question at the website/forum/mailinglist of the component manfacturer rather than here. At least I can tell you that the Sun JSF h:dataTable has the 'rows' attribute for that. I can also suggest you to just take a look in the TLD documentation of the component in question. There should be all possible attributes listed with a detailed explanation about the behaviour.

  • How to restrict data that is displayed  in adf query

    Hi all,
    i have a VO with query criteria, which i have added to the jsf page as adf query panel with table. There may be particular queires that return large number of records. Suppose i want to restrict the number of records being displayed to 10,000. Is this possible with jdeveloper 11g? How can it be done? pls advice.
    Thnx,
    Nad

    Hi Nad
    You can do this, open the VO Editor go to sql statement option add this code inside the where clause:
    and rownum <= 10000 -- limit your query.
    Good Luck

  • When  iTunes is not connected  to internet it keeps on displaying a message that "iTunes couldn't connect to the store" whenever i open it. How to stop this message being displayed?

    When  iTunes is not connected  to internet it keeps on displaying a message that "iTunes couldn't connect to the store" whenever i open it. How to stop this message being displayed?

    guyz... do look into this...

  • How to embed custom search field in toolbar

    My organization wants to integrate the Zoom Search Engine by
    Wrensoft with RoboHelp 7. We want to embed the search input field
    for Zoom in the main toolbar of the Help window. The skin editor in
    RoboHelp does not provide an easy way to do this. I can add a
    custom button that links to the custom search form, but I cannot
    figure out how to embed a custom search field in the toolbar. Does
    anyone have any experience or direction you can provide us?

    I very much doubt that can be done. There's a topic on my
    site about integrating ZoomSearch but the start point of any search
    is a field that ZoomSearch provides in the htm page it creates.
    Getting that field onto your toolbar is going to be outside the way
    Zoom was designed.
    Your developers would have to pull apart the mechanics of
    that page and figure it out, if it can be done.
    Have you tried approaching WrenSoft to see if they can
    suggest anything?
    Personally I think it is going to be a massive effort for
    minimal benefit. What's the objection to clicking a button that
    provides a page with the field and the results? If you get the
    field into the toolbar, the search page has still got to display to
    show the results.

  • CANNOT USE "Advanced Custom Search Form For ADF"

    Hi,
    I have tried the application on this old post but it doesnt work on jdev 11g even after migrating.
    Can some body tell me whats wrong and / or post a working application here.
    Need to use this functionality urgently.
    the original post is here.
    http://my.opera.com/dominionspy/blog/2007/02/26/an-advanced-custom-search-form-for-adf
    Any help is really appreciated.

    Thanks for your reply.
    Could you tell me where can i find example implementations of the query model classes.
    they have mentioned it to be found in "For an example implementations of the different model classes for a query, see the classes located in the oracle.adfdemo.view.query.rich package of the ADF Faces sample application."
    Also where can i get the source code for this http://jdevadf.oracle.com/adf-richclient-demo/faces/components/query.jspx
    thanks in advance

  • Problems with custom search form in adf

    Hi,
    I am using JDeveloper 11.1.2.4. please can you help with this issue?
    I've created a custom search form with the help from this link.
    Jdeveloper,Oracle ADF &amp;amp; Java: Implementing custom search form in ADF programmatically (Without using af:query)
    I've created two bind variables SkuBind & ImperfectBind and a View Criteria.
    My problem is when I press Search button, it does not filter based on values of the bind variables in the View Criteria.
    I rightly get bind variable values in the System output though
    Skubind = 1000
    Imperfectbind = N
    but there is no where clause
    where clause = null
    public void SearchOddShoes(ActionEvent actionEvent) {
    AppModuleImpl am = (AppModuleImpl)resolvElDC("AppModuleDataControl");
    ViewObject oddShoeVo = am.getRtnOddShoesVO1();
    oddShoeVo.setNamedWhereClauseParam("SkuBind", skuPgBind.getValue());
    oddShoeVo.setNamedWhereClauseParam("ImperfectBind", imperfectPgBind.getValue());
    System.out.print("Named Skubind = " + oddShoeVo.getNamedWhereClauseParam("SkuBind") +"\n");
    System.out.print("Named Imperfectbind = " + oddShoeVo.getNamedWhereClauseParam("ImperfectBind") +"\n");
    System.out.print("where clause = " + oddShoeVo.getWhereClause()+"\n");
    System.out.print("where clause params= " + oddShoeVo.getWhereClauseParams()+"\n");
    System.out.print("Sql is " + oddShoeVo.getQuery()+"\n");
    oddShoeVo.executeQuery();
    public Object resolvElDC(String data) {
               FacesContext fc = FacesContext.getCurrentInstance();
               Application app = fc.getApplication();
               ExpressionFactory elFactory = app.getExpressionFactory();
               ELContext elContext = fc.getELContext();
               ValueExpression valueExp =
                       elFactory.createValueExpression(elContext, "#{data." + data + ".dataProvider}", Object.class);
               return valueExp.getValue(elContext);
    thanks

    Not clear what part of the code doesn't work. Assuming that you did check that the code you wrote executed
    the problem may be the following.
    You need to add partial trigger on the destination component.
    Add ...
    oddShoeVo.executeQuery();
    AdfFacesContext.getCurrentInstance().addPartialTarget(HERE_THE_BIND_NAME_OF_YOUR_TABLE);
    Also I don't see that you acctually use View Criteria. There are specific way to apply View Criteria programatically and I don't see that you use it.
    The simpliest way is just to change the VO query to embed bind variables into the query
    E.G.
    select 1
    from dual
    where some_column= :P_PARAM1

  • Need to attach my custom search form to the tourch in the application

    Hi all ,
    plz will you guide me in the case i've customized search form & i need to attach it to the search torch found in the application ,
    where when the user press this tourch my search form appears

    yes in the application for example
    human resources vision operations -------> people------> enter & maintain
    it shows find screen then when i finish the find screen it send me to the main form , then while i'm in the main form there is torch found in the application under the menu word on the upper left where it brings the find screen again
    wht i want that i need to attach my custom find screen to this torch
    will you tell me is wht i need related to here or else where can i post my question ???

  • Servlet Database I/O: How to "lock" a record being updated ?

    Say you have a servlet that displays a list of customers in HTML page, and a button on each customer to click to bring up another page (servlet generated) with the customer info to edit. The customer info is in a database file (could be Access or ORACLE). User makes any changes and clicks a button to update the customer record (with a servlet).
    How do you prevent two users from editing the same customer record at the same time? I do not want to lock the whole file, just a record.
    Any pointers towards info about this subject appreciated.
    Walk Good

    sridharranganathan, does your technique assume that the read operation is locked, so that two users cannot obtain the same value of LockCounter?
    I have some questions relevant to the following code:
    public class theServlet extends HttpServlet
        public void doGet(HttpServletRequest req, HttpServletResponse resp)
         throws ServletException, IOException
             Helper theHelper = new Helper();
             theHelper.setUser(req.getCookies);
             resp.setContentType("text/html");
                PrintWriter out = new PrintWriter(resp.getOutputStream());
                Connection con = null;
             try
                   SybDriver sybDriver = (SybDriver) Class.forName("com.sybase.jdbc2.jdbc.SybDriver").newInstance();
                   sybDriver.setVersion(com.sybase.jdbcx.SybDriver.VERSION_5);
                   DriverManager.registerDriver(sybDriver);
                   con = DriverManager.getConnection("jdbc:sybase:Tds:dbsrv1:3520/hospcap", "myuserid", "mypassword");                 if (con != null) {
                  if(theHelper.getUserRecord(con, this)) {
                           //do some stuff
                        else { //do some other stuff }
                        con.close();
                 }catch(Exception e) { //whatever }
                 finally { out.flush(); }
             } //end doGet()
    } //end class
    public class Helper {
        private String user = "";
        private String field1Val= "";
        private String field2Val= "";
        public boolean setUser(Cookie [] cookies) {
         // method gets the user's userid from a cookie and then:
            user = user_id_from_cookie;
       public boolean getUserRecord(Connection con, theServlet serv){
            StringBuffer sb = new StringBuffer();
            Statement stmt = null;
         try {
             //Try to get the user's info:
                stmt = con.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY );
             StringBuffer sql = new StringBuffer("SELECT field1, field2 FROM UserRecords WHERE user_id = '" + user + "'");
             ResultSet rs = stmt.executeQuery(sql.toString());
                rs.last();
                int nrows = rs.getRow();
                if(nrows < 1) { //user doesn't have an entry in the table yet.
                 //First, get result set of records with blank userids:
                 sql.replace(0, sql.length(), "SELECT * FROM UserRecords WHERE user_id = '' OR user_id = NULL ORDER BY field1");
              rs = stmt.executeQuery(sql.toString());
                    rs.last();
                    nrows = rs.getRow();
                 if(nrows > 0) {
                     //there ARE some records with null user_id, so assign this user to the first one:
                        rs.first();
                     field1Val = rs.getString("field1").trim();
                     field2Val = rs.getString("field2").trim();
                        //QUESTION: IS IT POSSIBLE THAT TWO USERS/THREADS HAVE THE SAME VALUE OF field1Val AT THIS POINT?
                     sql.replace(0, sql.length(), "UPDATE UserRecords SET user_id = '" + user + "' ");
                     sql.append(" WHERE field1 = '" + field1Val+ "' AND user_id is NULL");
                  con.setAutoCommit(false);
                  //Trying to use transaction isolation to prevent two users from updating the same record.
                  //Does this only work if the users share the connection, con?
                  int level = con.getTransactionIsolation();
                  try {
                      if(con.getMetaData().supportsTransactionIsolationLevel(con.TRANSACTION_READ_COMMITTED)) {
                          con.setTransactionIsolation(con.TRANSACTION_READ_COMMITTED);
                            //SYNCHRONIZE ON SERVLET INSTANCE?
                      //synchronized(serv){
                            nrows = stmt.executeUpdate(sql.toString());
                  }catch(SQLException se) {
                         con.rollback();
                         con.setAutoCommit(true);
                         con.setTransactionIsolation(level);
                         stmt.close();
                         return false;
                     con.commit();
                     con.setAutoCommit(true);
                     con.setTransactionIsolation(level);
                        if(nrows < 1) { //couldn't update the db.
                         stmt.close();
                         return false;
                     else {
                         stmt.close();
                         return true;
                 else { //There aren't any unused records; deal with it.
                     stmt.close();
                     return false;
                else { // the user has an entry in the table
                    rs.first(); //should only be one record for this userid.
                    field1Val = rs.getString("field1").trim();
                    field2Val = rs.getString("field2").trim();
                    stmt.close();
                 return true;
            }catch(SQLException se) {
             //some problem not caught elsewhere
             return false;
       } // end getUserRecord
    } // end class HelperI should say that the UserRecords table now contains about 5000 records (this will grow in increments of 5000), many of which have null user_id. If the value is not null, then it contains a userid. A user can have either zero or one entry in the table.
    Here are my questions regarding the above:
    1. In the servlet, each thread will have its own instance of Helper and of Connection, correct?
    2. I want to ensure that only one thread can update a particular UserRecords table record at a time. In the getUserRecord method, please note the line where field1Val is assigned, just above the capitalized QUESTION comment. Is it possible that two threads could have the same value of field1Val at the same time?
    3. When you set the transaction isolation level for connection1, does that prevent other threads that are using other connections to the database from accessing records being updated by the thread using connection1?
    4. As you can see, I am considering passing a reference to the servlet instance into the getUserRecords method and synchronizing the update statement on the servlet instance. Will that ensure only one thread at a time can update the record, without using the transaction isolation code?
    Thanks in advance for your answer.

  • How to find a record then edit using sql server management studio

    Hello,
    A very basic question:
    I want to find a record stored in MS SQL Server 2008 express database table then edit the record.
    I tried to do it using SQL Server 2008 management studio express because I have been using MS Access database all the time. I have right clicked the table in management studio, clicked the "Edit top 200 records" menu item then when records were
    displayed on the result pane, I pressed Ctrl + F key to find a student named Simon for example. Well, nothing happened. I couldn't see any dialog boxes for putting in the search criteria.
    I guess I cannot simply use Ctrl+F in SQL Server management studio to find / edit a record.
    Can someone please teach me how to find a record specifying a search criteria then edit the record in SQL server management studio?

    Hi ZKM128,
    I have not seen Ctrl+F to be used to look for desired rows in Sql server.
    On the result pane after you selected "Edit top 200 records", just right click , select
    PANE, SQL, you will get the T-Sql query t,here you need to mention the exact criteria which you are looking for, and then you will get the desired rows and then you can edit.
    Thanks
    Manish
    Please use Marked as Answer if my post solved your problem and use
    Vote As Helpful if a post was useful.

  • How to update old records of LIPS used user exit MV50AFZ1

    To All Experts,
    I have used User Exit MV50AFZ1 and in this user exit i updated the fields
    USEREXIT_MOVE_FIELD_TO_LIPS.
    LIPS-ETENR = VBEP-ETENR.
    Its working fine for new VL0N1 t-code, but what about old recods of LIPS table ?
    How to update old records ? Pl. guide me.
    Yusuf

    Hi Yusuf,
    See SAP Note 415716 - User exits in delivery processing, it explain how these userexits work and cautions that you must have.
    Regards
    Eduardo

  • What is tuxedo9.1/bin/sql and how to restrict amount of memory it uses?

    Hi,
    We have AIX 5.3 server running Oracle 10.2 database and Tuxedo, a few days ago the database crashed as
    there was no free memory (this was configmed by AIX log).
    According to our monitoring (Open View) memory was consumed by two 'sql' processes
    (where 'sql' is process name): within one hour each process went from 24,000 to 800,000 memory pages.
    I searched the box and found executable named 'sq' in tuxedo9.1/bin:
    ls -l tuxedo9.1/bin/sql-r-xr-xr-x 1 abcPadm abcP 73128 Oct 24 2008 tuxedo9.1/bin/sql
    Would you be able to tell me what is this 'sql' executable and how to restrict amount
    of memory it consumes (other than through ulimit)?
    Thanks
    Sev

    Hi Sev,
    As Ian says, the SQL support in Tuxedo where Tuxedo actually provided a relational database resource manager has long been deprecated and certainly hasn't been supported in over 10 years. The Tuxedo sql program in the Tuxedo bin directory is an interactive SQL utility. I seriously doubt that it is the same executable that caused your memory problem. If it is the same executable, there isn't really much Oracle is going to be able to do for you as that component hasn't been supported for years. You would really need to change the application to use a standard supported SQL utility and relational database.
    Regards,
    Todd Little
    Oracle Tuxedo Chief Architect

  • How to build custom search using API - 10.1.2

    Hi,
    I have been looking through some documentation and i can't seem to find how to use the API in portal 10.1.2 to create a custom search. Any help or samples would be appreicated.
    Thanks

    The Search API is a new feature in 10.1.4. In older version a custom search portlet was provided, no API.
    <br><br>
    You can build a search engine yourself in Portal 10.1.2 by using the Oracle Text API. The search engine should implement security however which can be quit difficult to accomplish. It is not impossible however.
    <br><br>
    In most cases it is has less impact to upgrade to release 10.1.4 then to build a search engine yourself. My advice would be to install 10.1.4 on a test system and play around with the new search API. You can then decide whether it is worthwhile to upgrade to 10.1.4 where you profit from several nice new features.

  • How to restrict Overwritten records of Info-Cube  in Query

    Hi ,
    In query i am able to see the overwritten/replaced records with Zero values as well the same records with new values i.e. same record with in 2 lines one with zero value and other with replaced value.How i can restrict that only new record should be shown in Query.
    With regards,
    Abhishek Kumar

    As in InfoCube if a new record is inserted with same key fields it add the previous record with -ve values and new record with new values having same key fields.Now i can see these records in Info-Cube but when it comes to query it shows all the records ,one with the zero value and the same with the new values.Question is how i can restrict the record with zero value.
    Abhishek Kumar

  • R12: How to Restrict Custom Responsibility to a particular Organization

    Hi,
    I have created a new responsibility say xx_resp.
    I want it to restrict it to paraticualr one organization say ORG1.
    whenver any user access any function under this responsibility he/she cannot query any other organization data except ORG1.
    Please advise.
    -Thanks
    SJ

    Hi Sj;
    Please see below which could be helpful for your issue:
    Restrict report to particular User
    to restrict the reports based on user responsiblity
    How to Restrict a Resp. to Specific Org. in Multi-Org. Setup within an OU
    Value Set Restriction in a Report
    Regard
    Helios

Maybe you are looking for

  • Folders In Mail Disappeared after Leopard Boot

    I downloaded Leopard to my wife's computer, and her mail, internet settings (including bookmarks) are all intact, however, I had to download twice to my MBP before it went through, now my bookmarks are gone, and folders I had created in mail are gone

  • Error while saving Transaction Type

    Hi Everyone, Whenever I try to save a transaction type, then I get the following message.; " APP-FND-01016: Routine FDFRKS. Unknown Structure ID 0 for flexfield code GL # with application ID 101" Though the Accounting Flexfield in GL is OK, and compi

  • After software update, Epson Artisan printers will not print 4x6

    Hi all, After updating the Epson drivers to the latest Apple-Provided version (Via software update), neither my Artisan 837 or Artisan 835 will print to Epson Premium Glossy 4 x 6 photo ppaper. Both worked prior to the update. I have everything set c

  • How to get documents from SAP KM in java

    Hi Everyone                 I want to get  the SAP KM data to a simple java class......I am able to get this with servlet but i want not a servlet but a simple java class that can get the Documents stored in SAP KM repository.................. I am t

  • MIGO & MIRO no fx difference posting

    Hi, we had requirement i.e when we create po based the date system will pickup exchange rate say 0.658 and when we create migo that time rate was 0.789 and when we do miro rate was 0.8941 in GRN and MIRO entries getting posting when we do miro system