Refresh the drop down list after update the table

I have tab with three pages in each page one data block. I have table with primary key of combination of the other tables foreign key. I am populating the combination of foreign key in dorp down list. In the when-new-form-instance trigger I populate the two lists, work fine. But if I add a new record in the other tables and I need this one to display in the list. I am trying to execute the same procedure which is populate the list
First time I get this error. FRM-41337. How can refresh the list to display the new record as well.
Thanks in advance
null

Hellow Tamer
What you wanna do is to display the element entered in the List after you have added it manualy.
I think you must re-populate the Recordgroup
again.
The Procedure you used to populate the RecordGroup in the When-new-Form-Instance,
must include the statement:
DELETE_GROUP()
like This:
PROCEDURE Populate_The_List(list_id ITEM, sql_stat VARCHAR2) IS
group_id RecordGroup;
outcome NUMBER;
BEGIN
--Create temporary record group.
group_id := CREATE_GROUP_FROM_QUERY('List_Elements', sql_stat);
IF ID_NULL(group_id) THEN
MESSAGE('Record Group could not be created in Populate_the_List.');
RAISE FORM_TRIGGER_FAILURE;
END IF;
--Populate record group.
outcome := POPULATE_GROUP(group_id);
IF outcome <> 0 THEN
MESSAGE('Record Group could not be populated in Populate_the_List.');
RAISE FORM_TRIGGER_FAILURE;
END IF;
--Populate list item
POPULATE_LIST(list_id, group_id);
--Destroy the temporary record group to release resources
DELETE_GROUP(group_id);
EXCEPTION
WHEN OTHERS THEN
MESSAGE('Internal error occurred in Populate_the_List.');
RAISE FORM_TRIGGER_FAILURE;
END Populate_the_List;
SQL_STAT refers to the SQL statement used further to populate the List.
Hope this Helps
Regards
Tariq

Similar Messages

  • Prevent Identical Selection in Drop Down List in an Expanding Table

    Hi All,
    I have a 2x2 table in which the top row is a header row and the bottom row 'Row1'. Row1 Cell1 has two buttons in it, one to add a new Row1 using Javascript click instance script:
    this.parent.parent.instanceManager.addInstance()
    ...and one to remove any Row1 using Javascript click instance script:
    var rowNum = this.parent.parent.index;
    this.parent.parent.instanceManager.removeInstance(rowNum);
    Row1 Cell2 contains a datadropdown object.  Basically, when a user adds an extra Row1, I need to prevent them from selecting a previously selected item from the dropdowndata list.  I'm having trouble figuring it out because I'm trying to put together exit instance script (or should it be validate script?) that is trying to reference Row1[*].  In simpler situations where I have two fixed objects, I have just been doing this as a FormCalc exit script:
    if (Object1 = Object2)
    then xfa.host.messageBox("You can't select the same thing again")
    and xfa.host.resetData("Object1")
    endif
    ... which prevents the user from selecting something with the same rawvalue by alerting them, then clearing the field. 
    Hope this makes sense and that someone can help!  Thanks in advance to all the adobe gurus out there

    Hi,
    Would it be possible to filter out the choices in the drop down list that have already been selected.  If so you could try something like this JavaScript in the preOpen event of your drop down.
    var dropDownItems = [ "abc", "def", "hij" ];
    var rows = Table1.resolveNodes("Row1[*]");
    for (var i = 0; i < rows.length; i++)
        var row = rows.item(i);
        if (!row.DropDownList1.isNull)
            dropDownItems = dropDownItems.filter(function(element) { return element !== row.DropDownList1.rawValue});
    this.setItems(dropDownItems.join(","));
    The first line initialises a variable with all the possible values and then we go though each row filtering out the ones already selected. 
    You will probably have to change the form object names to suit you form, but here is my sample to test the code, https://files.acrobat.com/preview/eb0256dc-af30-4f7c-9187-469ba84464a4
    Regards
    Bruce

  • Why won't previous years disappear off  Library drop down list after delete

    Problem:
    Why does "Early Photos" and the By Year breakdown of my photos still appear after I delete all of them off iPhoto?
    Background:
    I have iPhoto 6.06 with over 13,000 photos. I purchased an external hard drive and backed up the iPhoto Library to its new destination.
    After I made sure that the copy went smoothly, and tested to see if the database was intact and functioning correctly off the external hard drive, I began deleting the images off the iPhoto Library on the internal hard drive.
    I had several albums which I erased easily, but the entire suite of 13,000 photos were assembled by year in the Library drop down as "Early Photos" through 2009.
    I thought that these would automatically disappear, but they didn't.
    Thanks in advance...
    Dan

    They are hardwired into iPhoto v6 and they won’t go away. All you can do is ignore them.
    Regards
    TD

  • The drop down list values want to vary based on the contents of another drop down field

    hi,
    hi in search page i have two drop down list. i have two tables and one mapping tables. service line and subservice line are tables and i have one mapping table. using rapid application i create one component using mapping table. now in search page i have two drop list. one is servline and another is sub serviceline. in service line i have values like 1,2 k  for subservice 3,4.5,6 for one service line ex. for 1 i have two subservice 3,4 and for 2 i have 5,6. now my requirment in if i choose service line 1 in first drop down list, automatically in second drop down list want to contain values 3, 4. before both the drop down list have values.if i chose one value the correponding mapping value want to come in drop down list in same context node.

    Hi,
    This requirement involves defining p-getter for the service type, and the v-getter of you sub type.
    Since this involves to populate the values of subtype attribute depending on value of service type, u need a round trip.
    This is done in the p-getter of the 1st attribute(service type in your case).
    In the v-getter of the 2nd attribute, 1st fetch the current value of attribute 1, then filter the value in the dropdown table according to ur logic.
    Ref :Drop down values in table view
    Regrads
    Anish

  • Drop down list driven by drop down list

    I have two drop-down lists, the second one is driven by the first selection, I am wondering how to do it.
    Is it similar as the page refreshed by drop-down list?

    Check out this Coordinated Dropdown Sample Application :
    http://developers.sun.com/prodtech/javatools/jscreator/reference/code/sampleapps/2/2update1/CoordinatedDropDowns.zip
    This application demonstrates how the powerful event handling mechanism in JavaServer Faces can be used to dynamically update the state of various components on a single page.
    HTH,
    Sakthi

  • Dynamic drop down list in jsp

    Hi -
    I have written a piece of code to dynamically include data in the drop down list after querying the data base. I can print the values using out.print().. but they do not show up in the drop down list. Below is the code -
    Please lemme know the mistake i am committing. Thanks you!
    <form name="browse" method = "POST">
    <select name="uid">
    <%
    //out.write("before vec");
    unit.setCid(user.getCid());
         Vector unitNumbers = unit.getUnitNumbers();
         ListIterator iter1 = unitNumbers.listIterator();
              while ( iter1.hasNext() ){
                   Integer num = (Integer)iter1.next();
    //               out.print(num.intValue());
    //               out.print("Hellooooooooo");
    %>
    <options> <%= num.intValue() %>
    <% }
    %>
    </select>
    </form>

    The correct tag should be <option value="val">Val</option>, like this:
    <form name="browse" method = "POST">
      <select name="uid">
        <%
          unit.setCid(user.getCid());
          Vector unitNumbers = unit.getUnitNumbers();
          ListIterator iter1 = unitNumbers.listIterator();
          while ( iter1.hasNext() )
            Integer num = (Integer)iter1.next();
        %>
        <option value="<%= num.intValue() %>"><%= num.intValue() %></option>
        <% } %>
      </select>
    </form>

  • How do I use one drop down list to refresh the list in another drop down?

    I am using a drop down list full of years (i.e. 2008, 2009..etc). When I make my selection from this drop down list (say for instance I select 2009) I want it to update the available data in the second drop down list. I have the query statement set up within the JSP page but it needs to be a dynamic SQL statement based off the value I selected in the first drop down.
    String sql = "SELECT GameId, GameDescription FROM Games WHERE Year = " + year;
    The variable "year" is the value I need to figure out how to assign. Now this variable is a Java variable (attribute) and Im unsure how to get the value from the previous drop down and assign it to that. Basically I need the JavaScript value from the first drop down assigned to the Java attribute "year".
    Anyone able to help me with this???
    Thanks,
    Jed

    Here are my two drop down lists. As you can see I build the second list dynamically based off the value of the year. I want to be able to assign my year to the value I select in this first drop down. How do I do that?? I only want to show games for the year I select. I currently have the year hardcoded to "2009" as you see below. How can i change that to be assigned to the JavaScript value i extract from the first select box?
    <select name="season">
    <option value='2009' selected>2009</option>
    <option value='2008'>2008</option>
    </select>
    <select name="gameselect">
    <%
    try
    String year = "2009";
    String connectionURL = "jdbc:mysql://localhost:3306/ElmwoodExpos";
    Class.forName("com.mysql.jdbc.Driver");
    Connection con = DriverManager.getConnection(connectionURL, "root", "thejedster");
    String sql = "SELECT GameId, GameDescription FROM Games WHERE Year = " + year;
    Statement s = con.createStatement();
    s.executeQuery(sql);
    ResultSet rs = s.getResultSet();
    while(rs.next())
    %>
    <option value="1"><% out.print(rs.getString("GameDescription"));%></option>
    <%
    catch(Exception e)
    %>
    </select>
    Thanks,
    Jed

  • Populate updatable drop down list based on files in the folder path

    Hi, 
    I am a beginner in labview. I am stuggling on where to start.
    Here's what I need to do. 
    I want to create an updatable drop down list. It can be automatic upon opening the program or manually update by clicking an update button. The drop down list will list all the filenames that are in .cvs format. These files are stored in a folder path.  Insider the folder, they are stored in different subfolders, the drop box should be able to find those files inside the subfolders. Once the user select a filename from the list, the program will read the data inside that file and import into an array so I can display the data. 
    I have an idea on how to display the data, but I don't how to populate the drop down list based on the files in the folder, make it updatable and then import that user selected file's data into the the array. 
    Can anyone help me with this? 
    Thanks, Ruth

    Yup, ListFolder with a pattern of *.csv.  Then use a property node on a combo box or ring to set the items in the drop down.  Here is some free training if you are interested in learning more general LabVIEW tools.
    NI Learning Center
    NI Getting Started
    -Hardware Basics
    -LabVEW Basics
    -DAQ Application Tutorials
    3 Hour LabVIEW Introduction
    6 Hour LabVIEW Introduction
    Self Paced training for students
    Self Paced training beginner to advanced, SSP Required
    LabVIEW Wiki on Training
    Unofficial Forum Rules and Guidelines - Hooovahh - LabVIEW Overlord
    If 10 out of 10 experts in any field say something is bad, you should probably take their opinion seriously.

  • Fill-In-The-Blank drop-down list in HTML5 output

    I'm working in Captivate 7 (WIN) and developing for both SWF and HTML5 output, viewing courses in IE9 for Windows and Safari on iPad.
    I have a quiz containing a fill-in-the-blank question, using a drop-down list to select the correct answer, however it does not display the drop-down button or function correctly in HTML5 output (see screenshot).
    The issue began after updating to Captivate 7 version 7.0.1.237. The drop-down list worked prior to the update I installed recently. I'm viewing the published course locally and in the LMS, and it does not work in either.
    I've not read in the help documents that drop-down list questions are an unsupported question type in HTML5, and so I'm wondering if this is a bug that needs to be reported. Has anyone encountered this issue?

    Do you need scoring? There is a Scrolling Text interaction (more control, you can empty the variable and it will be displayed empty) but it is a non-interactive one, no score possible except by adding other interactive objects.
    Custom Short Answer Question - Captivate blog

  • HCM Processes & Forms: Field not updating after Drop Down list selection

    Hello all,
    I am having a problem that I think happens a lot, but I can't solve it through all the examples given here.
    I have a Drop Down List where I change the value. On the CHANGE event, I have:
    xfa.record.CONTROL_PARAM.ISR_EVENT.value = "GET_ORGINFO";
    ContainerFoundation_JS.SendMessageToContainer(event.target, "submit", "", "", "", "");
    I have defined a User Event called GET_ORGINFO. It gets triggered fine. It moves into my generic service that I defined, and it changes the value that I want to change.
    When I look at the PDF, the value is still in it's old value. So, after reading some blogs, which specifically says, if something goes wrong in one service (I have 3: my own, SAP_PA and S_MGRS_POSITIONS), they all fail. I debugged and checked, and, after some changes, nothing goes wrong anymore, nothing that I can see anyway.
    So what I do see, is that there's a call made like this:
      CALL METHOD me->process_data_container
        EXPORTING
          ref_to_data_container = ref_to_relevant_data_container
          operation             = c_do_operations
          message_handler       = dummy_message_handler
          no_auth_check         = no_auth_check
        IMPORTING
          is_ok                 = operation_ok.
    Within this method, my new value is listed (in the table VALUES_OF_FIELDS). After this call is made, so when it exists the method process_data_container, the old values are back in VALUES_OF_FIELDS.
    So, at the last moment INSIDE the method, the values are correct, as soon as it steps out of this method, the old values are back.
    Does anyone have any idea? Am I doing something wrong with regards to the User Events? I am on EnhP 04.
    Gr,
    Jaron Frenk

    Hey Chris,
    Unfortunately, that's not it. I did check the fields I need. Everything is going ok. As in, I get the fields (with their current values) in my own generic operation. I see everything updated the way it should. But then at the end, nothing happens...
    What exactly do you mean by " then make sure your own generic service has it's input/output defined correctly". What input/output do you mean? I assume the generic service itself is okay, since it works with the user event "USER_EVENT_CHECK". And it sure is possible I am forgetting something in the definition of the user event, but I can't figure out what.
    A small addition*
    I just checked by user event. I have 3 fields selected:
    I0001_PERSG
    I0001_PERSG_TXT
    I0001_PERSK
    The generic service should get the PERSG and PERSG_TXT based on the PERSK that is entered. I don't think I need anything more.
    Gr,
    Jaron
    Edited by: J. Frenk on Apr 26, 2010 9:01 AM

  • How do I restore an old Iphone 3gs backup if it does not appear in the "restore backup" drop-down list?

    Hi
    Last night I tried to install ios 6.1.2. The install failed. I tried again and this time it recommended restoring the phone - I agreed and it worked, but after the restore was completed, I could not get out of the set-up assistant screens on the phone. It kept saying either connect to Itunes, or connected to Itunes - there was no conclusion of the set-up process.
    So again I chose to restore the phone - this time I got through the process and asked it to restore my last back up. It did so, but it turns out the back-up is empty. Looking at the time of the back-up, I think what happened is the phone  synced while it was stuck in the set-up assistant, and the old backup with all my data was overwritten with a new empty back up.
    If I use windows explorer I can see a back-up set from earlier in the evening that should contain all my data (6pm)  but when I look in iTunes that backup set is not available for selection in the "restore back-up" drop down list. Perhaps its only a partially completed backup, but at 1.55gb it sure contains a lot of valuable data. How can I make iTunes see or use the 6pm backup set?

    yes - sadly I think that's what happened. As the phone was connected, it was syncing and backing up automatically while I tried to complete the set-up process. So an empty back-up overwrote the full one. But the full back up is still there in the application data files - it must have done a back-up automatically before it restored the phone. So why can't I see it and use it in iTunes? Very frustrating!

  • Populating the "Collections" drop down list in FEP reports

    When an FEP Antimalware report (e.g., the Antimalware Activity Report) opens in Report Manager or the FEP console, I see a drop-down list labeled
    Collection: from which I need to make a selection before the report can run.  But on our site, this drop-down list is not populated, even though ConfigMgr shows that collections do exist on our site.
    The report is running under credentials that should have full access to everything in the relevant databases, so I'm puzzled.  Any suggestions?

    This old post and there are a lot of improvements in FEP's successor which is System Center Endpoint Protection (SCEP), you may try use SCEP and try reproduce the problem and if problem persist let us know.
    Sometimes, it is issue due to SQL database , so check SQL and make sure it is working correctly and is fully updated.

  • Populating the data from table onto drop-down list.

    Hi all
    The following code i have used in trigger 'when-new-form-instance'
    DECLARE
    group_id RecordGroup;
    list_id Item := Find_Item('Lines.classification');
    status NUMBER;
    rg_name varchar2(10) := 'rgroup';
    BEGIN
    clear_list(list_id);
    group_id := Find_Group(rg_name);
    IF NOT id_null(group_id) then
    Delete_Group(group_id);
    End if;
    group_id := Create_Group_From_Query(rg_name,
    'select meaning from lookup_values where lookup_type='TC_CLASSIFICATION' and lookup_code in('BUSINESS','PERSONAL')');
    status := Populate_Group(rg_name);
    Populate_List(list_id, group_id);
    END;
    i have created a Record_Group from Object navigator(name:'rg_name').
    and used it in the above code.
    after this i try to run the form, i am not able to see the value which i drop-down list
    can any one suggest me abt this, and any changes i need to do in the property pallet,...
    Thanks
    Raj

    u3 wrote:
    No, Populate_List requires that the record group is created at runtime.Actually you're wrong ;)
    POPULATE_LIST works with both, record groups created at runtime AND at design time.
    Try the below code on SCOTT schema with a list item and a button trigger:
    Record Group created at design time
    DECLARE
         RG_NAME VARCHAR2(10) := 'RGROUP';
         V_DUMMY NUMBER;
    BEGIN
         CLEAR_LIST('LIST_ITEM1');
         V_DUMMY := POPULATE_GROUP(RG_NAME);
         IF V_DUMMY = 0 THEN
              CLEAR_LIST('LIST_ITEM1');
              POPULATE_LIST('LIST_ITEM1', RG_NAME);
         END IF;     
    END;
    Record group Created at Runtime
    DECLARE
         GROUP_ID RECORDGROUP;
         RG_NAME VARCHAR2(10) := 'RGROUP';
         QUERY_TEXT VARCHAR2(1000) := 'SELECT ENAME, TO_CHAR(EMPNO) FROM EMP';
         V_DUMMY NUMBER;
    BEGIN
         CLEAR_LIST('LIST_ITEM1');
         GROUP_ID := FIND_GROUP(RG_NAME);
         IF NOT ID_NULL(GROUP_ID) THEN
              DELETE_GROUP(GROUP_ID);
         END IF;
         GROUP_ID := CREATE_GROUP_FROM_QUERY(RG_NAME, QUERY_TEXT);
         CLEAR_LIST('LIST_ITEM1');
         V_DUMMY := POPULATE_GROUP(RG_NAME);
         IF V_DUMMY = 0 THEN
              CLEAR_LIST('LIST_ITEM1');
              POPULATE_LIST('LIST_ITEM1', RG_NAME);
         END IF;     
    END;It does work with me both ways, I suggest you test it.
    Tony

  • How do I get the location bar drop-down list to show the most recently visited page at the top? I have no idea how it's deciding what to display.

    In IE when you show the drop-down list from the location bar, it show you all of your most recently visited pages in descending order with the most recent at the top. Firefox is showing me a list that I have no idea where it's getting the pages from or how it's ordering them. It doesn't update the pages or the order when I go to a new page. I have recently switched from IE to Firefox and cannot figure out how to get Firefox to do this; very annoying.

    That drop down list doesn't show recently visited pages, but shows list list of most visited sites sorted by what the Mozilla devs call frecency (frequency and recency) and is based on bonus points. It is not possible to have much influence on what shows on that list.
    If you want a list of recently visited sites then you can use a smart bookmark e.g. on the Bookmarks Toolbar with the location set to this smart folder.<br />
    Name: <b>Recently Visited</b><br />
    Location: <b>place:queryType=0&sort=4&maxResults=30</b><br />
    You need to close and restart Firefox to make that folder work as intended.
    * https://support.mozilla.org/kb/Smart+Bookmarks+folders
    See also:
    * http://developer.mozilla.org/en/The_Places_frecency_algorithm
    * http://kb.mozillazine.org/places.frecency.numVisits

  • The portlet name is not displayed in the portlet drop down list ?

    Hi,
    I use Sun Java System Portal Server 6 2005Q4 for windows 2000 server , use the following command to deployo portlet,
    I am not sure if I successfully deploy the portlet?
    pdeploy deploy -u amAdmin -w amadmin -p amadmin -d "cn=amldapuser,ou=DSAME Users,dc=icheng,dc=com" C:\Sun\PortalServer\tmp\portlet\portletsamples.war
    The message I got after execute the pdeploy command is =>
    Deploys the portlet war file and inserts the provider into display profile..
    OPTIONS
    --help Help message (false)
    -u --runasdn UID Bind DN (none)
    -w --password Password (none)
    -p --wc_password Password for WebContainer's Admin (none)
    -i --instance WebContainer's Instance into which the war file is to be deploye
    d (*)
    -d --dn LDAP DN of the target node (*)
    -g --global Global display profile (false)
    -r --rolesfile File containing the DSAME and portlet role mapping (*)
    -f --userinfofile File containing the user info mapping (*)
    -v --verbose Generate debug messages (false)
    -V --version Generate version information (false)
    -l --locale Locale information (en_US)
    OPERAND
    Specifies a path to the war location.
    Deploying to IWS
    Is this mean that successfully deploy the portlet ?
    After I deploy the portlet, I login to Access Manager, select the "service" from view, click the portal desktop,
    click "Manage Channels and Containers", click the "New Portlet Channel...", then click the portlet drop down list,
    the portlet name is not displayed in the portlet list.
    How can I make the portlet name displayed in the portlet drop down list ?
    Can someone help me ?
    Thanks!

    Hi
    According to your description, since this is SQL Server forum, as Olaf Helper’s post, could you get the correct result if you execute the following query in SQL Server Manager Studio (SSMS)?
    select UserName from aspnet_Users where UserId in(select FreindId from myFreinds where UserId in(select UserId from aspnet_Users where UserName = '<your typed name>'))
    If you cannot get the correct result in SSMS, I recommend to check the Transact-SQL statement. Apart from the error message, we also need to know the table structure, data, join relationships between tables for further analysis.
    However if there is no problem in SQL Server query, it will be an issue that regards ASP.NET and website deployment. I suggest you to post the question in the ASP.NET forums at
    http://forums.asp.net/ . It is appropriate and more experts will assist you.
    In addition, there is detail about listbox control in asp.net. You can review the following links:
    How to Bind/Load/Fill ListBox with Sql Server Database in asp.net:http://www.webcodeexpert.com/2013/07/how-to-bindloadfill-listbox-with-sql.html#.U5f75_6KCM9
    How to get multiple selected value in ListBox control - ASP.NET using C#:
    http://www.dotnetfox.com/articles/how-to-get-multiple-selected-value-in-listbox-control-Asp-Net-using-C-Sharp-1047.aspx
    Thanks
    Lydia Zhang

Maybe you are looking for