By commas between the lines of BI Publisher address

Hello

I've never used BI Publisher before and I have little experience XML and need to solve the following problem (unfortunately analysts who usually resolves these BI Publisher question are unavailable for the next few weeks)

I have 2 fields on. RFT model called CITY, STATE

Due to the amount of space for the address restrictions, there have been defined on the same line

CITY, STATE

CITY and STATE are obtained from the XML, while currently the comma is just the text between 2 fields

Therefore, according to the values of the CITY and the STATE of the report currently releases one of the 3 following results

CITY,
CITY, STATE
STATE

The user has requested to include only the comma if both CITY & COUNTY containing a value, otherwise, the decimal point must not be included

First of all, I deleted the text with commas in the report

This is my test XML

<? XML version = "1.0" encoding = "UTF-8"? >
< test >
< CITY > < / CITY >
Cheshire < STATE > < / STATE >
< / test >

tried to add in the field of using the CITY

<? If CITY! = "and STATE! ='' ? > <? CITY? >, <? end if? >

but he always returns

Cheshire

I tried a lot of different things, but as I said, this is all new to me and this is why I'm not too sure if what I do is correct

Please can anyone help with this?

So what you need is if city or State is null, you need to show only the value that is not null and without.

If you have both, then you need as a CITY, STATE

Try the logical bottom to keep the entire bottom of logic in a form field

Tags: Business Intelligence

Similar Questions

  • Need of a column empty between the lines

    Hello

    Ho we can put a blank line between the lines?
     WE have data like :-
    
    Col1     col2    col3
    a            b         c
    d           e          f
    
    we want like :-
    
    Col1     col2     col3
    null       null       null
    a            b         c
    d           e          f         
    
    first blank row.
    Thank you
    Brij

    Edited by: 845712 may 7, 2012 03:31

    Something like that?

    SQL> select null as empno,null as empno from dual
      2  union all
      3  select empno,job from emp;
    
         EMPNO EMPNO
    ---------- ---------
    
          7369 CLERK
          7499 SALESMAN
          7521 SALESMAN
          7566 MANAGER
          7654 SALESMAN
          7698 MANAGER
          7782 MANAGER
          7788 ANALYST
          7839 PRESIDENT
          7844 SALESMAN
    
         EMPNO EMPNO
    ---------- ---------
          7876 CLERK
          7900 CLERK
          7902 ANALYST
          7934 CLERK
    
    15 rows selected.
    

    And if you want to get the word "null" then:

    SQL> select 'null' as empno,'null' as job from dual
      2  union all
      3  select to_char(empno) empno,job from emp;
    
    EMPNO                                    EMPNO
    ---------------------------------------- ---------
    null                                     null
    7369                                     CLERK
    7499                                     SALESMAN
    7521                                     SALESMAN
    7566                                     MANAGER
    7654                                     SALESMAN
    7698                                     MANAGER
    7782                                     MANAGER
    7788                                     ANALYST
    7839                                     PRESIDENT
    7844                                     SALESMAN
    
    EMPNO                                    EMPNO
    ---------------------------------------- ---------
    7876                                     CLERK
    7900                                     CLERK
    7902                                     ANALYST
    7934                                     CLERK
    
    15 rows selected.
    
    SQL>
    

    If this answer to your question, please close the thread else continue.

    Concerning
    Girish Sharma

    Published by: Girish Sharma on May 7, 2012 16:46

    And if you want to get an empty link after each group can see reply Aketi Jyuuzou @ link below:
    Print a blank line?

  • remove the space between the lines of tables

    Hello

    How can I get rid of the excess space between the lines in the attached table?  It looks nice and tight in DW, but extends more place in IE and Firefox.  I tried to adjust the height of the cell but no effect.

    Thank you!  TTT

    Try to add this CSS to your style sheets 1.  It will not change the cell height, but he's going to build your lists a little.

    ul,li {line-height: 1; margin-top:0; margin-bottom:0}
    

    Nancy O.
    ALT-Web Design & Publishing
    Web | Graphics | Print | Media specialists
    www.Alt-Web.com/
    www.Twitter.com/ALTWEB
    -------------------------
    HTML Validator - http://validator.w3.org

    CSS Validator - http://jigsaw.w3.org/css-validator/

    Tutorials HTML & CSS - http://w3schools.com/

  • Low contrast between the lines of measurement and background

    There is little contrast between the lines of action (dark gray) and (dark gray) background in the arrange window. Did someone come with a 'fix' yet for this?

    I speak now of LPX.

    Thank you!

    Have you tried to check this box...

  • How can I close a space between the lines?

    I typed a promissory note and have extra space between the lines.  How can I close this space?

    Hello

    Click on the "Line spacing" icon in the section 'Paragraph' of the 'Home' tab This icon is the fourth first in the default icon and has a high and arrow down to it.

    Click your setting spacing appropriate line in the list that appears.

    Change the default font size

    http://www.askdavetaylor.com/change_default_font_size_in_wordpad.html

    Windows XP Professional must have a copy of the Works word processor.  It is easier to work with.

    Start > type Works

    Select the word processor from the list

    If it does not, go to C:\\Program Microsoft Works

    Search for MSWorks

    Double-click the file to launch

    The icon looks like this in Windows Vista-

  • angles between the lines

    I am trying to find a way to understand the angle between the lines. These lines will always intersect. For example, if a line has xy of 100.0 and 100 200 values and the other line has a value of 0.50 xy and 200.50. These two lines when Wescott on a graph are 90 degrees to each other. I can just find a way to do this. Any ideas?

    Here's a way to do it. You can also use the mathematical functions to make it as Lynn suggested.

    Ben

  • change the spaceing between the lines in files

    How can I change the spaceing between the lines in files

    Hello

    What do you mean exactly by change spacing between lines in files?
    Follow the given link that helps you accomplish the task.
    Change your screen resolution: http://windows.microsoft.com/en-US/windows7/Change-your-screen-resolution
    You can also view: folders: frequently asked questions: http://windows.microsoft.com/en-US/windows7/Folders-frequently-asked-questions
     
  • How do you multiline text in a continuous form between the lines without scaling of the text?

    Help. How do you multiline text in a continuous form between the lines without scaling of the text?

    I tried to put each line of the form for amounts of specificity so that it ends at some point and does not change the text size to fit on the line but different key characters have different widths, so you do not get a length of the same line.

    I tried to remove the long text scrolling, but it changed nothing.

    I can create a text box great to fill out and have this scrolling of additional lines, but then I get too much information from people and I would need to clarify the lines behind the answer multi line text, or delete the lines...

    Is there a better solution?

    I usually just remove the lines and set the field "Does not scroll long text" so that all the text is visible. Including the lines is really only useful if the form may be printed and completed by hand, in which case you can use scripts as in this example is: http://acroscript.net/pdf/demos/multiLine_Demo1.pdf

    It works as expected in Acrobat/Reader, but not in Chrome and other PDF viewers who have little or no support for JavaScript. It uses scripts customized to validate on Focus and blur.

  • Code view in Dreamweaver displays large empty spaces between the lines

    See attached image. Code view shows large differences between the lines. It is not an extra space. I can't remove it. As you can see in the picture if I select the code space is attached to the code. I'm sure that it is a very simple display option change, but I've looked everywhere. I've just upgraded to the latest version of the thought of DW which may help, but he always does. How can I get rid of the extra space?

    Screen Shot 2015-12-11 at 9.29.42 AM.png

    With highlighting the way in which it is, it seems to me that you may have a corrupt police.

    Go in Edition > Preferences > fonts > mode Code and switch to Source Code Pro (if this isn't the case) or something like courier so it is.

    If it is a corrupt police, the origin of the problem, which should dissipate it.

  • How to create a table with spaces between the lines...

    Hello

    I use jdev 11.1.1.6 and I need to insert spaces between the lines. How this can be done?

    Thank you and best regards,
    Tarun Agrawal

    Hello

    I'm sorry to forget on the spacer. You must use css like mentioned AP.

    Arun-

  • Insert a line between the lines

    Is it possible to add a line between the lines?

    Hello Vic,

    Yes it is.

    Place a button on your table and add the following to its click event Javascript code:

    var currentRepeatable = this.parent;
    var im = currentRepeatable.instanceManager;
    var newRepeatable = im.addInstance(1);
    im.moveInstance(newRepeatable.index, this.parent.index);
    

    You may have to replace "this.parent" in line 1 by another SOM-Expression refers to your repeatable line containing your button.

    Currently, the new instance is inserted before the line containing the button. If you want to insert, after the change of current line, the last line:

    im.moveInstance(newRepeatable.index, this.parent.index + 1);
    

    Hope that helps,

    Martin

  • It is Possible to reduce the space between the lines after &lt; CR &gt; a text block?

    Hello

    I paste text without ANY special models in my custom CSS layout.

    I would have less space between the line after a < CR >.

    see you soon,

    Dreamer101.1

    Using the following style rules

    p, {br}
    margin: 0;
    padding: 0;
    }

    and look at the result.

    I hope this helps

    Ben

  • Any solution to LAST_VALUE with count (*) and BETWEEN the LINES without limit precedi

    I'm working on the cover search active county from COV_CHG_EFF_DATE for the ID of strategy and Futures (sample data are for a single policy). The rule for the coverage of assets are counted as below
    Transaction Type Count
    01, 02                +1
    06, 07                +1
    09, 10                -1
    03                       0
    
     
    COVERAGE_NUMBER TRANSACTION_TYPE COV_CHG_EFF_DATE  Active_Cover_Count
    01                              01                       22/OCT/2011                  2
    02                              01                       22/OCT/2011                  2
    04                              02                       23/OCT/2011                  3
    05                              02                       28/OCT/2011                  4
    05                              09                       30/OCT/2011                  2
    02                              09                       30/OCT/2011                  2
    05                              06                       03/NOV/2011                  3
    05                              03                       03/NOV/2011                  3
    05                              09                       05/NOV/2011                  0
    01                              09                       05/NOV/2011                  0
    04                              09                       05/NOV/2011                  0
    I find LAST_VALUE limit with the help of count (distinct COVERAGE_NUMBER) and the LINES BETWEEN Unbounded preceding AND 1 previous characteristic. Is there another better logical or analytical function in support of the application to calculate the value of aggregation based set of rules? Data from table and sample before if anyone find solution. Thank you.
    ----------------------------------------------------------------------------------------------------------------------------------------
    drop table PC_COVKEY_PD;
    
    create table PC_COVKEY_PD (PC_COVKEY varchar(30),
    POLICY_NUMBER varchar(30),
    TERM_IDENT varchar(3),
    COVERAGE_NUMBER varchar(3),
    TRANSACTION_TYPE varchar(3),
    COV_CHG_EFF_DATE date,
    TIMESTAMP_ENTERED timestamp
    );
    
    delete from PC_COVKEY_PD;
    
    commit;
    
    insert into PC_COVKEY_PD values ('10695337P3021MC0020012', '10695337P3', '021', '002', '02', to_date('22/OCT/2011','DD/MM/YYYY'), cast('22/SEP/2011 03:10:12.523408 AM' as timestamp));
    insert into PC_COVKEY_PD values ('10695337P3021MC0010012', '10695337P3', '021', '001', '02', to_date('22/OCT/2011','DD/MM/YYYY'), cast('22/SEP/2011 03:10:12.523508 AM' as timestamp));
    insert into PC_COVKEY_PD values ('10695337P3021MC0040012', '10695337P3', '021', '004', '02', to_date('22/OCT/2011','DD/MM/YYYY'), cast('22/SEP/2011 03:10:12.864153 AM' as timestamp));
    insert into PC_COVKEY_PD values ('10695337P3021MC0040032', '10695337P3', '021', '004', '03', to_date('22/OCT/2011','DD/MM/YYYY'), cast('22/SEP/2011 03:10:12.865153 AM' as timestamp));
    insert into PC_COVKEY_PD values ('10695337P3021MC0050012', '10695337P3', '021', '005', '02', to_date('22/OCT/2011','DD/MM/YYYY'), cast('22/SEP/2011 03:10:12.976483 AM' as timestamp));
    insert into PC_COVKEY_PD values ('10695337P3021MC0020042', '10695337P3', '021', '002', '09', to_date('22/NOV/2011','DD/MM/YYYY'), cast('16/FEB/2012 02:26:00.006435 PM' as timestamp));
    insert into PC_COVKEY_PD values ('10695337P3021MC0040042', '10695337P3', '021', '004', '03', to_date('22/NOV/2011','DD/MM/YYYY'), cast('16/FEB/2012 02:26:00.135059 PM' as timestamp));
    insert into PC_COVKEY_PD values ('10695337P3021MC0050042', '10695337P3', '021', '004', '09', to_date('22/NOV/2011','DD/MM/YYYY'), cast('16/FEB/2012 02:26:00.253340 PM' as timestamp));
    insert into PC_COVKEY_PD values ('10695337P3021MC0020042', '10695337P3', '021', '004', '03', to_date('22/NOV/2011','DD/MM/YYYY'), cast('16/FEB/2012 02:26:00.363340 PM' as timestamp));
    insert into PC_COVKEY_PD values ('10695337P3021MC0040032', '10695337P3', '021', '005', '09', to_date('29/NOV/2011','DD/MM/YYYY'), cast('16/FEB/2012 02:26:00.463340 PM' as timestamp));
    insert into PC_COVKEY_PD values ('10695337P3021MC0050032', '10695337P3', '021', '005', '03', to_date('29/DEC/2011','DD/MM/YYYY'), cast('16/FEB/2012 02:26:00.563340 PM' as timestamp));
    insert into PC_COVKEY_PD values ('10695337P3021MC0020012', '10695337P3', '021', '002', '03', to_date('30/DEC/2011','DD/MM/YYYY'), cast('16/FEB/2012 02:26:00.663340 PM' as timestamp));
    
    commit;
    Published by: 966820 on October 30, 2012 20:30
  • Point of intersection between the line interpolated in Grapher

    How to find the point of intersection between interpolated lines using points offered as input to a file in grapher comps?

    What version of Mac OS X?

  • A1-830 flashing screen between the lines running and display

    Tablet for years.  The display of the A1-830 began yesterday flashes between the display and execution of vertical lines.  When the screen is exposed, it will accept touch and can accept requested measures.  However, cannot work between the flashing vertical lines.  Not verified no update pending.  Tried to find the rogue app, but flashing happening now every two seconds (mounted) and unable to see display for a long time.  At this stage do not know if an another alternative of data factory reset and not even sure if it would solve the problem.  Tablet not recently declined or new applications have been installed before display glitching.  Any help appreciated.

    It seems more a hardware than software problem but a factory reset is always useful to refine the culript.

    You can do the factory reset from recovery instead of the android OS.

    http://Acer-in.custhelp.com/app/answers/detail/A_ID/32849/~/factory-data-reset-on-Acer-Iconia-A1-830

    If the problem persists even after a factory reset, it's a hardware fault.

Maybe you are looking for

  • How to remove USB share?

    Hi all I'm running a 104 ReadyNAS to 6.4.1 RC1 level. I plugged my external drive of Taurus with rear USB connector upperI have to run a backup ReadyNAS for the external drive of the TaurusI got a share named USB_HDD_1I ejected the disk of Taurus and

  • Windows partition is displayed

    I had windows works perfectly and yesterday, I decided to create a third partition and since I created it the windows partition shows no more, I can only see in disk utility, but I can't access to this

  • How can I fix a node library to compose with a terminal unwired or bad?

    I am currently working on a program that is designed to send and receive analog data to/from a BNC-2090. Somewhere along the line, LabVIEW has encountered a problem in the library node call the AO Channel.vi create. For this reason, most of the impor

  • How can I find my type of motherboard intel

    I'm trying to update my sound driver but I need to know what kind of card I have. can u help Currently, I have Sound Devices-------------Description: Intel(r) Audio integratedDefault audio playback: YesDefault voice playback: YesHardware ID: PCI VEN_

  • Player Media 11 doubles all my songs... 2 of each song. medium need to detect and eliminate all the dupicilate files

    Remember - this is a public forum so never post private information such as numbers of mail or telephone! Ideas: You have problems with programs Error messages Recent changes to your computer What you have already tried to solve the problem