Automatic filling of multiple selection based on the selection list

Hello

I have a problem in filling multiple selection data in the selection list.
I would like to take an example and explain.
I have 3 tables: employee, Department and a link table for employee and department.
The selection list contains employee and the Department is a multiple selection. Employee selection, all departments must be posted and belongs to the Ministry of which employee (which comes from the binding table) must be selected (high-lighted). How can I do this?

HI 841762 :),.

Do not use the 'style' to highlight that you would have found out by now that would make the blue text background while the font color remains black and this will make the text unreadable. Plus if there is a button on the page when you submit it to us, I doubt that it will store the State of the selected items in a multiple of P1_DEPT in session state. then try this...

In the application process, replace, the status of 'style' that you used to highlight as you...

....
If (rec.R=cnt)then
htp.prn('');
ELSE
  htp.prn('');
end if;
...

Then in the JS, use

appendToSelect(list, l_Opt_Xml.getAttribute('value'), l_Opt_Xml.firstChild.nodeValue,l_Opt_Xml.getAttribute('selected'));

and change the function "appendToSelect".

function appendToSelect(pSelect, pValue, pContent,pIsSelected) {

 var l_Opt = document.createElement("option");
 l_Opt.value = pValue;

if(pIsSelected)
l_Opt.setAttribute('selected','selected');

if(document.all){
  pSelect.options.add(l_Opt);
  l_Opt.innerText = pContent;
 } else {
  l_Opt.appendChild(document.createTextNode(pContent));
  pSelect.appendChild(l_Opt);
 }
}

Tags: Database

Similar Questions

  • Delete in the database based on the values of the multiple selection list

    Hello

    I have a selectlist in Apex and a function in the database to make a deletion based on the value selected in the selection list.
    FUNCTION delete_batch (v_batch VARCHAR2) RETURN VARCHAR2
    IS
    BEGIN
    IF v_batch like 'M%'
    THEN
       RETURN ('A monthrun cannot be deleted');
    ELSE
       DELETE FROM so_disco_pa
       WHERE  batch = v_batch
       ;
       DELETE FROM so_batch_pa
       WHERE  batch = v_batch
       ;
       COMMIT;
       RETURN ('Batch '||v_batch||' has been deleted');
    END IF;
    EXCEPTION
    WHEN OTHERS THEN
        RETURN ('Batch could not be deleted');
    END delete_batch;
    The package is called when the user clicks on the button Delete with the rest of the process:
    BEGIN
    DECLARE
    x   varchar2(100);
    BEGIN
    x := pa_control.delete_batch (:P3_BATCH);
    :F105_MESSAGE := x;
    END;
    END;
    Now, I want to change the selectlist for a multiple-selection list to make several batches can be deleted.

    How can I change my procedure and the procedure to remove lots based on the values selected?

    Thank you

    Diana

    dianap says:
    I got this far, but only the first batch selected in the list is being deleted. The other values of selected package are not removed.

    Help please.

    Move the RETURN statement out of your loop.

  • A report of a multiple-selection list-based filtering

    Hey guys,.

    I have an interactive report that should be filtered by a value from a multiple selection list.
    AGENCY Multi-Select
    ----------------------
    ABC:DEF:GHI:DEF
    My question is, if there is a way to compare the: APP_USER to multiple selection list and have a line appears only if she does?

    For example something like a "where" clause
    where APP_USER is Contained within Colon Delimited List "AGENCY"
    See you soon,.
    Mauricio

    Select * from table_name
    where
    InStr (: multi_select_field_name,: app_user, 1) > 0

    Kind regards
    Shijesh

  • Facing problem in the multiple selection list...

    Hi Andy,.

    We are facing a problem more...

    In the selection of the Menu... Like u given a solution for dropdownlist hide which works very well... but the same logic does not work for the multiple selection list item. Why so...


    David...

    Published by: David on November 17, 2008 05:22

    Hello

    If you have added in the Page template, then the P39_BATES_DESCRIPTION will not work. As the P63_ATTRIBUTE_CLASS_CODE is not on the page, javascript will throw an error and that will stop the rest of the code to run.

    You can get javascript to test for the existence of a question of fact:

    if ($x('P63_ATTRIBUTE_CLASS_CODE')) {$x('P63_ATTRIBUTE_CLASS_CODE').style.display = 'none';}
    if ($x('P63_ATTRIBUTE_TYPE')) {$x('P63_ATTRIBUTE_TYPE').style.display = 'none';}
    if ($x('P39_BATES_DESCRIPTION')) {$x('P39_BATES_DESCRIPTION').style.display = 'none';}
    

    Andy

  • Limit of characters in multiple-selection list

    Hi people,

    Throw this out there to see if anyone has had this problem, and how they may have gotten around him.

    It seems that the Multi Select lists have a limit of 1000 characters, i.e. If you select so many items in the list and its over 1000 characters, you cannot save the file.

    I would like to say that ok we will have to just a few lists rather than a big workaround, but the customer fixed the list up in this way, and now that we create the hypersite to allow them to select items in this list, it's possible they could try on the hypersite select all. Clearly, it seems that we will have to have validation on the website to ensure that they do not select more than 1000 characters of a value of items in the list, but it would be useful if there was a way Eloqua to enable this.

    The one you have any ideas/advice?

    Something is very appreciated.

    Thank you

    Andrew Mc.

    I think the challenge is that the multiple-selection list is already built and already used in other functions.

    Andrew - you're right that to resolve this problem, you would have to update the list in Eloqua (again, just the option values, not the option names) and also the list in SFDC - you are on right track here.

    I hope this helps!

  • Multiple selection list

    I have a web form that I need to allow users to select multiple items in a list.  I 'google' and can not find an answer.

    The application has 2 parameters.

    < %

    Dim HoursWorked_PP__varTI

    HoursWorked_PP__varTI = '% '.

    If (Request.QueryString ("TI") <>"") then

    HoursWorked_PP__varTI = Request.QueryString ("TI")

    End If

    % >

    < %

    Dim HoursWorked_PP__varPP

    HoursWorked_PP__varPP = '% '.

    If (Request.QueryString ("PP") <>"") then

    HoursWorked_PP__varPP = Request.QueryString ("PP")

    End If

    % >

    < %
    Dim HoursWorked_PP
    Dim HoursWorked_PP_cmd
    Dim HoursWorked_PP_numRows

    Set HoursWorked_PP_cmd = Server.CreateObject ("ADODB.Command")
    HoursWorked_PP_cmd. ActiveConnection = MM_Connection_STRING
    HoursWorked_PP_cmd.CommandText = "SELECT * FROM dbo.vw_HoursWorked WHERE COLUMN_NAME =? and PP =?

    HoursWorked_PP_cmd. Prepared = true
    HoursWorked_PP_cmd. Parameters.Append HoursWorked_PP_cmd. CreateParameter ("param1", 200, 1, 255, HoursWorked_PP__varTI) ' adVarChar
    HoursWorked_PP_cmd. Parameters.Append HoursWorked_PP_cmd. CreateParameter ("param2", 200, 1, 255, HoursWorked_PP__varPP) ' adVarChar

    Set HoursWorked_PP = HoursWorked_PP_cmd. Run
    HoursWorked_PP_numRows = 0
    % >

    From my research, I tried:

    < %
    WorkedDate = Request.form ("WorkedPP") ' info from a string conversion

    MakeDate = Replace (WorkedDate, ",", "" OR WorkedPP = "" ") ' replace comma-space of a single quote - or WorkedPP = - singlequote
    % >


    < %
    Dim HoursWorked_PP
    Dim HoursWorked_PP_cmd
    Dim HoursWorked_PP_numRows

    Set HoursWorked_PP_cmd = Server.CreateObject ("ADODB.Command")
    HoursWorked_PP_cmd. ActiveConnection = MM_Connection_STRING
    HoursWorked_PP_cmd.CommandText = "SELECT * FROM dbo.vw_HoursWorked_PP_Sum WHERE COLUMN_NAME =? and PP = ' "' & MakeDate &" ' "
    HoursWorked_PP_cmd. Prepared = true
    HoursWorked_PP_cmd. Parameters.Append HoursWorked_PP_cmd. CreateParameter ("param1", 200, 1, 255, HoursWorked_PP__varTI) ' adVarChar
    HoursWorked_PP_cmd. Parameters.Append HoursWorked_PP_cmd. CreateParameter ("param2", 200, 1, 255, HoursWorked_PP__varPP) ' adVarChar

    Set HoursWorked_PP = HoursWorked_PP_cmd. Run
    HoursWorked_PP_numRows = 0
    % >

    Any help or a point in the right direction?  I'm not sure, but I can't find a solution to allow multiple selection lists.  If I change the query to use IN, then the URL string has always tried to use 'AND' so the results are null.

    Thanks for any help!

    Crystal

    WHERE COLUMN_NAME = lamyae and PP IN ("varPP")

    No, what I wanted was that you should analyze varPP and wrap all the values inside quotes. You must also put parens around all this. Therefore, this:

    "option 1, option 2, option3 ' who comes to the selection list is converted to this:

    '(' option1', 'option2', 'option3').

    I posted here a few years ago code to achieve this, but I did not practice routine. See if you can search for it.

  • as display 2 columns in a multiple select list

    Hi, I want to ask if it is possible to have 2 column display in a multiple selection list.


    in my case, I have a multiple selection list where seminars are displayed, but I also want to add the name of half as exposed as well.

    I have 2 tables:
    Seminar (where the id name and half of seminars are stored)
    semester (semester name)

    My atm code
    select s.name as D,  -- how to add the semester name?  
             s.id as R
    from seminar s, semester sem
    where s.semester = sem.id
    I need to add half as display name


    Thank you for your attention


    Danny

    Hello

    You can do the following:

    select s.name||' '||sem.semester_name as D,  -- how to add the semester name?
             s.id as R
    from seminar s, semester sem
    where s.semester = sem.id
    

    for example, concat the seminar name & name semester

    See you soon
    Matt

  • Auto fill cells with color based on the result in the cell

    Is it possible to automatically fill a color in an excel cell based on the result that is displayed in a cell

    for example, if the result is in (0.00 - 1.00 = green), (superior to-2.00 orange)...

    -1.00
    0.54
    -2.50

    Hi CP.

    If you use excel 2007
    Use the conditional format in the home TAB
  • How to make default an element selected in the multiple selection list

    Hello

    I'm filling the list of multiple selection of a lov (dynamic lov). Is it possible to do by default one of the selected items in the list.

    Please let me know how to do this...

    Thanks /.

    How do you determine that a particular value of the LOV must be the default?
    You should be able to combine the LOV query and your 'default selection' health by using an SQL statement or a pl/sql function and specify it for the 'default value Type' in the section 'Default' definition of the elements page.

    CITY

  • Fill a field value based on the value of another field

    Hello
    Could someone tell me what is the problem with the following select statement. For a group of records, trying to fill a field with a value based on the value in another field (problem of status), but the Group of records appears empty just when I put this code in the field.
    Any help would be appreciated
    Thank you


    <? choose:? >
    <? When: IssueStatus = "Open"? >
    <? 1? >
    <? end when? >
    <? otherwise:? >
    <? When: IssueStatus = "closed"? >
    <? 2? >
    <? end when? >
    <? otherwise:? >
    <? When: IssueStatus = "Unresolveable? >
    <? 3? >
    <? end when? >
    <? end otherwise? >
    <? end to choose? >

    Use the following syntax.

    
    
    Display 1
    
    
    Display 2
    
    
    Display 3
    
    
    
  • How to read multiple channels based on the external clock

    Hello

    Normal 0 false false false MicrosoftInternetExplorer4 / * Style Definitions * / table. MsoNormalTable {mso-style-name: "Table Normal" "; mso-knew-rowband-size: 0; mso-knew-colband-size: 0; mso-style - noshow:yes; mso-style-parent:" ";" mso-padding-alt: 0 to 5.4pt 0 to 5.4pt; mso-para-margin: 0; mso-para-margin-bottom: .0001pt; mso-pagination: widow-orphan; do-size: 10.0pt; do-family: "Times New Roman"; mso-ansi-language: #0400; mso-fareast-language: #0400; mso-bidi-language: #0400 ;} "}

    I use 6254 multifunction for playback of tension with VC ++ 6 as the development tool.

    Based on the documentation NOR I created tasks like this.

    DAQmxCreateTask (_T ("Voltagetask"), & taskHandle);

    DAQmxCreateAIVoltageChan(taskHandle,sChannels,,DAQmx_Val_NRSE,0,10,DAQmx_Val_Volts,);

    DAQmxCfgDigEdgeStartTrig (taskHandle, "PFI2", DAQmx_Val_Rising);

    DAQmxCfgSampClkTiming(taskHandle,"PFI2",303000,DAQmx_Val_Falling,DAQmx_Val_FiniteSamps,nSamples);

    DAQmxStartTask (taskHandle);

    After the generation of clock finished thanks to the DAQmxReadAnalogF64 function, I tried to read samples of each channel.

    DAQmxReadAnalogF64 (taskHandle, DAQmx_Val_Auto, 10, DAQmx_Val_GroupByScanNumber, read, m_nStates & sampsPerChanRead, NULL);

    Total number of samples (nSamples) available in the buffer when the task is created with a single channel and several channels are still to come as even. In several modes of channel returns total sample by channel, which is equal to the total number of samples divided by the number of channels at once.

    For example, if a total number of clock 8000

    With single channel, it reads all the 8000 samples (m_nStates = 8000, sampsPerChanRead = 8000)

    When two tracks he read 4000 samples per channel and so on. (m_nStates = 8000, sampsPerChanRead = 4000)

    If any body know, on every clock how to take samples of all of the configured channels.

    Thanks in advance,

    Renjith.

    Renjith,

    Please note that the behavior, I explained is in line with the provisions should only if you use your clock as I convert clock. You can find information about the different types of synchronization of the analog inputs using NOR-DAQmx; the element to search for is "clocks".

    Since you do not set the clock to convert MY (should be DAQmxSetAIConvSrc()), the fact that I mentioned above is only informative for you, but does not apply to your question.  Sorry for responding too quickly without looking in your code between quotes...

    In order to answer your question, we take a look at the approach to programming DAQmx:

    If you configure your task to be "finished", the task will stop running if the number of samples per channel is acquired. In the case of an external clock (not configured as I convert clock), served it in the sampling interval. The sample clock will automatically receive a sample for all channels with a single clock pulse. From this point of view, the installation program you have in your program seems correct.

    If you do not get the number of samples that await, the fault must be somewhere in your playback function. Do you get any error messages?

    DAQmxReadAnalogF64 (taskHandle, DAQmx_Val_Auto, 10, DAQmx_Val_GroupByScanNumber, read, m_nStates & sampsPerChanRead, NULL)

    If you set m_nStates set to 8000, it's here. You say the Read function to retrieve 8000 samples. None. So if you have two channels, DAQmx acquires 2 x 8000 samples, but read you only 8000 samples... Please change m_nStates to

    m_nStates = #channels x #samples by channel

    This should solve your problem.

    hope this helps,

    Norbert

  • The value of another field using the multiple-selection list

    Hello

    I have a multi select list as USER name name...
    In these cases, I select several users as For example JOHN AND JACK
    Database that should get both their email ID then fill in textarea (separated by commas)

    As I am new to apex, pls help.

    Welcome to this forum... :))

    What is your version of the database?

    If you use database 11g then you can use the following query for your condition,

    select LISTAGG(user_email, ':') WITHIN GROUP (ORDER BY user_email) from table_name
    where INSTR(':'||NVL(:PX_USERNAME,user_name)||':',':'||user_name||':')>0
    

    instead of PX_USERNAME use the name of your multi selection list.

    Use this query in your textfield.

    Thank you
    Lacombe

  • automatic creation of form elements based on the Recordset

    I would like to know how I can automatically fill in a form with text fields, radio buttons, and text boxes items.  I am attaching a video that shows what I mean.  timeline 03:45-04:25.

    It uses the CS6 version; I have CC version and cannot find a way to reproduce what the guy has done in the video in CC.

    I have a database and links already set up.  There is simply no form more Update Record Wizard. I know there is an update record server behavior that succeeded him, but the workflow is not the same thing as what is shown in the video.

    Especially when (in my case) I have to create more than 50 different forms.

    I'm guessing there are a lot of things in common to these forms. If the best solution would perhaps be to write a PHP class, or an include file, which distributes these forms where they are needed, using variables to deal with differences between the forms (and I mean not just the id of the record, but also a part of the query) this approach makes it much easier to maintain the code.

    If you write your own shapes (to do all your own codes), they will be better forms. You will learn ways to make applications more secure, user-friendly and efficient.

    I'm working on the PHP forms, daily and never wish for a tool to automate the process. If I was forced to use the DW data tools I would be more upset you're one of them be removed.

    My point is that you are naturally unhappy to have something you brought used, but I think it will be better for you in the long run. I know there are tools available third-party data. My advice is: do not replace one crutch with one another.

  • Automatic generation of revenue budget based on the funding agreement

    Dear Dina,

    I use project management to create approved budget revenue plan... kindly advice me how can I self-generating revenue budget based on my allocation of funds agreement?

    I am allocating funding based on the albums project task... If a project has received more than 15 albums tasks... 15 lines must be defined in the funding agreement. his activity of reproduction must be done creating revenue... kindly help me to avoid repetition...

    Thanks in advance much n...

    Hello

    Go to configuration > projects > Project Types
    Set up a type of contract class.
    On the Invoicing tab, check the box: base without Budget funding.

    The system will now create automatic revenue planned for the project, after you allocate to base funding for the agreement and you the funding for the project.

    With the help of this feature you don't need to manually enter an approved Revenue Budget.

    Dina

  • The MySQL Multiple selection list

    How to make multiple selections in the drop-down list in a form in Dreamweaver 8 and publish on MySQL?

    I tried using implode as recommended here: http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=12 & catid = 263 & threadid = 1112556 & highlight_key = y & keyword1 = multiple

    It worked unless the user did not select all the items in the list. Then, I got a bad argument error message.

    Then I tried just using POST without the implode and [] at the end of the name, but this put the word 'Picture' in the row/column in the database instead of the data.

    I then tried the POST with [the] on the chosen name and [] in the SQL statement: GetSQLValueString ($_POST [' devices [] ""], "text"), Dreamweaver wouldn't let me associate it under Insert a record in the section of the server behaviors - so nothing is put in the database.

    I need to be able to display multiple selected items in a list box for MySQL, but allow the user to select nothing in the drop-down list without receiving an error.

    Thank you very much for your help. In the end, he has worked with put the [] after the name and the following code:

    GetSQLValueString (isset($_POST['appliances'])? implode ("-", $_POST ['appliances']): "", "text")

Maybe you are looking for