Updation of Column according to the selection of Combo Columnn of Matrix.

Hii Experts,
              I have a matrix with two columns.
              First column  is a combobox & validvalues are "Departmental,Contractor"
              Now I want that if one choose Departmental in 1st column then one could not write anything to 2nd column but in case of  Contractor ,one can write to  2nd column.
              But I could not Disable 2nd column because One can choose Departmental in row 1 & Contractor in row 2.
so this is the situation,How I should handle it?
Thanks,
Nabanita

This is basically the same. I can;t write out the exact code right now, so I will give you the algorithm I would use:
1. User selects combobox in column 1
2. User clicks on or moves focus on column 2 -> Check have they selected Departmental; if Yes allow event to continue (BubbleEvent = true). if No block the event (BubbleEvent = false) and click column 3  - therefore the cursor will be in the correct field
3. User clicks on or moves focus on column 3 -> Check have they selected Contractor; if Yes allow event to continue (BubbleEvent = true). if No block the event (BubbleEvent = false) and click column 2  - therefore the cursor will be in the correct field
Important to note, that for each step above I am working within the row level. I am only blocking or allowing the event on row x based on the selected value in column 1 of row x.

Similar Messages

  • Database adapter and column aliases in the select statement (10.1.3.1)

    Hi,
    Is it possible to use column aliases in the select statement for a database adapter to return an xml element name which is different to the column in the queried table?
    I have tried using
    SELECT EMPLOYEE_ID, FIRST_NAME AS MYNAME, LAST_NAME, SALARY, DEPARTMENT_ID, PHONE_NUMBER, EMAIL, HIRE_DATE FROM HR.EMPLOYEES WHERE (DEPARTMENT_ID = #DEPT_ID)
    but I get the following XML fragment returned
    <Employees>
    <employeeId>100</employeeId>
    <firstName xsi:nil="true" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>
    <lastName>King</lastName>
    <salary>24000</salary>
    Any pointers appreciated.
    Joel.

    That is really interesting.
    When I use the "custom sql" option in the DB adapter wizard, it used the aliases just fine in the return schema.
    Marc

  • Set the css style of text in a column according to the value of another col

    I'd like to set the css style of text in a column according to the value of another column. Each field may end up with a different style of text as a result, for instance.
    Any ideas? I looked thru the forums but couldn't find anything.
    Thanks,
    Linda

    Does the class=”t7Header” make it into the rendered HTML?
    ---The text "class="tHeader" does not show but the other text is rendered using the style t7Header as defined in the stylesheet! Exactly what I wanted.
    You might want to use a div or a span instead of a p.
    ---Yes -
    What's very cool is we can create a display column that is dynamically filled with the html and style wrappers based on a lookup to see what style should be applied according to the actual data value. This is critical as our tables are all dynamic so I can't depend on using the additional APEX methods to control the display of a column (as the # of columns in the view vary from instance to instance) and I did not want the display specs to muddy up my SQL queries.
    I wonder why this is not well documented. It is so easy!
    Thanks again for your help.
    Linda

  • Invalid batch according to the selection criteria in batch determination

    Good day to all!
    I am trying to Post Goods Issue in my Delivery but I cannot proceed because of the Batch. When I am trying to use a Batch in the Picking tab of Delivery Create Overview, this message appears: Invalid batch <BATCH NAME>according to the selection criteria in batch determination. Do you have any idea how to resolve this? Thanks!

    you work with batches,
    and your system is customized to check if a manually entered batch fulfills the  criteria of your batch determination.
    This is not the case, hence you get the error message.
    So you have to decide whether your batch determinatiion selection criteria wrong, or if the customizing to check this criteria is unwanted, or if you better do not send this chosen batch to your customer as it may result in a return.

  • Show different dropdownlists according to the selected value

    Hi All,
    I need pop up a different dropdownlist according to the selected item in one dropdownlist.
    .e.g. if I select state in one dropdownlist, another dropdownlist contains all the states will show up beside it.
    Any one can help me?
    Thanks a lot

    There are two ways of doing it. Both involve javascript
    1 - capture the onchange event of the first dropdown. Submit the page, and reload it with the correct values for the second dropdown list
    2 - If there aren't that many different options, you can download all the different option lists into your page. Capture the onchange event of the first dropdown, and then use javascript to set the values in the second dropdown box.
    Both have pros and cons. The first option requires a page refresh. The second one requires that you download all possible options to the page.
    Good luck,
    evnafets

  • Latest update returns error " None of the selected updates could be installed. The update could not be expanded, and may have been corrupted during downloading. The update will be downloaded and checked again the next time that Software Update runs."

    Latest update returns error " None of the selected updates could be installed. The update could not be expanded, and may have been corrupted during downloading. The update will be downloaded and checked again the next time that Software Update runs."

    Which latest update? Details get answers. Rather than using SU, DL and install from http://support.apple.com/downloads/.

  • Enable/disable operation buttons according to the selected row in table?

    Hi,
    I used JDev 11.1.1.2.0
    On my main page, it has a query section and display search result to a table component, and also has some operation buttons like (update/delete) on the toolbar.
    I want to enable/disable the operation buttons according to some filed value of the selected row in the table, and I searched the OTN forum, found more questions like this but seemed no found one right solution.
    The table is single selection, and has a status column, its data type is Integer, and I want to enable buttons when the selected row's status field value is 0 or 1, disable buttons when status value is other values.
    Table code like:
    <af:table value="#{bindings.VO1.collectionModel}" var="row"
    rows="#{bindings.VO1.rangeSize}"
    emptyText="#{bindingsVO1.viewable ? 'No data to display.' : 'Access Denied.'}"
    fetchSize="#{bindings.VO1.rangeSize}"
    rowBandingInterval="0"
    filterModel="#{bindings.VOCriteriaQuery.queryDescriptor}"
    queryListener="#{bindings.VOCriteriaQuery.processQuery}"
    filterVisible="true" varStatus="vs"
    selectedRowKeys="#{bindings.VO1.collectionModel.selectedRow}"
    selectionListener="#{bindings.VO1.collectionModel.makeCurrent}"
    rowSelection="single" id="resId1">
    Operation buttons code like:
    <af:commandToolbarButton text="Update" id="ctb2" action="editDAF"/>
    Any suggestion will be great help.
    Thanks,
    zeroxin

    Hi,
    create an attribute binding in the PageDef file for the status field. Then setup the button PartialTriggers property to point to the table ID. The button's disabled property then points to the status attribute binding like
    #{bindings.statusField.inputValue=='value'}
    Frank

  • Update one column while getting the value in another column

    Is it possible to in one single SQL statement update two columns in a table while at the same time obtaining the value of another column, on the same row, in the same table, and independently (that is, the update of the columns has nothing to do with the data that I want from another column)*?* Of course, I can do this in two operations, one being a "select" and the other one being an "update", but since I am in the same table and even on the same row, is it really necessary to make TWO database calls? That's why I want to combine the the two SQL-statements, for reasons of presumed effiency.

    jsun wrote:
    Is it possible to in one single SQL statement update two columns in a table while at the same time obtaining the value of another column, on the same row, in the same table, and independently (that is, the update of the columns has nothing to do with the data that I want from another column)*?* Of course, I can do this in two operations, one being a "select" and the other one being an "update", but since I am in the same table and even on the same row, is it really necessary to make TWO database calls? That's why I want to combine the the two SQL-statements, for reasons of presumed effiency.Two statements != two database calls.
    At least not in terms of SQL.
    JDBC requires a 'statement' but in SQL (depending on the data source) that can include multiple statements. An obvious example of this is a stored proc but there are other ways as well.

  • Run time Column Name in the Select Statement

    Hi there,
    I face problem while writing sql statment for report in the Oracle reports.
    The prom is I want to bound the where clause column name with the value stored in a variable e.g.
    Select * from emp
    where Column_Name = 'XYZ' ;
    where the variable Column_Name have different values at different times, e.g.
    At a time the value of Column_Name is Dept then
    Select * from emp
    where Dept = 'XYZ' ;
    At other time value of Column_Name is City then
    Select * from emp
    where City = 'XYZ' ;
    Waiting for the response .
    Regards,
    Hafeez

    Hi,
    U can use lexical parameters for the solutions.U must be aware of it, but still i describe how to work it out.
    1)In your datamodel in object navigator create a parameter under User parameter node.Name the parameter, for eg. p_clause.
    set data type of parameter to character.
    2)write a select query eg.
    select * from emp &p_clause; --(THIS IS THE PARAMETER WE CREATED ABOVE)
    3)Now run your report
    Now in your parameter form pass the value for p_clause parameter.
    eg: where name='JACK';
    or
    where city='NEWYORK';
    or where deptno=10;
    But do it in steps as above mentioned.
    Do tell me if it works or not via mail on [email protected]
    Enjoy.......
    navneet jain
    [email protected]

  • How to get the column index of the selected column

    Hi All,
    I have a dynamically populated advanceddatagrid. Iam trying to edit any column of a particular row. In my as file im able to get the row index using selecteditem property. But I need to get the column Index and the updated value of the column to be passed from the as file to the java method.
    So that I can update the DB with the updated value. Can somebody help with a sample code.

    ...then index 0 becomes index 1 and my program doesn't work properlyThe program works properly, just not as you expect it to.
    As you've noticed the table gives you the flexibility to move columns around. So if you move column 0 to column 1, why would you expect to still use 0 as the index? The table manages the reordering of columns for you to make sure the data being displayed in each table column comes from the correct column in the data model.
    You can manage this yourself using one of the following methods (I forget which one):
    table.convertColumnIndexToModel(int viewColumnIndex)
    table.convertColumnIndexToView(int modelColumnIndex)
    Or, you can get data from the data model directly:
    table.getModel().getValueAt(row, 0);

  • ADF Mobile updating a column for all the rows

    Hi Every one,
    This is My ADFMobile Usecase:
    In My use case, I created DB Webservices  and created a  datContol on it .
    I have few AMX pages in my Taskflow.
    1st page: Authentication page with userid and p/w.
    2nd page:Need to get DeptID as  LOV and a submit button.
    3rd Page:Need to get all Employees in that Department. Need to get Empl_name, Empl_Id, Empl_salary and Empl_ Attendence. and a SYNC Button.
    Up to now every thing is fine.
    But I need to change  Empl_Attendence Column As absent or Present . I used  SelectOneChoice. Default there will be PRESENT value in back end.So after Selecting  SlectOneChoice the value (Absent) should Automatically update in DB for that row.
    Requirement:
    So How to write logic for the SYNC button to update the Empl_ Attendence for all the rows at a time.
    Thanks In Advance
    Regards
    Varma.

    Hi Every one,
    This is My ADFMobile Usecase:
    In My use case, I created DB Webservices  and created a  datContol on it .
    I have few AMX pages in my Taskflow.
    1st page: Authentication page with userid and p/w.
    2nd page:Need to get DeptID as  LOV and a submit button.
    3rd Page:Need to get all Employees in that Department. Need to get Empl_name, Empl_Id, Empl_salary and Empl_ Attendence. and a SYNC Button.
    Up to now every thing is fine.
    But I need to change  Empl_Attendence Column As absent or Present . I used  SelectOneChoice. Default there will be PRESENT value in back end.So after Selecting  SlectOneChoice the value (Absent) should Automatically update in DB for that row.
    Requirement:
    So How to write logic for the SYNC button to update the Empl_ Attendence for all the rows at a time.
    Thanks In Advance
    Regards
    Varma.

  • [WPF] Show ComboBox or DatePicker according to the selected value in a combobox

    Hi,
    in my DataGrid:
    1) in one column I have a ComboBox: item1, item2
    2) in another column I would show a:
    - a list if the user select item1 in the ComboBox 
    - a datepicker if the user select item2 in the Combobox 
    In XAML i have:
    <!-- COLUMN 1 -->
    <DataGridTemplateColumn Header="{StaticResource datagridScheduled}" SortMemberPath="Type.Description">
    <DataGridTemplateColumn.CellTemplate >
    <DataTemplate>
    <TextBlock Name="dgScheduleType" Text="{Binding Type.Description, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
    </DataTemplate>
    </DataGridTemplateColumn.CellTemplate>
    <DataGridTemplateColumn.CellEditingTemplate>
    <DataTemplate>
    <ComboBox Name="dgCmbTypeOfSchedule"
    ItemsSource="{Binding Source={StaticResource DomainDataViewModel}, Path=SchedTypes}"
    SelectedItem="{Binding Type, Mode=TwoWay}"
    SelectedValue="{Binding Type.Description}"
    DisplayMemberPath="Description"
    SelectedValuePath="Description">
    </ComboBox>
    </DataTemplate>
    </DataGridTemplateColumn.CellEditingTemplate>
    </DataGridTemplateColumn>
    <!-- COLUMN 2 -->
    <DataGridTemplateColumn Header="{StaticResource datagridDay}">
    <DataGridTemplateColumn.CellTemplate>
    <DataTemplate>
    <TextBlock Text="{Binding Day, Mode=TwoWay}" />
    </DataTemplate>
    </DataGridTemplateColumn.CellTemplate>
    <DataGridTemplateColumn.CellEditingTemplate>
    <DataTemplate>
    <ComboBox Name="dgCmbDay" DataContext="{Binding}" SelectedItem="{Binding Day}">
    <ComboBox.ItemsSource>
    <MultiBinding Converter="{StaticResource DateNumNameConverter}" >
    <MultiBinding.Bindings>
    <Binding ElementName="dgPlan" Path="CurrentItem"/>
    <Binding Source="{StaticResource AnalysisPlanViewModel}" Path="ListDayNameOfWeek"/>
    <Binding Source="{StaticResource AnalysisPlanViewModel}" Path="ListDayNumOfMonth"/>        
    <Binding Path="Items"></Binding>
    </MultiBinding.Bindings>
    </MultiBinding>
    </ComboBox.ItemsSource>
    </ComboBox>
    </DataTemplate>
    </DataGridTemplateColumn.CellEditingTemplate>
    </DataGridTemplateColumn>
    In my Convert, I check the value select in dgCmbTypeOfSchedule and the convert returns one list or the other.
    But, If I would that the convert returns a datepicker, it's possibile?
    Thanks.

    Hello robertino_salemi,
    It is a depended on the meaning of your "datepicker" and I know some articles which can be shared to you. Please check the following blog first to see how to convert datapicker value:
    https://michaelmairegger.wordpress.com/2010/02/01/binding-null-value-of-datetime-to-datepicker/
    And also the following place:
    http://stackoverflow.com/questions/4542291/datepicker-selecteddate-not-changing-when-text-is-input
    As you can see, we can use the following converter:
    public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
    string strValue = System.Convert.ToString(value);
    DateTime resultDateTime;
    if (DateTime.TryParse(strValue, out resultDateTime))
    return resultDateTime;
    return value;
    <Controls:DatePicker
    Text="{Binding OrderDate,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"
    SelectedDate="{Binding RelativeSource={RelativeSource Self},Path=Text,
    Converter={StaticResource DateConverter}}">
    So if you want to convert datapicker date, I think it is OK. If you want to show or hide a datepicker, it is also OK. But what do you mean of "convert returns a datepicker", return a control?
    Best regards,
    Barry
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Bugreport: Seed updates all languages, not only the selected one

    I just encountered a "Bug" when seeding a multilingual translation.
    It looks as if SEED would insert only values for the chosen language mapping (good!), but in case of an update overwrite the values in all languages, not only the chosen one.
    I know it is not that bad, but causes some irregular statistics after seeding.
    e.g. my applications main language is "eo", language mappings for "en", "de", "es".
    When i change a single text (e.g. button label) in the main app and do a seed for "en" i get "3 existing attributes updated and may require translation" (because there are 3 languages...). when i do a seed for "de" right afterwards i get "0 existing attributes updated and may require translation".
    brgds,
    Peter
    Blog: http://www.oracle-and-apex.com
    ApexLib: http://apexlib.oracleapex.info
    BuilderPlugin: http://builderplugin.oracleapex.info
    Work: http://www.click-click.at

    Apparently you have more choice than you are aware of. Thunderbird has three ways to sear messages.
    I am guessing from what you say that you want to '''find''' (Ctrl + Shift + F) instead of '''global search''' (Ctrl+K) or '''quick filter''' (Ctrl + Shift + K)
    Note that global search offers options
    <img alt="" src="https://support.cdn.mozilla.net/media/uploads/images/2014-08-25-16-49-59-21b72c.png" height="106" width="217">
    First your messages
    Then the internet
    Then people in your address book
    ''Yes I know your a mac user, but they tell me macs have a CTRL key these days an you do not need to use3 command''

  • Update interactive report according to the filter of the user

    Hi all
    i'm working with Apex version 4.2/
    i have an interactive rport page as we know it allows the user to make filtering ans sorting
    I want to do as follow :
    i created an interactive report in table
    CREATE TABLE EMP
      EMPNO     NUMBER(4)                           NOT NULL,
      ENAME     VARCHAR2(10 BYTE),
      JOB       VARCHAR2(9 BYTE),
      MGR       NUMBER(4),
      HIREDATE  DATE,
      SAL       NUMBER(7,2),
      COMM      NUMBER(7,2),
      DEPTNO    NUMBER(2))
    ALTER TABLE EMP ADD (
      PRIMARY KEY
    (EMPNO)now i've created a new region called update_all_region with two text field items.
    p30_sal 
    p30_deptno
    and an update_all button .lets take a look at the scenario :
    lets say that the user doing sort on the IRR lets say give all the employees where the sal >10000.
    lets say that the report return 100 rows to the result , result per page : 50.
    now i'm entering in the update_all_region text field item the values :
    p30_sal : 90000
    p30_deptno : 30 and pressing the update_all button .i want that all the rows which appears in the report (total = 100) will be update.
    i've tried to do this :
    begin
    FOR i IN 1..APEX_APPLICATION.G_F02.COUNT
    LOOP
    update emp
      set salary =  :p30_salary ,
      deptno= :p30_deptno
    where employee_id  = apex_application.g_f02(i);
    END LOOP;
    commit;
    end;problem :
    this update only updates the 50 rows in the current page that i'm in it. and not the all 100 .
    question :
    is this the correct way to do this update , form whatt i've understood , i can take the object filter as a variable , and use it in order to update the table.
    please you advice
    Thanks In Advanced
    Naama

    Either write a classic report and implement your own filters, and use those on your update function, or try to retrieve the where clause Apex uses in the IR.
    This blog from Stew should help you on your way:
    http://stewstools.wordpress.com/2009/02/19/get-ir-where-clause/

  • How  the condition of combo box of matrix can be passed in query

    Hi,
    I want to get the parameter code and description for a particular category. Category code is in the matrix combo box  if i pass tat field in a where condition i cant retrieve the parameter code but its working in the database. Please identify the mistake and correct it.
    Private Sub Addcomboparam(ByVal oCombo As SAPbouiCOM.Column)
            Try
                Dim RS As SAPbobsCOM.Recordset
                'Dim Bob As SAPbobsCOM.SBObob
                RS = Ocompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset)
                'Bob = Ocompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoBridge)
                RS.DoQuery("select Code,U_paradesc from [@PSSIT_QCPARAMETER] where U_catcode='" & txtcatcode.Selected.Value.ToString() & "'")
                RS.MoveFirst()
                While RS.EoF = False
                    oCombo.ValidValues.Add(RS.Fields.Item("Code").Value, RS.Fields.Item("U_paradesc").Value)
                    RS.MoveNext()
                End While
            Catch ex As Exception
                MessageBox.Show(ex.Message)
            End Try
        End Sub
    Regards,
    Madhavi

    I think that the problem is, that you accesed
    txtcatcode.Selected.Value.ToString
    but txtcatcode isnt declared.
    try to do it as
    dim x as string
    x = txtcatcode.Selected.Value.ToString
    and to seccond line add watch and breakpoint.
    what you have in x variable? Or use try catch statement for receive error.
    Petr

Maybe you are looking for