How to return the values of LOV to items in forms

Hi,
I have created an LOV based on a select statment that return 3 columns
I want to return theses 3 values to 3 items in the form?
I'll appreciate any suggestion.
Imad.

An LOV has only two components: text and value. You can see them in the html page's source. A work around is to use a procedure to query the data and create a cursor, count the # of records in the query. Create a javascript function to create parallel arrays to hold the data on the html page and pass the function parameters via an event on the page. Create the procedure in the db.
procedure follows...
CURSOR c_customer
/* use a cursor to get all the prices */
IS
SELECT
c.customer_number, c.customer_name, NVL(a.address1, 'N/A') ADDRESS1,
NVL(a.address2, 'N/A') ADDRESS2, NVL(a.city, 'N/A') CITY, NVL(a.state, 'N/A') STATE,
NVL(a.province, 'N/A') PROVINCE, NVL(a.country, 'N/A') COUNTRY, NVL(a.postal_code, 'N/A') POSTAL_CODE
FROM table1 b, table2 a, table3 c;
v_count NUMBER;
BEGIN
SELECT COUNT(*)
INTO v_count
FROM table1 b, table2 a, table3 c
where ...;
/*where clause and table names have been removed, use your's. They should be identical in both queries */
/* begin your Javascript, substituting values from the
cursor as necessary into parallel arrays*/
HTP.p('<script language="JavaScript1.1">');
HTP.p('<!-- ');
/* initialize the arrays */
HTP.p(' var customer_no_arr = new Array('||v_count||'); ');
HTP.p(' var customer_name_arr = new Array('||v_count||'); ');
HTP.p(' var address1_arr = new Array('||v_count||'); ');
HTP.p(' var address2_arr = new Array('||v_count||'); ');
HTP.p(' var city_arr = new Array('||v_count||'); ');
HTP.p(' var state_arr = new Array('||v_count||'); ');
HTP.p(' var province_arr = new Array('||v_count||'); ');
HTP.p(' var country_arr = new Array('||v_count||'); ');
HTP.p(' var postal_code_arr = new Array('||v_count||'); ');
/* populate the arrays */
FOR r IN c_customer LOOP
HTP.p ('customer_no_arr['||to_char(c_customer%ROWCOUNT - 1) ||'] = "'||r.customer_number||'";');
HTP.p('customer_name_arr['||to_char(c_customer%ROWCOUNT - 1)||'] = "'||r.customer_name||'";' );
HTP.p('address1_arr['||to_char(c_customer%ROWCOUNT - 1)||'] = "'||r.address1||'";' );
HTP.p('address2_arr['||to_char(c_customer%ROWCOUNT - 1)||'] = "'||r.address2||'";' );
HTP.p('city_arr['||to_char(c_customer%ROWCOUNT - 1)||'] = "'||r.city||'";' );
HTP.p('state_arr['||to_char(c_customer%ROWCOUNT - 1)||'] = "'||r.state||'";' );
HTP.p('province_arr['||to_char(c_customer%ROWCOUNT - 1)||'] = "'||r.province||'";' );
HTP.p('country_arr['||to_char(c_customer%ROWCOUNT - 1)||'] = "'||r.country||'";' );
HTP.p('postal_code_arr['||to_char(c_customer%ROWCOUNT - 1)||'] = "'||r.postal_code||'";' );
END LOOP;
/* use this variable to determine the size of the array */
HTP.p ('var num_customers = '||v_count);
/* create the function--accept a parameter that tells
you which customer has been selected from the select_co
combo box */
HTP.p ('function get_customer (form, field, customer_num)
var pieces = field.split(".");
var address1field = new String(pieces[0] + ".MASTER_BLOCK.ADDRESS1.01");
var address2field = new String(pieces[0] + ".MASTER_BLOCK.ADDRESS2.01");
var cityfield = new String(pieces[0] + ".MASTER_BLOCK.CITY.01");
var statefield = new String(pieces[0] + ".MASTER_BLOCK.STATE.01");
var provincefield = new String(pieces[0] + ".MASTER_BLOCK.PROVINCE.01");
var countryfield = new String(pieces[0] + ".MASTER_BLOCK.COUNTRY.01");
var zipcodefield = new String(pieces[0] + ".MASTER_BLOCK.POSTAL_CODE.01");
/* Get the customer number and pass it to the array to look up the address.*/
var customer_no = customer_num;
/* loop through the array until you find the right product ID */
for (var i=0 ; i < num_customers; i++)
if (customer_no_arr[i] == customer_no)
/* return the correct customer information */
form.elements[eval(address1field)].value = address1_arr;
form.elements[eval(address2field)].value = address2_arr[i];
form.elements[eval(cityfield)].value = city_arr[i];
form.elements[eval(statefield)].value = state_arr[i];
form.elements[eval(provincefield)].value = province_arr[i];
form.elements[eval(countryfield)].value = country_arr[i];
form.elements[eval(zipcodefield)].value = postal_code_arr[i];
/* close out the Javascript */
HTP.p ('//-->');
HTP.p ('</SCRIPT>');
END gen_customerlookup;
A specific example is found in the ORACLE Press book by Steve Vandiver & Kelly Cox "ORACLE9i Application Server Portal Handbook" ISBN # 0-07-222249-2 pages 358 - 361. Several lines, and better explaination than room for here.
get_customer (this.form, this.name, this.value); is placed in the appropriate event. Put "sales.gen_customer_lookup;" in the "before displaying the page" section. sales is the schema where the procedure gen_customer_lookup is created.
Ken

Similar Messages

  • How to get the value of a clicked item in a shuttle control

    I have a shuttle control (P8_SHUTTLE) that lists then names from scott.emp.
    Now I want to create a dynamic action that fires when I click on one of the names on the left side of the shuttle control.
    I want the dynamic action to recognize the name of the employee that was clicked, and then set the value of a text item (P8_LAST_VALUE) to that ename. (Eventually I want to display the department of that employee in the other text item).
    Here are screen shots of my DA:
    http://www.screencast.com/t/42klMC0Hbk
    http://www.screencast.com/t/Y5lZ4RsaLUI
    Currently, when I click an item in the shuttle control, the text item P8_LAST_VALUE remains blank.
    Thanks,
    Christoph

    Hi Christoph,
    you have to change your jQuery selector in the When section of the Dynamic action to #P8_SHUTTLE_LEFT.
    The shuttle item P8_SHUTTLE is build from to select lists P8_SHUTTLE_LEFT and P8_SHUTTLE_RIGHT.
    regards,
    Erik-jan

  • How to get the values of LOV

    Hi,
    I am new to the OAF technology.I don't ve columns like customer_name and item in custom table. I am getting these values through the view object.If I enter customer_name and item the values of customer_id and item_id should place in the custom table. I ve these fields in custom table. And also i ve status field in custom table.It is not null.how to pass default value to that and how to pass customer_id and item_id to the custom table.
    In controll file i written like this
    OAApplicationModule am = pageContext.getApplicationModule(webBean);
    am.invokeMethod("createItem");
    and in formrequest
    OAApplicationModule am = pageContext.getApplicationModule(webBean) ;
    am.invokeMethod("saveDataToHDR") ;
    and in application module I added this code
    public void createItem()
    OAViewObject vo = (OAViewObject)getForecastingHVO1();
    if (!vo.isPreparedForExecution())
              vo.executeQuery();
         Row row=vo.createRow();
         vo.insertRow(row);
         row.setNewRowState(Row.STATUS_INITIALIZED);
    }//end createItem()
    public void saveDataToHDR()
    getDBTransaction().commit();
    and in entity object i added this code
    public void insertRow()
    try
    OADBTransactionImpl oadbtransactionimpl = (OADBTransactionImpl)getDBTransaction();
    String s = "begin xxic_insert_items(p_item => :1, p_customer => :2, ); end; ";
    OracleCallableStatement oraclecallablestatement = (OracleCallableStatement) oadbtransactionimpl.createCallableStatement(s, -1);
    //oraclecallablestatement.setNUMBER(1,getFrcstDesignator());
    // oraclecallablestatement.setString(2,getProductFamily());
    oraclecallablestatement.execute();
    catch(SQLException sqlexception)
    throw OAException.wrapperException(sqlexception);
    catch(Exception exception)
    throw OAException.wrapperException(exception);
    I written the code like this.I am not getting any error. But the data is not inserting into the custom table.Please tell me the solution.
    Thanks.

    Hi,
    I am new to the OAF technology.I don't ve columns like customer_name and item in custom table. I am getting these values through the view object.If I enter customer_name and item the values of customer_id and item_id should place in the custom table. I ve these fields in custom table. And also i ve status field in custom table.It is not null.how to pass default value to that and how to pass customer_id and item_id to the custom table.
    In controll file i written like this
    OAApplicationModule am = pageContext.getApplicationModule(webBean);
    am.invokeMethod("createItem");
    and in formrequest
    OAApplicationModule am = pageContext.getApplicationModule(webBean) ;
    am.invokeMethod("saveDataToHDR") ;
    and in application module I added this code
    public void createItem()
    OAViewObject vo = (OAViewObject)getForecastingHVO1();
    if (!vo.isPreparedForExecution())
              vo.executeQuery();
         Row row=vo.createRow();
         vo.insertRow(row);
         row.setNewRowState(Row.STATUS_INITIALIZED);
    }//end createItem()
    public void saveDataToHDR()
    getDBTransaction().commit();
    and in entity object i added this code
    public void insertRow()
    try
    OADBTransactionImpl oadbtransactionimpl = (OADBTransactionImpl)getDBTransaction();
    String s = "begin xxic_insert_items(p_item => :1, p_customer => :2, ); end; ";
    OracleCallableStatement oraclecallablestatement = (OracleCallableStatement) oadbtransactionimpl.createCallableStatement(s, -1);
    //oraclecallablestatement.setNUMBER(1,getFrcstDesignator());
    // oraclecallablestatement.setString(2,getProductFamily());
    oraclecallablestatement.execute();
    catch(SQLException sqlexception)
    throw OAException.wrapperException(sqlexception);
    catch(Exception exception)
    throw OAException.wrapperException(exception);
    I written the code like this.I am not getting any error. But the data is not inserting into the custom table.Please tell me the solution.
    Thanks.

  • Unable to select the value from a list item in forms 6i

    Hi ,
    I'am using forms 6i. I have created a list item in my form as below.
    Item_type = list item
    list style - popup list
    elements in list - A, B, C,D
    When I open the form all the above values are displayed for the list item. But I'am unable to select the item( either A,B,C,D).
    Please let me know if I need to add any thing else programatically to acheive this. The block on whixh these values are diplayed is a datablock.
    This is very urgent. Any suggestions would be of great help.
    Thanks
    Deepthi

    If you have a list item where you have:
    Display A value 1
    Display B value 2
    Display C value 3
    Display D value 4
    If want to initial the value of the item to be A, you can set the initial value of the item to 1 in the property pane.
    Otherwise in an initialisation triger have
    :block.list_item := 1;
    HTH
    Tony

  • After hiding an item, its value cannot be used in a query. How to use the value of a hidden item.

    Hi,
    I have a shuttle. I am using its value in a query by using sql collection array. My requirement is that I need to hide that shuttle. But when I hide the shuttle, its value is not retrived by the query.
    Please give some idea how to get this functionality.
    Thanks,
    chandru

    ChandraBhanu wrote:
    Its a shuttle. so how to create an application item of shuttle type?
    pls give some idea.
    You don't create an application item of shuttle type.  Application items only hold one value, and I thought since you were using a value in a query that you were only using one.  In the case of multiple values my idea to use a page/application item will not work

  • Want to create a link on seeded page which can pass the values of LOVs

    Hi,
    I have a seeded page.. and i want to create a Link on the page which will redirect to new custom page...
    When user clicks on the link, the values of some LOVs should be forwarded on the custom page......
    I created a link through personalization... But I have doubt about how to attach the values of LOVs through url....
    Is it possible to do the same???
    Thanks in advance,
    Kaushik

    Thanks Pratap,
    Yes the LOVs are created through personalization....
    Since i dint want to touch the code... so i created everything through personalization.....
    The only problem now is to get the values of these LOVs in URL....
    Is there no other method other then extension to do this???
    Thanks,
    Kaushik

  • How to get the value field of the return parameters for an action step in teststand sequence file programatically using c#

                    Sequence mySequence = myEngine.NewSequence();
                    mySequence.Name = "myAction";
                    //Create new step of type Action and set Name
                    Step mystep = myEngine.NewStep(AdapterKeyNames.DotNetAdapterKeyname, StepTypes.StepType_Action);
                    mystep.Name = "GetStringObject";
                    //Obtain the code module from the step
                    DotNetModule myModule = mystep.Module as DotNetModule;
                    //Set properties of the module
                    myModule.SetAssembly(DotNetModuleAssemblyLocations.DotNetModule_AssemblyLocation_File, @"C:\Documents and Settings\My Documents\Visual Studio 2005\Projects\HelperClass\HelperClass\bin\Debug\HelperClass.dll");
                    myModule.ClassName = "Class1";
                    myModule.MemberType = DotNetModuleMemberTypes.DotNetMember_GetProperty;
                    myModule.MemberName = "StringObject";
                    mySequence.InsertStep(mystep, 0, StepGroups.StepGroup_Setup);
                    mySequence.Locals.NewSubProperty("StringObject", PropertyValueTypes.PropValType_Reference, false, "", 0);
                    DotNetParameterDirections reference = mySequence.Locals as DotNetParameterDirections;
                    mySequence.Locals.GetPropertyObject("StringObject", 0);
                    myModule.ClassReference = "Locals.StringObject";
                    myModule.LoadPrototypeFromMetadataToken(385875969, 0);
    After this I am not able to proceed.herewith attached documents contain screenshot of teststand file marked red is to be solved. How to define the value field of the return parameters?
    Attachments:
    HelperClass.cs ‏1 KB
    ex1.gif ‏2305 KB

    Please see my answer to your question on page two of the following forum thread:
    Programmatically generating DotNet Steps in TestStand
    Manooch H.
    National Instruments

  • LOV does not return the value (2)

    PPR in general does not work correctly if invalid HTML is generated. One example of an invalid HTML is having an opening <TD> tag immediately following another opening <TD> tag.
    After checking everything else, if LOV still does not return the value, test whether it's not a problem with the invalid HTML by placing the messageLovInput outside of the complicated layout nestings you may have. If it works outside of the layout nestings, look for the possible problems in the layout nestings.

    Hi RamKumar,
    Thanks for your reply.. I have already done that but no luck :(
    Regards,
    Hemanth J

  • How crm visit the external website and return the value to crm

    how crm visit the external website and return the value to crm?
    Awen

    Can you elaborate the question? I assume that you are looking for some sort of mechanism to validate a customer's web site?
    Regardless of the scenario, the way to validate or retrieve a value from an external web site is to write a plugin that executes a WebRequest to the external site and reads the response.

  • How to return current value in iterator

    hi i have the following code when i iterator am always geting the same value,it display first value from the lov which is from the previous page.this is how am displaying the value i select value from lov and navigate to next page when am in the next page i must display value based on the lov selection,now i what to iterator that value organisation name,am always geting this value when iterating am not able to get the current value organisationname Botha Inc this value is the first value in my previous page lov
        public String getorgname(){
            String orgname = null;
           // DCIteratorBinding it = ADFUtils.findIterator("UpdUamOrganisation1Iterator");
            DCBindingContainer bindings1 =
                              (DCBindingContainer)BindingContext.getCurrent().getCurrentBindingsEntry();       
            // DCIteratorBinding it0 = ADFUtils.findIterator("UpdUamOrganisation1Iterator");
            DCIteratorBinding it  = bindings1.findIteratorBinding("UpdUamOrganisation1Iterator");
            RowSetIterator rsi = it.getRowSetIterator();   
            Row rw =   rsi.first();
        orgname = (String)rw.getAttribute("Organisationname");
            System.out.append("organisationname " + orgname);
            return orgname;
    my log error is
    <DCIteratorBinding> <releaseDataInternal> [4213] Releasing iterator binding:listIter
    <DCIteratorBinding> <releaseDataInternal> [4214] Releasing iterator binding:listIter
    <DCIteratorBinding> <releaseDataInternal> [4215] Releasing iterator binding:listIter
    <DCIteratorBinding> <releaseDataInternal> [4216] Releasing iterator binding:listIter
    <ViewRowSetImpl> <execute> [4217] UpdResPerson1 ViewRowSetImpl.execute caused params to be "un"changed
    <ViewRowSetImpl> <initQueryCollection> [4218] Carrying over CappedRowCount:-1for ViewRowSet:UpdResPerson1
    <QueryCollection> <createColumnList> [4219] Column count: 11
    <ViewRowSetImpl> <execute> [4220] executeQueryForCollection ViewObject:UpdResPerson1, RowSet:UpdResPerson1
    <ADFLogger> <begin> Execute query
    <ViewObjectImpl> <buildQuery> [4221] UpdResPerson1>#q old SQLStmtBufLen: 654, actual=624, storing=654
    <ViewObjectImpl> <buildQuery> [4222] SELECT UamCompanyofficerdetails.ACCOUNTINGOFFICER,         UamCompanyofficerdetails.CONTACTNUMBER,         UamCompanyofficerdetails.DATE_CREATED,         UamCompanyofficerdetails.EMAILADDRESS,         UamCompanyofficerdetails.IDENTITYNUMBER,         UamCompanyofficerdetails.NAME,         UamCompanyofficerdetails.OFFICERID,         UamCompanyofficerdetails.ORGANISATIONID,         UamCompanyofficerdetails.OWNERSHIP,         UamCompanyofficerdetails.STATUS,         UamCompanyofficerdetails.SURNAME FROM UAM_COMPANYOFFICERDETAILS UamCompanyofficerdetails WHERE UamCompanyofficerdetails.ORGANISATIONID = :Bind_Organisationid
    <ViewObjectImpl> <getStatementFromCache> [4223] ViewObject: [UpdOrgDetails.UpdResPerson]UpdAppModule.UpdResPerson1 Reusing defined prepared Statement
    <ViewObjectImpl> <bindParametersForCollection> [4224] Bind params for ViewObject: [UpdOrgDetails.UpdResPerson]UpdAppModule.UpdResPerson1
    <OracleSQLBuilderImpl> <bindParamValue> [4225] Binding param "Bind_Organisationid": 341
    <ADFLogger> <addContextData> Execute query
    <ADFLogger> <addContextData> Execute query
    just executed query for collection..
    <ViewRowSetImpl> <setWhereClauseParamsInternal> [4226] UpdResPerson1 ViewRowSetImpl.setWhereClauseParams caused params changed
    <ADFLogger> <begin> Estimated row count
    <ViewObjectImpl> <buildQuery> [4227] UpdResPerson1>#q old SQLStmtBufLen: 654, actual=624, storing=654
    <ViewObjectImpl> <buildQuery> [4228] SELECT UamCompanyofficerdetails.ACCOUNTINGOFFICER,         UamCompanyofficerdetails.CONTACTNUMBER,         UamCompanyofficerdetails.DATE_CREATED,         UamCompanyofficerdetails.EMAILADDRESS,         UamCompanyofficerdetails.IDENTITYNUMBER,         UamCompanyofficerdetails.NAME,         UamCompanyofficerdetails.OFFICERID,         UamCompanyofficerdetails.ORGANISATIONID,         UamCompanyofficerdetails.OWNERSHIP,         UamCompanyofficerdetails.STATUS,         UamCompanyofficerdetails.SURNAME FROM UAM_COMPANYOFFICERDETAILS UamCompanyofficerdetails WHERE UamCompanyofficerdetails.ORGANISATIONID = :Bind_Organisationid
    <ViewObjectImpl> <getQueryHitCount> [4229] Estimated Row Count for ViewObject: [UpdOrgDetails.UpdResPerson]UpdAppModule.UpdResPerson1, Query Statement:
    <ViewObjectImpl> <getQueryHitCount> [4230] "SELECT count(1) FROM (SELECT UamCompanyofficerdetails.ACCOUNTINGOFFICER,         UamCompanyofficerdetails.CONTACTNUMBER,         UamCompanyofficerdetails.DATE_CREATED,         UamCompanyofficerdetails.EMAILADDRESS,         UamCompanyofficerdetails.IDENTITYNUMBER,         UamCompanyofficerdetails.NAME,         UamCompanyofficerdetails.OFFICERID,         UamCompanyofficerdetails.ORGANISATIONID,         UamCompanyofficerdetails.OWNERSHIP,         UamCompanyofficerdetails.STATUS,         UamCompanyofficerdetails.SURNAME FROM UAM_COMPANYOFFICERDETAILS UamCompanyofficerdetails WHERE UamCompanyofficerdetails.ORGANISATIONID = :Bind_Organisationid) "
    <ViewObjectImpl> <getQueryHitCount> [4231] Bind params for ViewObject.getQueryHitCount: UpdResPerson1
    <ADFLogger> <addContextData> Estimated row count
    <OracleSQLBuilderImpl> <bindParamValue> [4232] Binding param "Bind_Organisationid": 341
    <ViewObjectImpl> <getQueryHitCount> [4233] ViewObject: [UpdOrgDetails.UpdResPerson]UpdAppModule.UpdResPerson1 Estimated Row Count: 1
    <ADFLogger> <addContextData> Estimated row count
    Source breakpoint occurred at line 1532 of OrgDetails.java.
    organisationname Botha Incam in jdeveloper 11.1.1.6.0
    Edited by: adf009 on 2013/03/15 12:09 PM

    i change the code to this
               public String getorgname(){
            String orgname = null;
           // DCIteratorBinding it = ADFUtils.findIterator("UpdUamOrganisation1Iterator");
            DCBindingContainer bindings1 =
                              (DCBindingContainer)BindingContext.getCurrent().getCurrentBindingsEntry();       
            // DCIteratorBinding it0 = ADFUtils.findIterator("UpdUamOrganisation1Iterator");
            DCIteratorBinding it  = bindings1.findIteratorBinding("UpdUamOrganisation1Iterator");
            RowSetIterator rsi = it.getRowSetIterator();   
            Row r = rsi.getCurrentRow();
        orgname = (String)r.getAttribute("Organisationname");
        System.out.append("organisationname " + orgname);
            return orgname;
    am still geting the first value from lov when i iterator i what to see the current value selected,i have put the inputtext with the organisation name it always show the first value it does not change when i make selection in my lov i even put the partial trigger but does not change based on lov selection
    my jsff page is
    <?xml version='1.0' encoding='UTF-8'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
              xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
              xmlns:f="http://java.sun.com/jsf/core">
      <af:panelSplitter id="ps1" orientation="vertical" splitterPosition="148">
        <f:facet name="first"/>
        <f:facet name="second">
          <af:panelStretchLayout id="psl1" startWidth="126px" endWidth="124px">
            <f:facet name="bottom"/>
            <f:facet name="center">
              <af:panelStretchLayout id="psl2" endWidth="137px" startWidth="220px">
                <f:facet name="center">
                  <af:panelGroupLayout id="pgl1" layout="vertical" valign="middle"
                                       halign="center">
                    <af:panelStretchLayout id="psl3"
                                           inlineStyle="width:732px; height:340px;"
                                           bottomHeight="100px">
                      <f:facet name="bottom">
                        <af:panelGroupLayout id="pgl2" layout="vertical"
                                             valign="middle" halign="center">
                          <af:panelHeader text="Select Organisation To Update" id="ph1"
                                          inlineStyle="border-style:ridge; border-color:Blue; height:57px;">
                            <f:facet name="context">
                              <af:group id="g2">
                                <af:toolbar id="t1">
                                  <af:selectOneChoice value="#{bindings.Orgid1.inputValue}"
                                                      required="#{bindings.Organisationid.hints.mandatory}"
                                                      id="soc1" autoSubmit="true"
                                                      valuePassThru="true">
                                    <f:selectItems value="#{bindings.Organisationid.items}"
                                                   id="si1"/>
                                  </af:selectOneChoice>
                                </af:toolbar>
                                <af:inputText label="Label 1" id="it2"
                                              value="#{bindings.Organisationname.inputValue}"
                                              partialTriggers="soc1"/>
                              </af:group>
                            </f:facet>
                            <f:facet name="menuBar"/>
                            <f:facet name="toolbar">
                              <af:group id="g1">
                                <af:toolbar id="t2">
                                  <af:commandButton
                                                    text="UpdateOrganisation"
                                                    disabled="#{!bindings.setCurrentRowWithKeyValue.enabled}"
                                                    id="cb1"
                                                    action="#{pageFlowScope.addMember.showSelectedOrg}"/>
                                </af:toolbar>
                              </af:group>
                            </f:facet>
                            <f:facet name="legend"/>
                            <f:facet name="info"/>
                          </af:panelHeader>
                          <af:inputText label="Selectedorg" id="it1"
                                        value="#{bindings.Orgid1.inputValue}"
                                        partialTriggers="soc1" visible="false"/>
                        </af:panelGroupLayout>
                      </f:facet>
                      <f:facet name="start"/>
                      <f:facet name="end"/>
                      <f:facet name="top"/>
                    </af:panelStretchLayout>
                  </af:panelGroupLayout>
                </f:facet>
                <f:facet name="top"/>
              </af:panelStretchLayout>
            </f:facet>
            <f:facet name="start"/>
            <f:facet name="end"/>
            <f:facet name="top"/>
          </af:panelStretchLayout>
        </f:facet>
      </af:panelSplitter>
    </jsp:root>
    the page def is
    <?xml version="1.0" encoding="UTF-8" ?>
    <pageDefinition xmlns="http://xmlns.oracle.com/adfm/uimodel"
                    version="11.1.1.61.92" id="SelectOrgPageDef"
                    Package="uam.view.pageDefs">
      <parameters/>
      <executables>
        <variableIterator id="variables">
          <variable Name="Orgid" Type="java.lang.Integer"/>
          <variable Name="orgid" Type="java.lang.Integer"/>
        </variableIterator>
        <iterator Binds="UpdUamOrganisationLov" RangeSize="-1"
                  DataControl="UpdAppModuleDataControl"
                  id="UpdUamOrganisationLovIterator"/>
        <iterator Binds="UpdUamOrganisation1" RangeSize="25"
                  DataControl="UpdAppModuleDataControl"
                  id="UpdUamOrganisation1Iterator"/>
      </executables>
      <bindings>
        <attributeValues IterBinding="variables" id="Orgid1"
                         ChangeEventPolicy="push">
          <AttrNames>
            <Item Value="Orgid"/>
          </AttrNames>
        </attributeValues>
        <list IterBinding="variables" id="Organisationid"
              DTSupportsMRU="true" StaticList="false"
              ListIter="UpdUamOrganisationLovIterator">
          <AttrNames>
            <Item Value="Orgid"/>
          </AttrNames>
          <ListAttrNames>
            <Item Value="Organisationid"/>
          </ListAttrNames>
          <ListDisplayAttrNames>
            <Item Value="Organisationname"/>
          </ListDisplayAttrNames>
        </list>
        <action IterBinding="UpdUamOrganisation1Iterator"
                id="setCurrentRowWithKeyValue" RequiresUpdateModel="false"
                Action="setCurrentRowWithKeyValue">
          <NamedData NDName="rowKey" NDType="java.lang.String"/>
        </action>
        <attributeValues IterBinding="UpdUamOrganisation1Iterator"
                         id="Organisationname">
          <AttrNames>
            <Item Value="Organisationname"/>
          </AttrNames>
        </attributeValues>
      </bindings>
    </pageDefinition>Edited by: adf009 on 2013/03/15 1:19 PM
    Edited by: adf009 on 2013/03/15 1:23 PM
    Edited by: adf009 on 2013/03/15 1:23 PM
    Edited by: adf009 on 2013/03/15 1:29 PM

  • How to find the value of a variable in other program

    How to find the value of a variable in other program say I am in a FM and this FM is being called in from other program and I want to know some of the variable details of the program from the FM itself. Imagine if this is a txn. and I need to know the details from some of the programs while executing the same transaction
    Regards
    Vin

    Hi Vinayak,
         you will be having your first program values in internal table or some variables,
        when you are calling the second program you wii use like this,
        SUBMIT <Second Program Name> USING SELECTION-SCREEN '1000'
                           WITH s_emp(second program select-options)   IN t_emp(first program variables)
                           WITH p_chk   EQ t_chk
                           WITH p_r1    EQ t_r1
                           WITH p_month EQ t_month
                           WITH s_cust1 IN t_cust1
                           WITH p_r2    EQ t_r2
                           WITH s_cust2 IN t_cust2
                           WITH s_week  IN t_week
                           AND RETURN.
    you have pas like this to get your first program details.

  • How to get the value from a JavaScript and send the same to Java file?

    Hi.
    How to get the value from a JavaScript (this JS is called when an action invoked) and send the value from the JS to a Java file?
    Thanks and regards,
    Leslie V

    Yes, I am trying with web application.
    In the below code, a variable 'message' carries the needed info. I would like to send this 'message' variable with the 'request'.
    How to send this 'message' with and to the 'request'?
    Thanks for the help :-)
    The actual JS code is:
    function productdeselection()
    var i=0;
    var j=0;
    var deselectedproduct = new Array(5);
    var message = "Are you sure to delete Product ";
    mvi=document.forms[0].MVI;
    mei=document.forms[0].MEI;
    lpi=document.forms[0].LPI;
    if(null != mvi)
    ++i;
    if(null != mei )
    ++i;
    if(null != lpi)
    ++i;
    if(null != mvi && mvi.checked)
    deselectedproduct[++j]="MVI?";
    if(null != mei && mei.checked)
    deselectedproduct[++j]="GAP?";
    if(null != lpi && lpi.checked)
    deselectedproduct[++j]="LPI?";
    if( 0!=j)
    if(i!=j)
    for (x=0; x<deselectedproduct.length; x++)
    if(null != deselectedproduct[x])
    message =message+ "-" +deselectedproduct[x];
    alert(message);
    else
    //alert(" You cannot remove all products!");
    return false;
    return true;
    }

  • How to get the values from html:select? tag..?

    i tried with this, but its not working...
    <html:select styleClass="text" name="querydefs" property="shortcut"
                 onchange="retrieveOptions()" styleId="firstBox" indexed="true">
    <html:options collection="advanced.choices" property="shortcut" labelProperty="label" />
    </html:select>
                        <td align="left" class="rowcolor1">
                        <script language="javascript" type="text/javascript">
                              function retrieveOptions(){
                             var sel = document.querydefs.options;
                             var selectedOption = sel[sel.selectedIndex].value;
                             document.write(selectedOption);
                           </script>

    <td align="left" class="rowcolor1">
                        <script language="javascript" type="text/javascript">
                              function retrieveOptions(){
                             var sel = document.querydefs.options;
                             var selectedOption = sel[sel.selectedIndex].value;
                             document.write(selectedOption);
                           </script>This java script is not working at all..its not printing anything in document.write();
    This is code..
    <td class="rowcolor1" width="20%">
    <html:select styleClass="text" name="querydefs" property="shortcut"
                             onchange="retrieveSecondOptions()" styleId="firstBox"
                             indexed="true">
                             <html:options collection="advanced.choices" property="shortcut"
                                  labelProperty="label"  />
                        </html:select>i tried with this also. but no use..i'm not the getting the seleced option...
    function retrieveOptions(){
    firstBox = document.getElementById('firstBox');
                             if(firstBox.selectedIndex==0){
          return;
        selectedOption = firstBox.options[firstBox.selectedIndex].value;
    }actually , how to get the values from <html:select> ...?
    my idea is to know which value is selected from the combo box(<html:select> ) if that value is equal some string i have enable a hyperlink to open a popup window

  • How to get the values from table region and how to set

    Hi,
    I have a requirement as Seeded Page Having One Table Region having around 8 columns, In That Item Description field is there. My Requirement is I need add one more field for that Region and assign the value depending Item Description.
    I will create one new Item in that region and will give name as Item, But how to set the values to Item Depending on Item Description.
    Is it possible to through CO Extension, If yes..Pls help how to get it.
    Thanks in Advance,
    Hanimi

    Hi Hanimi,
    1. You need to extend the VO, add a new Attribute.
    2. In VORowImpl of the extended VO, you can find the getter for your new attribute (example getItem())
    3. In this getter method you can write some code like:
    if("ABC".equals(getItemDescription())
    return "XYZ" ;
    -Prince
    http://princekapoor82.blogspot.com

  • How to get the values and attributes of Longlived processes by using ProcessID.

    Hi Experts,
    For  every process we creates, LC ES2 creates processID.
    we know that if you creates  a long lived process, all  the  values which are in proces will be stored some where  in DB.
    Here my requirement is by using  processID I need to get all/some values/variables stored in database.
    I am not able to get values using processID. Here I don't have clue on  how to get the values.
    Please tell me  how to get the same by using  Process Management. Link/guide would be helpful
    Thanks
    Praveen.

    Searchable means you can put a filter criteria on it (e.g. where amount > 50000)
    Visible means you can add have this column returned as an output (and therefore you can add it as column in listview and see it in Task Details).
    These two attributes were provided so that queries could be done against the process variables, but the exact contents of the variables are not allowed to be seen.

Maybe you are looking for

  • How to Test Design Time Fusion Customizations in JDeveloper

    Hi When we look at the wording and the diagram in the Oracle documentation, it says - "After you create these customizations, you can test them locally in JDeveloper and then deploy them directly into the full test environment. You can also deploy yo

  • Upgrade to PI 7.1 and 7.3

    Hi, My customer currently are in upgrading the applications to 7.  They have PI 7.0 as well now. If we need to go for upgrade, is it free for them say 7.1. or 7.3 or do they need to go separate license cost. Regards Krish

  • Time-Service Warning ID 12

    In My Windows Server 2008 R2 OS in the Event Viewer there is an error pertains as Time-Service Warning ID 12 states-(Time Provider NtpClient: This machine is configured to use the domain hierarchy to determine its time source, but it is the AD PDC em

  • Issues regarding (default) window size.

    hello... i have a problem with the sizes of windows. how can i have a fixed window size for my index page? i will probably be using flash menus for the index, so i just want THAT to appear.... i dunno if im being clear...sorry and thanks

  • IPhoto Faces Missing After Lion 10.7.4 Update

    I got a system update on my iMac Mid-2011 21.5" computer last night - it was for OS X Lion 10.7.4.  However, after completing the update successfully, iPhoto has lost all of my face tags.  All of my photos are still present in iPhoto (in events and p