Sorting a Collection with dynamic columns using a custom compare function for multiple columns

I need help and ideas on how to sort a ListCollectionView.  My problem is complicated by 3 requirements-
     1. The column values contain HTML tags that needs to be removed before sorting (use custom compareFunction to strip HTML)
     2. The columns are dynamic, so dataField names are not known at compile time (need a single compareFunction for all columns)
     3. The data is used in an AdvancedDataGrid so multi-column sorting is required
I have figured out how to solve any 2 of the 3 requirements.  However, I am having difficulties supporting all 3 requirements.
Any help or ideas would be greatly appreciated.  Thanks.

After playing with this some more I think I've figured out a solution.  This seems to work in initial testing.  Also, there is not a need to capture the current sort column in the headerRelease event which many offered solutions suggested.  Another benefit to this solution is that keyboard initiated sorting is handled also.  Whereas the headerRelease event is only triggered by a mouse click on the column header and special handling is required if the user uses the keyboard to access the column header.
One point that I don't understand is how ascending/decending order is determined.  Behavior seems to be different between a single SortField versus multiple SortFields.  Notice how the compareResults are handled for the different situations.  Anyone out there know why???
 private function colSortCompareFunction(obj1:Object, obj2:Object, fields:Array = null):int{
     var compareResults:int = 0; 
     var newObj1:Object = new Object(); 
     var newObj2:Object = new Object();
      // should not be a condition that is met   
     if (_dataProviderDetails.sort.fields == null)     {
          var s:Sort = new Sort(); 
          var f:Function = s.compareFunction; 
          return f.call(null, obj1, obj2, fields);     }
     // when a single column is selected for sorting   
     else if (_dataProviderDetails.sort.fields.length == 1)     {
          var firstFld:SortField = _dataProviderDetails.sort.fields[0];
          newObj1[firstFld.name] = stripHTML(obj1[firstFld.name]as String);          newObj2[firstFld.name] = stripHTML(obj2[firstFld.name]
as String);
          compareResults = ObjectUtil.compare(newObj1[firstFld.name], newObj2[firstFld.name]);
           return compareResults;     }
     // when multiple columns are selected for sorting   
     else       {
          for each (var fld:SortField in _dataProviderDetails.sort.fields)          {
               newObj1[fld.name] = stripHTML(obj1[fld.name]
as String);               newObj2[fld.name] = stripHTML(obj2[fld.name]
as String);
               compareResults = ObjectUtil.compare(newObj1[fld.name], newObj2[fld.name]);
                if (compareResults != 0)               {
                    if (fld.descending)                    {
                         return compareResults * -1;                    }
                    else                      {
                         return compareResults;                    }
           return compareResults;     }
Does anyone see any problems with this solution?
NOTE:  stripHTML(String) is a simple function using regular expression to remove HTML tags.
Thx

Similar Messages

  • How to set the column order of a sealed column in a custom Content Type for the new item form NewDocSet.aspx?

    Dear SharePoint Developers,
    Please help.
    I need to know How to set the column order of a sealed column in a custom Content Type for the new item form NewDocSet.aspx?
    I think this is a "sealed column", whatever that is, which is  shown in SPD 2013 as a column of content type "document, folder, MyCustomContentType".
    I know when I set the column order in my custom Content Type settings page, it is correct.
    But, when I load the NewDocSet.aspx page, the column order that I set in the settings page is NOT used for this "sealed column" which is bad.
    Can you help?
    Please advise.
    Thanks.
    Mark Kamoski
    -- Mark Kamoski

    Hi,
    According to your post, my understanding is that you want to set the column order of a sealed column in a custom Content Type for the new item form NewDocSet.aspx.
    Per my knowledge, if you have Content Type management enabled for the list or library (if you see a list of content type with the option to add more), the display order of columns is set for each content type.
    Drill down into one of them and you'll see the option under the list of columns for that content type.
    To apply the column order in the NewDocSet.aspx page, you need to:
    Select Site Settings, under Site Collection Administration, click Content type publishing. In the Refresh All Published
    Content Types section, choose Refresh all published content types on next
    update.
    Run two timer jobs(Content Type Hub, Content Type Subscriber) in central admin(Central Administration--> Monitoring--> Review timer jobs).
    More information:
    http://sharepoint.stackexchange.com/questions/95028/content-types-not-refreshing-on-sp-online
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • How to use a custom comparator in a TableSorter?

    Hi,
    I want to use a custom comparator for sorting a table by a specific column.
    As you possibly know, the constructor for the TableSorter class looks like this:
    TableSorter(IWDTable table, IWDAction sortAction, Map comparators);
    As Map is an Interface I chose Hashmap as comparator container. So, I use the put(Key, Value) method to insert my own comparator into the Hashmap in order to deliver this Object to the TableSorter constructor.
    But there is an essential problem:
    I assume, that the column which is to be associated with my comparator is determined by the key of the Map object from the TableSorter constructor.
    Presuming this, <u>what should the map key be/look like?</u>
    An Integer counted from the columns? The column header as String? Whatever? Or am I on the wrong way?
    PS:
    Hours of search did not lead me to some kind of documentation or javadoc of the TableSorter class! This can't be, does someone have a link please?
    Thanks a lot for any help.

    (sorry Mrutyun, this did not help.)
    Ok, I solved it; let me share it with you:
    public class ExampleView
            public static void wdDoModifyView(IPrivateExampleView wdThis, IPrivateExampleView.IContextNode wdContext, com.sap.tc.webdynpro.progmodel.api.IWDView view, boolean firstTime)
                     * A custom Comparator class is used for sorting by Severity.
                     * An Object of it is delivered to an object of a Map class to be delivered to the TableSorter constructor.
                     * The Map class consists of key-value pairs, and the TableSorter must accept the Key of it
                     * because he uses it to assign the mapped Comparator to the column of the table to be sorted!
                     * And this is done with the ID of the Element, which shall be sorted with the Comparator, used as Map Key.
                     * All other columns of the assigned tables will be sorted by default Comparators.
                    IWDTable table = (IWDTable) view.getElement("[TableName]");
                    HashMap tableComps = new HashMap();
                    tableComps.put(view.getElement("[ColumnName]").getId(), new MyComp(wdContext.currentExampleElement())); //The map key value I looked for is the ID of the Element of the Column!
                    wdContext.current/*yourContextNode*/Element().setTableSort(
                            new TableSorter(table, wdThis.wdGetSortTableRowAction(),
                                    tableComps)); //Insert HashMap with the new Comparator
            public void onActionSortTableRow(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
            //@@begin onActionSortTableRow(ServerEvent)
                            wdContext.currentConfigurationElement().getTableSort().sort(wdEvent, wdContext.nodeOpenIncident());
            //@@end
    As you see, the Column which is to be sorted by the custom Comparator "MyComp", is clearly assigned to it. Thus, is will only be used when sorting by this column is done.
    The "inActionSort" method is as usual.
    My Comparator sorts a column which contains variables of a "SimpleType" with an enumeration. (If you need help with this, feel free to write me.) To achieve this, the Comparator needs to know what this SimpleType consists of. That's why I deliver this Element per Constructor to it.
    public class MyComp implements Comparator
         MappedNodeElement element;
         public SeverityComp(I/*one*/Element element)
              this.element = element;
         public SeverityComp(I/*another*/Element element)
              this.element = element;
         public int compare(Object severity1, Object severity2)
    Because MappedNodeElement is such abstract, it can be used by several different Tables, provided they use the same SimpleType.
    Concerning my quest for this resolution, I hope this is helpful.
    null

  • Can I use the same Apple ID for multiple devices

    Can I use the same Apple ID for multiple devices?

    Yes. Up to five devices can be authorized on a single computer using the same Apple ID. You can also use the same Apple ID on multiple devices is they are all going to use the same iTunes Library by the same user. But it's ill-advised if multiple users are involved who wish to keep their devices separate from the devices belonging to other users.
    How to use multiple iPhone, iPad, or iPod devices with one computer
    Using More than One iDevice on the Same Computer
    This applies mainly to couples who are adding another device and do not want their email, messages, etc. being duplicated on both devices. To begin read: How to use multiple iPhone, iPad, or iPod devices with one computer. You need to establish a separate Apple ID and password for whomever will use the new iDevice. See Apple - My Apple ID and Frequently asked questions about Apple ID. The easiest way is to do this on the computer using iTunes: iTunes- How to set up an Apple ID within iTunes.
    On the computer create a new user account for the person with the new iDevice. This will be the user account that person will always use. He/She will no longer use the other user account. This way that person will have a separate iTunes Library
    Start by transferring the new device(s) to a new account along with all your data.  Save any photo stream photos that you want to keep to your camera roll (unless they are already in the camera roll) by opening your Photos app, tap on Albums icon at the bottom. Now, tap on My Photo Stream album; tap Select; tap on the photos you want to select;, tap the share icon (box with upward facing arrow) in the lower left corner; then tap Save to Camera Roll.
    If you are syncing notes with iCloud that you want to keep then you need to open each of your notes and email them to yourself. Later you can copy and paste the text into new notes created in your new account.
    Tap on Settings > iCloud > Delete Account (only deletes it from this device, not from iCloud; the person keeping the current account will not be affected,) provide the password to turn off Find My Phone and choose Keep on My iDevice when prompted.  Sign in with a different Apple ID to create your new account. Choose Merge to upload your data.
    Once you are on separate accounts, you can each go to icloud.com and delete the other person's data from your account.
    Note: The essence of the above was created by user, randers4. I
    have made substantial changes to improve readability and syntax.

  • Can I use the same email address for multiple seats in Creative Cloud for Teams?

    Can I use the same email address for multiple seats in Creative Cloud for Teams?

    No. http://www.adobe.com/products/creativecloud/faq.html
    Can I buy more than one membership to an individual offering of Creative Cloud? 
    No, Adobe has moved to identity-based licensing with a technology that will not support multiple same-product licenses, so you can buy only one membership per Adobe ID. If you need two Creative Cloud memberships, you will need to purchase each with a unique Adobe ID. You can also purchase a Creative Cloud for teams membership, which allows you to purchase and manage multiple seats under one account.

  • Setting different Tabel Cell SemanticColor for Multiple Columns of each row

    Hi,
    I have requirement of setting different colors to different columns for each row based on some condition in table data.
    The data to table is coming from model, hence table is mapped to model node and attributes.
    I have created Seperate Node CellColorNode with attribue CellClr1 and CellClr2 of type TextView Semantic Color.
    Set the calculated, read only attribute to True. Mapped table columns text view to the CellColorNode->CellClr1 and CellColorNode-->CellClr2 correspondingly.
    Now, my query is how do i set the colors to CellClr1 and CellClr2 attributes. As I need to set the color for multiple columns of each table row.
    Is it in method getColorCellCellClr generated? Any  Example Code?

    Its resolved by following below link
    http://scn.sap.com/thread/158286

  • Single heading for Multiple columns in ALV

    Hi Experts,
          I need to display a common column heading for multiple columns in my ALV Grid Display output. I am giving the sample output here.
    MATNR...WERKS..| Unrestricted Stock|....|Stock in transfer        |....|Stock in Quality|.
    ............................| CAT | SAP  | Differe| .. |  CAT   |  SAP  | Diff   | .. | CAT   |  SAP  | Diff  |
    As I shown above, for 3 columns CAT, SAP, and for Difference, I need to get "Unrestricted Stock" as column heading... and so on...
    Pl. suggest me on this.
    Thanks in Advance
    Ramakrishna

    Hello Ramki,
    NOT POSSIBLE IN ALV AT ALL :-((
    You have to use classical report using WRITE stmts for this.
    If your client does not want to lose ALV functionalities, then you can try something like.
    Unrestricted Stock-SAP | Unrestricted Stock-CRM | Unrestricted Stock-Diff. Stock ... and so on !!!
    BR,
    Suhas
    Edited by: Suhas Saha on Jan 21, 2009 3:00 PM

  • How to use the same POWL query for multiple users

    Hello,
    I have defined a POWL query which executes properly. But if I map the same POWL query to 2 portal users and the 2 portal users try to access the same page simultaneously then it gives an error message to one of the users that
    "Query 'ABC' is already open in another session."
    where 'ABC' is the query name.
    Can you please tell me how to use the same POWL query for multiple users ?
    A fast reply would be highly appreciated.
    Thanks and Regards,
    Sandhya

    Batch processing usually involves using actions you have recorded.  In Action you can insert Path that can be used during processing documents.  Path have some size so you may want to only process document that have the same size.  Look in the Actions Palette fly-out menu for insert path.  It inserts|records the current document work path into the action being worked on and when the action is played it inserts the path into the document as the current work path..

  • Hello I have a CS5 Master Collection with Dynamic Link problems

    Hello Adobe,
    I had no problems with CS5 Master Colection, but after 1 week Encore dont work, the problem is, Dynamic lInk is not wordking.
    I deinstall all Adobe products and use the adobe creative suite cleaner tool and after that I make a register cleanup.
    Then I Start up windows 7 Pro 64 Bit Agan and install de CS5 Suite, but after that the same problems with Dynamic link apear
    I hope anyone have an solution!!

    Refer to this:
    http://myleniumerrors.com/?s=25+%3A%3A+101
    Different program, but similar causes...
    Mylenium

  • Dynamic orderby clause for multiple columns with out Dynamic query

    Hi,
            I've a query like
    "select  * from tablename order by column1,column2,column3,column4,column5,column6"
    in the above query the order by column will be dynamically changed. The query is placed in a stored procedures and the order by column will come by parameter.
       For ex: @orderbycol = column2,column1,column3,column4,column5,column6
                                         or
                    @orderbycol = column3,column2,column1,column4,column5,coumn6
    How can we manage the order by clause as dynamically without go to dynamic query.

    ORDER BY CASE @sortcol1
                 WHEN 'col1' THEN col1
                 WHEN 'col2' THEN col2
             END,
             CASE @sortcol2
                 WHEN 'col1' THEN col1
                 WHEN 'col2' THEN col2
             END,
    Note: these CASE expressions assumes that all columns have the same data type.
    You could consider sorting in the presentation layer instead.
    Erland Sommarskog, SQL Server MVP, [email protected]

  • Sorting a collection with least time complexity algorithm

    Hi ,
    I have a collection which is having data
    <AspectRow>
         key=2732ddb1-adf5-11dc-c76c-0013210f9b73
         createdBy=Administrator
         createdAt=2007-12-19 11:12:15.051
         lastChangedBy=Administrator
         lastChangedAt=2007-12-19 11:12:15.071
         title=cc
         description=cc
         type=Rating
         isActive=1
         isDefault=true
      </AspectRow>
    ,   <AspectRow>
         key=2c37f611-adf5-11dc-ce26-0013210f9b73
         createdBy=Administrator
         createdAt=2007-12-19 11:12:23.473
         lastChangedBy=Administrator
         lastChangedAt=2007-12-19 11:12:23.503
         title=bb
         description=dd
         type=Rating
         isActive=1
         isDefault=true
      </AspectRow>
    <AspectRow>
         key=2c37f611-adf5-11dc-ce26-0013210f9b73
         createdBy=Administrator
         createdAt=2007-12-19 11:12:23.473
         lastChangedBy=Administrator
         lastChangedAt=2007-12-19 11:12:23.503
         title=bb
         description=a
         type=Rating
         isActive=1
         isDefault=true
      </AspectRow>
    <AspectRow>
         key=2c37f611-adf5-11dc-ce26-0013210f9b73
         createdBy=Administrator
         createdAt=2007-12-19 11:12:23.473
         lastChangedBy=Administrator
         lastChangedAt=2007-12-19 11:12:23.503
         title=bb
         description=b
         type=Rating
         isActive=1
         isDefault=true
      </AspectRow>
    i would like to know how can i sort the collection based on the alphabetical order of atrribute title.
    Thanks and Regards
    Neeta

    Hi Jens,
    I tried writing my code as below
    Public class A
    Collection criteries =new ArrayList();
    for( int indexContext = 0; indexContext < criteriaContextAspect.size(); indexContext++) {
    IAspectRow contextRow = criteriaContextAspect.getAspectRow(indexContext);
    IAspect criteriaAspect = contextRow.getRelatedAspect(Constants.CRITERIES_RELATION_NAME);
    criteries.add(criteriaAspect.getAspectRow(0));          
    Collections.sort(criteries,new TitleComparator());
    Class TitleComparator implements Comparator
    public int compare(Object o1,Object o2)
    IAspectRow row1 =(IAspectRow)o1;
    IAspectRow row2 =(IAspectRow)o2;
    String t1= row1.getAttributeValue("title")
    Here when i compile i am getting an error Cannot resolve symbol criteries in
    Collections.sort(criteries,new TitleComparator());
    Kindly suggest what can be the reason for this....
    regards
    neeta

  • Using values returned from SQL for Report column names

    I am building reports against our TFS development db.
    One of the reports tracks days spent (Dwell Time) in various status categories (eg: New, Assigned, In Development, Hold, etc) for a given "ticket".
    For a fixed list of values from {Work Item].System_State, I can send the results (days in Assigned) to the column named (Assigned) for each status for each event in the [Work Item History], and then sum them for each ticket as:
    Ticket ID      New          Assigned       InDev       etc
    1230001        2                  0                 0          ...
    1230001        0                  1                 2          ....      
    SUM            2                    1                2         ....            
    However, I have many different Projects, each of which use their own Status names.
    I don't want to duplicate the same basic report, if I can avoid it.
    How can I name and generate this data for the unique Status list for each Project?
    Simplest analog is:  name = First(Fields!Status.Value, "TFSdb")
    and allows value for a column name (category) as: =IIF(Fields!Status.Value = First(Fields!Status.Value, "TFSdb"), Fields!Days.Value, 0)
    However this fails beause:
    1. It only delivers the FIRST status value, and,
    2. I cannot SUM an expression which is itself an aggregate (using First).

    RRapport,
    Is this still an issue?
    Thanks!
    Ed Price, Power BI & SQL Server Customer Program Manager (Blog,
    Small Basic,
    Wiki Ninjas,
    Wiki)
    Answer an interesting question?
    Create a wiki article about it!

  • Customized CQWP display only multiple columns after migration to 2013 when source is a list.

    If I select Show items from all sites in this site collection or Show items from the following site and all subsites as Query source all my custom columns are with out value, if I select Show items from the following list every thing is as it should be.
    (Se picture)
    This is show multiple columns values correctly:
    <webParts>
      <webPart xmlns="http://schemas.microsoft.com/WebPart/v3">
        <metaData>
          <type name="Microsoft.SharePoint.Publishing.WebControls.ContentByQueryWebPart, Microsoft.SharePoint.Publishing, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" />
          <importErrorMessage>Cannot import this Web Part.</importErrorMessage>
        </metaData>
        <data>
          <properties>
            <property name="Filter1ChainingOperator" type="Microsoft.SharePoint.Publishing.WebControls.ContentByQueryWebPart+FilterChainingOperator, Microsoft.SharePoint.Publishing, Version=15.0.0.0, Culture=neutral,
    PublicKeyToken=71e9bce111e9429c">And</property>
            <property name="FilterOperator1" type="Microsoft.SharePoint.Publishing.WebControls.ContentByQueryWebPart+FilterFieldQueryOperator, Microsoft.SharePoint.Publishing, Version=15.0.0.0, Culture=neutral,
    PublicKeyToken=71e9bce111e9429c">Eq</property>
            <property name="Direction" type="direction">NotSet</property>
            <property name="FilterOperator3" type="Microsoft.SharePoint.Publishing.WebControls.ContentByQueryWebPart+FilterFieldQueryOperator, Microsoft.SharePoint.Publishing, Version=15.0.0.0, Culture=neutral,
    PublicKeyToken=71e9bce111e9429c">Eq</property>
            <property name="GroupByDirection" type="Microsoft.SharePoint.Publishing.WebControls.ContentByQueryWebPart+SortDirection, Microsoft.SharePoint.Publishing, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c">Asc</property>
            <property name="DataSourceID" type="string" />
            <property name="ChromeState" type="chromestate">Normal</property>
            <property name="SystemViewFields" type="string" />
            <property name="ListName" type="string">Document library</property>
            <property name="FilterDisplayValue3" type="string" />
            <property name="FilterDisplayValue2" type="string">5.7.2</property>
            <property name="FilterDisplayValue1" type="string">HCM/Payroll</property>
            <property name="FilterField1" type="string">SectionName</property>
            <property name="Description" type="string">Use to display a dynamic view of content from your site on a web page</property>
            <property name="DataColumnRenames" type="string" />
            <property name="MissingAssembly" type="string">Cannot import this Web Part.</property>
            <property name="PageSize" type="int">-1</property>
            <property name="ViewContentTypeId" type="string" />
            <property name="ParameterBindings" type="string" null="true" />
            <property name="HelpUrl" type="string" />
            <property name="AdditionalFilterFields" type="string" />
            <property name="DataMappingViewFields" type="string">{fa564e0f-0c70-4ab9-b863-0177e6ddd247},Text;</property>
            <property name="Title" type="string">Prod CQWP</property>
            <property name="FeedDescription" type="string" />
            <property name="UseCache" type="bool">True</property>
            <property name="XslLink" type="string" null="true" />
            <property name="AutoRefresh" type="bool">False</property>
            <property name="Filter1IsCustomValue" type="bool">False</property>
            <property name="FireInitialRow" type="bool">True</property>
            <property name="FilterValue3" type="string" />
            <property name="SortByFieldType" type="string">DateTime</property>
            <property name="ManualRefresh" type="bool">False</property>
            <property name="HelpMode" type="helpmode">Modeless</property>
            <property name="AllowConnect" type="bool">True</property>
            <property name="ItemStyle" type="string">DesignDocumentsTest</property>
            <property name="SampleData" type="string">&lt;dsQueryResponse&gt;
                        &lt;Rows&gt;
                            &lt;Row Title="Item 1" LinkUrl="http://Item1" Group="Group Header" __begincolumn="True"
    __begingroup="True" /&gt;
                            &lt;Row Title="Item 2" LinkUrl="http://Item2" __begincolumn="False" __begingroup="False"
    /&gt;
                            &lt;Row Title="Item 3" LinkUrl="http://Item3" __begincolumn="False" __begingroup="False"
    /&gt;
                        &lt;/Rows&gt;
                        &lt;/dsQueryResponse&gt;</property>
            <property name="FilterIncludeChildren2" type="bool">False</property>
            <property name="XmlDefinitionLink" type="string" />
            <property name="ServerTemplate" type="string">101</property>
            <property name="TitleUrl" type="string" />
            <property name="CommonViewFields" type="string">Title,Text;Product_x0020_Name,Choice;Areabranch,Choice;ProdcutDesignDocCategory,Choice;User_x0020_Story,Text;Status,Choice</property>
            <property name="QueryOverride" type="string" />
            <property name="DataSourcesString" type="string" />
            <property name="DisplayName" type="string" />
            <property name="ListGuid" type="string">ce5f8d8e-6ab9-4ed1-8c10-557362473348</property>
            <property name="DataFields" type="string" />
            <property name="ShowWithSampleData" type="bool">False</property>
            <property name="GroupByFieldType" type="string">Choice</property>
            <property name="Default" type="string" />
            <property name="ViewFlags" type="Microsoft.SharePoint.SPViewFlags, Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c">None</property>
            <property name="ContentTypeBeginsWithId" type="string">0x010100634C5EFE866C834E92467F3F8D9C37C7080401</property>
            <property name="AllowHide" type="bool">True</property>
            <property name="FeedEnabled" type="bool">False</property>
            <property name="SortBy" type="string">Modified</property>
            <property name="FilterByContextTerm" type="bool">False</property>
            <property name="TitleIconImageUrl" type="string" />
            <property name="PlayMediaInBrowser" type="bool">True</property>
            <property name="ViewFlag" type="string">0</property>
            <property name="Xsl" type="string">&lt;xsl:stylesheet xmlns:x="http://www.w3.org/2001/XMLSchema" version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:cmswrt="http://schemas.microsoft.com/WebPart/v3/Publishing/runtime" exclude-result-prefixes="xsl cmswrt x" &gt; &lt;xsl:import href="/Style Library/XSL Style Sheets/Header.xsl" /&gt; &lt;xsl:import href="/Style
    Library/XSL Style Sheets/ItemStyle.xsl" /&gt; &lt;xsl:import href="/Style Library/XSL Style Sheets/ContentQueryMain.xsl" /&gt; &lt;/xsl:stylesheet&gt;</property>
            <property name="FilterField2" type="string">Product_x0020_Version</property>
            <property name="ChromeType" type="chrometype">TitleOnly</property>
            <property name="CacheXslTimeOut" type="int">86400</property>
            <property name="AdditionalGroupAndSortFields" type="string" />
            <property name="UseSQLDataSourcePaging" type="bool">True</property>
            <property name="Height" type="string" />
            <property name="DataMappings" type="string">User_x005F_x0020_Story:|LinkUrl:|Description:|OpenInNewWindow:|Product_x005F_x0020_Name:|Areabranch:|ImageUrl:|Title:{fa564e0f-0c70-4ab9-b863-0177e6ddd247},Title,Text;|LinkToolTip:|ProdcutDesignDocCategory:|Status:|SipAddress:|</property>
            <property name="ListUrl" type="string" null="true" />
            <property name="ShowUntargetedItems" type="bool">False</property>
            <property name="AllowMinimize" type="bool">True</property>
            <property name="GroupBy" type="string">Areabranch</property>
            <property name="FilterIncludeChildren1" type="bool">False</property>
            <property name="BaseType" type="string" />
            <property name="MainXslLink" type="string" />
            <property name="AsyncRefresh" type="bool">False</property>
            <property name="FilterValue1" type="string">HCM/Payroll</property>
            <property name="FilterValue2" type="string">5.7.2</property>
            <property name="InitialAsyncDataFetch" type="bool">False</property>
            <property name="AutoRefreshInterval" type="int">60</property>
            <property name="Filter3IsCustomValue" type="bool">False</property>
            <property name="GroupStyle" type="string">Band</property>
            <property name="AllowZoneChange" type="bool">True</property>
            <property name="FilterIncludeChildren3" type="bool">False</property>
            <property name="EnableOriginalValue" type="bool">False</property>
            <property name="ItemLimit" type="int">3</property>
            <property name="FilterType1" type="string">Choice</property>
            <property name="UseCopyUtil" type="bool">True</property>
            <property name="FilterType3" type="string" />
            <property name="FilterType2" type="string">Choice</property>
            <property name="FilterOperator2" type="Microsoft.SharePoint.Publishing.WebControls.ContentByQueryWebPart+FilterFieldQueryOperator, Microsoft.SharePoint.Publishing, Version=15.0.0.0, Culture=neutral,
    PublicKeyToken=71e9bce111e9429c">Eq</property>
            <property name="PageType" type="Microsoft.SharePoint.PAGETYPE, Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c">PAGE_NORMALVIEW</property>
            <property name="FilterByAudience" type="bool">False</property>
            <property name="ItemXslLink" type="string" />
            <property name="Hidden" type="bool">False</property>
            <property name="WebUrl" type="string">~sitecollection/ProductDevelopment/HCMPayroll/HRMSproject572</property>
            <property name="HeaderXslLink" type="string" />
            <property name="CacheXslStorage" type="bool">True</property>
            <property name="ListsOverride" type="string" />
            <property name="SortByDirection" type="Microsoft.SharePoint.Publishing.WebControls.ContentByQueryWebPart+SortDirection, Microsoft.SharePoint.Publishing, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c">Asc</property>
            <property name="Filter2IsCustomValue" type="bool">False</property>
            <property name="AllowEdit" type="bool">True</property>
            <property name="FeedTitle" type="string" />
            <property name="FilterField3" type="string" />
            <property name="MediaPlayerStyleSource" type="string" null="true" />
            <property name="DisplayColumns" type="int">2</property>
            <property name="Filter2ChainingOperator" type="Microsoft.SharePoint.Publishing.WebControls.ContentByQueryWebPart+FilterChainingOperator, Microsoft.SharePoint.Publishing, Version=15.0.0.0, Culture=neutral,
    PublicKeyToken=71e9bce111e9429c">And</property>
            <property name="XmlDefinition" type="string" />
            <property name="WebsOverride" type="string" />
            <property name="AllowClose" type="bool">True</property>
            <property name="ContentTypeName" type="string" />
            <property name="ListId" type="System.Guid, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">00000000-0000-0000-0000-000000000000</property>
            <property name="ExportMode" type="exportmode">All</property>
            <property name="NoDefaultStyle" type="string" null="true" />
            <property name="ViewFieldsOverride" type="string" />
            <property name="CatalogIconImageUrl" type="string" />
            <property name="ListDisplayName" type="string" null="true" />
            <property name="Width" type="string" />
          </properties>
        </data>
      </webPart>
    </webParts><label for="ctl00_MSOTlPn_EditorZone_Edit0g_789619b5_3406_469e_8b24_fc42ff130ea0_CBQToolPartshowItemsFromListRadioButton"></label>
    This is with missing columns values
    <webParts>
      <webPart xmlns="http://schemas.microsoft.com/WebPart/v3">
        <metaData>
          <type name="Microsoft.SharePoint.Publishing.WebControls.ContentByQueryWebPart, Microsoft.SharePoint.Publishing, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" />
          <importErrorMessage>Cannot import this Web Part.</importErrorMessage>
        </metaData>
        <data>
          <properties>
            <property name="Filter1ChainingOperator" type="Microsoft.SharePoint.Publishing.WebControls.ContentByQueryWebPart+FilterChainingOperator, Microsoft.SharePoint.Publishing, Version=15.0.0.0, Culture=neutral,
    PublicKeyToken=71e9bce111e9429c">And</property>
            <property name="FilterOperator1" type="Microsoft.SharePoint.Publishing.WebControls.ContentByQueryWebPart+FilterFieldQueryOperator, Microsoft.SharePoint.Publishing, Version=15.0.0.0, Culture=neutral,
    PublicKeyToken=71e9bce111e9429c">Eq</property>
            <property name="Direction" type="direction">NotSet</property>
            <property name="FilterOperator3" type="Microsoft.SharePoint.Publishing.WebControls.ContentByQueryWebPart+FilterFieldQueryOperator, Microsoft.SharePoint.Publishing, Version=15.0.0.0, Culture=neutral,
    PublicKeyToken=71e9bce111e9429c">Eq</property>
            <property name="GroupByDirection" type="Microsoft.SharePoint.Publishing.WebControls.ContentByQueryWebPart+SortDirection, Microsoft.SharePoint.Publishing, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c">Asc</property>
            <property name="DataSourceID" type="string" />
            <property name="ChromeState" type="chromestate">Normal</property>
            <property name="SystemViewFields" type="string" />
            <property name="ListName" type="string" />
            <property name="FilterDisplayValue3" type="string" />
            <property name="FilterDisplayValue2" type="string">5.7.2</property>
            <property name="FilterDisplayValue1" type="string">HCM/Payroll</property>
            <property name="FilterField1" type="string">{a10809c0-a375-4279-ade5-2603dbdcd7e9}</property>
            <property name="Description" type="string">Use to display a dynamic view of content from your site on a web page</property>
            <property name="DataColumnRenames" type="string" />
            <property name="MissingAssembly" type="string">Cannot import this Web Part.</property>
            <property name="PageSize" type="int">-1</property>
            <property name="ViewContentTypeId" type="string" />
            <property name="ParameterBindings" type="string" null="true" />
            <property name="HelpUrl" type="string" />
            <property name="AdditionalFilterFields" type="string" />
            <property name="DataMappingViewFields" type="string">{fa564e0f-0c70-4ab9-b863-0177e6ddd247},Text;</property>
            <property name="Title" type="string">Prod 1 Lib CQWP</property>
            <property name="FeedDescription" type="string" />
            <property name="UseCache" type="bool">True</property>
            <property name="XslLink" type="string" null="true" />
            <property name="AutoRefresh" type="bool">False</property>
            <property name="Filter1IsCustomValue" type="bool">False</property>
            <property name="FireInitialRow" type="bool">True</property>
            <property name="FilterValue3" type="string" />
            <property name="SortByFieldType" type="string">DateTime</property>
            <property name="ManualRefresh" type="bool">False</property>
            <property name="HelpMode" type="helpmode">Modeless</property>
            <property name="AllowConnect" type="bool">True</property>
            <property name="ItemStyle" type="string">RDDesignDocuments</property>
            <property name="SampleData" type="string">&lt;dsQueryResponse&gt;
                        &lt;Rows&gt;
                            &lt;Row Title="Item 1" LinkUrl="http://Item1" Group="Group Header" __begincolumn="True"
    __begingroup="True" /&gt;
                            &lt;Row Title="Item 2" LinkUrl="http://Item2" __begincolumn="False" __begingroup="False"
    /&gt;
                            &lt;Row Title="Item 3" LinkUrl="http://Item3" __begincolumn="False" __begingroup="False"
    /&gt;
                        &lt;/Rows&gt;
                        &lt;/dsQueryResponse&gt;</property>
            <property name="FilterIncludeChildren2" type="bool">False</property>
            <property name="XmlDefinitionLink" type="string" />
            <property name="ServerTemplate" type="string">101</property>
            <property name="TitleUrl" type="string" />
            <property name="CommonViewFields" type="string">Title,Text;Product_x0020_Name,Choice;Areabranch,Choice;ProdcutDesignDocCategory,Choice;User_x0020_Story,Text;Status,Choice</property>
            <property name="QueryOverride" type="string" />
            <property name="DataSourcesString" type="string" />
            <property name="DisplayName" type="string" />
            <property name="ListGuid" type="string" />
            <property name="DataFields" type="string" />
            <property name="ShowWithSampleData" type="bool">False</property>
            <property name="GroupByFieldType" type="string">Text</property>
            <property name="Default" type="string" />
            <property name="ViewFlags" type="Microsoft.SharePoint.SPViewFlags, Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c">None</property>
            <property name="ContentTypeBeginsWithId" type="string">0x010100634C5EFE866C834E92467F3F8D9C37C7080401</property>
            <property name="AllowHide" type="bool">True</property>
            <property name="FeedEnabled" type="bool">False</property>
            <property name="SortBy" type="string">{28cf69c5-fa48-462a-b5cd-27b6f9d2bd5f}</property>
            <property name="FilterByContextTerm" type="bool">False</property>
            <property name="TitleIconImageUrl" type="string" />
            <property name="PlayMediaInBrowser" type="bool">True</property>
            <property name="ViewFlag" type="string">0</property>
            <property name="Xsl" type="string">&lt;xsl:stylesheet xmlns:x="http://www.w3.org/2001/XMLSchema" version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:cmswrt="http://schemas.microsoft.com/WebPart/v3/Publishing/runtime" exclude-result-prefixes="xsl cmswrt x" &gt; &lt;xsl:import href="/Style Library/XSL Style Sheets/Header.xsl" /&gt; &lt;xsl:import href="/Style
    Library/XSL Style Sheets/ItemStyle.xsl" /&gt; &lt;xsl:import href="/Style Library/XSL Style Sheets/ContentQueryMain.xsl" /&gt; &lt;/xsl:stylesheet&gt;</property>
            <property name="FilterField2" type="string">{d51bf689-5b9f-454b-9d6a-4e2c375ec3fe}</property>
            <property name="ChromeType" type="chrometype">TitleOnly</property>
            <property name="CacheXslTimeOut" type="int">86400</property>
            <property name="AdditionalGroupAndSortFields" type="string" />
            <property name="UseSQLDataSourcePaging" type="bool">True</property>
            <property name="Height" type="string" />
            <property name="DataMappings" type="string">User_x005F_x0020_Story:|LinkUrl:|Description:|OpenInNewWindow:|Product_x005F_x0020_Name:|Areabranch:|ImageUrl:|Title:{fa564e0f-0c70-4ab9-b863-0177e6ddd247},Title,Text;|LinkToolTip:|ProdcutDesignDocCategory:|Status:|SipAddress:|</property>
            <property name="ListUrl" type="string" null="true" />
            <property name="ShowUntargetedItems" type="bool">False</property>
            <property name="AllowMinimize" type="bool">True</property>
            <property name="GroupBy" type="string">{5c67db99-375a-4afa-a1b0-16f2aac40bb8}</property>
            <property name="FilterIncludeChildren1" type="bool">False</property>
            <property name="BaseType" type="string" />
            <property name="MainXslLink" type="string" />
            <property name="AsyncRefresh" type="bool">False</property>
            <property name="FilterValue1" type="string">HCM/Payroll</property>
            <property name="FilterValue2" type="string">5.7.2</property>
            <property name="InitialAsyncDataFetch" type="bool">False</property>
            <property name="AutoRefreshInterval" type="int">60</property>
            <property name="Filter3IsCustomValue" type="bool">False</property>
            <property name="GroupStyle" type="string">Band</property>
            <property name="AllowZoneChange" type="bool">True</property>
            <property name="FilterIncludeChildren3" type="bool">False</property>
            <property name="EnableOriginalValue" type="bool">False</property>
            <property name="ItemLimit" type="int">3</property>
            <property name="FilterType1" type="string">Text</property>
            <property name="UseCopyUtil" type="bool">True</property>
            <property name="FilterType3" type="string" />
            <property name="FilterType2" type="string">Text</property>
            <property name="FilterOperator2" type="Microsoft.SharePoint.Publishing.WebControls.ContentByQueryWebPart+FilterFieldQueryOperator, Microsoft.SharePoint.Publishing, Version=15.0.0.0, Culture=neutral,
    PublicKeyToken=71e9bce111e9429c">Eq</property>
            <property name="PageType" type="Microsoft.SharePoint.PAGETYPE, Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c">PAGE_NORMALVIEW</property>
            <property name="FilterByAudience" type="bool">False</property>
            <property name="ItemXslLink" type="string" />
            <property name="Hidden" type="bool">False</property>
            <property name="WebUrl" type="string" />
            <property name="HeaderXslLink" type="string" />
            <property name="CacheXslStorage" type="bool">True</property>
            <property name="ListsOverride" type="string" />
            <property name="SortByDirection" type="Microsoft.SharePoint.Publishing.WebControls.ContentByQueryWebPart+SortDirection, Microsoft.SharePoint.Publishing, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c">Asc</property>
            <property name="Filter2IsCustomValue" type="bool">False</property>
            <property name="AllowEdit" type="bool">True</property>
            <property name="FeedTitle" type="string" />
            <property name="FilterField3" type="string" />
            <property name="MediaPlayerStyleSource" type="string" null="true" />
            <property name="DisplayColumns" type="int">2</property>
            <property name="Filter2ChainingOperator" type="Microsoft.SharePoint.Publishing.WebControls.ContentByQueryWebPart+FilterChainingOperator, Microsoft.SharePoint.Publishing, Version=15.0.0.0, Culture=neutral,
    PublicKeyToken=71e9bce111e9429c">Or</property>
            <property name="XmlDefinition" type="string" />
            <property name="WebsOverride" type="string" />
            <property name="AllowClose" type="bool">True</property>
            <property name="ContentTypeName" type="string" />
            <property name="ListId" type="System.Guid, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">00000000-0000-0000-0000-000000000000</property>
            <property name="ExportMode" type="exportmode">All</property>
            <property name="NoDefaultStyle" type="string" null="true" />
            <property name="ViewFieldsOverride" type="string" />
            <property name="CatalogIconImageUrl" type="string" />
            <property name="ListDisplayName" type="string" null="true" />
            <property name="Width" type="string" />
          </properties>
        </data>
      </webPart>
    </webParts>
    <label for="ctl00_MSOTlPn_EditorZone_Edit0g_789619b5_3406_469e_8b24_fc42ff130ea0_CBQToolPartshowItemsFromListRadioButton"></label>
    <label for="ctl00_MSOTlPn_EditorZone_Edit0g_789619b5_3406_469e_8b24_fc42ff130ea0_CBQToolPartshowItemsFromListRadioButton"></label>

    Hi, 
    may i know how many items that you have that CQWP filter for?
    because as i remember there should be a limitation on the items number.
    http://technet.microsoft.com/en-us/library/cc262813(v=office.14).aspx
    http://office.microsoft.com/en-us/sharepoint-foundation-help/manage-lists-and-libraries-with-many-items-HA010377496.aspx
    you can try to upsize the threshold but it will affect your environment's performance.
    http://blogs.msdn.com/b/dinaayoub/archive/2010/04/22/sharepoint-2010-how-to-change-the-list-view-threshold.aspx
    Regards,
    Aries
    Microsoft Online Community Support
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

  • Computing of the shortest path using a custom cost function in Oracle NDM

    Hi to all,
    I have Oracle 10g R2, I'm working on Oracle Network Data Model. I created a Network (named ITALIA_NET) based on links table (named ITALIA_LINK$) and nodes table (named ITALIA_NODE$).
    Until now I computed the shortest path between two nodes using the 10gR2 NDM Java API, in particular I used the shortestPath() method.
    I know that this method computes the shortest path between two nodes on the base of the values of a field that can be the lenght OR the travel time of the links.
    What I wish to do is compute the shortest path between two nodes with a function that considers ( at the same time ) more parameters and on the base of them returns a path. For example, I want compute the shortest path taking into account these parameters for the links:
    travel times of links
    gradient links
    tortuosity links
    Infact, I have for each link the costs of: travel time (for example 3 minuts for cross the link), gradient (for example, the link has 2% of gradient) and tortuosity (for example, the link has two curves of 60° of angle).
    Do you have any idea how I can implement this?
    Are there other ways for reach this objective?
    I hope I explained well my objective.
    Thank you very much to all in advance.

    _1) If I convert the values of the other cost columns into the values of the primary cost column (time is ok), what is the formulation for do this conversion?_
    The modeling part is the most difficult part. I am not sure if there is a universal conversion formula between two different costs.
    One recommendation is to use time as your primary cost.
    For any other secondary costs, collect some data (or from some published statistics) on how these costs affect the travel time (based on the actual speeds wrt to gradients and tortuosity).
    I am not an expert on this. Maybe asking questions like,
    Q. how will a road of gradient = 10 deg affect the speed, uphill and downhill compared to the speed limit?
    Once you have a good estimates on the speeds, you can compute the travel times as the distance/length of the link is known. The same applies to tortuosity,
    Q. how will roads with 30/60/90 deg angles affect the travel speeds compared to the speed limit?
    Assuming you are using something like the speed limit as you normal travel speed to compute your travel time.
    _2) After conversion, how can I combine these columns?_
    Say if you have done the conversion part in Step 1, you have 3 costs,
    cost1, cost2, and cost3
    You can create a view on the link table with the combined link cost as (cost1+cost2+cost4) or
    you can create a new column that sums up the costs you want and use it as the link cost.
    hope it helps!
    jack

  • Layout for multiple column

    Dear all,
    I have a layout setting that is supposed to have multiple columns. The first columns I have a fixed width in pixel (for example 120px), and the rest of the columns I want to set it in %. So, if the user resize its browser, the first column will stay 20px, while the rest will resize accordingly.
    What is the best way of doing this in JSC?
    thank you in advance

    1. In first, second, and third rows, I have a label
    and a text field. I want to left justify the label,
    and the textfield. So, using gridPanel with 2 columns
    will do the job.
    2. In the fourth, fifth, sixth row, I have 2 labels
    and 2 fields.In this order?
    I want to keep the left justify setting
    for the first label and textfield. If can't use the
    grid panel because the layout for each labels are not
    left justified with the same component in the first
    and second rows. Beside the width of each labels and
    textFields are not the same.That's why I'am not using the label attribute of TextField but separate Label components.
    Create a Grid Panel with 4 columns and drop into
    label1, textfield1, dummylabel11, dummylabel12
    label2, textfield2, dummylabel21, dummylabel22
    label3, textfield3, dummylabel31, dummylabel32
    label4, textfield4, label5, textfield5
    label6, textfield6, label7, textfield7
    label8, textfield8, label9, textfield9
    Create CSS classes for example as follows:
    *.gridlabel {...}
    *.griddata {...}
    Set the columnClasses attribute of the GridPanel to "gridlabel, griddata, gridlabel, griddata".
    To arrange more than one components in one cell of the GridPanel wrap them in a LayoutPanel without attributes.

Maybe you are looking for

  • Creating a boundry in the stage...

    I'm new here and I'm taking a class on Director. Unfortunately, my teacher does not know how to do much himself which is leaving me to come here and seek advice. Please forgive me in advance for any stupid questions and the like since I have not lear

  • Battery time for T410

    Hello  I have problem that the standard battery  on my T410 only last about 2h and goes down really fast  Windows 7 standard installation. 

  • Drive size information

    Hi Guys, I am running the below script from my pc and I am getting the below error please can you help. ##connect-QADService -service 'domain.local' -Credential (Get-Credential Domain\Account) $servers = Get-Content "D:\Server Info\domain.txt" $Drive

  • Download software for logitech webcam 615

    need download software for a logitech 615 webcam. tks

  • Published .exe file - Captivate 5

    We recently upgraded from Captivate 3to Captivate 5, with Captivate 3 we published all of our projects as .exe files and never experienced a problem.  However, I just created a project in Captivate 5, published it as a .exe file (tried with both Flas