Using the conditional output

Thanks VetSrini, I know how to generate the first half of this production (the names by commas).

Guidance on how I would go about generating the other half? IE: print a string called 'New' and add the names in a specific order, if the 'New' column Y as shown in the below desired output (formatting is messed up...) New: C2 must be displayed in the client and no column as it appears below).


Customer country
USA C1, C6
New: C2

Canada C3
New: C4, C5


XML:

<? XML version = "1.0" encoding = "UTF-8" standalone = "yes"? >
< root xmlns: xsi = "http://www.w3.org/2001/XMLSchema-instance" >
< row >
< country > USA < / country >
C1 of < customer > < / customer >
< New > N < / New >
< / row >
< row >
< country > USA < / country >
C2 < customer > < / customer >
Y < new > < / New >
< / row >
< row >
< country > USA < / country >
C6 < customer > < / customer >
< New > N < / New >
< / row >
< row >
< country > Canada < / country >
C3 < customer > < / customer >
< New > N < / New >
< / row >
< row >
< country > Canada < / country >
C4 < customer > < / customer >
Y < new > < / New >
< / row >
< row >
< country > Canada < / country >
C5 < customer > < / customer >
Y < new > < / New >
< / row >
< / root >

I sent you again, with modified solution.

,

Tags: Business Intelligence

Similar Questions

  • How to use the conditional and made mandatory

    Hello

    I need to use the conditional and made mandatory something jspx page. Following line gives an error:

    rendered = "#{Bindings.type.inputValue! = 'abc' & & bindings.proofId.inputValue! ="} ' "

    Error: Name expected instead of &.

    What is the right way?



    Note: I use Jdev 10.1.3

    Boring, but you can use & #38; & #38; (remove the space after the &) for this.

    Timo

    Published by: Timo Hahn on 24.11.2009 08:46

    Published by: Timo Hahn on 24.11.2009 08:48

  • Is it save to use the digital output as a digital input for another channel signal

    Hi all

    I know it's a stupid question, but I don't have another generator of signals by hand. What I want to know is, can I use the signal digital output of my USB-6001 as an input for the same signal device, but on other digital port? I wasn't directly because I don't want to burn the device...

    Thank you

    Done all the time. No problems.

  • an alarm can be set to control an external device using the digital output?

    My employer is considering buying a 6210 DAQ and SignalExpress (we currently use a branded DATAQ device).

    Looks like I can use the alarm function SignalExpress to define a logic high or low line, controlling a SSR to stop a pump (a non-critical application).

    Can I use SignalExpress in this way?

    I know LabView can do, but there is no way that the company appears for him.

    Thank you.

    Hi Jack, this is Paul with Applications Engineering at National Instruments.

    SignalExpress supports the functionality you want.

    «Once you have configured your signal to acquire you can go to "Save Options" > "Alarms" and then set the alarm conditions, and then choose your Action to alarm as «Defining the digital line»»

    I've attached a screenshot of the example of this configuration.

    Note here that I put it down when the alarm turned on.  You there are other options, including a rocker.

    Let us know if you have any other questions!

    Paul

  • Manchester in transmission/reception of signals using the digital output of the PCI-6224

    How a manchester signal can be sent and received using the OID of the pci card 6224?

    I want to create a signal NRZ manchester on a digital output channel and then have the possibility to receive and interpret the same type of signal on a digital input channel.

    Any help would be greatly appreciated.

    Hi VJohnson,

    You might find this post of discussion forum useful.

    Looks like LabVIEW has not Manchester coding/decoding built, but do able in your VI by replacing all the elements with the corresponding elements of two and using double the speed of transmission as your clock frequency.

    Thank you

    Scott M.

  • cRIO - H bridge using the PWM output and input only encoder control

    Hello

    I am currently working on a project to control a 230V brushed servo motor using cRIO. The engine drives a linear step and the final project needs to create a control of position of the engine that the user is able to enter a speed, position and control steps to move to this position.

    I use a bridge using NOR-9401 and H to power the motor circuit and a PWM output to move the engine. I also have an encoder, quadrature, connected to a NOR-9403 read position and speed. I use the example program of encoder for the NI 9505 - in my application.

    There is no voltage or current on the drive circuit sensors so I wouldn't be able to have a closed loop current in this case. The scene release mechanism is such that the position is locked if the motor does not move and I do not need a torque control to keep the engine in place.

    To achieve this, I just wouldn't be able to use a single PID VI (probably the FPGA VI express for discrete PID)?

    I am not very well versed in the theory of control, and therefore no indication in the common sense would help me a lot.

    Thank you very much!

    Sexy,.

    in general, it is best to use a cascade control loop structure but in principle must also be able to use the output of the control loop of position as an input to the PWM generator. The main disadvantage of this configuration is the current limitation missing. Without current meaning is no longer the only way to protect your engine from drawing too much current to limit to the current maximum output of your diet, or to limit the maximum duty cycle of PWM. Without current information, the last method is quite inaccurate, but better than nothing.

    I agree with Mike, you should look in the examples of the 9505 module and use the controller position vi of these examples. This PID controller is optimized for motion control applications and it is implemented in the fixed point arithmetic, offering the best performance on and FPGA.

    Kind regards

    Jochen Klier

    National Instruments

  • How to manage no data found in pdf format using the rtf output

    Hello

    In my rtf model, I have two frames - frame1 and frame2,

    These frameworks are based on the G1 group. Group G1 features of elements empid, empname

    My requirement is

    1. to return frame1 when the query (i.e. group G1) has given, this frame1 would print out the pdf of the report xml editor - correct work

    in the xml output, I saw that < LIST_G1 / > generates as below

    < LIST_G1 >

    < G1 >

    < EMPID > 1234 < / EMPID >

    JOHN < EMPNAME > < / EMPNAME >

    < G1 >

    < G1 >

    < EMPID > 1235 < / EMPID >

    BRAND of < EMPNAME > < / EMPNAME >

    < G1 >

    < G1 >

    < EMPID > 1236 < / EMPID >

    TONY < EMPNAME > < / EMPNAME >

    < G1 >

    < / LIST_G1 >

    2 return frame2 whenever the request (i.e. the group G1) has no data this frame2 output print pdf of the xml editor saying no report given - would not exist currently working.

    output is

    < LIST_G1 >

    < / LIST_G1 >

    (see there is no entry for < G1 > < / G1 > at all.)


    Now because of that, my frame1/frame2 who checks the value <? choose:? > <? When: County (G1). = 0 ? > out of the reutrning in the first case (as expected)

    but don't return do not all outputs in the 2nd case (his does not work as expected by me)


    Any pointers or help appreciated.


    Thanks in advance

    It solved using the IF ELSE block in the two frames, I'm back frame1 for the scenario IF count (G1) > 0 and return frame2 for another scenario.

  • How to use the Bpel output as input to the stored procedure

    I am a beginner SOA. The scenario is to use the output of a BPEL process in a procedure stored as input and validate it against the data in the database. The data received from the BPEL are compared with fields from different tables.

    It's basically a business process data validation.

    The output of BPEL is an Xml file and how it can b used in the query of a procedure?

    Published by: 869091 on June 29, 2011 12:14 AM

    The output of the BPEL process is in XML format.
    Your requirement is not clear, please state it correctly what you doing.

    Yatan-

  • How to use the conditions where there are more than two options

    I have a blade that collects information from the user and then makes decisions based on the values entered. On a slide I use the widget drop-down list and list of"basic", "Intermediate" and "Advanced". I hoped to do is use the Coditional Structure as follows:

    1. If the Basic was selected slide goto BasicQuickQuiz
    2. If the intermediary has been selected goto slide IntermediateQuickQuiz
    3. If Advanced was selected slide goto AdvancedQuick Quiz

    I can make this work for Basic or intermediate, but I don't see how (or even if) I have a multi level if statement.
    My work is about:
    1. a button added logic:
    So basic, then got otherwise BasicQuickQuiz goto IntermediateQuickQuiz

    2. on the Enter slide on IntermediateQuickQuiz event:
    If the intermediary, then keep, otherwise goto slide AdvancedQuick Quiz

    It works, but it seems awkward - y at - it another way that this goal could be achieved?

    Tim

    What I was hoping to see was the ability to create several Else If statements within the only condition. I've changed it now to add two conditional statements, one after the other, but still find this unscrupulous feature.
    I will record a feature request to add a Select Case block / Switch style fuction to this group.
    However, since it is new I can live with the workflow (for this version of Cp anyway!)

    Tim

  • Using the procedure output parameter in the success message

    I have a page process that calls a procedure of database with 2 output parameters.

    The source of my page process looks like this:
    DECLARE
       --variables to hold output parameters
       matched_count NUMBER;
       unmatched_count NUMBER;
    BEGIN
       USP_MATCH_PROCESS (matched_count, unmatched_count);
    END;
    I would like to be able to display the value of the 2 output settings in the Message of success of the process for the process.

    Is there a simple way to do this or I have to create the hidden page items and complete these source code, then reference these? Or even better, can reference variables in the source directly from the success of the process Message?

    Hello

    You can use something like this: -.

    apex_application.g_print_success_message: = matched_count | » '|| unmatched_count;

    Concerning

    Paul

  • Using the TRIM output as a parameter for IN

    I have a CLOB containing column (for example):
    ,1074,1075,1076,1077,1078,1050,
    The idea is to use values of this field in another query as a parameter for IN selection (basically something like this:)
     SELECT columns FROM table WHERE column IN (values from previous field);
    If I run:
     SELECT columns FROM table WHERE column IN (1074,1075,1076,1077,1078,1050);
    (values entered in the statement) everything is ok. But the problem is that this original area also contains comas at the beginning and at the end.

    In order to deal with them, I tried:
    TRIM(',' FROM column)
    but I received:
    ORA-00932: inconsistent datatypes: expected - got CLOB
    00932. 00000 -  "inconsistent datatypes: expected %s got %s"
    I also tried many TO_ functions as well as CAST funtion - does not work.

    In addition, I tried
    SELECT DBMS_LOB.SUBSTR(TS_FAULT_REPORTS,DBMS_LOB.GETLENGTH(column)-2,2)  FROM table;
    but received error
    ORA-01722: invalid number
    01722. 00000 -  "invalid number"
    No idea how to solve this problem?

    Hello

    Welcome to the forum!

    So, you have a subquery which produces a string separated by commas, like ', 1074,1075,1076,1077,1078,1050,': is that correct?

    The best solution might be to change the subquery so that produce a result set with each item on a separate line. Who can actually do the subquery simpler and more effective.

    If you don't really have to use the comma-separated string, see the following links for dynamic IN-lists:
    http://tkyte.blogspot.com/2006/06/varying-in-lists.html
    http://www.Oracle-base.com/articles/Misc/DynamicInLists.php

    You coul also convert your string table number and use INSTR to see if it exists in the list:

    WHERE     INSTR ( comma_delimited_string
               , ',' || column_x || ','
               ) > 0
    

    Extra commas are to avoid the problem of 'the mother's in chemotherapy If column_x is 1 (or 0, 107, or 7, or 74 or 4) you don't want that corresponding to '1074'.
    This assumes that comma_delimited_list already begins and ends with the delimiter, as in your example. If this isn't the case, you can add them manually.

    I hope that answers your question.
    If not, post a small example of data (CREATE TABLE and only relevant columns, INSERT statements) for all tables and also post the results desired from these data.
    Always tell what version of Oracle you are using.

    You will find the answers better faster if you always provide this information whenever you post a question.

  • DC motor of control using the analog output of DAQ 6008

    Hello

    Since the 6008 DAQ implements not good PWM, can I control the speed of the DC motor using outputs analog, protected by amplifiers?

    This will damage my DAQ?

    Ok.  The engines will be quite low.

    Consider using an LM317 as the "amplifier". Add one or two diodes protection. Connect the AO to the terminal of the regulator with a resistance setting to land.  Your output voltage can go down to 1.25 V and up to minutes (battery-2 V, Vaomax-1,25 V). If you have a battery of 12 V and a 12 V, the maximum speed of the motor engine will be slightly lower than the nominal speed full. The minimum voltage the motor probably will not work.  The regulator has a built in protection against overcurrent and overheating.  It's the motor controller cheaper you can do and works very well.

    If you need to reverse the engines, things get complicated a bit more.  You can use a DPDT relay or a transistor H-bridge.

    Lynn

  • Using the conditional case statement. !

    Hello Forum members.

    I have a table with order of stores as well as the order dates and other information. I have a requirement to write a request for nominations for the roll of the order according to the below mentioned logic.

    Name1 = Initial order date and next order within 7 days of the original order date then its considered R1

    Name2 = next activity within 7 seven on the ord_id even of its R1 to date, this is going on as increases in order to ord_no simple or even dates

    .

    .

    Final RN is Count (Rn)

    RN %--Count(Rn) / Count Distinct (ord_no) * 100

    Sample data output:

    ORD_DATEORD_ID1_of_x2_of_x3_of_x4_of_x5_of_x6_of_xFinal RnXRN %
    10/07/201310095V1100000
    03/08/201310095V1100000
    08/08/201310095V1010000
    12/08/201310095V1001000
    06/09/201310095V1100000

    DDL:

    create the table xx_ord_noms

    (

    ord_no varchar (30),

    ord_date date,

    ord_id varchar2 (30)

    );


    Sample data:

    INSERT INTO xx_ord_noms (ord_no, ord_date ord_id) VALUES ('10091', TO_DATE('07/10/2013','MM/DD/YYYY'), ' 10091');

    INSERT INTO xx_ord_noms (ord_no, ord_date ord_id) VALUES ('10091', TO_DATE('08/03/2013','MM/DD/YYYY'), ' 10091');

    INSERT INTO xx_ord_noms (ord_no, ord_date ord_id) VALUES ('10091', TO_DATE('08/08/2013','MM/DD/YYYY'), ' 10091');

    INSERT INTO xx_ord_noms (ord_no, ord_date ord_id) VALUES ('10091', TO_DATE('08/12/2013','MM/DD/YYYY'), ' 10091');

    INSERT INTO xx_ord_noms (ord_no, ord_date ord_id) VALUES ('10091', TO_DATE('09/06/2013','MM/DD/YYYY'), ' 10091');

    commit;

    I was intending to do something like that, but I don't get the logic for R1... R7

    Select ord_no,

    ord_date,

    ord_id,

    prev_dt,

    (to_date (ord_date) - to_date (prev_dt)) data_diff,.

    case

    When prev_dt is null or

    (to_date (ord_date) - to_date (prev_dt)) < 7 then

    'R1 '.

    When (to_date (ord_date) - to_date (prev_dt)) > 7 THEN

    "R2".

    ON THE OTHER

    nULL value

    END

    FROM (select a.*,

    (SELECT MAX (tmp2.ord_date)

    OF xx_ord_noms tmp2

    WHERE a.ord_id = tmp2.ord_id

    AND tmp2.ord_date < a.ord_date) prev_dt

    of the xx_ord_noms one).

    Could someone give advise me or suggestions on how we can achieve the desired results.

    Thanks in advance.

    LAG and LEAD are good when you want to look forward or back up a fixed number of lines, but in this case you do not know how far behind, you will need to go.

    I have a solution. It calculates the Royal Navy in number, not a position of the column, but you can turn it with instructions BOX if you want to. I did it in two steps:

    First of all, I calculated the Royal Navy by comparing the date of the current and previous line. To do this, I have generated a line number using row_number() Analytics:

    Select ord_no,

    ord_date,

    ord_id,

    numrow

    Rn

    of xx_ord_noms

    model

    partition (ord_no)

    dimension (row_number() over (partition by order of ord_no of ord_date) numrow)

    measures (ord_date 0 Rn, ord_id)

    update rules

    (

    RN [1] = 1,

    RN [ANY] BOX when trunc (ord_date [cv ()]) = - trunc (ord_date [cv () - 1])< 7="" then="" rn[cv()-1]+1="" else="" 1="">

    )

    ORD_DATE ORD_ID NUMROW RN ORD_NO

    ---------- -------------------- ---------- ---------- ----------

    10091 10 July 2013 00:00:00 10091 1 1

    10091 3 August 2013 00:00:00 10091 2 1

    10091 August 8, 2013 00:00:00 10091 3 2

    10091 12 August 2013 00:00:00 10091 4 3

    10091 2013 - Sep - 06 00:00:00 10091 5 1

    Then I needed to identify all the lines of each series. I defined firstDt as the date of the first item in the series:

    firstDt [1] = ord_date [cv ()]

    firstDt [ANY] = CASE when rn [cv ()] = 1 then ord_date [cv ()] to another firstDt [cv () - 1] end

    With that, the FinalRn is just a max (rn) Analytics (firstDt score)

    I'm not clear on what R % is. Your descriptions are not clear and I think they are incompatible.

    Select ord_no, ord_date ord_id

    , Rn, finalRn, 100 * finalRn/totCnt PCT1, 100 * totRn/totCnt PCT2

    totRn

    of xx_ord_noms

    model

    partition (ord_no)

    dimension (row_number() over (partition by order of ord_no of ord_date) numrow)

    measures (ord_date, 0 Rn, ord_id, to_date (null) firstDt, 0 finalRn, 0 totRn, 0 totCnt)

    upsert rules all the

    (

    RN [1] = 1

    RN [ANY] BOX when trunc (ord_date [cv ()]) = - trunc (ord_date [cv () - 1])< 7="" then="" rn[cv()-1]+1="" else="" 1="">

    firstDt [1] = ord_date [cv ()]

    firstDt [ANY] = CASE when rn [cv ()] = 1 then ord_date [cv ()] to another firstDt [cv () - 1] end

    [ANY] finalRn = max (rn) on (firstDt score)

    totCnt [ANY] = count (*) over()

    , totRn [ANY] = count (case when rn = 1 then 1 other trailing null))

    )

    ORD_DATE ORD_ID RN PCT1 PCT2 TOTRN FINALRN ORD_NO

    ---------- -------------------- ---------- ---------- ---------- ---------- ---------- ----------

    10091 10 July 2013 00:00:00 10091 1 1 20 60 3

    10091 3 August 2013 00:00:00 10091 1 3 60 60 3

    10091 August 8, 2013 00:00:00 10091 2 3 60 60 3

    10091 12 August 2013 00:00:00 10091 3 3 60 60 3

    10091 2013 - Sep - 06 00:00:00 10091 1 1 20 60 3

    Kind regards

    David

  • USB 6008: problem with using the 5V output

    I am a new user of products OR.

    I have a USB 6008 and I want to connect the output constant 5v (PIN 31) leg of VCC to a pressure sensor.

    My device is connected to the computer, but I get no signal output. Do I have to do something to activate the output or is it constant? If so, why can I not see a signal in the meter?

    Thenk you for your help.

    Dikla

    The 6008 has an amout 5V output limited power available.  Make sure that your sensor attracts less then the 200mA who is spec'd for the 6008.  In addition and I have to ask, you have the sensor on the ground ground 6008?

  • Use the condition in flex

    Hello

    I need to use itemrender or something like that to show a value of GridColumn in a color different corre its value

    < s:GridColumn width = "120" dataField = "email_active" headerText = "E-mail active" >

    < s:itemRenderer >

    < fx:Component >

    < s:GridItemRenderer >

    < s:Label backgroundColor = "{data.email_active == 1?" #00ff00 ":"#FF0000"}" / > "

    < / s:GridItemRenderer >

    < / fx:Component >

    < / s:itemRenderer >

    < / s:GridColumn >

    email_active: is a field of a table of my database.

    the database is downloaded in datagrid using a php and copy the following code:

    < s:AsyncListView id = list = "{getUserResult.lastResult}" / "UserAsyn" >

    I suggest using a separate GridItemRenderer and not an embeded in the GridColumn tag.

    First value label, is that the size of the length of the data of this element, thus affecting the background color will not be for the label and not the whole of the cell.

    Instead of changing the label, as a rectangle graphic element, then set it to the width and height of the cell before you can set the background color according to the data.

    Second reason is to avoid the question of trying to put a color value of string to a uint value.

    I created and example for something similar, here is the Source view .

Maybe you are looking for