Using Set_item_property default_where

Posted on 2006-03-22
Last Modified: 2013-12-11
I am trying to set the where property on a Block query using the
When the  user enters  a letter I wan to show a list of names beginning with that letter. I know the syntax should be for example (last_name like  'M%').

WHen the user enters the letter all the user  gets is last_name the match the letter.
Please tell how to set the snytax for the set_item_property  default_where clause.

my current syntax is
set_item_property(Block_id,default_where, 'Last_name like :Block.last_name');
where :Block.last_name being the field where the user enters the letter.

Question by:timjshields
    LVL 16

    Accepted Solution

    I'm not sure if this works or not, but can you use...
    set_item_property(Block_id,default_where, 'Last_name like :Block.last_name || ''%'' ');
    (note, it is two single quotes in a row '', not a double quote "

    Author Comment

    It worked perfectly. Thanks alot. Points to you

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    How to Create User-Defined Aggregates in Oracle Before we begin creating these things, what are user-defined aggregates?  They are a feature introduced in Oracle 9i that allows a developer to create his or her own functions like "SUM", "AVG", and…
    Cursors in Oracle: A cursor is used to process individual rows returned by database system for a query. In oracle every SQL statement executed by the oracle server has a private area. This area contains information about the SQL statement and the…
    This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
    This video shows how to copy an entire tablespace from one database to another database using Transportable Tablespace functionality.

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now