OSB: Replace the action inside a loop for

Hi all

She seems like a simple question but I'm breaking my head for now quite sometimes.

I have a recurring element in my diagram. I need to get the value of this repetitive element and convert it to uppercase.

For example:
My XML
<Telephone>
<Telephone Number>
<phoneUsage>Contact</phoneUsage>
<phoneNo>767676</phoneNo>
</Telephone Number>
 
<Telephone Number>
<phoneUsage>Callback</phoneUsage>
<phoneNo>767676</phoneNo>
</Telephone Number>
</Telephone>
I need to change the value of using phone uppercase (reminder and Contact)

For this I use a loop For:
For variable TelephoneNumber in ./Telephone/TelephoneNumber of variable body
Indexed by variable TelephoneNumberIndex with total count in variable TelephoneNumberCount
 
Do
(
Replace $body/Telephone/TelephoneNumber/phoneUsage in variable body with 
fn:upper-case($body/Telephone/TelephoneNumber[xs:int(i)]/tro:phoneUsage)
)
I do not know how to move the index value in the Xpath expression replace $body, phone, TelephoneNumber, phoneUsage.
Can you help me please on this? I tried $ phone/body/TelephoneNumber [xs:int (i)] / / phoneUsage, but it generates an error.

Thanks in advance for your time and support.

For each [TelephoneNumber] in [. / phone/Tel...] ./Telephone/TelephoneNumber
[body]
Indexed by [undefined Variable] with countdown in [undefined Variable]
Do)

Replace [content of the node] [. / phoneUsage]. / phoneUsage
in [TelephoneNumber] with [fn:upper - case ($...)] fn:upper-case($TelephoneNumber/phoneUsage/text())

)

Kind regards
Anuj

Tags: Fusion Middleware

Similar Questions

  • Define the actions of the buttons inside a loop for

    Hi, me again ^^
    This round is:

    I got a set of buttons and a text field where they load the content.

    I try to take a zillion functions and keep the neat code so I guessed I'd try set the actions to the buttons in the loop too. First of all, I had a few problems to the I counter inside the function onRelease (in fact I don't think I've ever had how do). But I tried this and it worked:
    Stop();
    var comprarXML = new XML();
    comprarXML.ignoreWhite = true;
    comprarXML.load('flash/comprar.xml');
    comprarXML.onLoad = checkLoading;
    function checkLoading (success) {}
    rootNode = comprarXML.firstChild;
    ButtonReleaseAndContent ();
    }
    function ButtonReleaseAndContent () {}
    for (i = 0; I < 12; i ++) {/ / my buttons are not dynamically generated, which is why the County.}
    btTemp = eval ('content.test.bt' + i);
    btTemp.txt.htmlText = rootNode.childNodes [i + 1].firstChild.firstChild.nodeValue;
    btTemp.temp = rootNode.childNodes [i + 1] Sublst.ChildNodes(1).ChildNodes(0) [1].firstChild.nodeValue;
    btTemp.onRelease = function () {}
    this.temp = content.test.test.htmlText;  the problematic line
    }
    }
    }
    On line where I put the text, I had one if "uh Yes, I may be refer to in the mc button, because the generated code goes in! So, I tried the this.temp, guessing it would be equal to the level of the key. A few seconds later I noticed that my SEO for the text field was not coming in the button, but the root. So I have no idea why this works. Anyone know what I did?

    If btTemp is a movieclip to assign dynamic properties (such as temp).  You can then retrieve this property when the button is released.

  • cannot commit a transaction inside a loop for

    Hello

    cannot commit a transaction inside a loop for

    user9093700 wrote:
    Hello

    cannot commit a transaction inside a loop for

    Yes you can engage inside the LOOP.
    You can sink also you into the eye with a sharp pencil,
    but none of the measures has to be EVER be done.

  • Cursor inside a loop FOR?

    Hello

    We will declare or define a cursor inside a loop FOR?

    -Vijay

    Yes, it is possible that the definition take place inside the part of the plsql block code, the syntax looks like:

    for rec in (/*here you define cursor with select query*/) loop
      ...
    end loop;
    

    I think that if you do not use a variable/slider several times, it is advisable to set the cursor with the loop for. If you want to use the cursor over a school then it should be defined in more global place.

  • How to stop a flat sequence (or timed sequence) which is inside a loop for

    The problem is this, I have a loop that repeats 10 times and inside this loop, I have a flat sequence (or timed sequence) with four images, each of this chassis to evaluate a different condition of a vector that I introduce.

    What I woud like for example is:

    I'm a fifth County of the loop for and in the case that part 2 does not meet the condition, the sequence of dish (or timed sequence) stops and starts the loop again but this time for the number of number 6.

    I would appreciate your response.

    You can't stop a sequence structure.  This is how they are made.

    What you should consider to get rid fo structures sequence and to change a state machine architecture.  There are many examples in LabVIEW, as well as on the Forums.  The big advantage of the state machine is that at the end of each State, it examines the conditions and determines which State then run. And that is exactly the description of the problem you are experiencing.

    Lynn

  • For loop inside a loop For

    Is it possible to perform all iterations of the inside of the loop for each iteration of the loop outside? I've attached a screenshot of my program if it helps. If possible can you tell me how to do it please?

    A thought I have is that I think you want these nodes of feedback reset for each iteration of the loop from the outside.  Personally, I would like to change the shift registers (it would clean your scheme a little more).

  • Do nothing in the case structure with loop For

    Hello

    I am trying to extract data from my signal (0.3 0.4 0.6...). I want to extract values greater than 0.5 and put it in a table. If I use a loop For which I can determine each index of my data to be compared and it happened in the structure of the case. In the 'Real' box, I wanted the value to extract outside the loop For. And I want to "do nothing" if my value falls within the box 'False. ' However, it displays error, saying "' Tunnel: lack of assignment to the tunnel '."

    I tried to select 'Default', but it does not work since I use a Boolean comparison. I tried to use the registry to shift, but in vain too.

    Someone could guide me on this to extract only a value greater than 0.5 and index them?

    For example "0.6 0.7 0.8; 3 4 7 index.

    Satisfaction will be given.

    Here you have

  • Help with the efficiency of the program, stop a loop for?

    Hi all

    I need some advice programming General to help my VI to operate more effectively.  I have a table in which the program runs each point and 2d compares the value for the surrounding points.  The user can select the range of cells to inspect range, so if the user selects 1, then, it will compare the point (0,0) to all cells in a single cell.  If the user selects 2, then all the cells in a range of cells 2 and so on.  If the point (0,0) is superior to everything around him, then he writes this point in a table.

    I made more notes in the VI to explain what is happening, but I think that the program would be more effective if I could stop a for loop to run as soon as it detects a false condition, i.e. the point (0,0) is not more than one of the surrounding points.  As it is right now, it compares at all points around him, writing TRUE/FALSE for a table, then checks if all conditions are TRUE.  That takes a lot of time if the user selects a value of 8, for example.  It would reduce a lot of processing time if he just threw to the next point as soon as it finds a FALSE condition.

    Any other advice would be appreciated as well.  Try to be a more effective programmer!

    Thank you!
    Alex

    I do not attach the data file, because it is too big.

    In versions before the invention of the loop For with conditional stay terminal, you can do it, but you have over what a while loop to stop when your condition is True, OR when the terminal i is equal to the size of the incoming array - 1.

  • How to replace the LCD screen Flex cable for a HP Pavilion dv4-1220us

    Can someone give me a step by step procedure replacing the screen Flex cable connection without disassembling the entire computer

    Lanny1 wrote:

    Thanks for the manual, I am waiting for cable to arrive. This whole process can finish by the enemy who me to try to replace the cable. I can finish with new computer

    Hello again!

    You are the very welcome.  You need to update with the results.

    Have a great day.

  • How to use the select statement in loop for

    Hi all

    My question is can I use a select statement in for loop like as follows.

    for the key in the selection of one_table key.

    When I use this am getting an error as found select invalid I ID

    How to select a statement use in loop for

    Please suggest me.

    Thank you
    Sree

    Hello

    You can use code below

    For key in (select button from table_a)
    loop
    If key.key = 1 then
    -insert statement
    on the other
    -Select statement
    end loop;

    Thank you
    Naveen.

  • Replace the Actions menu button on interactive report (Apex 4.1)

    I replaced the the menu button actions with an image in the report attributes section. The interactive report is to halfway to the bottom of the screen.

    The image is automatically included in an anchor with href = tag "#", which makes the page jump to the top every time the button is clicked. This changes a "false javascript:return"; it'll work out, but I don't know what to change to make this happen.

    Anyone know if there is a css or some model that I can change to fix this problem in the world?

    Thank you!
    John

    Found a solution using Jquery:
    Create an HTML region below 0 with the following content:

    
    

    or with an image

    
    

    Eric.

  • Replace the strings inside SWF's AS2/3

    There are, on some Board there are a few foreign flashes that predate the internet and effectively anonymous pertaining to the creator, if someone used a program to get the strings in the SWF file (programmed in AS3), machine to translate them and put back them.

    Deal is a machine translation. It's funny, but it's still wrong and I would like to do a good job of translating.

    So to get to the point, I would like to know where I might be able to find a program that can get the strings inside a SWF file that is programmed in AS2 or AS3, show them to me and I would like to replace them with custom text. The reason why I want to do it this way is that I must not decompile SWF. Decompile a SWF is bound to generate errors and I could not have certain fonts inside so I also have little to do with the opening of the thing I can.

    I tried a few solutions, including FLASM (only works on AS2) and others don't bother naming such that they are no longer capable of displaying the AS3 code and not edit or replacement of classes.

    I'm not 'try' anything.  I inform you of your options.

    If you do not find the source files and that you can not use a decompiler, you cannot change the source code.

  • Timeline question on how I can change the time in a loop for

    In the following code segment:
    for(index in [0..3]) Timeline
    {
        keyFrames:
        [
            KeyFrame
            {
                time: 0s
                values: cars[index].translateX => 0
            }
            KeyFrame
            {
                time: 15s
                values: cars[index].translateX => 800 tween Interpolator.LINEAR
            }
        ]
    }.play();
    How can I make the time to be 15 + 2 * index seconds, for example, instead of 15 s always?

    Any input would be greatly appreciated!
    Thanks in advance!

    I imagine something like (not tested)

    var duration: Duration;
    var tmp = bind index on replace {
       duration = Duration.valueOf((15 + 2 * index)* 1000);
    }
    :
    :
    KeyFrame
    {
       time: bind duration
       values: cars[index].translateX => 800 tween Interpolator.LINEAR
    }
    

    To get help sooner, after a NBS.

    Note that I'm not JavaFX and the suggestion is the API reading.

    DB

    Edit you get coffee and complete your registrations pending. Answering questions on a forum should be identified as such, for those who come across them in a search.

    Published by: Darryl Burke

    Published by: Darryl Burke - added the necessary: between the lifetime and the

  • Manipulate the subdashboards with a loop for?

    Hi all

    Here is a picture of what I'm trying to do: basically, I want to choose the (3 x 3) A subarray, manipulate data, then

    Select the subarray B (2 x 2), manipulate data, and finally select the (4 x 4) C subarray and manipulate its correspondent

    data. In my real problem, I have more than A, B, C. I have a number any variables.

    I have a 1 d table, below, that I use to make a kind of mapping to my 2D table so I can choose the appropriate sub-table.

    Please see the VI attached and see if my approach is logical. To be concrete, the end result of my VI must be a 2D array containing

    A, B, C and for each variable, I want the sum total of all the numbers corresponding to this sub-table.

    For example, for A, I want 1 + 2 + 2 + 2 + 1 + 5. My real data manipulation would be more complicated, but if I can understand this simple case,.

    the real case will follow.

    I do not know where to store each subbarray in my loop and WHEN to do my manipulation of data, it must be inside of the inside of the loop, outdoors, where? See the attached VI.

    Thanks in advance.

    I think you need a boot and wiring through the case of fake.

    Note that the output is a table to a dimension.  Because pages can be of different sizes, the pages 'A' and 'B' contain empty elements. If no match is found fo a 1 d, a full page table element will be empty. To see this 'B' to replace in the table 1 d with "D".

    To make your number a string number followed by conversion table amount works well.

    Lynn

  • BIND THE VARIABLE INSIDE A LOOP

    Hello
    I have question about the sort of the values using Plsql... My requirement is to get values of N with the user and sorting in ascending or descending order. I tried the following query

    DECLARE
    Is of type TABLE numsort
    NUMBER
    INDEX OF DIRECTORY;
    v_num numsort;
    number of v_total;
    number of v_no;
    BEGIN
    -get the number of values to sort
    v_total: =: TotalNum;
    dbms_output.put_line (v_total);
    because me in 1.v_total
    LOOP
    v_no: =: none; -Read the values
    v_num (i): = v_no;
    dbms_output.put_line (v_num (i): 10;)
    END LOOP;
    END;

    its code is not complete... sound to read the value in the table... Read itself does not

    The problem is that the connection variable is not reset with each iteration. I am using Toad and he asked me to pass all the variable binding both... But I want to read the values in the table with each iteration. Is it possible in PLSQL... or is there another way to do this...

    hope you are clear with the requirement... If any infomartion extra need please come bk...

    Waiting for your replay

    Thanks and greetings
    Rognard

    Maybe like this?

    SQL> create or replace procedure test_proc (p_input varchar2, p_separator varchar2) is
      2  v_input varchar2(32767):= p_input||p_separator;
      3  begin
      4  if p_input is not null then
      5  while instr(v_input,p_separator) > 0 loop
      6      dbms_output.put_line(substr(v_input,1,instr(v_input,p_separator)-1));
      7      v_input:=substr(v_input,instr(v_input,p_separator)+1);
      8  end loop;
      9  end if;
     10  end;
     11  /
    
    Procedure created.
    
    SQL> exec test_proc('10, 4, 6, 3',',')
    10
    4
    6
    3
    
    PL/SQL procedure successfully completed.
    
    SQL> exec test_proc('',',')
    
    PL/SQL procedure successfully completed.
    
    SQL>
    

    Nicolas.

Maybe you are looking for