How to sort Node type by custom Datetime property ISortablePagedList

Hello
I have a "News" type in my own WLP Repository.
This type has a "publishedDate" date property like system "createdDate" property.
When I retrieve list of Nodes from repository I would like to sort CMPagedResult by my "publishedDate".
Something like
ISearchManager searchManager = ContentManagerFactory.getSearchManager();
Search search = new Search(“cm_ObjectClass = Newsl”);
search.setSortCriteria("publishedDate");
ISortableFilterablePagedList<Node> nodes =
searchManager.search(context, search);
doesn't work, also doesn't work if I use searchManager.postSearch method.
Also my property was maped on CM_NODE table(exists coloumn CM_PUBLISHED_DATE)
Please advice how can I make sort by my property.

DECLARE @xml as xml
SET @xml ='<Email>
  <Type>Personal</Type>
  <Code>1</Code>
  <Description>[email protected]</Description>
  <LocalId>000000000000000000000000868000000001</LocalId>  
    <Infeliz>
<Za>
Fuck
</Za>
<Maria>
Fuck
</Maria>
  </Infeliz>
</Email>'
SELECT '<Email>' 
+ CONVERT(varchar(1000), @xml.query('for $x in (/Email/*) 
  order by local-name($x) 
                   return $x '))  
       + '</Email>'
OUPUT - NOT OK 
<?xml version="1.0" encoding="UTF-8"?>
<Email>
<Code>1</Code>
<Description>[email protected]</Description>
<Infeliz>
<Za>Fuck</Za>
<Maria>Fuck</Maria>
</Infeliz>
<LocalId>000000000000000000000000868000000001</LocalId>
<Type>Personal</Type>
</Email>
I want so
<?xml version="1.0" encoding="UTF-8"?>
<Email>
<Code>1</Code>
<Description>[email protected]</Description>
<Infeliz>
<Maria>Fuck</Maria>
<Za>Fuck</Za>
</Infeliz>
<LocalId>000000000000000000000000868000000001</LocalId>
<Type>Personal</Type>
</Email>

Similar Messages

  • How to change pricelist type in customer master

    hi gurus,
    plz tel me any bapi or function module is there to chnage new pricelist type in customer master for a perticular sales area.

    Hello Rudi,
    This issue happens usually when the 'Business Area Financial Statement' indicator has been enabled in customizing. Hence, in your case, for changing of business area > use ABUMN to transfer from existing asset to a new asset master with new business area.
    Kind regards,
    John Chin

  • How to differentiate conditon types between customer and vendor?

    Hi Forum,
    We are using RE Classic. 
    I am wondering if there is a way to differentiate a conditon type as customer condition type and vendor conditon type.
    If so where can I check the same?
    Thanks in advance
    Regards,
    Haranadh

    Hi,
    Every Contract type is linked with the Condition group.
    In every condition group, different condition types will be assigned based on lease in / lease out.
    So, whenever you go for contract, based on the contract type of the contract...system gives you the option of selecting the condition types. That means...when you assigned the condition types in the condition group, that time itself you are seperating Customer / Vendor wise.
    hope it is clear..
    if the above solution not works...the only way is to identify through the text of the condition type.
    VVR

  • How to sort Payment Summary by Customer Name

    Hi,
    When doing a payment run, transaction F110, under the 'printout/data medium' tab we use program RFFOZA_A. In the selection screen check 'Print Payment Summary'.
    The output is sorted by Bank branch number, then bank account number, etc. Now it is required to be sorted by Customer Name first and then branch number etc.
    Is there any customizing setting to resolve this?
    Thank you.
    Warren.

    Hi Warren,
    How did you solve this issue? Were you able to fix it via customizing or did you have to change the program itself?
    I have the same issue for RFFOD__L, but the sorting should be by Currency and the print out should be that one page per Currency. Currently, this program is sorting and printing out one page per Vendor.
    In which INCLUDE should the code be changed?
    Thanks for your help in advance.
    Meggan

  • How to restrict transaction type in customized activity pop-up

    We have created a custom workcenter link for search enhancement of activities. We copied the work center link and are calling the same component as in std search but a different customized configuration with added and deleted fields in search criteria. This works fine. Now the requirement is to restrict the 'transaction types' available when we click on the 'new' button in the new custom activity search page. As this pop-up emanates from the std component, it can not be functionally configured (because that would restrict the 'transaction types' while creating new activity in std componnet) but should be technically handled. Please advise.

    Hi Amar,
    Solution here is to let the framework know who is caller ?
    That is, when pop up is opening, you have to put a code in this pop up view to understand who is invoking this pop up , Is it the search page of std. component configuration or is it the custom search page configuration ?
    So have a static attribute in some Z class, you can use your IMPL class also for that matter, Now whenever you know that its custom config i.e. in DO_CONFIG_DETERMINATION, read the role key( i assumed that you have a role key for your custom config)
    and if its custom role key, then set this static parameter say ZCUST_CONFIG = abap_true else abap_false (this is must to reset it using else as this is static attribute )
    Now, in your pop_up view, read this static attribute as XXXX_IMPL=>zcust_config , and if true, then you know that the pop up is invoking from custom config, so do the coding to remove the unwanted transaction types.
    and you are done !!
    Hope it helps you.
    Thanks & Regards,
    SUCHITA

  • How to read the details in the context node of the custom controller

    Hi friends,
        My requirement is i enhanced the component ICCMP_BP_DETAILS , now on EH_ONSAVE i want to read the details of the Context node in the Custom COntroller .
    In custom controller from ICCMP_BP_DETAIL/CuCoBPDuplicate  From this in context node CUSTOMER is there in that attributes first name last name is there i want to read those details
    so can u pls provide the logic for this how can i get the values.
      am very new to the BSP programming
    Regards
    Yogesh

    Hi Suchitha,
    when i am following the above code the lr_entity is not Bound, so can u pls suggest is there any thing is missing
    i used the below mention code but lr_entity is not bound
    DATA: lr_cuco type ref to CL_ICCMP_BP_CUCOBPDUPLICA_IMPL.
                lr_entity type ref to cl_crm_bol_entity.
    lr_cuco ?= me->get_custom_controller( 'ICCMP_BP_DETAIL/CuCoBPDuplicate') .
    CHECK lr_cuco IS BOUND.
    lr_entity ?= lr_cuco->typed_context->customer->collection_wrapper->get_current( ) .
    CHECK lr_entity IS BOUND .
    lr_entityIF_BOL_BO_PROPERTY_ACCESSGET_PROPERTY_AS_VALUE( iv_attibute =  'FIRST_NAME' ev_attribute = lv_firstname ) .
    Please correct the code if any thing is missing
    Regards,
    Yogesh

  • How to use the customer types in customer master data

    how to use the customer types in customer master data?
    menu path is Extras -> account group info -> customer types

    hi,
    This is an option given to you to choose (if you need to) the way you perceive this customer.Here you get options including ompetitors,Salespartner, prospect,
    default sp ,consumer.
    See it helps you to differentiate between prospect(which you may use for quotation or inquiry purpose)Sales partner and the competetor.
    I hope this clarifies your quiery.Reward points if so.
    Thanking you,
    Best regards,
    R.Srinivasan

  • I've just updated my iPad 3 to IOS 7 and when i try to type any thing be it a password or e-mail there is a long lag any idea how to sort this out ?

    I've just updated my iPad 3 to IOS 7 and when i try to type any thing be it a password or e-mail there is a long lag any idea how to sort this out ?

    Upgrade to Snow Leopard - it's compatible with the latest version of iTunes, and still supports PowerPC applications.
    $19.99 - http://store.apple.com/us/product/MC573Z/A/mac-os-x-106-snow-leopard
    Snow Leopard is required if you wanted to upgrade to Lion, anyway, which you may want to in the future if the latest version of iTunes no longer supports Snow Leopard.

  • Custom Search portlet : how to sort the result in sequence (Portal 10.1.4)

    With a Custom Search portlet how to Sort the Result By Sequence. i.e. by respecting arrangements of the items in the page of contents?
    Actually the Results Options "Order By" are : Create Date, Author, Creator, Date Updated, Display Name, Last Update by, Publish Date, Score.
    Is there an action to add the "Sequence" Order By result Option?
    Great thanks for your kind help.
    Best regards

    No, I agree that it is functionality that should be added to the product, but it
    is not a bug because it was not written to do this.
    It is a short coming of the product.
    Cheers,
    Ersan

  • How to handle unknown root node type when parsing?

    Hello all, hoping someone knows how to accomplish this...
    I'm trying to use XMLBeans to parse RIXML 2.0 documents. This schema allows for
    multiple root node types, so I don't know when I'm trying to parse a file if the
    root node is a Research node or a Product node, for example. If I try to invoke
    parse and there is a type mismatch I get the following error:
    com.bea.xml.XmlException: D:\RIXML\V2TestDoc.xml:0: error: The document is not
    a Research@http://www.rixml.org/2002/6/RIXML: document element local name mismatch
    expected Researchgot Product
         at com.bea.xbean.store.Root.verifyDocumentType(Root.java:472)
         at com.bea.xbean.store.Root.autoTypedDocument(Root.java:394)
         at com.bea.xbean.store.Root.loadXml(Root.java:763)
         at com.bea.xbean.schema.SchemaTypeLoaderBase.parse(SchemaTypeLoaderBase.java:286)
         at com.bea.xbean.schema.SchemaTypeLoaderBase.parse(SchemaTypeLoaderBase.java:224)
         at org.rixml.x2002.x6.rixml.ResearchDocument$Factory.parse(Unknown Source)
         at Test.main(Test.java:21)
    Exception in thread "main"
    So how do I generically handle parsing when I don't know what type of root node
    I'm going to get?
    Thanks,
    Joe

    Hello Joe -- You might try parsing the document as XmlObject (which your
    schema-generated types extend). Then you could use an XmlCursor to discover
    what the root element's local name is. Something like the following code
    might be a way to do it. You could also simply re-parse the document after
    discovering its root element name, but that would probably be more
    expensive.
    XmlObject xml = XmlObject.Factory.parse(mydoc.xml);
    XmlCursor cursor = xml.newCursor();
    cursor.toFirstContentToken();
    if (cursor.getName().getLocalPart().equals("Research"))
    // cast the XmlObject to your ResearchDocument type and use it.
    else if (cursor.getName().getLocalPart().equals("Product"))
    // cast the XmlObject to your ProductDocument type and use it.
    cursor.dispose();
    Steve
    "Joe Celentano" <[email protected]> wrote in message
    news:[email protected]..
    >
    Hello all, hoping someone knows how to accomplish this...
    I'm trying to use XMLBeans to parse RIXML 2.0 documents. This schemaallows for
    multiple root node types, so I don't know when I'm trying to parse a fileif the
    root node is a Research node or a Product node, for example. If I try toinvoke
    parse and there is a type mismatch I get the following error:
    com.bea.xml.XmlException: D:\RIXML\V2TestDoc.xml:0: error: The document isnot
    a Research@http://www.rixml.org/2002/6/RIXML: document element local name
    mismatch
    expected Researchgot Product
    at com.bea.xbean.store.Root.verifyDocumentType(Root.java:472)
    at com.bea.xbean.store.Root.autoTypedDocument(Root.java:394)
    at com.bea.xbean.store.Root.loadXml(Root.java:763)
    atcom.bea.xbean.schema.SchemaTypeLoaderBase.parse(SchemaTypeLoaderBase.java:28
    6)
    atcom.bea.xbean.schema.SchemaTypeLoaderBase.parse(SchemaTypeLoaderBase.java:22
    4)
    at org.rixml.x2002.x6.rixml.ResearchDocument$Factory.parse(Unknown Source)
    at Test.main(Test.java:21)
    Exception in thread "main"
    So how do I generically handle parsing when I don't know what type of rootnode
    I'm going to get?
    Thanks,
    Joe

  • How can I sort channels by a custom property?

    Hello.
    I have written a script that creates a series of formatted charts in View.  The data comes from TDMS files with several groups of channels with some custom properties assigned to the channels.  I would like to sort the channels within each group by one of these custom properties so that the curves display in the desired order.
    It appears that ChnMove and ChnRenumber can be used to reorder the channels, but how can I programatically sort the channels by a channel property?
    Thanks,
    Craig

    Hello Craig!
    Unfortunately DIAdem doesn't have a adequate command. You have to use some lines of script code. Try this bubblesort adaption:
    Option Explicit
    Call GroupChnSort(1,"name")
    Sub GroupChnSort(ByRef nGroupIndex, ByRef sgPropName)
    Dim i
    Dim j
    Dim n
    Dim anCNo()
    If GroupChnCount(nGroupIndex) > 1 Then
    ReDim anCNo( GroupChnCount(nGroupIndex)-1 )
    For i=1 To GroupChnCount(nGroupIndex)
    anCNo(i-1) = i
    Next
    For i = 0 to UBound(anCNo)
    For j = i+1 to UBound(anCNo)
    If ChnPropValGet("[" & nGroupIndex & "]/[" & anCNo(i) & "]", sgPropName) > _
    ChnPropValGet("[" & nGroupIndex & "]/[" & anCNo(j) & "]", sgPropName) Then
    n = anCNo(i)
    anCNo(i) = anCNo(j)
    anCNo(j) = n
    End If
    Next
    Next
    For i=1 To GroupChnCount(nGroupIndex)
    Call ChnMove( anCNo(i-1), nGroupIndex, i)
    Next
    End If
    End Sub
    The string compare is casessensitive. You can wrap the ChnPropValGet with a UCase to change this.
    Matthias
    Matthias Alleweldt
    Project Engineer / Projektingenieur
    Twigeater?  

  • Custom Search Portlet : How to Sort the Result By Sequence (Portal 10.1.4)

    Customer request: With a Custom Search portlet how to Sort the Result By Sequence. i.e. by respecting arrangements of the items in the page of contents?
    (Like it's possible in MyOracle)
    Actually the Results Options "Order By" are : Create Date, Author, Creator, Date Updated, Display Name, Last Update by, Publish Date, Score.
    Is there an action to add the "Sequence" Order By result Option?
    Great thanks for your kind help.
    Best regards

    No, I agree that it is functionality that should be added to the product, but it
    is not a bug because it was not written to do this.
    It is a short coming of the product.
    Cheers,
    Ersan

  • How to transfer SRM PO Condition Type and Custom fields to ECC?

    Hi All,
    I have a scenario to transfer SRM Line item condition types and few custom fields to ECC.
    I have found the following things but structure  'CI_EKPODB' does not exists in ECC.
    I am using 'SRM 5.00' and 'SAP ECC 6.0'.
    NOTE: I have to transfer condition records when PO is getting created / modified.
    1) Earlier I was planning to use BADI 'BBP_CREATE_BE_PO_NEW' in SRM and this will transfer the data to ECC in case of PO 
        Creation.
                   It contains the Condition fields to be passed to ECC.
    But i am unable to implement the same, whenever i create implementation when i click 'Activate' its getting activate then after few seconds its getting deactivate, i think this is because this BADI is not allowed for multiple use and SAP has already made one implementation on the same.
    2) I need to implement BADI 'BBP_ECS_PO_OUT_BADI' in SRM and 'BBP_PO_INBOUND_BADI' in ECC.
    SRM BADI will pass verified field details to ECC as a custom fields
           It does not contains the Condition fields to be passed to ECC, so i was planning to pass the same as custom field(s).
    ECC BADI 'BBP_PO_INBOUND_BADI'  will be used to map the fields to correct place and this should work.
    i need to modify the structures and pass all the custom fields (z-fields) - (CI_EKPODB but does not exists kindly suggest) as data.
    Other required details:
          Transfer of PO does not supported by SAP for service PO's, any suggestion on the same?
    Expecting quick reply from your end.
    Thanks in advance.
    Regards,
    Hemant

    Naresh,
    Thanks for quick response.
    My concern is this BADI 'BBP_CREATE_BE_PO_NEW' will trigger only in case of creation, not when PO is changes.
    I have to transfer condition types and custom fields to ECC in both the case (create / change)
    If i have to do this only in case of creation then i can pass Condition types / custom fields then i can use parameter 'CS_PO1_DOCUMENT' from method 'FILL_PO_INTERFACE1'.
    this parameter contains 'IT_POCOND', 'IT_POCONDX' and 'IT_EXTENSIONIN' as parameter  so my problem will be solved.
    But i dont think this will trigger in both the cases and 2nd thing i cann't implement the BADI since its not marked for multiple use so i am unable to implement the same.
    Kindly correct me if i am wrong.
    Once again thanks for your reply.
    Please suggest on the same.
    Regards,
    Hemant

  • How can I define a new Search Node type?

    Hi experts!
    I'm trying to modify PPOME transaction, but I can't create a new Search Node type. Can anybody give me the necessary steps I have to do? Other question, Is it possible to create a new Search Node for a Organizational unit? Or this only could be possible for new objects types?
    Thanks a lot,
    Regards,
    Rebeca

    Hi Rebeca,
    You need to create a Search node only if you create a new object type (e.g. ZP).
    For org unit, you don't need to create one (unless you wanna change search details)
    Otherwise, you can use existing search nodes for standard object types.
    What you can do is, you can add a search node to an existing scenario in order to make it visible in the object manager part (left-hand side of the screen).
    To create a new search node :
    Goto SPRO Personnel management - Organizational Management - Hierarchy Framework - Object manager - define your own search node -
    > Define search node : Add new entries here.
    To add a search node to a scenario (e.g. to make a new search node visible on the left-hand side of PPOME)
    Goto SPRO Personnel management - Organizational Management - Hierarchy Framework - Object manager - define your own search node -
    > Scenario Definition (Object manager) : Select the scenario (for PPOME it is OME000), double click the "Search nodes" and create new entries to add the search node here. Then double click the "Search tool", copy the lines of a similar search node and change search node field to the new one.
    Best regards,
    Dilek

  • How do I fix "Invalid node type: selectionbox" error?

    Ok I've got my document all made and nice and pretty, I use it to enter information and use the selection box to make visible the fields I need for each card. Then I save it and try to open it and get the following error popup message.
    Invalid node type: selectionbox
    Invalid node type: selectionbox
    Invalid node type: selectionbox
    Invalid node type: selectionbox
    Invalid node type: selectionbox
    Invalid node type: selectionbox
    Invalid node type: selectionbox
    Message limit exceeded. Remaining 10 errors not reported.
    So I click ok on the error box. It opens the file with adobe reader like it's supposed to and then immediately I get the "Adobe reader has stopped working, windows can check online for a solution to the problem" and I get the two choices that both involve closing the program.
    I got this once before and after about a half hour of fiddling with the original livecycle file it stopped doing it. I have no idea what I did to make it start or stop doing it and I'm not sure I even did do anything to cause it.
    Has anyone else come across this problem? Does anyone know what I need to do to fix it?
    I've included the file I'm having issues with.
    Thanks,
    Aaron

    Hi Aaron,
    I cant replicate your problem. What I did notice though, is when I make a selection on almost every selection box,  I get the following error:
    'cardtwo.TextField1 has no properties'. The error is coming from the following piece of code in the change event: 'cardtwo.TextField1.caption.text.value = (this.rawValue);'
    I dont see a TextField1 in the cardtwo subform so I suspect that this field has been renamed and / or moved since that bit of code was added. Perhaps that would be a good place to start and could very possibly be the cause of your problem.
    Dallas

Maybe you are looking for