Help!  List Item Selected Value. . .

I am trying to update a table based on a list item element that is selected in runtime, but I am struggling with how this is done in Oracle Forms. I have a list item box, which is populated by a column in TEST table. Based on which item is selected, I want to update a different column in TEST table for the selected item, when a user presses a button. Thanks for your help.
David

I can't get what excatly you want to do but ... Forms list item have 3 values: a label - what you see, the actual value - for the label you see, and Index value - the order number of the list element.
Based on this you can update.
1) Get the label trough the build-in Get_List_Element_Label
2) Value simply can be referenced as :My_List_Item or use Get_List_Element_Value.
3) The index? This is tough thing - you have to create your own function. However Get_List_Element_Count should return the count of the list items. And you need index in order to use 1) or 2)
Write me a mail if you need some code/hints how to do it.

Similar Messages

  • F4 Help list not showing values when a BEx 7x workbook is refreshed

    Hello All,
    Hope you are doing good. I have a very peculiar behaviour with F4 functionality of a variable while refreshing a workbook and thus requesting for your help.
    The workbook contains two queries. Both of these queries contains a common variable (of common characteristic).
    Info_Provider
    Query_Name
    Characteristic_Name
    Variable_Name
    Multi_Provider_1
    Query1
    Char1
    Var1
    Multi_Provider_2
    Query2
    Char1
    Var1
    When Query1 and Query2 are refreshed individually, the variable Var1 (basically a plant variable) shows the help list values.
    But when the workbook is refreshed (that's when both the queries gets executed together with a common variable screen) and
    upon clicking the help list of the variable Var1 doesn't show any values.
    Additional Info:
    1. Both the variables are configured to show data from Master table.
    2. The same set up works fine in 3x and also for other similar variables.
    Has anybody come across of this situation? If so, what is the issue and what was the solution?
    Pls share.
    Thank you.
    Lohith

    We recently had a similar issue with a variable... turns out the RSR_VARIABLE_F4_RESTRICT_BADI BADI was activated for this variable (and the code was no longer "valid" with the current situation).
    You may want to check whether you have that BADI activated.

  • Problem filling list item with values

    Hi all,
    We have a master detail form
    block A (master) contains an item, this item is in the record group's where-clause used to fill a list item on block B (detail block) (database item)
    we fille the list item in a pre-record trigger on the master block
    this works fine but when we navigate through the records in block a we intermittently get the following error :
    FRM-41337 : cannot populate the list from record group;
    any solutions
    how should we filll our list item, in which trigger (when-new-record-instance of master block doesn't work correctly, the list item only gets filled after clicking it twice)
    Kr
    Martin

    The probloem is you cannot delete the elements from a listitem if there are records in the block which depend on the entries. You have to find a trigger which fires when the block is "clear". Without having forms at hand, i would suggest to use the ON-POPULATE-DETAILS (should already be there) and adjust the code so that the listitem is filled before the execute_query is done.

  • Populate SELECT LIST on selecting value in another SELECT LIST

    Hello
    I have two SELECT LIST's
    1. SELECT LIST with departments : Created a LOV which has all the departments.
    2. SELECT LIST with employees : This has to be dynamic.
    Based on the value from the first Department SELECT LIST I need to populate the Employee SELECT LIST.
    Please let me know, how can I do this.
    Appreciate your help
    thanks

    Hi,
    Say you have two form items P1_ITEM1, P2_ITEM2. You want the P2_ITEM2 will be updated according to the selection in P1_ITEM1. I am assuming P1_ITEM1 select list based on the department table. In the lov section for that item type dynamic query -
    select dept_id, dname from departments -- change attributes in query as per your table.
    set the null value -1 and default value -1 for P1_ITEM1. Change Display null to YES and type -Select dept in the null text.
    For P1_ITEM2 in the lov section type the following query for dynamic list -
    select emp_id, ename from employees where dept_id = NV(P1_ITEM1) or NV(P1_ITEM1) = -1 -- change attributes in query as per your table.
    for the second query assuming that you have dept_id as FK in the employees table. Make sure both fields are selected as select list as display. Now if user select the department from item1 it will update the item2. It will display all the employees if nothing is selected in the item1.
    Hope this helps,
    Thanks,
    M Tajuddin
    http://tajuddin.whitepagesbd.com

  • Need programming help: Three Items selected, only one item displays.

    All the code is below.
    My client has a beach-wear website. It is VERY simple with three pages: Index, Order, and Invoice Page. If customers select the checkbox in front of three items, only one item is displayed on the invoice page. Why aren't all three displayed? I am new to programming:
    //INDEX PAGE:
    <title>Beachwear Title</title>
    <body bgcolor="#FFFFFF">
    <p> </p>
    <form name="form1" method="get" action="jserv/Search.jsp">
    <table width="52%" border="1">
    <tr>
    <td width="20%">Enter Color:</td>
    <td width="80%">
    <input type="text" name="txtColor" size="30" maxlength="20">
    </td>
    </tr>
    </table>
    <p>
    <input type="submit" name="Submit" value="Color">
    </p>
    </form>
    <p> </p>
    //SEARCH PAGE:
    <%@page language="java" import="java.sql.*"%>
    <%@ include file="../Connections/connBeachwear.jsp" %>
    <%
    String rsBeachwear__varColor = "%";
    if (request.getParameter ("txtColor") !=null) {rsBeachwear__varColor = (String)request.getParameter ("txtColor");}
    %>
    <%
    Driver DriverrsBeachwear = (Driver)Class.forName(MM_connBeachwear_DRIVER).newInstance();
    Connection ConnrsBeachwear = DriverManager.getConnection(MM_connBeachwear_STRING,MM_connBeachwear_USERNAME,MM_connBeachwear_PASSWORD);
    PreparedStatement StatementrsBeachwear = ConnrsBeachwear.prepareStatement("SELECT ID, Item, Color, Size FROM Beachwear WHERE Color LIKE '%" + rsBeachwear__varColor + "%';");
    ResultSet rsBeachwear = StatementrsBeachwear.executeQuery();
    boolean rsBeachwear_isEmpty = !rsBeachwear.next();
    boolean rsBeachwear_hasData = !rsBeachwear_isEmpty;
    Object rsBeachwear_data;
    int rsBeachwear_numRows = 0;
    %>
    <%
    int Repeat1__numRows = 10;
    int Repeat1__index = 0;
    rsBeachwear_numRows += Repeat1__numRows;
    %>
    <title>Beachwear Title</title>
    <body bgcolor="#FFFFFF">
    <p> </p>
    <p> 
    <form name="form2" method="post" action="Invoice.jsp">
    <table width="75%" border="1">
    <% while ((rsBeachwear_hasData)&&(Repeat1__numRows-- != 0)) { %>
    <tr>
    <td width="18%"><%=(((rsBeachwear_data = rsBeachwear.getObject("ID"))==null || rsBeachwear.wasNull())?"":rsBeachwear_data)%></td>
    <td width="20%"><%=(((rsBeachwear_data = rsBeachwear.getObject("Item"))==null || rsBeachwear.wasNull())?"":rsBeachwear_data)%></td>
    <td width="21%"><%=(((rsBeachwear_data = rsBeachwear.getObject("Color"))==null || rsBeachwear.wasNull())?"":rsBeachwear_data)%></td>
    <td width="5%"><%=(((rsBeachwear_data = rsBeachwear.getObject("Size"))==null || rsBeachwear.wasNull())?"":rsBeachwear_data)%></td>
    <td width="16%">
    <input type="checkbox" name="valueCheckbox" value="<%=(((rsBeachwear_data = rsBeachwear.getObject("ID"))==null || rsBeachwear.wasNull())?"":rsBeachwear_data)%>">
    </td>
    </tr>
    <%
    Repeat1__index++;
    rsBeachwear_hasData = rsBeachwear.next();
    %>
    </table>
    <p>
    <input type="submit" name="Submit" value="Submit">
    </p>
    </form>
    <%
    rsBeachwear.close();
    ConnrsBeachwear.close();
    %>
    //INVOICE PAGE:
    <%@page language="java" import="java.sql.*"%>
    <%@ include file="../Connections/connBeachwear.jsp" %>
    <%
    String rsBeachwear__varCheckbox = "1";
    if (request.getParameter ("valueCheckbox") !=null) {rsBeachwear__varCheckbox = (String)request.getParameter ("valueCheckbox")   ;}
    %>
    <%
    Driver DriverrsBeachwear = (Driver)Class.forName(MM_connBeachwear_DRIVER).newInstance();
    Connection ConnrsBeachwear = DriverManager.getConnection(MM_connBeachwear_STRING,MM_connBeachwear_USERNAME,MM_connBeachwear_PASSWORD);
    PreparedStatement StatementrsBeachwear = ConnrsBeachwear.prepareStatement("SELECT ID, Item, Color, Size FROM Beachwear WHERE ID IN (" + rsBeachwear__varCheckbox + ")");
    ResultSet rsBeachwear = StatementrsBeachwear.executeQuery();
    boolean rsBeachwear_isEmpty = !rsBeachwear.next();
    boolean rsBeachwear_hasData = !rsBeachwear_isEmpty;
    Object rsBeachwear_data;
    int rsBeachwear_numRows = 0;
    %>
    <%
    int Repeat1__numRows = 10;
    int Repeat1__index = 0;
    rsBeachwear_numRows += Repeat1__numRows;
    %>
    <title>Beachwear Title</title>
    <body bgcolor="#FFFFFF">
    <p> </p>
    <p> 
    <p><br>
    INVOICE<br>
    <br>
    </p>
    <table width="75%" border="1">
    <% while ((rsBeachwear_hasData)&&(Repeat1__numRows-- != 0)) { %>
    <tr>
    <td width="18%"><%=(((rsBeachwear_data = rsBeachwear.getObject("ID"))==null || rsBeachwear.wasNull())?"":rsBeachwear_data)%></td>
    <td width="20%"><%=(((rsBeachwear_data = rsBeachwear.getObject("Item"))==null || rsBeachwear.wasNull())?"":rsBeachwear_data)%></td>
    <td width="21%"><%=(((rsBeachwear_data = rsBeachwear.getObject("Color"))==null || rsBeachwear.wasNull())?"":rsBeachwear_data)%></td>
    <td width="5%"><%=(((rsBeachwear_data = rsBeachwear.getObject("Size"))==null || rsBeachwear.wasNull())?"":rsBeachwear_data)%></td>
    </tr>
    <%
    Repeat1__index++;
    rsBeachwear_hasData = rsBeachwear.next();
    %>
    </table>
    <p>  </p>
    <%
    rsBeachwear.close();
    ConnrsBeachwear.close();
    %>

    Hi, Brad,
    I appreciate your help! I am a beginning Java student, so this code is more complex than what I can handle alone.
    A copy of the compilation error is at the very bottom of this message.
    I added " int chkValues[]; " to the beginning of your code, and then inserted the whole code snippet to the detail (Invoice) page as shown:
    <%@page language="java" import="java.sql.*"%>
    <%@ include file="../Connections/connBeachwear.jsp" %>
    <%
    String rsBeachwear__varCheckbox = "1";
    if (request.getParameter ("valueCheckbox") !=null) {rsBeachwear__varCheckbox = (String)request.getParameter ("valueCheckbox")   ;}
    %>
    <%
    Driver DriverrsBeachwear = (Driver)Class.forName(MM_connBeachwear_DRIVER).newInstance();
    Connection ConnrsBeachwear = DriverManager.getConnection(MM_connBeachwear_STRING,MM_connBeachwear_USERNAME,MM_connBeachwear_PASSWORD);
    int chkValues[];
    StringBuffer prepStr=new StringBuffer("SELECT ID, Item, Color, Size FROM Beachwear WHERE ID=");
    for(int x=0;x<chkValues.length;++x){
    prepStr.append( chkValues[x] );//using an x instead of an i
    if((x+1)<chkValues.length){//another iteration
    prepStr.append(" OR ID=");
    }//end if
    }//end for loop
    PreparedStatement StatementrsBeachwear = ConnrsBeachwear.preparedStatement(prepStr);
    ResultSet rsBeachwear = StatementrsBeachwear.executeQuery();
    boolean rsBeachwear_isEmpty = !rsBeachwear.next();
    boolean rsBeachwear_hasData = !rsBeachwear_isEmpty;
    Object rsBeachwear_data;
    int rsBeachwear_numRows = 0;
    %>
    <%
    int Repeat1__numRows = -1;
    int Repeat1__index = 0;
    rsBeachwear_numRows += Repeat1__numRows;
    %>
    <title>Beachwear Title</title>
    <body bgcolor="#FFFFFF">
    <p> </p>
    <p> 
    <form name="form1" method="post" action="">
    <p><br>
    INVOICE<br>
    <br>
    </p>
    <% while ((rsBeachwear_hasData)&&(Repeat1__numRows-- != 0)) { %>
    <table width="75%" border="1">
    <tr>
    <td width="13%">ID:</td>
    <td width="87%"><%=(((rsBeachwear_data = rsBeachwear.getObject("ID"))==null || rsBeachwear.wasNull())?"":rsBeachwear_data)%></td>
    </tr>
    <tr>
    <td width="13%">ITEM:</td>
    <td width="87%"><%=(((rsBeachwear_data = rsBeachwear.getObject("Item"))==null || rsBeachwear.wasNull())?"":rsBeachwear_data)%></td>
    </tr>
    <tr>
    <td width="13%">COLOR:</td>
    <td width="87%"><%=(((rsBeachwear_data = rsBeachwear.getObject("Color"))==null || rsBeachwear.wasNull())?"":rsBeachwear_data)%></td>
    </tr>
    <tr>
    <td width="13%">SIZE:</td>
    <td width="87%"><%=(((rsBeachwear_data = rsBeachwear.getObject("Size"))==null || rsBeachwear.wasNull())?"":rsBeachwear_data)%></td>
    </tr>
    </table>
    <%
    Repeat1__index++;
    rsBeachwear_hasData = rsBeachwear.next();
    %>
    <p>  </p>
    </form>
    <%
    rsBeachwear.close();
    ConnrsBeachwear.close();
    %>
    ERROR:
    500 Internal Server Error
    /jserv/Invoice.jsp:
    Compilation error occured:
    Found 1 errors in JSP file:
    C:\\Inetpub\\wwwroot\\Beachwear\\jserv\\Invoice.jsp:27: Error: No method named "preparedStatement" was found in type "java/sql/Connection".
    allaire.jrun.scripting.DefaultCFE:
    Errors reported by compiler:C:/Program Files/Allaire/JRun/servers/default/default-app/WEB-INF/jsp/jrun__jserv__Invoice2ejsp12.java:82:42:82:83: Error: No method named "preparedStatement" was found in type "java/sql/Connection".
         at allaire.jrun.scripting.JavaCompilerService.compile(../scripting/JavaCompilerService.java:96)

  • Help listing and selecting xml object

    Hi there
    I am having problems with "see the forrest" with this code. I am trying to sort a my xml elements by listing them , sorting them and moving them.
    My problem is :
    How do i make a list of all my elements in the "story" like a collection of indesign elements ?
    How do i select the element and move it after "myXMLOld" ?
    And if this is a "BAD" way to to this i will be interested to learn a better way ?
    Regards
    T'
    var myDocument = app.documents.item(0);
        var myXML = myDocument.xmlElements.itemByName("Root").xmlElements.itemByName("Story")
          var myXmlList = new Array;
        var bb = myXML.xmlElements.length;
    for(var myCounter = 0; myCounter < bb; myCounter++){
         var  myXmlElement= myXML.xmlElements.item(myCounter)
         var myXM_id = myXML.xmlElements.item(myCounter).id;
         var myXML_con = myXML.xmlElements.item(myCounter).contents;
         myXmlList[myCounter] = [[myXML_con , myXM_id]];
    var ok = myXmlList;
    myXmlList.sort ()
    var myXMLOld=myXmlList[0][0][1];
      var myXMLElementA = myXML.xmlElements.itemByID(myXmlList[0][0][1]);
    myXMLElementA.move(LocationOptions.atBeginning);
    for(var myCounter = 1; myCounter < bb; myCounter++){
    var test = myXmlList[myCounter][0][1];
    var myXMLElementA = myXML.xmlElements.itemByID(test);
         myXMLElementA.move(LocationOptions.after, myXML.xmlElements.xmlElements.itemByID(myXMLOld));
          var myXMLOld=myXmlList[myCounter][0][1];
    XML file:
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <Root>
    <Story>
    <Vidlex>Alger: En stor gruppe </Vidlex>
    <Vidlex>Basalt: Sort finkornet /Vidlex>
    <Vidlex>Cyanobakterier: Bakterier, </Vidlex>
    <Vidlex>Dna: (Deoxyribonukleinsyre). Organisk molekyle, </Vidlex>
    <Vidlex>Etolog: Person, der </Vidlex>
    </Story>
    </Root>

    Unfortunately in my real scenario I don't know what the
    element will be called. It could be in <foo> or <bar>
    etc, so I need to be able to use a variable (in which the element
    name is set beforehand). With "::" I can't use a variable, so
    textXML.ns::findParis looks for a "findParis" element and not "b".
    That's why I'm trying to use testXML.child(findParis) because
    I can use a variable. I just can't figure out how to make it
    incorporate the namespace as well.

  • AD security groups listed in user groups in Config Manager however not listed when selecting values for the "System Resource - System Group Name" query

    Morning All,
    We are in the process of setting up our SCCM 2012 infrastructure and are experiencing issues with our device collection querys based on AD security groups.
    I can see the security groups are being updated per adsgdis.log - i can see the computers that are members of the groups in AD are being recorded in the same log. Issue is when we build the device collection query - click the value button for the string,
    only 2 of the 18 AD security groups are displayed.  These are 2 AD groups we setup initially to test.
    We have since added several additional yet they only appear to populate as user groups in config manager.
    The same goes for additional OUs that we have created with AD.
    When i click the value button only the initial 10 OUs that were created are populating in the list of applicable OUs.
    We have the discovery methods Group Discovery & System Discovery enabled and set to search the parent OU recursively
    I'm wondering if there might be an SQL issue with this as it initially worked but stopped...
    Additionally we added an OU recently that now appears in in the Values options in the query but the ones added previously and additionally after are not showing up....
    Any help is appreciated.
    Thanks,
    Jeff

    Given the adsgdis.log lists the new pc and the group it's assigned to it appears the AD group discovery is working.
    Have the following excert from the adsgdis.log
    INFO: Processing discovered group object with ADsPath = 'LDAP://************.****.COM/CN=Software - Microsoft Project Professional 2010 x64,OU=Software,OU=US-West,DC=*****,DC=com' SMS_AD_SECURITY_GROUP_DISCOVERY_AGENT 10/4/2012 7:08:13 AM 8180
    (0x1FF4)
    INFO: DDR was written for group '*****\Software - Microsoft Project Professional 2010 x64' - E:\Program Files\Microsoft Configuration Manager\inboxes\auth\ddm.box\userddrsonly\asg8ud94.DDR at 10/4/2012 7:8:12. SMS_AD_SECURITY_GROUP_DISCOVERY_AGENT 10/4/2012
    7:08:13 AM 8180 (0x1FF4)
    INFO: DDR was written for system 'THURMANWIN7VM' - E:\Program Files\Microsoft Configuration Manager\inboxes\auth\ddm.box\adhh8419.DDR at 10/4/2012 7:8:12. SMS_AD_SECURITY_GROUP_DISCOVERY_AGENT 10/4/2012 7:08:13 AM 8180 (0x1FF4)
    Here you can see it processes the new members in the Software - Microsoft Project Professional 2010 x64 group and captures Thurmanwin7vm as a member.
    I did find some log entries that reference permission issues with objects in the SQL database and have opened a case with MS to get that looked into.  Hopefully that will be where the issue lies.

  • Catch the list item selection event? possible?

    hi:
    I am working with a list and i want to show different command when my list selection changed.
    So i want to be notified when "list selection changed".
    Is it possible?
    regards

    try to add a itemstatechanged listener to your list but it depends on devices what is meant by "change in state"

  • How to read the selected value of a dropdown list box

    Hello,
    I have 2 custom fields which are of type dropdown list on Accounts(CRMM_ACCOUNT) PCUI application details tab.I need to read the selected value of first dropdown list item,based on that second dropdown list will be populated.
    I know where to populate the dropdown list box,it is in FILL_DROPDOWN_LISTBOX.
    I dont know how to trap the selection made on dropdown list.
    PLease guide me on how to trap the dropdown list field selection value.
    Thanks in advance.
    Thirumala.

    Hello,
    Check what is done in standard for the fielf REGION which is inked to the country.
    Otherwise, you can do the following :
    - in field group customizing, for field 1, flag the 'send request' flag. So, when you change the value in this field via the dropdown, the MAC methods are immediately called.
    - Put the new value in a global variable (GV).
    - in the fill_dropdown_listbox method, get the value from this GV and based on it, filter the values for the dropdown of field 2.
    Hope this will help you,
    Regards,
    Frederic

  • How to show desired value in list item, when form starts?

    Hello.
    I have list item with values:
    April 2006
    May 2006
    June 2006
    July 2006
    August 2006
    September 2006
    When the form starts, i want to show in my list item current month (August 2006). And when i open list item above list would appear with August 2006 selected.
    How can i do that?
    Thanks.

    Hi Dejan,
    What you have to do is the following:
    After populating your list, write some code similar to what I have given here.
    FOR n IN 1..nCnt LOOP
    IF Get_list_element_value('list', n) = To_char(sysdate, <date format for the current month n year> THEN
    :list := To_char(sysdate, <date format for the current month n year>
    RETURN;
    END IF;
    END LOOP;
    :list := NULL; -- in case nothing matches
    You can use this in WNFI trigger and wherever necessary.
    Check whether this solves your problem
    Warm Regards,
    Raja.

  • List item - Population - Based on Data setup

    Dear All,
    I need to populate the list item based on data defined at the database level.
    Tables Used:
    Table 1 : JBCAI_JOB_COM_ADD_INFO
    Column Name     Pk     Null?     Data Type     Default     
    JBEDC_UID          1     N     NUMBER (22)          
    JBCAI_ADD_INFO_CODE     2     N     VARCHAR2 (2 Char)          
    JBCAI_INFO_CODE_SEQUENCE      3     N     NUMBER (3,1)     1     
    JBCAI_ADD_INFO_TEXT     Y     VARCHAR2 (35 Char)          
    SHIPCOMP_CODE     N     VARCHAR2 (4 Char)     
    Table 2 :CODES
    CODE_TYPE CODE_VALUE DESCRIPTION NEXT_VALUE CODE_FLAG
    MCAR 01 Customs References 01 NULL N
    MCAR 02 Customs References 02 NULL N
    MCAR 03 Value of Commodities NULL N
    MCAR 04 Currency of commodities NULL N
    MCAR 05 Purchase Order Number NULL N
    MCAR 06 Other NULL N
    MCAR 07 Consignee Name NULL N
    MCAR 08 VIN NULL N
    FORMS Section
    =========
    JBCAI_ADD_INFO_CODE are the list items which needs to be populated; JBCAI_ADD_INFO_TEXT(free text) which user can enter any descriptions.
    References - Label of the Block
    JBCAI_ADD_INFO_CODE JBCAI_ADD_INFO_TEXT
    Customs References 01 - Free Text()
    Customs References 02 - Free Text()
    Value of Commodities - Free Text()
    Currency of commodities - Free Text()
    Purchase Order Number - Free Text()
    Other - Free Text()
    Consignee Name - Free Text()
    VIN - Free Text()
    VIN - Free Text()
    Business Rules:
    If JBCAI_ADD_INFO_CODE has the flag as 'N' in CODES table then user can select only one time from the list item.
    If JBCAI_ADD_INFO_CODE has the flag as 'Y' in CODES table then user can do multi-selection from the list item e.g; VIN
    How the records are fetched:
    Value for the list item are been populated from CODES table ; which am doing through the below query.
    In WHEN-NEW-FORM-INSTANCE am using the below code:
    PROCEDURE p_fetch_code_value
    IS
              l_query VARCHAR2(200) ;
              l_rg_name VARCHAR2(40) := 'CODES';
              l_errcode NUMBER;
              l_rg RECORDGROUP;
         BEGIN
              l_query := 'SELECT adcod.description description,adcod.code_flag code_flag FROM codes adcod WHERE adcod.code_type = ''MCAR''                    AND adcod.code_value IN (''01''''02'',''03'',''04'',''05'',''06'',''07'',''08'') ORDER BY code_value';
              l_rg := FIND_GROUP( l_rg_name );
              IF ID_NULL(l_rg) THEN
              l_rg := CREATE_GROUP_FROM_QUERY(l_rg_name, l_query);
              END IF;
              l_errcode := POPULATE_GROUP( l_rg );
              POPULATE_LIST('BLK_CONTROL.JBCAI_ADD_INFO_CODE',l_rg);
    EXCEPTION
    Handled WHEN OTHERS exception
    END p_fetch_code_value;
    Saving of Record:
    List value selection are saved to JBCAI_JOB_COM_ADD_INFO.JBCAI_ADD_INFO_CODE column.
    Free Text is saved to JBCAI_JOB_COM_ADD_INFO.JBCAI_ADD_INFO_TEXT column.
    Doubt:
    When i select the first list item value i.e Customs References 01 and then enter some description i.e free text and moved to the next list item; the value Custom reference 01 should not be visible wheras the other values should have to be visible e.g; Customs Reference 02,Value of Commodities.....
    Please help and let me know how can i acccomplish this task?
    Thanks....
    Regards,
    Sunil.G

    Hi Sarah,
    Thanks for your reply.
    There is no issue in the population of the list item; it is working fine with the query which i have pasted.
    My doubt is:
    There are few places where i have set the code_flag as 'Y' / 'N'.
    For the first time when user selects the list item; all the values should be shown.....
    If user has selected the first list item i.e Customs Reference 01 for which the code_flag is 'N' from a multi-record block; then when he moves to the further lines the previous selection for which the flag is set as 'N' should not be shown(if user has already selected once) e.g; 'Customs Reference 01' should not be shown again if user has made the selection before.
    Plz revert incase more explanations required.
    Thanks...
    Regards,
    Sunil.G
    Edited by: Sunil G on Nov 29, 2009 12:16 AM

  • Handling list items.

    Hi Masters
    I have a requirement where in there will be two list items. The first and second list items default value has to be taken from the database for the record.
    I have acheived this in post-query trigger. like take the values for the list tiems form the database and set them as default values. this is done programatically. The user has to be able to select a different value from the first list. Then a correspoding list fo values for the second list has to be retrieved from the database. after selecting the required changes the user will have to be able to submit the form where the changes get recorded in the database.
    how ever i am facing the problem, as i am doing this work in post-query trigger . what ever the value i select it is not changing.
    the code in the post_query looks like
    if populate_group(grp_id) = 0 then
    populate_list('datablock.list_item1',grp_id);
    select rec_id into v_rec_id from my_table where primary_key = 1;
    :datablock.list_item1 := v_rec_id ;
    else
    message('error ');
    end if;
    can you suggest a better way to implement the requirement.
    Thank you very much for the answers.

    Say you have created procedure to populate list 2
    PROCEDURE populate_list2 IS
    group_query varchar2(1000);
    group_id RECORDGROUP ;
    errorcode Number;
    begin
    group_id := Find_Group('MY_GROUP1');
    if not id_null(group_id) then
    delete_group('my_group1');
    end if;
    -- Here I'm assuming that datablock.list_item1 is varchar. You can make changes according to your datatype
    group_query := 'SELECT a, b FROM test where b = '''||:datablock.list_item1||'''';
    group_id := create_group_from_query('MY_GROUP1',group_query);
    errorcode := populate_group(group_id);
    if errorcode = 0 then
    populate_list('datablock.list_item2',group_id);
    else
    message('Error populating group '||errorcode);
    end if;
    end;
    Now in Post-Query you have following code :
    -- Code to populate first list item
    if populate_group(grp_id) = 0 then
    populate_list('datablock.list_item1',grp_id);
    select rec_id into v_rec_id from my_table where primary_key = 1;
    :datablock.list_item1 := v_rec_id ;
    else
    message('error ');
    end if;
    -- Code to populate second list item
    If :datablock.list_item1 Is Not Null
    Populate_list2;
    End If;
    This way your second list will be populated.
    Now in the When-List-Changed trigger of datablock.list_item write
    --Code to populate second list item
    Populate_list2.
    This will re-populate the list2 when you change the selection in List1.
    Hope this helps.

  • JList item selection

    I am using a JList, and I would like to select certain items in the list. Right now I am doing it by passing the constructor an array of int indecies that correspond to the items I want selected.
    What I would really like to do, is have one item selected in red and the others selected the way they are. Or the other way around. I just want different color selections. I'm pretty sure I can not do this, but I just wanted to see if you guys (and gals) had any ideas.
    The other idea I had was to use a JPanel, and then use drawString to list the items, then capture the mouse click, find what item was selected, and then paint that rectangle the color I want.

    Hi
    You need to write a custom ListCellRenderer and set that for the list using: list.setCellRenderer(someCellRenderer); Once you have done that, populate the list with items (i.e. instances of a class which you created) that define whether the list item being drawn should be drawn using a red foreground. The renderer will need to check and see if the list item boolean value for painting in red is true, and if so set the foreground to red, otherwise use the default foreground color.
    Sorry if this sounds cryptic but I can't devote any more time to helping you out. Best of luck.
    cheers,
    Greg

  • Check list item

    hi
    is there any check list item (multi value lest item) in oracle forms 6i ......?

    Hi
    Full example and more* u can find here ..._
    Re: Dependent drop down lists in forms 6i
    Hope this helps...
    Regards,
    Amatu Allah.

  • How to create a multi column list item and select these values from a LOV

    Hi all,
    My requirements are:
    1) create an LOV which holds the productno, productname and productprice fields (this is working)
    2) at run time, select one record from LOV and populate the list/grid with this selected record values of productno, productname and productprice fields, so we are showing them on the form in the form of a table/grid (not working)
    3) be able to select multiple records from LOV and be able to populate the list item with multiple records (not working)
    4) have two more columns in the list/grid, for productquatity and total price (not wokring)
    Please help me.
    how can i create this grid or list in oracle
    whats the possible way of acheiving this in oracle

    If you use a list item to display multiple columns then you'll need to use a fixed-width font. You can achieve a similar look with proportional fonts by using a normal block and setting the fields' bevel to 'None'.
    Each column in the LOV has a Return Item property (under Column Mapping Properties). Set this to a :block.item reference for each column to bring the data back into those referenced fields.
    You can't select multiple records from an LOV. For this you will need to create your own form. Check the help for system.mouse_button_modifiers to see how to respond to Ctrl+click and Shift+click.
    To add columns just modify the LOV's record group's query.

Maybe you are looking for

  • Planned Delivery Costs in IMPORT PO

    Hi, What planned delivery costs are posted to GL accounts and material accounts. I want to post Clearing & Forwarding and Demurrage charges to material accounts.How it can be done. Regards

  • Error message: E:Z1:019 while creating Group Chart of Account( FSP0)

    Hi All I am having issue while crating new GL Account at FSP0 for Group Chart of Accounts. The Group COA has been copied from CONS COA for your kind information. SYSTEM:  ECC6.0 Please any one has idea about how to handle this problem. Error Message:

  • Thunderbolt to HDMI not Detecting LG TV

    My imac is not detecting Thunderbolt to HDMI not Detecting LG TV Only did detect once and now can get it back?? Mac Version 10.7.5

  • AAM works for 10.6, not 10.5.8

    I want to download Photoshop CS5, but it needs the Adobe Application Manager. The problem is that the AAM works for Mac OS 10.6, and I have the 10.5.8. What should I do?

  • Multithreading

    I have a program which displays 4 plots that plot x-data against time on the y-axis. I also have a timer set up to every "x" seconds, check a directory for any new XML files, if there are new files, parse them and retrieve all the data from the files