Custom Matrix column sort

Hi Professionals!
I have a column field as "Age group" in a matrix. I want to sort the order in Ascending. I have given my column field values below in the expression which I have used in the column group properties --> sort but its not working. Can you please
help me to get the required result.
=switch(
 Fields!Age_Group.Value = "Less than 18","1",
 Fields!Age_Group.Value = "18-25", "2",
 Fields!Age_Group.Value = "26-34", "3",
 Fields!Age_Group.Value = "35-44","4",
 Fields!Age_Group.Value = "45-54","5",
 Fields!Age_Group.Value = "55-64", "6",
 Fields!Age_Group.Value = "Greater than 65","7")
Thanks!
sush

Susheel for the same you mentioned =switch(
 Fields!Age_Group.Value = "Less than 18","1",
 Fields!Age_Group.Value = "18-25", "2",
 Fields!Age_Group.Value = "26-34", "3",
 Fields!Age_Group.Value = "35-44","4",
 Fields!Age_Group.Value = "45-54","5",
 Fields!Age_Group.Value = "55-64", "6",
 Fields!Age_Group.Value = "Greater than 65","7")
try going that column and in placeholder properties --> go to number tab --> and select as number. 
Also try going to text box properties --> interactive sorting window.
Thanks

Similar Messages

  • Matrix column sort

    Hi!
    I need to sort the column of a matrix as a result of clicking on the column header.
    How can I do?
    Thanks

    The thread above does not help me because my problem is how to sort without having to reenter every time all the rows in the Matrix. Currently I am doing so but this solution is little performance:
    For i As Integer = 0 To Me.frmRicercaArticoliDocDT.DefaultView.Count - 1
                                                oMat.Columns.Item("0").Cells.Item(i + 1).Specific.String = i + 1
                                                oMat.Columns.Item("ItemCode").Cells.Item(i + 1).Specific.String = Me.frmRicercaArticoliDocDT.DefaultView.Item(i).Item("U_ItemCode").ToString
                                                oMat.Columns.Item("ItemName").Cells.Item(i + 1).Specific.String = Me.frmRicercaArticoliDocDT.DefaultView.Item(i).Item("ItemName").ToString
                                                oMat.Columns.Item("OnHand").Cells.Item(i + 1).Specific.String = Me.frmRicercaArticoliDocDT.DefaultView.Item(i).Item("OnHand").ToString
                                                oMat.Columns.Item("UM").Cells.Item(i + 1).Specific.String = Me.frmRicercaArticoliDocDT.DefaultView.Item(i).Item("U_UM").ToString.ToUpper
                                                oMat.Columns.Item("PrezzoUnit").Cells.Item(i + 1).Specific.String = Me.frmRicercaArticoliDocDT.DefaultView.Item(i).Item("U_PrzUnit").ToString & " " & Me.frmRicercaArticoliDocDT.DefaultView.Item(i).Item("U_Divisa").ToString
    Next
    oMat.AutoResizeColumns()

  • Customizing column sorting in new jsf table

    The new JSF table in the creator 2 is great. I like it. It includes so many out of the box features. It is the reason we use the creator for our current project.
    But I cannot figure out how to customize the column sorting.
    Why do I need column sorting?
    I need to sort a column that can include ad IP address or a host name. Our customer can either use a host name or an IP address to address a device in the network, both in the same column.
    Now sorting an IP address is already difficult. It is actually a sort over a 4 byte number. Sorting over host names is normal alphabetic string sorting.
    How to sort over both in the same column?
    This cannot be done using standard sorting. I need to use a validator or something similar to customize the sorting of this column.
    Can anybody help me with a hint if:
    1- Customizing sorting over a column is possible. (I really would like to keep all other sorting features (icons, multi column support...)).
    2- A hint or code sample, how to do this.
    If this is not possible, I urge the creator team to think of implementing this soon. Otherwise one killer feature of the creator 2 will lose a lot of its teeth.

    Thx mayagiri for your reply!
    But including the src-code for the dataprovider package into a test project, and debugging in the creator-ide has done the thing!
    Here our solution:
    Class ToCompare is the object type which address field displayed in a page, simply containing a table with 2 adress colums, that can be sorted either according to our ip/hostname-comparison or according to String.compare().
    * ToCompare.java
    * Created on 10. Februar 2006, 10:41
    * This class is a basic model object,
    * with a field - String address - according
    * to which it shall be sortable.
    package comparator;
    * @author mock
    public class ToCompare {
         * holds the IP or Host address
        private String address=null;
         * Instance of a Comparator class that
         * provides our sorting algorithm
        private RcHostComparator hostComparator=null;
        /** Creates a new instance of ToCompare */   
        public ToCompare() {
            this("defaultHost");       
         * when creating a new ToCompare instance,
         * the hostComparator is created for it
         *  @ param aAddress - IP or Hostname
        public ToCompare(String aAddress) {
            address=aAddress;
            hostComparator=new RcHostComparator(address);
        public String getAddress() {
            return address;
        public RcHostComparator getHostComparator() {
            return hostComparator;
    }Here the code of the Class RcHostComparator, it is created with the address field of the ToCompare object that it holds. It first checks if the address field is an IP or not, and then chooses the comparison algorithm according to its own field state and the field state of the object to compare to:
    * RcHostComparator.java
    * Created on 10. Februar 2006, 10:43
    *  This class is used to provide a method for
    *  comparing objects that have an address field,
    *  containing either IP adresses or hostnames.
    package comparator;
    import java.text.CollationKey;
    import java.text.Collator;
    import java.util.Comparator;
    import java.util.Locale;
    * @author mock
    public class RcHostComparator implements Comparator
         * holds the IP or Host address
        private String address=null;
         * Is the address an IP
        private boolean isIPAddress=false;
         * if (!isIPAddress) this is created out of the address
         * to provide a performant way of comparing it with another
         * CollationKey, in order to sort Strings localized
         *  @ see java.text.Collator
         *  @ see java.text.CollationKey
        private CollationKey hostnameCollationKey=null;
         * if (isIPAddress) this array holds
         * the 4 byte of the Ip address to compare
        private int[] intValues=null;
         * minimum for IP bytes/ints
        private static final int minIntValue=0;
         * maximum for IP bytes/ints
        private static final int maxIntValue=255;
         * Creates a new instance of IpComparator
         *  @ param aAddress  - holds the IP or Host address
        public RcHostComparator(String aAddress) {
            address=aAddress;
             * check if address is an IP
            isIPAddress=checkIP();
             * if Hostname -> instantiate localized CollationKeys
            if(!isIPAddress){
                 Collator _localeCollator=Collator.getInstance(Locale.getDefault());
                 hostnameCollationKey=_localeCollator.getCollationKey(address);
            }else{}
         *  Here the comparison of the address fields is done.
         *  There a 4 cases:
         *  -1 both Hostnames
         *  -2 aObject1 IP, aObject2 Hostname
         *  -3 aObject1 Hostname, aObject2 IP
         *  -4 both IPs
         *  @ param aObject1, aObject2 - Comparator objects
        public int compare(Object aObject1, Object aObject2)
          int _result= 0;
          if(aObject1 instanceof RcHostComparator && aObject2 instanceof RcHostComparator )
               RcHostComparator _ipComparator1=(RcHostComparator)aObject1;
               RcHostComparator _ipComparator2=(RcHostComparator)aObject2;
               *  Compare algorithms, according to address types
               if(!_ipComparator1.isIPAddress()&&!_ipComparator2.isIPAddress()){
                       *  If both addresses are Strings use collationKey.compareTo(Object o)
                    _result=_ipComparator1.getHostnameCollationKey().compareTo(_ipComparator2.getHostnameCollationKey());
               }else{
                       *  IPs are smaller than Strings -> aObject1 < aObject2
                    if(_ipComparator1.isIPAddress()&&!_ipComparator2.isIPAddress()){
                         _result=-1;
                    }else{
                                *  IPs are smaller than Strings -> aObject1 > aObject2
                         if(!_ipComparator1.isIPAddress()){
                              _result=1;
                         }else{
                             int _intIndex=0;
                             int[] _int1=_ipComparator1.getIntValues();
                             int[] _int2=_ipComparator2.getIntValues();
                                      * compare IP adresses per bytes
                             while(_result==0 && _intIndex<4){
                                  if(_int1[_intIndex]>_int2[_intIndex]){
                                       _result=1;
                                  }else if(_int1[_intIndex]<_int2[_intIndex]){
                                       _result=-1;
                                  }else{}                            
                                             _intIndex++;
          }else{}   
          return _result;
         *  checks if the address field holds an IP or a hostname
         *  if (_isIP) fill intValues[] with IP bytes
         *  if (!isIP)  create hostnameCollationKey
        private boolean checkIP(){
           boolean _isIP=false;
           String[] _getInts=null;
            *  basic check for IP address pattern
            *  4 digits also allowed, cause leading
            *  0 stands for octet number ->
            *  0172=122                  ->
            *  0172.0172.0172.0172 = 122.122.122.122
           boolean _firstcheck=address.matches("[0-9]{1,4}\\.[0-9]{1,4}\\.[0-9]{1,4}\\.[0-9]{1,4}");
           if(_firstcheck){
                _getInts=address.split("\\.");           
                intValues=new int[4];
                for (int _count=0; _count<4; _count++){
                   try{                     
                       int _toIntValue;
                       if(_getInts[_count].startsWith("0")){
                                // if leading 0 parse as octet -> radix=8
                               _toIntValue=Integer.parseInt(_getInts[_count], 8);                          
                       }else{  
                                // parse as is -> radix=10 -> (optional)
                               _toIntValue=Integer.parseInt(_getInts[_count]);                          
                       if(_toIntValue<minIntValue||_toIntValue>maxIntValue){
                              // out of unsigned byte range -> no IP
                              return _isIP;
                       }else{
                              // inside byte range -> could be part of an IP
                              intValues[_count]=_toIntValue;
                   }catch(NumberFormatException e){
                           // not parseable -> no IP
                           return _isIP;
               // all 4 bytes/ints are parseable and in unsigned byte range -> this is an IP
                _isIP=true;
           }else{}      
           return _isIP;
        public boolean isIPAddress() {
                return isIPAddress;
        public int[] getIntValues() {
                return intValues;
        public CollationKey getHostnameCollationKey() {
                return hostnameCollationKey;
        public String getAddress()
            return address;
    }The page bean holds an array of ToCompare objects. It is the model for a new table component, hold by an ObjectArrayDataProvider. Here a code excerpt:
    public class Page1 extends AbstractPageBean
        private ToCompare[] toCompare= new ToCompare[]{
            new ToCompare("1.1.1.1"),
            new ToCompare("2.1.1.1"),
            new ToCompare("9.1.1.1"),
            new ToCompare("11.1.1.1"),
            new ToCompare("0172.0172.0172.0172"),
            new ToCompare("123.1.1.1"),
            new ToCompare("a"),
            new ToCompare("o"),
            new ToCompare("u"),
            new ToCompare("z"),
            new ToCompare("�"),      
            new ToCompare("�"),
            new ToCompare("�")        
         * This method is automatically generated, so any user-specified code inserted
         * here is subject to being replaced
        private void _init() throws Exception
            objectArrayDataProvider1.setArray(toCompare);
        private TableRowGroup tableRowGroup1 = new TableRowGroup();   
        private ObjectArrayDataProvider objectArrayDataProvider1 = new ObjectArrayDataProvider();
    }The relevant .jsp section for the two column table looks like:
    <ui:tableRowGroup binding="#{Page1.tableRowGroup1}" id="tableRowGroup1" rows="10" sourceData="#{Page1.objectArrayDataProvider1}" sourceVar="currentRow">
      <ui:tableColumn binding="#{Page1.tableColumn1}" headerText="SortIP" id="tableColumn1" sort="#{currentRow.value['hostComparator']}">
        <ui:staticText binding="#{Page1.staticText1}" id="staticText1" text="#{currentRow.value['address']}"/>
      </ui:tableColumn>
      <ui:tableColumn binding="#{Page1.tableColumn2}" headerText="SortString" id="tableColumn2" sort="address">
        <ui:staticText binding="#{Page1.staticText2}" id="staticText2" text="#{currentRow.value['address']}"/>
      </ui:tableColumn>
    </ui:tableRowGroup>Sorting localized with Locale="DE_de" according to ip/hostcompare sorts:
    SortIP
    1.1.1.1
    2.1.1.1
    9.1.1.1
    11.1.1.1
    0172.0172.0172.0172
    123.1.1.1
    a

    o

    u

    zWhereas normal sort over String address whitout localization sorts:
    SortString
    0172.0172.0172.0172
    1.1.1.1
    11.1.1.1
    123.1.1.1
    2.1.1.1
    9.1.1.1
    a
    o
    u
    z


    �Not that short, but I hope it will help - if anyone has the need for another than the default sorting algorithms
    Best regards,
    Hate E. Lee

  • Interactive Report wide Column Sorting hangs in Internet Explorer

    I have an application that contains an interactive report. The Column Sorting and Filtering functions work fine in Firefox. However, if I try to sort a wide (110 byte - it contains a hyperlink) column in Internet Explorer, APEX produces the 'loading data' image and then hangs. Even a sort of a narrow (3 byte) column is noticeably slower in Internet Explorer than in Firefox.
    We are running APEX 3.1.1 on Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production with the Partitioning, OLAP, Data Mining and Real Application Testing options

    Hello,
    I answer you over your post.
    Joe Bertram wrote:
    Hi,
    That's an interesting issue. What kind of images are these? Are they the default images installed or are they your custom set of images?The images are png files included as they were icons into the table.
    >
    You say the images disappear when you sort the report. Does it happen when you sort on demand in the dashboard or when you sort it in the report itself? Or both?Only when sort from the dashboard. From the report itself, the answers works fine.
    >
    What are your environment details?Server:
    OBI 10.1.3.4.1.090414.1900
    Windows 2003 server
    JDK 1.6.0.17
    Thin Client:
    Internet explorer 8
    >
    Thanks for the extra info.
    Best regards,
    -JoeIt happens also in other two environments (Development and Pre-production) with the same SW architecture.
    Thanks for your time.

  • SSRS 2008R2 : Not able to use Previous aggregrate function in matrix columns cell

    Hi Expert,
    I have used a matrix tablix in my report. It is working fine. But when I am trying to use Previous aggregrate in one matrix column cell I get the below error:
    The use of previous aggregrate function ia a tablix cell with in 'Tablix1' is not supported.
    Please help me regarding that.
    Thanks Rana

    Hi Rana,
    In your scenario, you use previous function in the “Data” cell, right? Previous function cannot be used in the overlapping parts of row group and column group. One workaround of this issue is use custom code to get the previous value.
    Public Shared previous as Integer
    Public Shared current as Integer
      Public Shared Function GetCurrent(Item as Integer) as Integer
         previous=current
         current=Item
         return current
      End Function
      Public Shared Function GetPrevious()
         return previous
      End Function
    Then you can use the expression below in the “Data” cell to get the previous value:
    =Code.GetCurrent(fields!Score.Value) & "-Previous-" & iif(Code.GetPrevious()=0,"",Code.GetPrevious())
    If you have any questions, please feel free to ask.
    Regards,
    Charlie Liao
    TechNet Community Support

  • Matrix Columns reset in Documents

    My customer continues to lose the setting on the width of the doucment columns. This morning, the quote, sales order, invoice and purchase order matrix columns had all reset.
    Has anyone else ever seen this?

    You may check this thread:
    User Settings lost after session is released
    Thanks,
    Gordon

  • Listview column sort

    I have code that allows a user to sort columns in a listview. I use it in many forms around my windows project. It works nicely on all pages and searching through the listview works nicely except for one page the searching is slowed down enormously when
    the column sorting is enabled but sorting works fine. Below is the code for that page.
    I allow the users to search in the search box on top (not showing but it was a textbox the user can type in and it searches in the listview) and then it reloads the listview on bottom based on the search criteria.
    Also the user can click on the column header in the listview and it will sort the columns….
    SEARCH
    private void ProductSearch_TextChanged(object sender,
    EventArgs e)
                ProductsSearch(btnAdvancedSearch.Text);
    private void ProductsSearch(string filterOption)
    StringBuilder sb = new
    StringBuilder();
    string ID = txtItemID.Text.EscapeLikeValue();
    string Name1 = txtItemName1.Text.EscapeLikeValue();
    string Name2 = txtItemName2.Text.EscapeLikeValue();
    string Name3 = txtItemName3.Text.EscapeLikeValue();
    if (ID.Length > 0)
                    sb.Append("ITEMSTRING like '" + ID +
    if (Name1.Length > 0)
    if (sb.Length > 0)
                        sb.Append(" and ");
    switch (filterOption)
    case "Basic Search":
                            sb.Append("' ' + Description
    like '%" + Name1 + "%'");
    break;
    case "Advanced Search":
                            sb.Append("Description like
    '" + Name1 + "%'");
    break;
    if (Name2.Length > 0)
    if (sb.Length > 0)
                        sb.Append(" and ");
    switch (filterOption)
    case "Basic Search":
                            sb.Append("' ' + Description
    like '% " + Name2 + "%'");
                            break;
    case "Advanced Search":
                            sb.Append("Description like
    '% " + Name2 + "%'");
    break;
    if (Name3.Length > 0)
    if (sb.Length > 0)
                        sb.Append(" and ");
    switch (filterOption)
    case "Basic Search":
                            sb.Append("' ' + Description
    like '% " + Name3 + "%'");
    break;
    case "Advanced Search":
                            sb.Append("Description like
    '% " + Name3 + "%'");
    break;
                lsvItems.Items.Clear();
                dtProducts.DefaultView.RowFilter = sb.ToString();
    foreach (DataRow row
    in dtProducts.Select(sb.ToString()))
    ListViewItem lvi = new
    ListViewItem(row["Item"].ToString());
                    lvi.SubItems.Add(row["Description"].ToString());
                    lvi.SubItems.Add(row["Cost"].ToString());
                    lvi.SubItems.Add(row["Price"].ToString());
                    lsvItems.Items.Add(lvi);
    if (dtProducts.DefaultView.Count <= 0)
    Validation.ShowMessage(Main.lblStatus,
    "No items match your search.");
    SORTING
    public Form1()
                InitializeComponent();
                lsvColumnSorter =
    new ListViewColumnSorter(0);
    this.lsvItems.ListViewItemSorter = lsvColumnSorter;
    private ListViewColumnSorter lsvColumnSorter;
    private void lsvItems_ColumnClick(object sender,
    ColumnClickEventArgs e)
               ((ListView)sender).ColumnSort(e, lsvColumnSorter);
    public static
    void ColumnSort(this
    ListView lsv, ColumnClickEventArgs e,
    ListViewColumnSorter lsvColumnSorter)
    // Determine if clicked column is already the column that is being sorted.
    if (e.Column == lsvColumnSorter.SortColumn)
    // Reverse the current sort direction for this column.
    if (lsvColumnSorter.Order == System.Windows.Forms.SortOrder.Ascending)
                        lsvColumnSorter.Order = System.Windows.Forms.SortOrder.Descending;
    else
                        lsvColumnSorter.Order = System.Windows.Forms.SortOrder.Ascending;
    else
    // Set the column number that is to be sorted; default to ascending.
                    lsvColumnSorter.SortColumn = e.Column;
                    lsvColumnSorter.Order = System.Windows.Forms.SortOrder.Ascending;
    // Perform the sort with these new sort options.
                lsv.Sort();
    In this specific page the column sorting code is effecting the searching code.
    What could the problem be?
    Debra has a question

    Hi Debra,
    I suggest you could use the listview to search.
    you could refer to this post:
    http://stackoverflow.com/questions/16549823/filtering-items-in-a-listview
    Use the listView item, not to reload the listViewitem.
    And then i see you using the ListViewColumnSorter class, what is this class? Is it customized?
    If you could share the more details, I could help you better.
    Best regards,
    Youjun Tang
    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.

  • ECM - Custom Matrix Methods

    Hi
    We have a requirement to have a matrix buit for ECM with Performance Ratings and Salary Range as co ordinates.
    I'm customising the HRECM000_MATRIX_SEGM BAdI for this.
    Has anybody done this kind of implementation , Can you please help me on how to do this ?
    Rgds
    Aravind

    Hi Lita,
    The error is always raised when I try to change data on DBDataSource of my custom matrix, with any of the
    following commands:
    oForm.DataSources.DBDataSources.Item( "@PD_LINE" ).Clear();
    error: "Form - Operation is not supported on system form.  [66000-30]"
    oSysForm.DataSources.DBDataSources.Item( "@PD_LINE" ).GetValue( "U_Oper", 0 );
    works fine: return correct value from matrix column
    oSysForm.DataSources.DBDataSources.Item( "@PD_LINE" ).SetValue( "U_Oper", 0, "10" );
    error: "Item - The item is not a user-defined item  [66000-8]"
    Note: my DBDataSources.Item( "@PD_LINE" ) was added after custom matrix was added to system form.
    All columns of custom matrix were bound to DBDataSources.Item( "@PD_LINE" ) columns.
    What is the problem?
    Thanks,
    Manuel Dias

  • Slow performance with custom comparator (AdvancedDataGrid sorting)

    I'm using Flex 3.4.
    I have an advancedDataGrid. Have 2 columns with numbers as data.
    For one column, I do not set any custom comparator function.
    For the other column, I set a custom comparator function which is exactly the same as the default one used by Flex. (The private function SortField.numericCompare).
    For both columns, I set the same data - 3000 Rows with values either 0 or 1.
    When i sort on column1 (the one with custom comparator), the sorting is much slower than on column2 (default Flex comparator).
    I went through the AdvancedDataGrid/SortField source codes but could not see why this could be happening as the comparator functions are the same in both cases.
    Also, I checked out this bug -
    http://bugs.adobe.com/jira/browse/SDK-13118
    But shouldn't this be applicable to both custom and default sorting?
    Can anyone help me out?

    This is the function that i have : (same as the SortField numericCompare function which is the default function which is used if no customCompare is specified.)
            public function numCompare(a:Object, b:Object):int {
                var fa:Number;
                try {
                    fa = _name == null ? Number(a) : Number(a[_name]);
                } catch (error:Error) {
                var fb:Number;
                try {
                    fb = _name == null ? Number(b) : Number(b[_name]);
                } catch (error:Error) {
                return ObjectUtil.numericCompare(fa, fb);
    As per bug, the performance should be slow for lots of items that have same value. But, it should be the same for both the custom compare and the default compare as the custom compare function I'm using is the same as what is used for Flex.

  • ORE: invalid cost.matrix column names

    I am trying to use the odmDT method with applying custom costs like so:
    > dt.mod = ore.odmDT(default ~ .,credit_train,max.depth=20,cost.matrix=matrix(c(0,1,4,0),nrow=2)
    but I get the error:
    Error in ore.odmDT(default ~ ., credit_train, max.depth = 20, cost.matrix = error_cost) :
      ORE: invalid cost.matrix column names
    I can't find any documentation anywhere on how exactly this cost matrix needs to be specified.
    Any help would be appreciated

    The value for cost.matrix currently requires a data frame object. The following examples using the NARROW data successfully pass a data frame for the value of cost.matrix:
        R> NARROW.costs.gender <- data.frame(ACTUAL_TARGET_VALUE = c("M","F","M","F"),
                                          PREDICTED_TARGET_VALUE = c("M","M","F","F"),
                                          COST = c(0.0, 0.25, 0.75, 0.0))
        R> NARROW.costs.class  <- data.frame(ACTUAL_TARGET_VALUE = c(0,1,0,1),
                                          PREDICTED_TARGET_VALUE = c(0,0,1,1),
                                          COST = c(0.0, 0.25, 0.75, 0.0))
        R> dt.mod1  <- ore.odmDT(GENDER ~ ., NARROW, cost.matrix=NARROW.costs.gender)
        summary(dt.mod1)
        R> dt.mod2  <- ore.odmDT(CLASS ~ ., NARROW, cost.matrix=NARROW.costs.class)
        summary(dt.mod2)
    I've filed a bug so this behavior may be evaluated for a future Oracle R Enterprise release.

  • Unable to capture the adf table column sort icons using open script tool

    Hi All,
    I am new to OATS and I am trying to create script for testing ADF application using open script tool. I face issues in recording two events.
    1. I am unable to record the event of clicking adf table column sort icons that exist on the column header. I tried to use the capture tool, but that couldn't help me.
    2. The second issue is I am unable to capture the panel header text. The component can be identified but I was not able to identify the supporting attribute for the header text.

    Hi keerthi,
    1. I have pasted the code for the first issue
    web
                             .button(
                                       122,
                                       "/web:window[@index='0' or @title='Manage Network Targets - Oracle Communications Order and Service Management - Order and Service Management']/web:document[@index='0' or @name='1824fhkchs_6']/web:form[@id='pt1:_UISform1' or @name='pt1:_UISform1' or @index='0']/web:button[@id='pt1:MA:0:n1:1:pt1:qryId1::search' or @value='Search' or @index='3']")
                             .click();
                        adf
                        .table(
                                  "/web:window[@index='0' or @title='Manage Network Targets - Oracle Communications Order and Service Management - Order and Service Management']/web:document[@index='0' or @name='1c9nk1ryzv_6']/web:ADFTable[@absoluteLocator='pt1:MA:n1:pt1:pnlcltn:resId1']")
                        .columnSort("Ascending", "Name" );
         }

  • Problem with AddRow() in custom matrix on System Form

    Hello all,
    I'm trying to add 1 row to a custom matrix on a system form (Sales Quotation).
    However I always get a RPC_E_SERVERFAULT exception when calling pMatrix.AddRow() and SBO crashes...
    My code is simple:
            [B1Listener(BoEventTypes.et_CLICK, false)]
            public virtual void OnAfterClick(ItemEvent pVal)
                Form pForm = B1Connections.theAppl.Forms.Item(pVal.FormUID);
                // Add matrix line
                Matrix pMatrix = (Matrix) pForm.Items.Item("MATRIX").Specific;
                pMatrix.AddRow();
                // Set matrix line data
    The matrix shows ok in the system form, inside a new folder.
    What is the problem with my code?
    Is there any way to add rows to a custom matrix in a system form?
    This code runs ok if executed in a custom form...
    Thanks!
    Manuel Dias

    hi.
    R u facing any problem ...
    actually add row and del row both are same.
    in normal customization form and system form matrx...
    Any problem are u facing...

  • How to Calculate Line items Total of Matrix Column

    hai experts,
                  Im facing a problem like
                   1. i have a matrix with a column Labour Costs in that im taking some cost.
                   2. in footer a have a Edit Text like Total Labour Cost
                   3 when i enter amount in matrix column it sholud disply that value in total labour cost and when we add new row ,labour cost it should add to 'total labour cost' in footer.Like Invoice Documents.

    Where do you want to implement this like sapscript / smartforms or adobe forms? please specify.

  • How to set default value in matrix column

    Hi all,
    Does any one know how to set a default value in matrix column ?. I just want , when an event right click and add row. so i set a default value in a column field for example 'Test'. FYI the matrix is in the UDO.
    so my code will be like this
    If pVal.ItemUID = "Matrix" And pVal.MenuUID = "1292" Then
                        Try
                            Dim oColumn As SAPbouiCOM.EditTextColumn
                            Dim matrix As SAPbouiCOM.Matrix
                            matrix = oForm.Items.Item("Matrix").Specific
                           oColumn = mat.Columns.Item("Code").specific
                            oColumn.Value = "Test"
                        Catch ex As Exception
                            Debug.Print(ex.Message)
                            Debug.Print(ex.ToString)
                        End Try
                    End If
    I have run it and when i right click and add row it still can not set the default value in one of the matrx column.
    does any one know how to solve it. thanks in advance

    Hi Bodhi
    Sandeep is right you can set value using SetValue() function
    If pVal.ItemUID = "Matrix" And pVal.MenuUID = "1292" Then
                        Try
                            Dim matrix As SAPbouiCOM.Matrix= oForm.Items.Item("Matrix").Specific
                            oForm.DataSources.DBDataSources.Item("UDT").Clear()
                            matrix .AddRow()
                            matrix .FlushToDataSource()
                            With form.DataSources.DBDataSources.Item("UDT") 
                                    .SetValue("UDF", matrix .RowCount - 1, "Test")
                            End With
                            matrix .LoadFromDataSource()
                        Catch ex As Exception
                            Debug.Print(ex.Message)
                            Debug.Print(ex.ToString)
                        End Try
    End If

  • Issue Action links,Column sorting in OBIEE(11g) 11.1.1.7.0

    Hello everyone,
    I want to provide the feature column sorting to my users but i dont want to provide any feature to users when they click on right mouse button.When we click on right mouse in action link column value it is giving the "action links","include/exclude columns" options etc.
    I disabled the do not display the action link report name in the column properties.
    Also disable the  include/exclude columns options in the interaction XYZ properties of the view.
    But still i am not able to understand why these links are coming when i run the report from the dashboard.
    Please help me out here.
    thanks,
    prassu

    Hi Timo,
    I am using data control web services to get these attributes on to the jspx page. The table has the value property which is binding to the iterator( #{bindings.SUMMARY_LINES_ITEM.collectionModel}).
    The table has various coulmns like order no, status, request and so on..where Order no and status are converted to a cmd link which navigates to another page on a query.
    I don't understand how setting sorting to true in one of the columns can make it not found in the iterator! And I get the errors only if sorting is done first before querying(clicking on one of the values in a column to navigate to another page).
    Thanks,
    Sue

Maybe you are looking for

  • HP PSC 2175 Problems....

    I am trying to set up my PSC 2175 printer through my print server on my network and am about to pull my hair out! No matter what i do i cannot seem to get it to work; here is what i have done. I downloaded the new software from HP and hooked up the p

  • PDF Output of Spfli!

    Hi,    I've created an Input Node node_in which consists of the carrid of the table spfli. I've created a PDF interactive form which outputs all the details of spfli. Now my requirement is when i select a carrid in the view and say submit. It should

  • Problem with Photoshop 4.0 Windows

    Hello, I am here to ask for a resolution to a problem related to Photoshop Elements 4.0 Three years ago I bought a Wacom Graphics Tablet Intuos series It came with a free registered software CD for Photoshop Elements 4.0, in which I installed it and

  • Why can't we upload photo to profile page it is only 6.8 mb and error says it is too big

    why can't we upload photo to profile page it is only 6.8 mb and error says it is too big

  • PDF qui fait des petit carré ou des chiffre incompréhensible lorsque je les copie/colle

      bonjour, tous d'abord j'ai bien réussis a convertir des pdf en word, mais je suis tombé sur des PDF qui me fond des petit carré ou des chiffre incompréhensible. je veut convertir les fichier PDF de ce site http://gaudiyahistory.com/rupa-goswami-ebo