How to put input variable (elementName in xpath) name in runtime for Assign

Hi All,
I want to know how to refer an XSD schema based variable's element and assign it to some other variable at runtime. I mean how can i put the 'To' element's name in assign-activity at run-time?
Suppose i am having a variable "varInput_PastDuedata" which as below expansion:-
-varInput_PastDuedata
-body
<> ns6:Root-Element-Email
<> ns6:emailRecords
<> ns6:CCID
<> ns6:ACCTNO
<> ns6:CUTOFFDATE
<> ns6:AMOUNTDUE
<> ns6:MOBNO
<> ns6:TO
<> ns6:FROM
<>ns6:SUBJECT
Now suppose we have assigned text "ACCTNO" to a "String" type variable "varTempString_AcctNo"
now after above step lets have an assign activity. Now, if we want to assign "varInput_PastDuedata->body->ns6:Root-Element-Email->ns6:emailRecords->ns6:ACCTNO" variable's data to a "String" type variable "varTempResult"
then we simply assign bpws:getVariableData('varInput_PastDuedata','body','/ns6:Root-Element-Email/ns6:emailRecords/ns6:ACCTNO')
expression to "varTempResult" variable. But what if i define the element name in run-time which is to be assigned to "varTempResult" then how to do it?
I tried below steps but failed:-
1) I first assigned "ACCTNO" text to a "String" type vaiable "varTempString_AcctNo"
2) Then i tried doing below assignment:-
<copy>
<from expression="bpws:getVariableData('varInput_PastDuedata','body','/ns6:Root-Element-Email/ns6:emailRecords/ns6:$varTempString_AcctNo')"/>
<to variable="varTempResult"/>
</copy>
but it failed at run-time
3) I also tried below assigment:-
<copy>
<from expression="bpws:getVariableData('varInput_PastDuedata','body','/ns6:Root-Element-Email/ns6:emailRecords','/ns6:$varTempString_AcctNo')"/>
<to variable="varTempResult"/>
</copy>
but this one also got failed
4) I tried below assigment also:-
<copy>
<from expression="bpws:getVariableData('varInput_PastDuedata','body','/ns6:Root-Element-Email/ns6:emailRecords',bpws:getVariableData(varTempString_AcctNo)"/>
<to variable="varTempResult"/>
</copy>
but this one also got failed
Please help me in finding the solution for how can i achieve this functionality and decide at run-time about which element is to be used in assignment. Write me for further input if you want in this regard..
Thanks,
Mahipal Singh
[email protected]

I am not sure what you are looking, as far as what I understood from your question is setting up the values dynamically.
For setting up the values dynamically you can use getPreference() inside assign activity. You can define the values directly inside the console. The following link might help you
http://eelzinga.wordpress.com/2009/10/28/oracle-soa-suite-11g-setting-and-getting-preferences/
Thanks,

Similar Messages

  • How to put restriction/variable in BI 7.0 ? Is there any settings required?

    Hello,
    I am working on BI 7. I want to know ""How to put restriction/variable in BI 7.0 ? Is there any settings required? I am putting some variables in BI 7.0 while making some query""
    amit shetye.

    Hi Amith,
              just create a new query  like a previous  versions how u create..  and  now  select particular charecterstic  in the  left side window itself.. and drill down it.. and create  a variable..  and assign all the properties to that variable.. now  drag that particular variable.. in to the Rows  or filters..
         for Restrictions...  put any charecterstics into Free charecterstics.. and right clcik that and select  Restriction. now you need to give  the  values.. based on that  it will  RESTRICT THE VALUES..
    BI 7.0 reporting features
    http://searchsap.techtarget.com/cgi-bin/rd.pl/ftID-1121728-ctID-1064004?//expert/KnowledgebaseAnswer/0,289625,sid21_gci1064004,00.html
    http://help.sap.com/saphelp_nw04s/helpdata/en/9d/24ff4009b8f223e10000000a155106/content.htm
    https://www.sdn.sap.com/irj/sdn/developerareas/bi?rid=/webcontent/uuid/ba95531a-0e01-0010-5e9b-891fc040a66c [original link is broken]
    http://help.sap.com/saphelp_nw04s/helpdata/en/43/F9D041D6392AE3E10000000A422035/frameset.htm
    BI7.0
    For greater information on reporting.....
    Good Knowledge in BW Reporting
    regards
    @jay

  • How to put a variable column value in a "vlookup"

    Hello there,
    I am trying to put a variably chosen column value in a "vlookup" function.
    Logically this should work, but it does not, and I cannot figger out why.:
    "=vloookup("a", B5:Z28, {=MATCH(4, B4:Z4, 0)})" (replaced brackets with {} for this post)
    I am trying to look up the letter "a" in whatever column matches the "match" criteria.
    The match is matching a specific value of 4 from row B. (This value varies based on other input)
    The vlookup is for finding the letter "a" the whole table in whatever column is returned by the MATCH formula.
    How can I do this?
    (Like I said the formula above is logically correct, but numbers returns a syntax error.)
    Thanks from Alaska
    Message was edited by: John Boyarsky
    Message was edited by: John Boyarsky
    Message was edited by: John Boyarsky

    John,
    Next get rid of the brackets you referred to; unnecessary. If that doesn't do it, calculate the column number in an auxiliary column and refer to that column in your expression.
    Jerry

  • APEX 3.0 PDF FOP OC4J REPORT: how to put a variable in the header or footer

    hello.
    I want to put a variable ( like :P15_MY_PARAMETER) in the header OR footer of a standard PDF report , but does'nt work.
    I tried HTML formating with ' &P15_MY_PARAMETER. ' like described in the thread Include a display value in HTML footer ( Include a display value in HTML footer )
    but PDF generated is not readeable by Adobe, , I suppose html codin was not translated.
    Is it a possibility to put a variable in a PDF header / footer.?
    Thanks
    Fernand Ducarme

    Keith,
    If you want to use the value of page items in your PDF page header or footer, they need to be written to session state first. In order to do this, your form needs to be submitted. So a button that redirects to a URL or a report print links (that also redirects), won't do that. But submitting your form doesn't necessarily mean you'll have to leave or refresh your current page. All you would have to do is create a branch that points to your PDF document, and make that the target of your submit action. This way, your page doesn't refresh, and you'll get the open/save PDF dialog you would expect.
    So to give you an example, if you have a regular reports region, enable PDF printing, but do not specify a link label. Then create your own print button, which needs to be a submit button (not redirect to URL). And then create a branch to the current page that is executed when pressing your print button. That branch also needs this request:
    FLOW_XMLP_OUTPUT_R[Report Region ID]
    so if your report region ID is 90104803966374878, then the request would be:
    FLOW_XMLP_OUTPUT_R90104803966374878
    The same technique works for report queries, only in that case you would point to page 0 and use this request:
    PRINT_REPORT=[your report query name]
    So if your report query name is "myreport", this would be
    PRINT_REPORT=myreport
    Hope this helps,
    Regards,
    Marc

  • How to put two files with the same name into the same folder?

    How can I put two files with the same name and the same extention into the same directory?
    Is this even possible?
    Thanks in advance. 

    Are you sure? I would be very surprised if that was the case.
    How does the computer/filing system differentiate the files, if not by their names?
    How do you tell the computer which one you want? (On the command line.)

  • How come firefox does not remember my user name and password for the verizon wireless website ? or verizon wireless ?

    how come when i log onto the verizon wireless web site to pay my bill, i have to sign my user name and password every time ? i am not getting the firefox pop up asking me if i want firefox to save my password for this site. so how do i get firefox to remember my log in information for my verizon wireless website ? thank you.

    This would be verizonwireless.com, correct? Their site requests that browsers should not save information for its login form.
    If you're comfortable with using bookmarklets, there's one here that should force Firefox to remember:
    https://www.squarefree.com/bookmarklets/forms.html#remember_password .

  • How to put a little textbox in a regular applet window for user input

    Hi i was just wondering if anybody knows how to draw a text box, (for user input), in a applet window and be able to put it in a specific spot, like when you draw a rectangle.
    I have searched the web and have not found any answers, but i have seen projects that do this but they dont have the source code.

    JTextField?

  • How to put path variables into a jar?

    Hey,
    I'm writing a Java prg, that needs some path variables for the JVM. I used to
    pass them over to the JVM each time at start up. Since this solution seems
    to me slightly complex I wonder if there's no other solution like e.g. placing
    them into a .jar's manifest so that the jar has them already - might this be
    possible?
    /usr/local/java/current/bin/java
    -Djava.library.path=/mnt/.../jdk1.5.0_05/jre/lib/i386/client:/usr/.../jdk1.5.0_05/jre/lib/i386:/usr/local/java/jdk1.5.0_05/jre/../lib/i386:/usr/... -cp /mnt/.../JRI.jar:/mnt/.../apache.poi/poi-2.5.1-final-20040804.jar:/mnt/.../CSV/ostermillerutils_1_06_00.jar mainGUI.FrameMain /mnt/.../workspace/project/In case it might also be possible using just a jar, I would appreciate
    some links on how to do that, TIA!!!

    Well I thought about that, since I'm working under linux a start.sh script serves
    qutie well. I'd like to use the prg also under windows but thought a start.bat
    might rather be discouraged?!
    I thought about writing an installer or just using one of the already existing installer projects, to set up those paths in the manifest of the jar directly each time it get installed - the problem is I need these absolute paths, since the prg depends on some another prg, which could be situated on a different position depending on the system and installation...
    Thus I'd like to know, is it possible to set path variables in a manifest's jar at all?
    Is this still a bad idea? why?
    Since this is the first time I try to do things like that, what might be an elegant solution for that issue?

  • Help: How to put input parameter into report?

    I am working on a report. The user is require to enter the search date and the report is created base on the search date. This search date parameter is required to show on the paper report. How do I make it?
    Thank you.
    Jimmy

    Jimmy,
    You need to add &1 to the where clause of your Query (SQL statement). Then run the report you will be prompted to add your criteria. Add it to your where clause like this:
    Select .... from table
    where ...
    and &1
    Amir Orojeni,
    Oracle DBA

  • How to use a variable as a table name in PL/SQL?

    Hello all.
    I was given one day to wrote a piece of PL/SQL code to do a query. That is,
    First select two columns from one table and use them to build another table's name, then
         join the two tables. I'm not sure if variables can be used in the select list, if possible,
         how to reference them?
    -- My code is
    DECLARE
         tablename varchar2(40);
         CURSOR c1 IS
    select a.sourcesystemcode, a.adminorganizationno from cdb1.organization_mapping a
    where exists( select 1 from cdb1.organization_mapping b where
    a.cdborganizationno = b.cdborganizationno and a.adminorganizationno != b.adminorganizationno)
    order by a.cdborganizationno,a.adminorganizationno;
         v_src_sys_cod cdb1.organization_mapping.sourcesystemcode%TYPE;
         v_adm_org_no cdb1.organization_mapping.adminorganizationno%TYPE;
    BEGIN
    OPEN c1;
    LOOP
    FETCH c1 INTO v_src_sys_cod, v_adm_org_no;
    EXIT WHEN c1%NOTFOUND;
    tablename := 'ODS1.SRC_' || v_src_sys_cod || v_adm_org_no || 'ACTORG_CURR';
    select c.cdborganizationno, c.sourcesystemcode, c.adminorganizationno, c.sourceorganizationno, d.ibkcde, d.orgnam
    from cdb1.organization_mapping c inner join tablename d on c.sourceorganizationno = d.orgidt;
    END LOOP;
    CLOSE c1;
    END;
    The error message says "... the table or view does not exist... line 18, column 66..."
    It says the variable "tablename" wasn't build or build incorrectly.
    Please give the solution.

    If the TABLEs being queried are already known, and it is just a matter of which one to query, perhaps you can CREATE a VIEW that uses all the TABLEs with a UNION ALL, and include an identifier COLUMN.
    CREATE VIEW SRC_ALL_ACTORG_CURR
    AS
    SELECT 'aa' Name, ibkcde, orgnam FROM SRC_aa_ACTORG_CURR UNION ALL
    SELECT 'bb' Name, ibkcde, orgnam FROM SRC_bb_ACTORG_CURR UNION ALL
    SELECT 'cc' Name, ibkcde, orgnam FROM SRC_cc_ACTORG_CURR UNION ALL
    SELECT 'dd' Name, ibkcde, orgnam FROM SRC_dd_ACTORG_CURR UNION ALL
    SELECT 'ee' Name, ibkcde, orgnam FROM SRC_ee_ACTORG_CURR;
    Then, in you query:
    select c.cdborganizationno, c.sourcesystemcode, c.adminorganizationno, c.sourceorganizationno, d.ibkcde, d.orgnam
    from cdb1.organization_mapping c inner join SRC_ALL_ACTORG_CURR d on c.sourceorganizationno = d.orgidt and d.Name = v_src_sys_cod || v_adm_org_no;

  • How to add an variable to the object name of the arraylist

    Greetings,
    i will like to create an object for arraylist with it name concat with a variable. This is what i mean as show below.
    for i=1; i <8; i++)
    ArrayList list = new ArrayList();
    What i want when it loops, the arrayliost will auto create list1, list 2, list3 and so on until the for loops end. How do i add the variable i to the object name list?
    Thanks

    Do anyone of u mind if let me know hows the code look like?This isn't intended to be an alternative to the previous reply: in fact it's worthless unless you read the information in the link given.
    import java.util.ArrayList;
    import java.util.InputMismatchException;
    import java.util.List;
    import java.util.Random;
    import java.util.Scanner;
    public class ListListEg {
        public static void main(String[] args) {
            Scanner in = new Scanner(System.in);
            Random random = new Random();
                // create the mainList outside the for loop
            List<List<Integer>> mainList = new ArrayList<List<Integer>>();
            System.out.print("How many lists would you like? ");
            try {
                int num = in.nextInt();
                if(num <= 0) {
                    System.out.println("Smartass!");
                    System.exit(1);
                    // populate the main list inside the loop
                for(int i = 0; i < num; i++) {
                    mainList.add(new ArrayList<Integer>());
            } catch(InputMismatchException ime) {
                System.out.println("Idiot!");
                System.exit(1);
                // later do stuff with the lists, which you access with get()
            for(int i = 0; i < mainList.size(); i++) {
                for(int times = 0; times < 3; times++) {
                    mainList.get(i).add(random.nextInt());
            System.out.println("The first list is " + mainList.get(0));
            if(mainList.size() > 1) {
                System.out.println("The second list is " + mainList.get(1));
            System.out.println("The last list is " + mainList.get(mainList.size() - 1));
    }(In reality all the action would not take place in one method like this, and the exception handling would be more useful and polite.)

  • BO Webi: How to populate a variable with the set of static values for Graph

    Hi All,
    I have the data: Order number, Order Date, processing time coming from the SAP Bex query in the below format:
    Order No    Order Date    Processing time (Days)
    1                 Jan-2011      4
    2                 Jan-2011      5
    3                 Feb-2011      6
    In BO webi report, I have to report the number of orders which were processed in <1day, <2days, <3days,...<10days in a graphical view. i.e., X-Axis:  <1day, <2days, <3days,...<10days(10 static buckets for the processing days)
    Y-Axis: Number of Orders.
    The graphical output should be like below:
    X-Axis: <1day, <2days, <3days,<4days,<5days,<6days,<7days,<8days,<9days,<10days
    Y-Axis: 0, 0,0,0,1,2,3,3,3,3  (count(Order No)) (Cumulative count)
    I am able to calculate the number of orders individually for each of the 10 buckets. But the problem i am facing is that I am not able to hold the 10 static bucket values in a variable to use it for the x-axis in the Graph, as these 10 static bucket values are not coming from the backend source.
    I would like to know if there is way to populate a variable(to use it for the X-Axis in the graph) with the set of 10 static values.
    Any help would be highly appreciated.
    Thanks,
    Leela

    Hi ,
    I think we can use the variable as X-axis in chart.. but Variable Qulaification should be Dimension.
    can you try this?.
    Using efasion universe
    1) Select month and Sold at (unit price) , then run the query
    2) create the variable V_Month ==If [Month]=1 Then "Month1" Else "Month2"  (Note = Variable Qulaification should be Dimension)
    3) Create the variable V_Sum= sum (Sold at (unit price))
    4) create another variable V_Cumulative_Sum==[V_Sum]+Previous([V_Sum])
    Now add V_Month and V_Cumulative_Sum in table , then convert to chart.. now you can add the variable V_Month as X-axis of the chart.
    Hope this will help:)
    Thanks
    Ponnarasu K

  • How to put bin information to table T_QMAT thru user exit for stock remove?

    Hi,
    I have already use stock removal strategy 'F' and checked the flag 'User exit active', but the value in table T_QMAT filled by the standard system not include all vendors. So I need to use stock removal strategy " " and set up the table T_QMAT by the user exit.
    Do you know what is the user exit and the ABAP coding to put bin information to table T_QMAT for stock removal?
    Best Regards,
    Chris.

    Hi Chris,
    You can use the exit: EXIT_SAPLL03A_005 to populate t_qmat table based on your requirements. As you have already mentioned, it is important to check the flag: User exit active in SPRO, but bear in mind the stock removal strategy has to be BLANK. If you use F, then standard SAP auto-populates the T_QMAT table.
    Regards,
    Narendra.

  • How to put windows 7 iso file onto usb on mac for a pc password restore

    Please help! My desk top pc is in for a service so Im trying to use my old laptop but have forgotten the password! Now Ive got to put my windows 7 iso file onto a usb (using my macbook air) to install onto my windows laptop!? Confused? I sure am!
    Can anyone help me.....
    Mac
    specs: MacBook Air 13" mid 2012
    1.8 GHz Intel Core i5
    4GB 1600 MHz DDR3
    PC
    specs: Toshiba Ultrabook
    "Portege" Z930
    Thats all I know about my laptop! Sad but true!
    External Hard Drive
    specs:
    iomega 1TB HDD
    USB
    specs: SanDisk
    MS-DOS (FAT32)
    7.99GB

    Use the BootCamp Aaistant, located in your Applications> Utilities folder. It will walk you thru the installation steps. howeve, once you get to the Windows installation step the Windows installer will check with MS if you have a legitimate copy.

  • Does anyone know how to put music on a little no name mp3 player?

    can someone help put music on this little mp3 player from itunes

    You drag the song files to it manually or follow the player's directions to transfer the music. If you need to locate a song in the Finder, control-click it in iTunes.
    (63222)

Maybe you are looking for