Select List to check duplicate values before putting into another item

Hi All ,
I have a select list which contains .. country regions like ( APAC , EMEA etc ) .
When I select any region , all the countries belonging to the region fills in another item .
Suppose I select APAC , all the countries like India , Japan etc all fills in another item .
But the problem is , if I select twice APAC , it fills duplicate values . Its filling duplicate values .
I want to put validation or check for country value ...
Suppose I select ' APAC ' it fills all APAC countries in another item . Now Again If I select APAC then it first check the item whether the country is there or not . If already APAC countries are there in the Item then it will show an error message that " Value already Exist ' .
I am not able to fix this problem . it is creating duplicate values in database table .
Please some one help me on this ..
Thanks
Prashant

Patrick ,
Sorry , I am correcting my words ..
I am using Multiselect List ( P11_REGION) having regions APAC , EMEA , LAD etc .
When I select Region like APAC , it fills all the countries of APAC and puts into a List .
If again I select APAC , it again fills all the APAC countries and puts into a list which causes duplicacy .
I have one Application Process which returns Country according to Region selection and puts in the list .
So , what i want is when user twice selects region APAC , it searches the list whether APAC countries are there or not . If countries are already exists then it show an error otherwise Puts the countries in the list .

Similar Messages

  • Multiple Select List not returning multiple values

    I have created a Multiple Select List, and the manual says that when multiple values are selected and the page is submmitted (I'm using a GO button), the multiple values are put into the ITEM field, separated with a colon . However, whenever I select multiple entries in my list, it only ever returns a value for the first item (like a single select list).
    Does anybody know what I may have missed ? I'm still fairly new to this stuff, so I'm hoping it's fairly simple!
    thanks.
    p.s I'm using a dynamic list of values.

    Andy / Scott,
    Sorry, please bear with me ... still new to this.
    I have a multi select list item in page 2, called P2_MULTI_LIST. When the page is submitted, I no longer physically pass it to page 3, but how would page 3 pick up the value ? Do I need to set up a P3_MULTI_LIST item in page3 and set that item to the P2_MULTI_LIST value, or do I reference P2_MULTI_LIST directly in my Page3 SQL query ?
    Also, if I then want to propogate the value in P2_MULTI_LIST down to another page from page3, via a link in a report, is this possible ?
    thanks
    Tim

  • Customize Alert messages for checking duplicate value and Success alert

    Hi All,
    I want to show two alert against the same "Submit" button to--
    1. Alert messages for checking duplicate value and show the Duplicate value found alert and
    2. Success Alert if the form is success to commit and no duplicate value found.
    I did all thing but when alert-1 shows and i pressed the ok button of the alert then the second alert also shows which i don't want to show.
    Which i can do in this issue? Have there anyone to help me!
    Arif

    Hi Manu,
    I have placed the following code
    1. against the Submit button--
    if error_code=40508 then
         commit_form;
    elsif :USERDELETION.CANCELLATION_USERID is not null then
    do_key('COMMIT_FORM');
    else null;
    end if;
    2. Code against the key-commit trigger in the form level--
    commit_form;
    DECLARE
    vAlert NUMBER;
    BEGIN
    set_alert_property('ALERT_TO_VERIFY',ALERT_MESSAGE_TEXT, 'Your Form has successfully submitted and your Reference id is '||:USERDELETION.REF_NO);
    vAlert:=SHOW_ALERT('ALERT_TO_VERIFY');
    END;
    3. Code against the on-error trigger in the form level--
    DECLARE
    vAlert NUMBER;
    BEGIN
         if ERROR_CODE = 40508 then
    set_alert_property('ERROR_ALERT',ALERT_MESSAGE_TEXT, 'This user deletion request has already submitted of the user named '||'"'||:USERDELETION.FULLNAME||'"');
    vAlert:=SHOW_ALERT('ERROR_ALERT');
    elsif
              ERROR_CODE = 40202 then
    set_alert_property('ERROR_ALERT',ALERT_MESSAGE_TEXT, 'Existing userid must be filled-up !');
    vAlert:=SHOW_ALERT('ERROR_ALERT');
    else
                   message(error_type||to_char(error_text)||': '||error_text);
    end if;
    END;
    If there have any confusion, please ask me.
    Arif

  • I need help with migration....i need to take movies off 1 hard drive and put into another then into my iPad

    I need help taking movies off of 1 hard drive and putting into another....then putting into my ipad

    Drag them from one hard drive then drop them onto the other. Then you must import them into iTunes in order to sync them to your iPad.

  • Dynamic Select List not displaying correct value

    Hi there!
    I have a page with a dynamic repeat region.
    As I press one record I get up all the details based on id on an edit page.
    The problem is that the info that is inserted via a Select List is not displaying correct on edit page.
    All the other values are correct, also the values in the repeat region on index page,
    but the value from the Select List on edit page is just displaying the initially selected item.
    Have tried using SELECT DISTINCT in the SQL statement, but no luck.
    Any other ideas?
    Cut and paste from form:
    <select name="Vegtype" class="ProvDet" id="Vegtype" title="<%=(rsAs.Fields.Item("VegType").Value)%>">
                        <option value="Ev" selected="selected">Ev</option>
                        <option value="Fv">Fv</option>
                        <option value="Rv">Rv</option>
                        <option value="Kv">Kv</option>
                      </select>
    Recordset
    <%
    Dim rsAs
    Dim rsAs_cmd
    Dim rsAs_numRows
    Set rsAs_cmd = Server.CreateObject ("ADODB.Command")
    rsAs_cmd.ActiveConnection = MM_LabCon_STRING
    rsAs_cmd.CommandText = "SELECT DISTINCT DatoM, DatoR, DatoU, Distr, FagFelt, Felt, IntNr, Km, KontrNr, Kontrollor, Masse, MasseBK, Punkt, Resept, TestID, UserID, VegHp, VegNavn, VegNr, VegType FROM tblTest WHERE TestID = ?"
    rsAs_cmd.Prepared = true
    rsAs_cmd.Parameters.Append rsAs_cmd.CreateParameter("param1", 5, 1, -1, rsAs__MMColParam) ' adDouble
    Set rsAs = rsAs_cmd.Execute
    rsAs_numRows = 0
    %>
    Regards,
    Christian
    DWCS5 | .Asp | MS Access

    Ok, here goes the top down approach...
    In the HTML header of my page, i have this reference to a js file containing the javascript - <script src="#WORKSPACE_IMAGES#108.js" type="text/javascript"></script>
    Then in an HTML Region I have the following code to create the divs that will be shown and hidden - <div id="divREGION" class="divs">Select region to get list of countries.</div>
    <div id="divCOUNTRY" class="divs">Select country to get list of cities.</div>
    <div id="divCITY" class="divs">Select city and then press "Get Employees". </div>
    Note that these divs contain static content. You may be able to create dynamic content for these divs by creating dynamic query regions and putting div tags around the region (i havent tried this, it may require template modification).
    The select boxes have this code in the "HTML form elements attributes" - onFocus="javascript:showHideDiv(this,true)" onBlur="javascript:showHideDiv(this,false)"
    This onFocus and onBlur call the showHideDiv() function, passing in the object reference of the select box and a true/false to show/hide the related div.
    The actual javascript function that is contained in the 108.js file is:
    function showHideDiv(objThis, inBool){
         var divid = "div" + objThis.id.substring(3);
         if (inBool) {
         ShowDiv(divid);
         else {
    HideDiv(divid);
    That function in turn calls either the ShowDiv() or HideDiv() functions, depending on the true or false, passing in the ID of the div to be changed...
    function ShowDiv(divid){
         eval('document.all'+ '["' + divid + '"]' + '.style' +'.display = "inline"');
    function HideDiv(divid){
         eval('document.all'+ '["' + divid + '"]' + '.style' +'.display = "none"');
    Hope this helps.

  • Multiple select list not retaining the value for the first time

    Hi,
    I have a 3 select list depends on each other. select_list1 -- > select_list2 --> multiselect3. I have use denes example to create them.
    For the first time when I select values from 1,2,3 and runs a report based on it, it works fine but *does not retain the selected value in multiselect3.
    for the second time submit the process, it retails value in multiselect3. Please tell me if you came across this issue before
    Here is the code.
    function get_select_list_xml_VL(pThis,pSelect,pSelect1,pSelect2){
    var l_Return = null;
    var l_Select = html_GetElement(pSelect);
    var l_Select1 = html_GetElement(pSelect1);
    var l_Select2 = html_GetElement(pSelect2);
    var get = new htmldb_Get(null,html_GetElement('pFlowId').value,
    'APPLICATION_PROCESS=Cascading_Select_List_VL',0);
    get.add('F660_CASCADING_TEST',l_Select1.value + '_' + pThis.value + '_' + l_Select2.value);
    alert(l_Select1.value + '_' + pThis.value + '_' + l_Select2.value);
    // alert(document.getElementById("F660_CASCADING_TEST").value);
    gReturn = get.get('XML');
    if(gReturn && l_Select ){
    var l_Count = gReturn.getElementsByTagName("option").length;
    l_Select.length = 0;
    for(var i=0;i<l_Count;i++){
    var l_Opt_Xml = gReturn.getElementsByTagName("option");
    appendToSelect(l_Select, l_Opt_Xml.getAttribute('value'),
    l_Opt_Xml.firstChild.nodeValue)
    get = null;
    function appendToSelect(pSelect, pValue, pContent) {
    var l_Opt = document.createElement("option");
    l_Opt.value = pValue;
    if(document.all){
    pSelect.options.add(l_Opt);
    l_Opt.innerText = pContent;
    }else{
    l_Opt.appendChild(document.createTextNode(pContent));
    pSelect.appendChild(l_Opt);

    Please ask any question if you dont understand about the problem.
    Thanks

  • APEX 4.0.2 Multi-selection on a cascade LOV select list only pass 1 value

    Hello everyone,
    I am struggling to make a cascading LOV select list has multi-selection.
    On one report page.
    I have 2 select list
    The first one lists the court name (P4_COURT_NAME), the second one (P4_DEFENDANT) list all defendants who currently engaged in the court.
    The problem is when I allow the defendant select list become multi-select, when it submit it only pass the first selected value.
    So I create just a simple select list based one list of value, and make it allow multi-selection. When it submit, the normal select list can pass selected values properly, while the cascade LOV select list pass only the first selected value.
    Please help if any of you have an idea why.
    We use APEX 4.0.2.00.07, Oracle data version iis 11g
    The some configuration settings I set for the P4_DEFENDANT IS
    Value required: Yes
    Page Action When value changed: None
    Allow Multi Selection: Yes
    Named LOV: --Select Named LOV-
    Display Extra value : Yes
    Display Null Value: Yes
    Null Display Value: --Select—
    Null return value:
    Cascading LOV Parents Items: P4_COURT_NAME
    Page Items to Submit: P4_DEFENDANT
    Optimize refresh: YES
    List of value definition
    SELECT def.first_name || ' ' || def.surname || ' (PRN: ' || def.prn || ' )' as d, def.def_id as r
    FROM defendant def INNER JOIN court_engagement ce
      ON def.def_id = ce.defendant_id
    WHERE (ce.date_joined_aodt_court IS NOT NULL
      AND (ce.date_terminated IS NULL OR to_date(ce.date_terminated,'dd/mm/yyyy') > to_date(sysdate,'dd/mm/yyyy'))
      AND UPPER(ce.court_name) LIKE UPPER(:P4_COURT_NAME)
      AND ce.active = 1)Source Used: Only when current value in session state is null
    Source Type: Static Assignment
    Maintain session state: Per session
    The rest is default.
    Thanks in advance.
    Ann

    Hi Chintan,
    The "Source used" for those items are "Always, replacing any value in the session state". To set them to "Only when current value in session state null" sounds a good solution to me.
    However, a strange thing just happened - now I will not lose the values of the items after the page reloading, although I have changed nothing in the page in my application since I asked the question. I don't understand why all of a sudden the reloading doesn't make me lose changed values any more. Let me dig it tomorrow to see what I'll find.
    Thanks so much for your help.
    Christine

  • Multiple selection list and passing that value to oracle reports

    Hi
    I need to create a multiple selection list and then based on use selection, I need to pass that value to oracle reports. Can any one help with steps on how I can do this. Thanks

    Hi
    Concatenate the multiple values into a string separated by comma and then pass that string to report as a parameter.
    In report query, you have to use the lexical parameter using ' & '
    regards
    SD

  • Select list defaulting to first value

    APEX Version: 4.1.1.00.23
    Oracle Database: 11g
    Issue: The application is updating the selected value from the Select list (Y/N) to the database but in front end, the select list is defaulted to display only the first value in the list. What I find is the datatype of the field in the table that this select list is tied to is CHAR(2). And upon changing it to VARCHAR2(2), it worked fine. Now whichever option I choose from the select list is updated and displayed at front as well.
    I do not understand why is this messing up with CHAR(2). Anyone please explain, I would really appreciate that.
    Thanks,
    Samip

    never use CHAR() in your tables.
    CHAR will always pad your strings to the exact same length.
    In your case, you are comparing the table value of 'Y ' to the List value of 'Y'.
    declare
      a  char(2) := 'Y';
      b varchar2(2) := 'Y';
    begin
      dbms_output.put_line('variable A has length of ' || length( a ) ); -- this will ALWAYS have a length of 2
      dbms_output.put_line('variable A has length of ' || length( b ) );
    end;

  • Select List with the current value

    Hi,
    I have a Page suppose Page1 with 2 region.
    Region1 is having SEARCH button (target page 1 itself) and a SELECT LIST called Deptno (10,20,30,40)
    Region2 is just a simple employee report based on Deptno (where deptno = :p1_deptno)
    Now when I suppose select deptno 30 and press SEARCH button, report is not displayed and also Dept select list current value becomes the first one in the list i.e 10.
    My question is after submitting the same page 1 using SEARCH button, how can I display the selected value (dept 30) in the select list.
    Note:- If I am using Select List with Submit then it's working fine and also displaying the current value (30) in the list, But I am looking for using SEARCH button.
    Thanks,
    Deepak
    Edited by: Deepak_J on Aug 6, 2009 2:14 PM

    Hi,
    Then the value that is selected in the list will not be submitted, so it will not be saved. You need a button that submits the page.
    Andy

  • How do you set up a TIME-LAPSE movie "before" putting into CS5 ??

    Is there a way to put together a time-lapse sequence shot with a DSLR (comprised of many stills) into a movie at 30fps, BEFORE putting it into the Adobe Premiere Pro CS5 timeline?
    QuickTime does NOT work because the images I need to use are TIFFs of much too high a quality for it to handle.  I know, I've tried.
    I know I can put the stills into CS5 as a series of shots lasting 1/30sec each to make a sequence, but that does not allow me to control the finished sequence "as a whole" for further altering like duration or other effects.  Otherwise, I would have to make alterartions one frame at a time, which is ridiculously time prohibitive and not precise.
    I'm using a Windows7 PC, and a Nikon D2X DSLR camera shooting in RAW.
    Any advise and help is greatly appreciated.
    Thanks.

    First of all, Pr won't import the RAW images, so you'll need to pre-process them and convert them to a more "standard" image file format, such as TIF or JPG. I think you already realize this, but thought I'd just mention it.
    When you want to import as a timelapse clip, check the "Numbered Stills" checkbox in the Import dialog, and select just the first image in the numbered sequence and click Open. This will create a clip using each image as a frame of the clip; you can select this clip, right-click, and select Modify > Interpret Footage to set the frame rate you like. There is also a check-option in the flyout menu of the Media Browser called "Import Numbered Stills as a Sequence" that does the same thing; just select that, import the first image, and the rest of the images will be imported as part of the clip.
    Once this is done, the images will act as one clip, so a single effect will affect all frames in the clip.

  • Prevent duplicate value being entered into a column

    How do we prevent user to enter duplicate value into one of the column of a multiple record block before we commit the form ?
    Can anybody help ?
    Thanks,
    Shu Wen

    Do you want the duplicate to be detected as soon as the item is validated ?
    If so, the only way I have found to do so is to maintain a copy of the contents of the block in a record group. Rather cumbersome and a few triggers needed, but I have one application where I had to do it. I have always found it restrictive that you cannot read values from other records without navigating to them. If anyone has found a better method I would be interested to hear.

  • Access data from from two lists based on lookup columns and insert into another

    Hi,
    I am new in SharePoint and is stuck in some problem.
    I want to insert data in to a list by fetching data from 2 lists.
    The scenario is :
    List A Columns : EmployeeName, EmployeeID, EmployeeSalary 
    List B Columns : DepartmentName, EmployeeID, ManagerID
    EmployeeID is lookup column 
    I want to fetch data from these 2 lists and insert data into another list:
    List C Columns: EmployeeName, EmployeeSalary, DepartmentName 
    Can someone please explain me all the possible approaches to do the above task

    If ListA and ListB are the lists that you created, it would be better to generate the lists data into one list not seperate lists, as they both represents the property information of one employee.
    If they are existing lists, you may have following considerations:
    1. if you are a programmer, it would be easier to have a lookup column at ListA, to generate the EmployeeName, EmplyeeSalary, then using ItemAdded event, to generate the DepartmentName column based on EmployeeID column.
    2. have a lookup column look at ListA, use workflow, set when item is created, start the workflow automatically, then in the workflow, find ListB related item based on EmployeeID column, to set the DepartmentName column, SharePoint designer workflow
    set Item Value activity can do this work, you can research to find more information about how to do this.
    Thanks,
    Qiao Wei <br/> My blog:http://blog.goobol.com

  • SSRS How to pass subtotal value in matrix into another table just for display?

    Hi all,
    I have two matrix with subtotal for two grouping. I need to pass the value of this two group subtotal into another matrix table to display and perform simple calculation to get the differences.
    How can I pass the subtotal amount into the other matrix?
    In Crystal report I can define two variable where i can set the total to the value and call the two variable anywhere in the same report. But how can I do it in SSRS?
    Appreciate can help
    Thank you

    Yes, basically both are same grouping, i just want to capture the subtotal for comparision with scenario 2.
    I can do it in SQL, but if possible, I hope to do it in report. Thank you
    Simulation as below
    Matrix for scenario 1
    Group 1
    Detail 
    Detail 
    Subtotal Group 1
    9999
    group  2
    Detail 
    Detail 
    SubTotal Group 2
    8888
    Matrix for scenario 2
    Group 1
     Scenario2 
    Scenario 1
    Differences
    Detail 
    Detail 
    Subtotal Group 1
    2000
    9999
    2000-9999
    group  2
    Detail 
    Detail 
    SubTotal Group 2
    3000
    8888
    3000-8888

  • How does a multiple-select list box record its value?

    I assumed that the value of a MSLB would be based on all the values selected, similar to SharePoint column?
    I have a MSLB with 15 choices and I want to hide a section if 2 of the MSLB options are not selected. I have tried a rule on the section using
    MSLB Doesn't Contain "AUD-Public Co"  OR
    MSLB Doesn't Contain "AUD-Public Accountable"  THEN  HIDE.
    This doesn't work, if I change it to Is Equal To, it works but it is in reverse to what I want. If I change it to Is Not Equal To, it doesn't work at all, it stays hidden all the time.
    I created a Text box to be set when the MSLB is checked and it only displays the most recent selection and doesn't clear when all items in the MSLB are cleared. I read a few other postings that were trying to concat into a textbox but this is still only
    showing the last selected item.
    I just want to hide the section if 2 of the MSLB are NOT checked. I am hoping I don't have write a rule using Is Equal To for every option?
    Stunpals - Disclaimer: This posting is provided "AS IS" with no warranties.

    My next question would be, if I promote this field to a column in a SP Doc Lib, how will it be displayed. We are hoping it would be the same as multi select choice field on a regular SP list so we can filter by any of the values?
    Or perhaps there is a better way to accomplish this?
    Stunpals - Disclaimer: This posting is provided "AS IS" with no warranties.

Maybe you are looking for

  • Resize in iPhoto? or not?

    forget what I may do with it at some future date. Will iPhoto resize or not? If so how? I keep running into advice re: using some other program to do so. simply highlight a pic, get info, resize it intact from 2560x1920 to 640x480 I have attempted va

  • Bc XI Integration

    HI, I am tring to integrate SAP Business Connector(SAP-BC) with XI. I am able to send the data through XI's BC adater( receiver) to BC. But i am unable to handle teh data in BC. 1) I want to know how is BC capable of Handling XML Data? If yes how can

  • Two mount points for ipod.

    Hi there, When I connect the IPOD there appear two moint points. One with the name of the device (in this case Mike) and one with the name 'Ipod'. The first works fine so I can sync with banshee without problems. The second throws the following error

  • Site Manager Misbehaviour

    I have a persistent and very annoying problem with the site manager, and I wonder if anyone here can shed some light. Whenever a users opens the Dreamweaver (MX 2004) site manager with the local version of the site set to a folder on a shared drive i

  • Can't activate i message

    I can't activate i message on new ipad 2. keeps asking for my id and password and when I submit it goes right back to asking the same thing. What gives?