How to query a  collection  for a particular feild value

I have a service called as RevenueItemsService and iam calling the below operation:
<wsdl:operation name="GetRevenueItems">
<wsdl:input message="tns:GetRevenueItemsSoapIn" />
<wsdl:output message="tns:GetRevenueItemsSoapOut" />
</wsdl:operation>
and in the response i get array of UserDefinedField as a part of response The array is of below type :
<s:complexType name="UserDefinedField">
<s:attribute name="Name" type="s:string" />
<s:attribute name="Version" type="s:decimal" use="required" />
<s:attribute name="UDFType" type="tns:UDFType" use="required" />
<s:attribute name="Enabled" type="s:boolean" use="required" />
<s:attribute name="Required" type="s:boolean" use="required" />
<s:attribute name="Index" type="s:int" use="required" />
<s:attribute name="Value" type="s:string" />
<s:attribute name="ForBizLogicEntity" type="s:string" />
</s:complexType>
My question is when i get array(assume i got 5 userdefined feilds as the array)
I want to query the xpath in such a way that in the array if i ask for a particular version in the userdefined feilds then it has to give me that particular index value.
Example:
we have a array of following :
Array1:
name: xxx
version : 1.0
UDF type: udf1
Index: 1
Array 2
name: YYY
version : 2.0
UDF Type : Udf2
index : 2
etccc.....upto n .
so my question is , i want the result in such a way if i say version=2.0 then it has to return me the corresponding index as 2. How do i do that in BPEL.
Please provide me some suggestions.
Or .
you can provide me some link where i can find the answer
Any suggestions are appreciated.
Regards
Pavan

little example :
<element name="assignInArrayProcessRequest">
  <complexType>
   <sequence>
    <element name="array" maxOccurs="unbounded">
     <complexType>
      <sequence>
       <element name="name" type="string"/>
       <element name="version" type="string"/>
      </sequence>
     </complexType>
    </element>
   </sequence>
  </complexType>
</element>so the array element is unbound.
this is the process payload
<ns1:array>
  <ns1:name>test1</ns1:name>
  <ns1:version>213562363</ns1:version>
</ns1:array>
<ns1:array>
  <ns1:name>test2</ns1:name>
  <ns1:version>yeryeryer</ns1:version>
</ns1:array>
<ns1:array>
  <ns1:name>test3</ns1:name>
  <ns1:version>fytetr</ns1:version>
</ns1:array> now you can use this peace of code
        <assign name="setArrayValue">
            <copy>
                <from expression="string('1.9999')"/>
                <to variable="inputVariable" part="payload"
                    query="/client:assignInArrayProcessRequest/client:array[1]/client:version"/>
            </copy>
        </assign>to update the value of version in the first element of the array.
in this example you can also create some loop and use the 'index' , the [1] value dynamic to update more then 1 values in the array-element
the response after the update
<ns1:array>
  <ns1:name>test1</ns1:name>
  <ns1:version>1.9999</ns1:version>
</ns1:array>
<ns1:array>
  <ns1:name>test2</ns1:name>
  <ns1:version>yeryeryer</ns1:version>
</ns1:array>
<ns1:array>
  <ns1:name>test3</ns1:name>
  <ns1:version>fytetr</ns1:version>
</ns1:array>Maybe you can use it :)

Similar Messages

  • How to query a Collection for Collection rules (Powershell only)

    I have :
     $Collection = gwmi -computer MyServer -namespace "root\sms\Site_XXX" -class "SMS_Collection"
     $MyCollection = $collection | where { $_.Name -eq "TEST" }
    $MyCollection have a property named CollectionRules
    I could'nt manage to read this property,
    nor $MyCollection.CollectionRules
    nor  $MyCollection.CollectionRules | % { $_ }
    is Working.
    Any help on this ?

    Hi, 
    the above code works, but if you have a large environment then it may take a long time to run as you are querying for every collection before looking for the 'TEST' collection.
    The following code only looks (filters) for the specific collection so should execute much faster.
    $Collection = gwmi -computer MyServer -namespace "root\sms\Site_XXX" -class "SMS_Collection" -filter "Name='TEST'"
    $Collection.Get()
    $Collection.CollectionRules | % { $_ }
    Another method of doing the same would be this:
    $Collection = Get-WMIObject -computer MyServer -namespace "root\sms\Site_XXX" -query "Select * FROM SMS_Collection WHERE Name = 'TEST'"
    $Collection.Get()
    $Collection.CollectionRules | % { $_ }
    Hope you or someone else may find this useful :)

  • How to query opening balance for all customer or Vendor for an speci. date

    Hi,
    How to query opening balance for all customer or Vendor for an specific date?
    Example:
    put any date and query will show all customer/ Vendor  that date opening/current balance.
    Regards,
    Mizan

    Hi mizan700 ,
    Try this
    SELECT T0.[DocNum] As 'Doc No.', T0.[CardCode] As 'Customer Code',
    T0.[CardName] As 'Customer Name',(T0.[DocTotal]-T0.[PaidSys]) As 'O/S Balance'
    FROM OINV T0 INNER JOIN OCRD T1 ON T0.CardCode = T1.CardCode
    INNER JOIN OCRG T2 on T1.GroupCode = T2.GroupCode
    INNER JOIN INV1 T3 ON T0.DocEntry = T3.DocEntry
    WHERE T0.[DocStatus] ='O'
    AND
    (T0.[DocDate] >='[%0]' AND T0.[DocDate] <='[%1]')
    Regards:
    Balaji.S

  • How to find condition  type for a particular material document no.

    hiiiiii
    How to find condition type for a particular material document no.

    Hi
    Condition types are maintained at PO level
    Take the EKKO-KNUMV and pass to
    KONV-KNUMV field and take the different condition types values from KONV
    Take the Material Document No (MBLNR) and pass to MSEG table and take the EBELN field and from EKKO table take EKKO-KNUMV field and pass to KONV
    see the table T685 for different condition types.
    <b>Reward points for useful Answers</b>
    Regards
    Anji

  • How to find Missing Parts for a particular Process Order?

    Hi,
    How to find Missing Parts  for a particular Process Order ?
    Is there any function module or Table ??
    Thnx in Advance.

    Hi prince roy
    you can use the T-code = <b>CO24 - Missing Parts Info System</b>
    if helpful PLEASE REWARD YOUR POINTS
    thanks
    chakri

  • How to delete the Infoobjects for a particular dimension?

    Hi,
    How to delete the Infoobjects for a particular dimension?
    ( when i was trying to delete dimensions it is saying that the dimension contains infoobjects , u can not delete the dimension, what 2 do?)
    Thanx in advance,
    Ravi.

    Ravi,
    If you want to remove the Infoobject from Dimension then you need to delete the data from the cube and then remove the infoobject from that particular Dimension. I mean delete the assignment for that Infoobject.
    Assign Points if it helps..
    Incase if you need more help.. Please call me..
    Gattu

  • How to trigger a badi for a particular screen of a transaction alone?

    friends
    am trying to issue an error msg. in the PAI of the screen SAPMQEVA (0102), which belongs to QA11/Usage decision..In the method PUT_DATA of implementation QEVA_SUBSCREEN_1101, am able to capture all the screen fields..but the problem is there are two tabstrips (Defects, Inspection Lot stock), i want to trigger the msg only in the PAI of SAPMQEVA (0102), i.e the last tabstrip (Inspection Lot stock)..but this badi triggers in every pai of QA11 and issues the error msg..but the values of the screen fields of the last tabstrip are getting filled only in the PAI of the same, but how to trigger it for the PAI of the last tabstrip alone..no parameters in the method seem to have screen no. or okcode...hav tried with badi INSPECTIONLOT_UPDATE, which doesn't solve the purpose...pl suggest
    regards
    Sathish. R

    hi
      tx for answering...i have tried in all the user exits, including the one that you mentioned, but in none of them the UD data or storage loc. data sits in..only in the badi that i've mentioned i get all the data of the screen fields...how to make it trigger for that particular screen alone, is that doable?
    regards
    Sathish. R

  • How do I find/search for a particular app or genre of them

    How do I find/search for a particular app or genre of them in Maverick app store...thx for any help...byeGeorge

    Just go to App store and type in what you want in the search box.   Say, apps for word processors, Anti virus apps, Games apps and so on.   You could also go via Google with a similar approach and lastly, the system divides up particular subjects in any event ...  under the term Categories.
    Having said that, the system isn't a mind reader.   It's up to you to refine what you've  been presented with.

  • How to create a sequence for an particular item in my apex form

    Hi friends,
    I created an database application, of a form with a report, and it is working fine...
    But in my form, i have a requirement....The below are the existing fields in my form
    issue no
    created by
    start date
    status
    priority
    due date
    Among these fields in my form i need to create a 'Sequence' for my field "issue no",
    So that whenever i opened the form the 'issue number' must generate automatically like 1 for the first time, 2 for the second time and so on..
    For that i created a sequence
    CREATE SEQUENCE "ORDERS_SEQ"
    MINVALUE 1
    MAXVALUE 999999999999999999999999999
    INCREMENT BY 1
    START WITH 1000
    NOCACHE
    NOCYCLE;
    But for validation where i need to write the sequence query for the particular item 'issue no'....i dont have any idea of where to write the validation query for the sequence..
    please tell where i need to write in step wise manner..please help me friends...
    As the below is my validated sequence query for item 'issue no'
    'select seq.issue_id.nextval into issue_no'
    This is my above validation query whether the query that i mentioned is right..if not let me know the validation query..
    And also i need where to apply this validation query in steps..
    Thanks in advance
    Regards,
    Harry...

    Harry,
    Rik is on the right track. Here is a sample insert trigger: Would need to substitute you sequence ORDERS_SEQ with my sequence las_log_seq, how you define or use timestamps is up to you.
    DROP TRIGGER LASDEV.BINS1_LAS_LOG_TBL;
    CREATE OR REPLACE TRIGGER LASDEV."BINS1_LAS_LOG_TBL"
       BEFORE INSERT
       ON las_log_tbl
       FOR EACH ROW
    BEGIN
       -- Description: Insert log_seq, creation_dt, creation_id,
       --              lst_updt_dt and lst_updt_id.
       -- Maintenance:
       -- Date        Actor          Action
       -- ====        =====          ======
       -- 07-Sep-2010 J. Wells       Create.
       :new.creation_id := nvl( v( 'app_user' ), user );
       :new.creation_dt := SYSDATE;
       :new.lst_updt_dt := :new.creation_dt;
       :new.lst_updt_id := :new.creation_id;
        SELECT las_log_seq.NEXTVAL
          INTO :new.las_log_seq
          FROM DUAL;
    END bins1_las_log_tbl;
    /Heff

  • How to retrieve long text for a particular record

    Hi,
    I've been looking through some of the numerous posts relating to reading long texts but I can't seem to find out how to retrieve the necessary parameters for READ_TEXT for a particular record without using the GUI.
    Is there a way in ABAP that one could retrieve the parameters that are required to execute READ_TEXT just from one of the fields in the base table.  eg.  I would like to bring back a list of all materials with their associated long texts.  I can run a query on MARA for example and retrieve the necessary material information but I would like to know how I could get the necessary information, for each row in my results, to pass to READ_TEXT. 
    What information would I need to perform the above, if at all possible?
    Thanks in advance,
    Charles

    You can check out SE75.  Here is where the objects and ids are listed/maintained.  There is one trick to find the object/id.  That is,  create the text in the specific transaction.  If you are talking about header text for a sales orders, go to VA02 and enter some text and save.  Now go to SE16, enter STXH as the table name.  On the selection screen for STXH,  enter your user name for "created by" and enter the date.  Execute.  The record that you see is probably the text that you just created.  You can see the object, the id, and even how the name is built.  In this case,  it would be sales order number.
    Sometimes where you enter the text, there is a little "scroll" icon under the text editor, clicking that will tell you the object and id.  In some cases, this functionality is not there.
    Regards,
    Rich Heilman

  • How to calculate Opening Stock for a particular date.

    Hi Experts,
    I have a sitution to calculate Opening stock for a particular date.
    please help me with the necessary Fields & Tables required.
    Appriciate If any Sample coding available.
    Thanks & regards,
    Venkat.

    Hi Venkat,
    To Calculate Opening Stock & Closing stock there are different procedures.
    It just depends of\n the client requirements & usage of the material.
    For example, we have different types of stocks, like, Through Pipeline, Special, Unristricted, quality, safety,
    and many types of stocks.... so all these types are indicated in MSEG tabe in SOBTZ field,...
    Now Comimg to your Query, You need to calculate OPENING & CLOSING STOCK.
    We have a similiar standard report in MB5B Tcode..
    to get the same results in your report do like this...
    For valuated stock go to the MARDH, MBEWH, MCHBH tables But I Prefer MBEWH.
    here in MBEWH give the month & year and you get the result in LBKUM field...
    For Special stock, You need to go to another table like MKOLH,,(I forgot still 2 more) and
    give the month & year inputs and you will get the result in SLABS field.
    and remaining MB5B refers to its deetails lists with different Movement types,
    whcih you can get clearly from MSEG Table...
    Hope you can write the select Queries accordingly.
    Thanks & Regards,
    Dileep .C

  • How to set different font for a particular row in jtables?

    How to set different font size and font type for a particular row in jtable?

    More than enough sample code here:
    [http://java.sun.com/docs/books/tutorial/uiswing/components/table.html]
    db

  • Query not executing for one particular value

    Hi
    I have query on multi provider. and this multi provider is combination of Info objects only but not any ODS or cubes. I have one key figure in this multi provider.while executing the query i need to give input for variabl which has 7 different values. Query is executing fine for 6 values but not for one particular value.
    query executed in listcube transaction and it is executed fine here for the same selection. then what might be the reason?
    Please advise as soon as possible.
    Thanks

    Hi Kiran,
    are you maintaining any filters in the query? or is there any logic in the exit for this variable.
    regards.

  • How to configure Reconciliation only for a particular resource

    Hi All,
    I have a requirement to configure target reconciliation from AD only for a client. For that i have installed the conector as per documentation (both prov and recon). Now how can i make sure that:-
    1. When i disable/enable the user in OIM, corresponding target resource will not be disabled/enabled.
    2. If i make any changes on resource form corresponding change should not flow back to AD.
    Does removing the prov related jar able to ensure these things or i need to remove the corresponding prov lookup or any changes required in configuration lookup? Please suggest...TIA

    Change the drop down option to "Disable Process..."
    Attach tcComplete event handler there.
    In Task to Object Status Mapping, select Disabled in front of completed.
    Now suppose user is PROVISIONED to a resource say Test. So whenever user gets DISABLED in OIM, it will disabled the target resource Test. But in actual the target resource will not be disabled for that user. He/She can access that resource after getting disabled as you haven't put the logic to disable the target resource (as you have used tcComplete here).
    As you are saying that it should show disabled only if Disabled is coming from Trusted Resource. Then it's fine till now.
    If you don't want to show status as Disabled then in Task to Object Status Mapping, do not select Disabled in front of completed. In this case, it will show status as PROVISIONED only. This is wrong.
    I'll try to understand what you have written here ->
    BUT NOW THE ISSUE. IT DISABLED MY ASSOCIATED RESOURCE (not in target resource actually but on oim side under resources tab). THIS IS ACTUALLY NOT DESIRABLE.
    - > It will do as you are using tcComplete. If you put your java code which disables the target resource in integration tab (in form of process task adapter instead of tcComplete) then it will disables the actual target resource for user.
    REAL REQUIREMENT IS THAT FOR NOW (*till provisioning is not configured*) OIM DISABLE SHOULD NOT INVOKE THE DISABLE OF ASSOCIATED TARGET RESOURCE NOR IT CHANGED THE STATUS UNDER RESOURCES TAB FOR PARTICULAR RESOURCE. THE STATUS UNDER RESOURCES TAB SHOULD ONLY BE CHANGED WHILE RECONCILIATION.
    -> As you have written, "Till provisioning is not configured", So if provisioning is not configured then it will not show disabled under Resource tab for that particular resource.
    You can see disabled only after resource is provisioned to that user.
    If this doesn't answer your question, it would be better if you explain your requirement clearly. It's not clear.

  • How to find Registry id for a particular supplier from back end

    I have just gone through the link of anil passi for getting registry_id for a particular supplier from front end
    but how come we can find registry_id from back end to a particular supplier.So, that we can get party_id of that supplier in HZ_PARTIES

    Hi,
    Sounds like you'll have more luck asking that in one of the E-Business Suite forums:
    https://forums.oracle.com/forums/category.jspa?categoryID=3
    Regards
    Peter

Maybe you are looking for

  • Atheros Driver to W2K in Satellite M30X - Please help-me

    Friends, Due IT policies in my company i can't use the Windows XP. I have to my work a Satellite M30X with a wifi mini PCI board, the model is Atheros MB51, and the code is AR5BM5 (i think so thats a part number). My actual OS is W2k. My problem is,

  • Can't log out from iCloud

    Hi. I have a problem. Several times a day, my iPad try to log it self into iCloud on a mail I don't use anymore. And the problem is, that I can't remove it, cuz I don't have the password anymore. I've tried to recover it, but it won't send any mail t

  • Problem while uploading data from flat file

    hi friends, suppose if there are 100 records in flat file , if 20 records uploaded with out any problem and if error occurs while uploading remaing data . is necessary to upload entire data again or else only remaining data should be uploaded? i had

  • Hi can you please advise how I can upgrade from cs5 to cs6 without monthly annual payments or this cloud stuff

    Any assistance would be appreciated been trolling the net for ages no success.

  • Can't delete Motion.app

    After a problematic (endless, failed) update from the App Store, I need to delete and maybe reinstall Motion but I can't. Emptying the trash is impossible (left hanging there with a blank progress bar for 12 hours or more...). I tried using Terminal,