How to return Parameters values as a column in a query?

Hi All,
I have number of parameters in a report.
I need to return its interred values as a column in a query to use this column in a chart.
I want this column to be the second one in this query:
SELECT ROWNUM
FROM ALL_OBJECTS
WHERE ROWNUM <= 10
That is if there is any way to use these parameters directly as a column in the chart no need for the previous statement.
Note: I am using Reports 6i

Dear sir
You can enter parameter as column in query like
select :parameter p1, &hexadecima_paramataer p2, empcode
from emps;
that query make parameter as query column .
&hexadecimal paramater can refer to database column of table emps
and :paramater can refer to static string

Similar Messages

  • How to return blank value for a column

    Hi All
    We would like to create a short version of the BI report for the scorecards that has the same number and order of the columns, but far less rows. This will improve the size and performance of the Overhead, Services scorecard.
    For some columns, we need blank values , which means the content should be blank , but the column should appear in the report.
    I have tried checking some options in "column format" tab under column properties and played with "column header interaction" and "value interaction" , however i couldnt get the desired results.
    Can we achieve this?
    Please suggest me on the same.
    Regds
    Mano

    Mano wrote:
    For some columns, we need blank values , which means the content should be blank , but the column should appear in the report.Can you not just add any colulmn from the subject area and change its formula to '' ? You can rename the column name, and it will show blank values for all the records.
    Assign points if helpful.
    Regards,
    -Amith.

  • How to set default values for boolean columns

    I'm trying to deploy some content types and columns into a site with a feature. All it's ok, except that I'm trying to set a default value for boolean columns with no success.
    I've tried to set default value at column level:
    <Field ID="{EFE23A1D-494E-45cf-832E-45E41B17F0CF}" Name="ScopeSpanish" DisplayName="Se publican noticias en español"
    Type="Boolean" Hidden="FALSE" Group="Columnas ShaCon" >
    <Default>TRUE</Default>
    </Field>
    and at content type level:
    <FieldRef ID="{EFE23A1D-494E-45cf-832E-45E41B17F0CF}" Name="ScopeSpanish" DefaultValue="TRUE" Required="TRUE" />
    But in any case, when i create a new item with this content type, default value is applied.
    Can anyone tell how to set default values for boolean columns?
    Thanks in advance,
    Regards,
    Sergio

    In the field definition you can set
    <Default>1</Default>
    or
    <Default>0</Default>
    How to set the default value Null?

  • How to display the value of a column in a chart at the top of each column

    How to display the value of each column in a chart at the top of each column?

    Like this?
    Done using chart Inspector.
    For details, see Chapter 7,  Creating Charts from Numerical Data in the Numbers '09 User Guide. The guide may be downloaded via the Help menu in Numbers.
    Regards,
    Barry

  • How to Return a value to a 10g Oracle Form form a Web Service Call

    I've read the demo available from Oracle, 'Calling a Web service from Oracle Forms', that shows how to invoke a call to a Web Service from a Form. The demo only shows how to do a call and how to display messages. I've done some searching, but can't seem to find any examples of how to return a value from the call into a field on the form. If any one could provide an example of that, I would greatly appreciate it.
    We are in the process of modifing a form and we would like to use a webservice, which we have never done before. We have created a webservice which calculates a value based upon what is entered on the form and we want to pass that calculated value back to a field on the form.
    This is the code provided by the demo to do a call.
    DECLARE
    jo ora_java.jobject;
    xo ora_java.jobject;
    rv varchar2(100);
    ex ora_java.jobject;
    BEGIN
    JO := SendServiceSoapClient.new;
    RV := SendServiceSoapClient.sendMessage(JO,:BLOCK3.PHONE_NUMBER, :BLOCK3.MESSAGE_BODY, xo, xo);
    EXCEPTION
    WHEN ORA_JAVA.JAVA_ERROR then
    message('Unable to call out to Java, ' ||ORA_JAVA.LAST_ERROR);
    WHEN ORA_JAVA.EXCEPTION_THROWN then
    ex := ORA_JAVA.LAST_EXCEPTION;
    message(Exception_.toString(ex));
    END;

    In the future, please be sure to include the exact product versions you are using. In this case, also be sure to include the java versions you are using to build your java code.
    http://blogs.oracle.com/shay/entry/10_commandments_for_the_otn_fo
    Regarding your question, take a look at this older white paper which discusses integrating Forms with SOA.
    http://www.oracle.com/technetwork/developer-tools/forms/documentation/forms-soa-wp-1-129441.pdf

  • How to use Special value set with Column clause to display addtional column

    hi
    can anyone tell me
    How to use Special value set with Column clause to display addtional column
    how can i use FND POPID and with COLUMN clause ?

    Dear Yaseen,
                To get the value in formula cumulative,after you have created the formula for that particular key figure,go to edit and click on tab "calculations".
    In that select overall result as 'count all values not equal to zero' and single result as 'count all values not equal to zero' .
    And mark the cumulative check box underneath.
    I hope you get the desired result and please do me favour .
    Sumit goomber

  • How to insert varchar2 value in timestamp column in table?

    Hi all,
    Hope doing well,
    sir i am using one stored procedure and storing time in varchar2 variable in this format: 08:00:00
    now i have to insert this value in timestamp column in table. how to insert this value in timestamp column?
    thanks

    952646 wrote:
    Hi all,
    Hope doing well,
    sir i am using one stored procedure and storing time in varchar2 variable A "Very Bad Idea"(tm)
    When you do this, there is no fundamental difference between "08:00:00" and "here's your sign".
    Data should always be stored in the correct data type. For dates and times, that data type is either DATE or TIMESTAMP. Period.
    in this format: 08:00:00
    now i have to insert this value in timestamp column in table. how to insert this value in timestamp column?
    Hopefully as remediation to the original bad design.
    thanks

  • How do I return a value from a column based on info from neighboring columns?

    I have a table of data that looks similar to this:
    Weight
    Name
    School
    Division
    106
    Name1
    School1
    1
    106
    Name2
    School2
    2
    106
    Name3
    School3
    3
    106
    Name4
    School4
    4
    113
    Name5
    School5
    1
    113
    Name6
    School6
    2
    113
    Name7
    School1
    3
    113
    Name8
    School3
    4
    It's a very large table, so there will be multiple matches for Schools, and occasionally a few matches for Names, but there will always be only one match for a given Weight and Division.
    In a separate table, how can I get the name of the person associated with the unique weight and division?
    In my head, the formula goes" "Look in the Weight column to find 106, then look in the Division column to find 4, then return the value from the Name column." But I can't figure out the formula that will do that.
    Any thoughts?

    Hi momogabi,
    This can be easily done with an index column.
    The formula I used in your original table for the index column is:
    =A2&"-"&D2. This was filled down. The column can be hidden.
    You can see the formula in the search table. If I wanted to eliminate the index column in that table the formula would look something like:
    =INDEX('Table 1-1'::B,MATCH(A2&"-"&B2,'Table 1-1'::E,0),1)
    Hope this helps.
    quinn

  • "How to get distinct values of sharepoint column using SSRS"

    Hi,
        I have integrated sharepoint list data to SQL Server reporting services. I am using the below to query sharepoint list data using sql reporting services.
    <Query>
       <SoapAction>http://schemas.microsoft.com/sharepoint/soap/GetListItems</SoapAction>
       <Method Namespace="http://schemas.microsoft.com/sharepoint/soap/" Name="GetListItems">
          <Parameters>
             <Parameter Name="listName">
                <DefaultValue>{GUID of list}</DefaultValue>
             </Parameter>
             <Parameter Name="viewName">
                <DefaultValue>{GUID of listview}</DefaultValue>
             </Parameter>
             <Parameter Name="rowLimit">
                <DefaultValue>9999</DefaultValue>
             </Parameter>           
          </Parameters>
       </Method>  
    <ElementPath IgnoreNamespaces="True">*</ElementPath>
    </Query>
    By using this query, I am getting a dataset which includes all the columns of sharepoint list. Among these columns, I wanted to display only 2 columns (i.e Region and Sales type) using chart. I have created a Region parameter but when I click preview, the drop down box is giving me all the repeatative values of region like RG1,RG1,RG1,RG2,RG2,RG2,RG2,RG3.......... I wanted to display only distinct values of Region parameter so that whenever end user select region from the parameter drop down, it will display the respective value of Sales type column.
    Also when I select only RG1 parameter, it is giving me a chart including the sales type of all the Regions. (it should display me only the sales type of RG1) How can I link these 2 columns so that they will display the values respectively.
              I would really appreciate if anyone can help me out with this.
    Thanks,
    Sam.

    Hi Sam,
    By code, the CAML language doesn’t have any reserved word (or tag) to set this particular filter to remove duplicate results.
    In this case, we could use the custom code to get distinct records.
    Here are the detailed steps:
    1.         Create a hidden parameter that gets all the records in one field.
    Note: Please create another dataset that is same of the main dataset. This dataset is used for the parameter.
    2.         Create a function that used to remove the duplicate records.
    Here is the code:
    Public Shared Function RemoveDups(ByVal items As String) As String
    Dim noDups As New System.Collections.ArrayList()
    Dim SpStr
    SpStr = Split(items ,",")
    For i As Integer=0 To Ubound(Spstr)
    If Not noDups.Contains(SpStr(i).Trim()) Then
    noDups.Add(SpStr(i).Trim())
    End If
    Next
    Dim uniqueItems As String() = New String(noDups.Count-1){}
    noDups.CopyTo(uniqueItems)
    Return String.Join(",", uniqueItems)
    End Function
    3.         Create another parameter that will be used for filtering the maindata.
    Please set the available value to be =Split(Code.RemoveDups(JOIN(Parameters!ISSUE_STATUS_TEMP.Value, ",")), ",")
    And the default value to be the value you what such as the first value:
    =Split(Code.RemoveDups(JOIN(Parameters!ISSUE_STATUS_TEMP.Value, ",")), ",").(0)
    4.         Go to the main dataset. Open the property window of this dataset.
    5.         In the “Filters” tab, set the filter to be:
    Expression: <The field to be filter>
    Operator: =
    Value: =Parameters!Region.Value
    The parameter “Region” should be the parameter we created in the step3.
    Now, we should get distinct values of SharePoint columns.
    If there is anything unclear, please feel free to ask.
    Thanks,
    Jin
    Jin Chen - MSFT

  • 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

  • [UIX] How To: Return multiple values from a LOV

    Hi gang
    I've been receiving a number of queries via email on how to return multiple items from a LOV using UIX thanks to earlier posts of mine on OTN. I'm unfortunately aware my previous posts on this are not that clear thanks to the nature of the forums Q&A type approach. So I thought I'd write one clear post, and then direct any queries to it from now on to save me time.
    Following is my solution to this problem. Please note it's just one method of many in skinning a cat. It's my understanding via chatting to Oracle employees that LOVs are to be changed in a future release of JDeveloper to be more like Oracle Forms LOVs, so my skinning skills may be rather bloody & crude very soon (already?).
    I'll base my example on the hr schema supplied with the standard RDBMS install.
    Say we have an UIX input-form screen to modify an employees record. The employees record has a department_id field and a fk to the departments table. Our requirement is to build a LOV for the department_id field such that we can link the employees record to any department_id in the database. In turn we want the department_name shown on the employees input form, so this must be returned via the LOV too.
    To meet this requirement follow these steps:
    1) In your ADF BC model project, create 2 EOs for employees and departments.
    2) Also in your model, create 2 VOs for the same EOs.
    3) Open your employees VO and create a new attribute DepartmentName. Check “selected in query”. In expressions type “(SELECT dept.department_name FROM departments dept WHERE dept.department_id = employees.department_id)”. Check Updateable “always”.
    4) Create a new empty UIX page in your ViewController project called editEmployees.uix.
    5) From the data control palette, drag and drop EmployeesView1 as an input-form. Notice that the new field DepartmentName is also included in the input-form.
    6) As the DepartmentName will be populated either from querying existing employees records, or via the LOV, disable the field as the user should not have the ability to edit it.
    7) Select the DepartmentId field and delete it. In the UI Model window delete the DepartmentId binding.
    8) From the data controls palette, drag and drop the DepartmentId field as a messageLovInput onto your page. Note in your application navigator a new UIX page lovWindow0.uix (or similar) has been created for you.
    9) While the lovWindow0.uix is still in italics (before you save it), rename the file to departmentsLov.uix.
    10) Back in your editEmployees.uix page, your messageLovInput source will look like the following:
    <messageLovInput
        model="${bindings.DepartmentId}"
        id="${bindings.DepartmentId.path}"
        destination="lovWindow0.uix"/>Change it to be:
    <messageLovInput
        model="${bindings.DepartmentId}"
        id="DepartmentId"
        destination="departmentsLov.uix"
        partialRenderMode="multiple"
        partialTargets="_uixState DepartmentName"/>11) Also change your DepartmentName source to look like the following:
    <messageTextInput
        id=”DepartmentName”
        model="${bindings.DepartmentName}"
        columns="10"
        disabled="true"/>12) Open your departmentsLov.uix page.
    13) In the data control palette, drag and drop the DepartmentId field of the DepartmentView1 as a LovTable into the Results area on your page.
    14) Notice in the UI Model window that the 3 binding controls have been created for you, an iterator, a range and a binding for DepartmentId.
    15) Right click on the DepartmentsLovUIModel node in the UI Model window, then create binding, display, and finally attribute. The attribute binding editor will pop up. In the select-an-iterator drop down select the DepartmentsView1Iterator. Now select DepartmentName in the attribute list and then the ok button.
    16) Note in the UI Model you now have a new binding called DCDefaultControl. Select this, and in the property palette change the Id to DepartmentName.
    17) View the LOV page’s source, and change the lovUpdate event as follows:
    <event name="lovSelect">
        <compound>
            <set value="${bindings.DepartmentId.inputValue}" target="${sessionScope}" property="MyAppDepartmentId" />
            <set value="${bindings.DepartmentName.inputValue}" target="${sessionScope}" property="MyAppDepartmentName" />
        </compound>
    </event>18) Return to editEmployees.uix source, and modify the lovUpdate event to look as follows:
    <event name="lovUpdate">
        <compound>
            <set value="${sessionScope.MyAppDepartmentId}" target="${bindings.DepartmentId}" property="inputValue"/>
            <set value="${sessionScope.MyAppDepartmentName}" target="${bindings.DepartmentName}" property="inputValue"/>     
        </compound>
    </event>That’s it. Now when you select a value in your LOV, it will return 2 (multiple!) values.
    A couple things to note:
    1) In the messageLovInput id field we don’t use the “.path” notation. This is mechanism for returning 1 value from the LOV and is useless for us.
    2) Again in the messageLovInput we supply “_uixState” as an entry in the partialTargets.
    3) We are relying on partial-page-refresh functionality to update multiple items on the screen.
    I’m not going to take the time out to explain these 3 points, but it’s worthwhile you learning more about them, especially the last 2, as a separate exercise.
    One other useful thing to do is, in your messageLovInput, include as a last entry in the partialTargets list “MessageBox”. In turn locate the messageBox control on your page (if any), and supply an id=”MessageBox”. This will allow the LOV to place any errors raised in the MessageBox and show them to the user.
    I hope this works for you :)
    Cheers,
    CM.

    Thanks Chris,
    It took me some time to find the information I needed, how to use return multiple values from a LOV popup window, then I found your post and all problems were solved. Its working perfectly, well, almost perfectly.
    Im always fighting with ADF-UIX, it never does the thing that I expect it to do, I guess its because I have a hard time letting go of the total control you have as a developer and let the framework take care of a few things.
    Anyway, I'm using your example to fill 5 fields at once, one of the fields being a messageChoice (a list with countries) with a LOV to a lookup table (id , country).
    I return the countryId from the popup LOV window, that works great, but it doesn't set the correct value in my messageChoice . I think its because its using the CountryId for the listbox index.
    So how can I select the correct value inside my messageChoice? Come to think of it, I dont realy think its LOV related...
    Can someone help me out out here?
    Kind regards
    Ido

  • How to get a value from a column inside a table

    Hi,
    I have got the following problem. I have got a table with some data inside. And a new column, which is not in the dataprovider. Now i search for an opportunity to go through the rows of the table and check the value of this column. I cant do this with the dataprovider or the rowset. My question is now how can i do this? The table object doesnt seem to have a corresponding method.
    Thanks in advance for help
    Acinonyx

    this is some code you can use (based on Winston's and others' tips):
    put this in you page bean:
    private HashSet selectedRows = new HashSet();
    public boolean isSelected() {
    TableRowDataProvider trdp = (TableRowDataProvider)getBean("currentRow");
    if (trdp == null) {
    return false;
    RowKey rowKey = trdp.getTableRow();
    if (this.selectedRows.contains(rowKey.getRowId()))
    return true;
    else
    return false;
    public void setSelected(boolean b) {
    TableRowDataProvider trdp = (TableRowDataProvider)getBean("currentRow");
    RowKey rowKey = trdp.getTableRow();
    if (checkbox1.isChecked()) {
    this.selectedRows.add(rowKey.getRowId());
    Object v = this.t_fotoDataProvider.getValue("fieldName", rowKey);
    } else {
    this.selectedRows.remove(rowKey.getRowId());
    and then bind the "selected" property of the checkbox column to the "selected" property of the page bean.
    Now, eveytime the page is submitted, you can do something useful, for example, in the setSelected() method (the row that starts with Object v = ... get's the value of some field corresponding to the checked row)
    Mauro

  • How to fix the value of first column in the JTable in java swing for every

    Hi ,
    I have a swing page that have table panel in which there is a table of size 7x4 now when I click on the perticulat row then that row data will displayin the table like that the selected row become the second column in the new table and the fist column of this table will remain constant for all the entry but the second column update according to the roe which is selected .How it is possible .
    Thanks in Advace,
    anu

    One thing you can do is to prevent the user from editing that column and programatically supply the values of that column yourself.
    JTable table = new JTable() {
       public boolean isCellEditable(int row, int col) {
           if(col == 0) {
              return false;
           return super.isCellEditable(row, col);
    };This allows you to prevent the user from editing the column information so you can supply some sort of a default value for the column always
    ICE

  • How will get subquery return multiple values and passing to the main query

    Hi all ;
    here i given one sql query
    1)select decode(a.FLG,'Y','yes','N','no','null')||'] '||a.p_type||' : '|| initcap(replace(substr(b.mgr,0,instr(b.mgr,'@')-1),'.',' '))||' - '||
    b.name||' ('|| substr(a.name,0,instr(a.name,'-')-1)||')'
    from table1 a
    join table3 c on c.emptype = a.emptype
    left outer join table2 b on a.name = b.name
    where a.mgrid = 100;
    if i run this above query returning multiple values depend on sa.mgr values.
    like output coming like this
    [yes]:2000-anbarasan
    [yes]:2700-anb
    [yes]:2000-rasan
    [yes]:2807-anbarasan
    [yes]:2700-anbanu
    [yes]:2000-null
    2) this sub query i am passing with main query
    select sa.mgrid,sa.sal,(select decode(a.FLG,'Y','yes','N','no','null')||'] '||a.p_type||' : '||
    initcap(replace(substr(b.mgr,0,instr(b.mgr,'@')-1),'.',' '))||' - '||
    b .name||' ('|| substr(a.name,0,instr(a.name,'-')-1)||')'
    from table1 a
    join table3 c on c.emptype = a.emptype
    left outer join table2 b on a.name = b.name
    where a.mgrid = 100)" test " from table4 sa,table5 te ,table6 ft where sa.id(+)=te.id and sa.mgr=ft.mgr;
    my final out put required like this:
    mgrid sal test
    100 20000 [yes]:2000-anbarasan
    [yes]:2700-anb
    [yes]:2000-rasan
    [yes]:2807-anbarasan
    [yes]:2700-anbanu
    [yes]:2000-null
    but i am getting erro:
    1)missing paranths-it solved
    2)single row subquery return more then one row.
    give me the correct solution.how will solve this problem
    Edited by: anbarasan on Sep 29, 2008 6:49 AM
    Edited by: anbarasan on Sep 29, 2008 6:51 AM
    Edited by: anbarasan on Sep 29, 2008 6:53 AM
    Edited by: anbarasan on Sep 29, 2008 6:56 AM
    Edited by: anbarasan on Sep 29, 2008 6:58 AM

    Hi,
    It doesn't look like you posted either the complete query or the complete error message (including line number). Try again.
    "single row subquery return more then one row" usually means you are using a sub-query in a place where a single expression is expected, for example the column called avg_sal in this query:
    SELECT  ename
    ,       sal
    ,       (SELECT  AVG (sal) FROM scott.dept WHERE deptno = e.deptno) AS avg_sal  -- Scalar-sub-query
    FROM    scott.emp  e; The error occurs when the sub-query returns more than one row
    If the sub-querry really is supoosed to be returning only one row, the solution is to fix the sub-query, usually be adding something to the WHERE clause.
    If the sub-query is supposed to return more than one row, then the main query has to be re-written, perhaps as a join.
    Post a little sample data and the results you want from that data if you need help.

  • How to return a value to parent unbounded taskflow?

    All
    I called a task flow in a page with a parameter and want to pass back a object in the task flow back to the page. How can i do this?
    Now i tried configure a return value in the taskflow.xml such as ${pageFlowScope.myOjbect} but i can not get the object in the main page?
    Any one can give tips?

    Hi,
    obviously you did it wrong with the return parameters
    1. The return value on the task flow identifies the object in the task flow to read the value from. For example #{pageFlowScope.attr1) reads the value from the task flow page flow scope attr1 valie
    2. On the task flow call activity, you map the return value - by its parameter id - with a managed bean property or memory scope to where the value gets copied to upon exit of the task flow. This then is a scope accessible from the ubounded task flow
    Frank
    Ps.: forget about the sessionScope suggestion mentioned before                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

Maybe you are looking for

  • How do you delete your apple ID forever

    HOw???

  • Question related to FLexUnit4

    I am currently using flexUnit4 writing test cases for our flex project.Here is the problem i  am testing the remoteOBject service calls.I have eventListeners for the  ResultEvent and FaultEvent.What i want is the when a fault occurs in  the service c

  • How to recreate a C structure in Java?

    Hi, I think most of u will be familiar with C structure data type. How do we recreate that in Java? For e.g there is a structure called Employee containing the foll. fields... struct Employee      int empId; char * empName;      and other fields; Sho

  • Calculating batch sizes using past and future data

    Hello all, I have been a business analyst for the past 10 years on SAP working in many of the different areas surrounding supplychain. I am looking for a way of ensuring that the business that I am working in are ordering parts in the most efficient

  • Info src  assigment in  RRI

    Hi All: I am doing an assigment for a query , which jumps to an R3 Tcode, but I do the source system assigment but cannot select any infosource?...can any one help...also if I dont select infosource a pop up comes when executing the jump ...making us