How to create the query with multiple node types

Hi,
I am having an issue in creating a query to search multiple node types.
The requirement is to query documents/pages of the type dam:Asset and cq:Page present under a path.
I tried the following code snippet with no luck .
path=/content
1_type=cq:Page
2_type=dam:Asset
property=jcr:content/metadata/@cq:tags
property.1_value=<tag Name>
I was able to write a query with single type. However i could not find any documents/ materials with multipe types as shown above.
Thanks in advance.
Regards
Sudhi

I don't think multiple type is possible. Instead use super type like nt:base that will cover both page and asset.
Yogesh
www.wemblog.com

Similar Messages

  • I need your expert opinion on how to create a map with multiple conditions.

    Hello.
    I need your expert opinion on how to create a map with multiple conditions.
    I have a procedure (which i cannot import or re-create in OWB due to the bug), so i am trying to create a map instead :-(
    How can i create a cursors within the map?
    My function creates table and cursor.
    Then it will have to check for duplicates in the tables (the one created and another table) - the criteria for finding duplicates is a number of fields.I then need to place few different conditions (if some attributes are not available) and it has to load cursor based on this conditions. The next step is to fetch the data into the cursor based on what attributes are missing.
    The next thing it will do is insert the data into table (if record doesn't exist), output the error in separate table is record is corrupted, or update the record with changed information.
    In short i need to re-create match / merge but with conditions, iterations etc 'built into' it.
    I can read up on available functions - it's just what would be the best options? and what would be the best approach to do so?
    In my function i use %rowtype - but cannot use it in owb - so what would be the alternative? i don't really want to create a lot of variables and then have a nightmare of maintaing it. are there any tips regarding this?
    having looked through Oracle dedupe - it's not really what i need because it is just DISTINCT.
    I would appreciate any help / advise on this.
    Thank you very much

    thanks a lot for your reply - i will look into this option :-)
    it is a bit more complicated now as i have to re-create the match / merge and then somehow 'tweak' it to achieve the result i need.
    At the moment i am looking to breakdown the package into smaller chunks 'functions' and try creating the map that way.
    Anyway, thank you very much for your suggestion.

  • How does create a server with multiple Clients ?

    Any people can lead me .
    How does create a server with multiple Clients ?
    Thanks

    For a multithreaded server you will need a thread to listen and at least one thread per client. If the conversation is half duplex, one thread per client works very well, if it's full duplex you will find one thread to send and one to receive much easier to program.
    I posted a Simple Socket Server that uses 1+2*clients threads.

  • How to create sap query with "or" relationship

    dear experts,
    I need a report to display the employee whoese WSR is
    changed in the month for infotype 0007.
    that is ,we want to search with selection
    begda OR endda between 2008-01-01 and 2008-01-31.
    how to create sap query with "or" relationship?

    hi use like this,
    CALL FUNCTION 'HR_READ_INFOTYPE'
      EXPORTING
        pernr                 =  p_pernr
        infty                   =  '0007'
       BEGDA                =  p_date1
       ENDDA                 = p_date2
      TABLES
        infty_tab             = itab .
    hi use this by passing the pernr to fm and giving the dates low and high in the p_date1 and p_date2.
    loop at itab where condition.
    endloop.
    may it helps u,
    regards,
    venkat.

  • How to get the data from multiple nodes to one table

    Hi All,
    How to get the data from multiple nodes to one table.examples nodes are like  A B C D E relation also maintained
    Regards,
    Indra

    HI Indra,
    From Node A, get the values of the attributes as
    lo_NodeA->GET_STATIC_ATTRIBUTES(  IMPORTING STATIC_ATTRIBUTES = ls_attributesA  ).
    Similarily get all the node values from B, C, D and E.
    Finally append all your ls records to the table.
    Hope you are clear.
    BR,
    RAM.

  • How was created the cluster with keys in example: Sim Phone.vi

    Hello all
    I have LV 7.1.1
    I have found the example: Sim Phone.vi
    And I don't know how was created the cluster with keys?
    Best regards
    Iskander

    It's just like any other cluster you create. Put a cluster container on the front panel and insert some Booleans. the actual Booleans are on the classic controls palette. The border of the cluster is also colored transparent with the paintbrush on the Tools palette.

  • How to create a table with multiple select on???

    Hi all,
            I am  new to webdynpro and my requirement is to create a  table with multiple selection on.I have to add abt 10 rows in the table but only 5 rows should be visible and moreover a verticalscroll should be available to view other rows.Can anybody explain me in detail how to do that.Please reply as if you are explaining  to a newcomer.Reply ASAP as i have to do it today.
                                                                           Thanxs

    Hi,
    1. Create a value node in your context name Table and set its cardinality to 0:n
    2. Create 2 value attributes within the Table node name value1 and value2
    3. Goto Outline view> Right click on TransparentUIContainer>Apply Template> Select Table>mark the node Table and it's attributes.
    you have created a table and binded its value to context
    Table UI properties
    4.Set Selection Mode to Multi
    5.Set Visible Row Count to 5
    6.ScrollableColCount to 5
    In your implemetaion, you can add values to table as follow:
    IPrivate<viewname>.ITableElement ele = wdContext.nodeTable().createTableElement();
    ele.setValue1(<value>);
    ele.setValue2(<value>);
    wdContext.nodeTable().addElement(ele);
    The above code will allow you to add elements to your table node.
    Regards,
    Murtuza

  • How to create list items with multiple attachment files using rest api javascript

    In one of user form I am using javascript rest api to create a list item with multiple attachment files. So far I am able to create list item and once created uploading an attachment file. But this is two step process first create an item and then upload
    a file.
    It create an additional version of the item which is not desired. Also I am not able find a way to attach multiple files in a go. Following is the code I am using.
    createitem.executeAsync({
                    url: "/_api/web/lists/GetByTitle('UserForm')/items(1)/AttachmentFiles/add(FileName='" + aFile.name + "')",
                    method: "POST",
                    contentType: "application/json;odata=verbose",
                    headers: {
                        "Accept": "application/json;odata=verbose",
                        "X-RequestDigest": $("#__REQUESTDIGEST").val()
                    binaryStringRequestBody: true,
                    body: fileContent,
                    success: fnsuccess,
                    error: fnerror
    So somehow I need to combine item attributes along with attachment files in body: param. I visited https://msdn.microsoft.com/en-us/library/office/dn531433.aspx#bk_ListItem but no success.
    Appreciate any help.

    Thanks Mahesh for the reply and post you share it was useful.
    But this does not solve the core of the issue. You are uploading attachments after creation of item and multiple files are being attached in loop. This is kind of iterative update to an existing item with attachments. This will end up creating multiple versions. 
    What I am trying to achieve is to create an item along with multiple attachments in a go. No item updates further to attach a file.
    Please suggest how this can be done in one go. SharePoint does it when one creates an item with multiple attachment.
    Thanks for your reply.

  • How to create Item Codes with multiple Item Description

    Hi,
    for one of my client, we need to create Item Codes with multiple Item Description.
    e.g.,
    Item Code - M00285
    Item Description 1 - Blue Paint
    Item Description 2 - Red Paint
    Is that possible in SAP Business One? If "Yes" kindly provide a solution. Else recommend an alternative method.
    Regards,
    Ammheya U. Naaik

    Ammheya,
    I just wanted to add that there is an Add-On that handles "Style, Color, Size" situations like yours.
    It allows you to define a "master" item, (Paint, for example) and then setup the various styles, colors and sizes it comes in. 
    This creates sub-items for each with the master in the ItemCode (Paint-Blue, Paint-Red, etc)
    It's called MatrixOne from Navigator.  You could find it on the partner portal with other Add-Ons.
    Hope thathelps,
    Brad Windecker

  • Do someone knows how to create a cluster with two nodes on oracle VM Ware

    dear members,
    can someone guide us through creating a cluster with two nodes on oracle VM. it will be nice if we can virtualiza RAC, atleast for education purposes.
    Thank you all in advance

    Here is an excellent article that explains how to do this:
    http://startoracle.com/2007/09/30/so-you-want-to-play-with-oracle-11gs-rac-heres-how/

  • How to create the Query and T Code for Special Reports

    Dear Freinds,
    Could any one advise the process to create the Query and the T code for some special combination of reports. Where can we find the documentation on this if that exists?
    Thanks for the help.
    Regards
    Moderator: Please, search SDN - you'll find the answers

    HI
    Go to Tools -->ABAP WorkBench -->Utilities --> SQVI QuickViewer ( Query Builder)
    Go to Tools -->ABAP WorkBench -->Utilities -->SAP Query -->SQ01,SQ02,SQ03
    first create Infosets in SQ02, Assign Infoset to UserGroups in SQ03 and create a Query in SQ01.
    Create a Transaction Code in SE93.
    regards
    Venkat

  • How to create a ListDefinition with multiple ContentTypes

    Hi,
    i need to create a list definition with two contenttypes. When is use the Visual Studio SharePoint ListDefinition from ContentType, i am only able to add one contenttype to the list. But i have two contenttypes. I don't know how to add them to a ListDefinition
    (DocumentLibrary).
    This is my Contenttype:
    <?xml version="1.0" encoding="utf-8"?>
    <Elements xmlns="http://schemas.microsoft.com/sharepoint/">
    <Field ID="{1D6C3BF2-5269-4892-B147-659A5EE36BED}" Name="MyChoiceField" DisplayName="MyChoiceField" Type="Choice" Group="MyBox" Hidden="False" Required="False">
    <CHOICES>
    <CHOICE>-/-</CHOICE>
    <CHOICE>Choice1</CHOICE>
    <CHOICE>Choice2</CHOICE>
    </CHOICES>
    </Field>
    <!-- Parent ContentType: Document (0x0101) -->
    <ContentType ID="0x010100d7d016b413b244e8a6a185cf8b0afd3b"
    Name="MyBox Document"
    Group="MyBox"
    Description=""
    Inherits="False"
    Version="0">
    <FieldRefs>
    <FieldRef ID="{1D6C3BF2-5269-4892-B147-659A5EE36BED}" />
    <FieldRef ID="{fa564e0f-0c70-4ab9-b863-0177e6ddd247}" Hidden="TRUE" Required="FALSE" DisplayName="_hidden" />
    </FieldRefs>
    </ContentType>
    <!-- Parent ContentType: Folder (0x0120) -->
    <ContentType ID="0x012000cdce40c9703b4b5aa7a84044a040c005"
    Name="MyBox Folder"
    Group="MyBox"
    Description=""
    Inherits="False"
    Version="0">
    <FieldRefs>
    <FieldRef ID="{1D6C3BF2-5269-4892-B147-659A5EE36BED}" />
    </FieldRefs>
    </ContentType>
    </Elements>
    Is there a way to create a minimal schema.xml with these contenttypes manually or what are the steps to build a listdefinition with multiple contenttypes?
    Best Regards
    Bog
    Developers Field Notes | www.bog1.de

    You can define them in the schema.xml of list definition.
    <?xml version="1.0" encoding="utf-8"?>
    <List xmlns:ows="Microsoft SharePoint" Title="Something" Direction="$Resources:Direction;" Url="Something" BaseType="1" xmlns="http://schemas.microsoft.com/sharepoint/" EnableContentTypes="TRUE">
    <MetaData>
    <ContentTypes>
    <ContentTypeRef ID="0x0100707A19136D594D7784D9E30A5FBA58C1002D7898DEE60A4FDEBD3CD1EFAB442000" />
    <ContentTypeRef ID="0x0100707A19136D594D7784D9E30A5FBA58C1002D7898DEE60A4FDEBD3CD1EFAB4427A000678E9CDB185C4DCEAC41F865393A1234" />
    <ContentTypeRef ID="0x0100707A19136D594D7784D9E30A5FBA58C1002D7898DEE60A4FDEBD3CD1EFAB4427A0007A4D2F6526CA4D8F8B5AD2BD64C3A123" />
    </ContentTypes>
    <Fields> </Fields>
    <Views> </Views>  </MetaData>
    </List>
    --Cheers

  • How to create a dashboard with multiple prompts ?????

    Dear All,
    I need to design a dashboard with multiple prompts, which has been desined from webi.
    Ex: i have a prompts of year,sales manager and promotions has prompts in webi report.
    I am trying to create a dashboard on top of this webi report; i am also using live office.
    how can i design this dashboard with mutiple prompts.
    any doc's are links which is related to this topic will be a great help.
    Thanks in advance.
    Regards,
    Suman

    Dear Praveen,
    Thanks for your suggestion; i hope we need some third party tool for multiple selection.
    But i need to know which kind selectors i can use from the components for multiple selection.
    question 1:
    Ex:
    I have prompt for year;
    scenario 1: i need to filter the year by 2001,2002,2003.
    or
    scenario 2: need to filter the year by only one year 2001.
    question 2:
    I have created a dashboard on top of webi report; but i have filter for the year in from to value's.
    Ex:
    Year is from 2001 - 2009.
    when i am enabling this prompt in xcelsius i cannot see from and to option; how should i design this one.
    Regards,
    Suman

  • How to Transpose the Query with following result

    Dear All,
    Can anyone tell me a method of transposing my result of the following query
    Details can be found at
    http://obiee11ge.blogspot.com/2010/07/how-to-transpose-query-with-following.html
    Regards
    Mustafa

    Hi,
    Try this
    Create a combined request with,
    criteria 1 : Dummy, Revenue (Actual),Cogs(Actual), Opex(Actual), PL(Actual)
    in the dummy column fx enter the value as 'Actual'
    criteria 2 : Dummy, Revenue (Yago),Cogs(YAgo), Opex(Yago), PL(Yago)
    in the dummy column fx enter the value as 'Yago'
    criteria 3 : Dummy,Revenue (Budget),Cogs(Budget), Opex(Budget), PL(Budget)
    in the dummy column fx enter the value as 'Budget'
    Now go to the result columns and set the coumn names (Revenue, Cogs, Opex, PL) for the result set.
    For the Dumny remove the column heading.
    In table view you will get the result.
    Thanks,
    Vino

  • How to create sales return with multiple invoices

    Hi ,
    I am creating a sales order return with reference of billing document using FM SD_SALESDOCUMENT_CREATE, if i give one Billing document as a reference document it is creating document perfectly.
    But my Requirement is to create one Return sales order with multiple invoices.
    I tried to pass reference document no's in Item level , but it take first reference document number only , for that reference document only return is creating.
    Can you any one help me how to create this.
    Thanks in advance
    Swapna.

    Hello Venkat,
    As I know it is not possible to create a single return order for multiple invoices in the background.
    It is possible in the foreground by following the below steps.
    1) Goto VA01 --> enter the Sales order type and Sales area.
    2) Press F8 or click on create with reference, provide the first invoice.
    3) Now the main screen would appear, displaying line items from Invoice1.
    4) Without going back, again goto path, Sales document -> Create with reference
    5) Enter second invoice2. and the items from invoice2 will also appear in the Sales order line item.
    ------ Enter as many number of invoices by repeating the above step--------------------
    6) Press save, so one sales order is created for multiple invoices.
    Regards,
    Thanga

Maybe you are looking for

  • Google browser and others show all web page on netbook but firefox wont i have to scrool why can i change settings on firefos to help this problem

    all other web browsers when i use on my net book show full web page but with Firefox i have to scroll side ways cant see full width of page sometimes Firefox will show full page but this is not often are the settings in Firefox to help this problem i

  • US States in float down menu DO NOT have MAINE

    I am trying to get a skype phone number in the state of Maine.  Every state is mentioned in the float down menu except MAINE.  Shall I just pick any state ???

  • 17-in MBP crashes all day

    I can't tell if it is the apps causing this but my new MB Pro does not seem to like: Acrobat 7.0 Netscape 7.1 MS Word 2004. Either alone or in combination Is it these apps acting squirrely or is it my system? Can anyone help? Mahalo in advance. Kris

  • WRT54GC Inbound Issues

    Hi I have been using the WRT54GC for over a year at our office. We're in a daisy chain setup with the WRT54GC as the DHCP controller andtwo other routers/hub with closed down DHCP to connect additional computers. Internally everything works fine. But

  • Slipping frames during master to tape

    HI, I'm having trouble getting frame accurate edit / master to tape. I'm playing out from FCP 6.0.5 to a Sony HVRM 25 P Deck, in PAL DVCam recording mode via firewire, using the master to tape function. My tapes are always blacked at the head with co