Report interactive apEx - line column break?

Hello
I use ApEx 4 and in the application created the interactive reports page. In the column "Telefon_direktni" is display phone number in the format (0xx) xxx - xxx (phone number for Croatia). When I enter the phone number, I get just 9 digits, so the SQL select query put () and - in the report results. When I have 2 phone numbers I just enter 18 digits, then select request divide number in format (0xx) xxx - xxx, (0xx) xxx - xxx. But my problem is... result interactive report for 2 phone numbers it looks like this:

(0xx) xxx - xxx, (0xx)
xxx - xxx

I want thet result looks like this:

(0xx) xxx - xxx,.
(0xx) xxx - xxx

How can I put line breaks in a select query after ',' it seems I want.

This is my select statement:
select
case when LR.TELEFON_DIREKTNI is not null and LR.TELEFON_DIREKTNI like('_1%') and length(LR.TELEFON_DIREKTNI) < 10 then
                                     '('||substr(LR.TELEFON_DIREKTNI,1,2)||') '||substr(LR.TELEFON_DIREKTNI,3,3)||'-'||substr(LR.TELEFON_DIREKTNI,6,4)
              when LR.TELEFON_DIREKTNI is not null and LR.TELEFON_DIREKTNI like('_1%') and length(LR.TELEFON_DIREKTNI) > 10 then
                                     '('||substr(LR.TELEFON_DIREKTNI,1,2)||')'||substr(LR.TELEFON_DIREKTNI,3,3)||'-'||substr(LR.TELEFON_DIREKTNI,6,4)||',      '||'('||substr(LR.TELEFON_DIREKTNI,10,2)||') '||substr(LR.TELEFON_DIREKTNI,12,3)||'-'||substr(LR.TELEFON_DIREKTNI,15,4)
              when LR.TELEFON_DIREKTNI is not null and LR.TELEFON_DIREKTNI not like('_1%') and length(LR.TELEFON_DIREKTNI) < 10 then
                                     '('||substr(LR.TELEFON_DIREKTNI,1,3)||') '||substr(LR.TELEFON_DIREKTNI,4,3)||'-'||substr(LR.TELEFON_DIREKTNI,7,3)
when LR.TELEFON_DIREKTNI is not null and LR.TELEFON_DIREKTNI not like('_1%') and length(LR.TELEFON_DIREKTNI) > 10 then
                                     '('||substr(LR.TELEFON_DIREKTNI,1,3)||')'||substr(LR.TELEFON_DIREKTNI,4,3)||'-'||substr(LR.TELEFON_DIREKTNI,7,3)||', ('||substr(LR.TELEFON_DIREKTNI,10,3)||') '||substr(LR.TELEFON_DIREKTNI,13,3)||'-'||substr(LR.TELEFON_DIREKTNI,16,3)
              end as TELEFON_DIREKTNI
Published by: user10410320 on March 30, 2011 10:14

Try:

select
case when LR.TELEFON_DIREKTNI is not null and LR.TELEFON_DIREKTNI like('_1%') and length(LR.TELEFON_DIREKTNI) < 10 then
                                     '('||substr(LR.TELEFON_DIREKTNI,1,2)||') '||substr(LR.TELEFON_DIREKTNI,3,3)||'-'||substr(LR.TELEFON_DIREKTNI,6,4)
              when LR.TELEFON_DIREKTNI is not null and LR.TELEFON_DIREKTNI like('_1%') and length(LR.TELEFON_DIREKTNI) > 10 then
                                     '('||substr(LR.TELEFON_DIREKTNI,1,2)||')'||substr(LR.TELEFON_DIREKTNI,3,3)||'-'||substr(LR.TELEFON_DIREKTNI,6,4)||',
('||substr(LR.TELEFON_DIREKTNI,10,2)||') '||substr(LR.TELEFON_DIREKTNI,12,3)||'-'||substr(LR.TELEFON_DIREKTNI,15,4) when LR.TELEFON_DIREKTNI is not null and LR.TELEFON_DIREKTNI not like('_1%') and length(LR.TELEFON_DIREKTNI) < 10 then '('||substr(LR.TELEFON_DIREKTNI,1,3)||') '||substr(LR.TELEFON_DIREKTNI,4,3)||'-'||substr(LR.TELEFON_DIREKTNI,7,3) when LR.TELEFON_DIREKTNI is not null and LR.TELEFON_DIREKTNI not like('_1%') and length(LR.TELEFON_DIREKTNI) > 10 then '('||substr(LR.TELEFON_DIREKTNI,1,3)||')'||substr(LR.TELEFON_DIREKTNI,4,3)||'-'||substr(LR.TELEFON_DIREKTNI,7,3)||',
('||substr(LR.TELEFON_DIREKTNI,10,3)||') '||substr(LR.TELEFON_DIREKTNI,13,3)||'-'||substr(LR.TELEFON_DIREKTNI,16,3) end as TELEFON_DIREKTNI

Although I don't think it's a good way to store/format multiple phone numbers.

Tags: Database

Similar Questions

  • How to get the value of the interactive report into apex 5 column

    Hello

    I want to create the master detail report with ajax.

    If I want to get the value of a specific column of interactive report when click on one line and has a value of element of selected row column value.

    Then use the elements of value to refresh the details report.

    You have a better idea to refresh the report Details according to select line of the master report without refreshing the whole page?

    Hi SYSMAN2007,

    SYSMAN2007 wrote:

    I want to create the master detail report with ajax.

    If I want to get the value of a specific column of interactive report when click on one line and has a value of element of selected row column value.

    Then use the elements of value to refresh the details report.

    You have a better idea to refresh the report Details according to select line of the master report without refreshing the whole page?

    You can do this with the help of dynamic action. You need to get the value of the column of a line click in IR (using jQuery) and set the value to the elements which, in turn, can be used as a filter to other reports on the same page.

    See: How to use the values in the columns of an interactive report (Apex 5)

    Can you reproduce your problem on apex.oracle.com and share the credentials of the workspace, so that I can demonstrate how this can be achieved.

    See an example of how it can be done with dynamic actions: https://apex.oracle.com/pls/apex/f?p=35467:5

    Kind regards

    Kiran

  • report interactive apex 5, pivot action does not display columns in the application developed on 4.2.6

    I just installed apex 5.01 on apex 4.2.6.

    When I want to use the pivot of the action on an interactive report developed on 4.2.6 the names of the columns does not appear.

    If I add a new column, it seems

    calculated columns displayed

    Thank you

    Hello

    The pivot must be enabled for these columns.  To do this, you can upgrade the application developed in 4.2.6 as follows:

    -Click on the application

    -Click utilities

    -Click on the Application upgrade

    -Activate the IR Pivot should appear.  Click on the number of candidate object

    -You can select some or all of the IRs to upgrade

    Kind regards

    Christina

  • Images and reports interactive apex 4.0

    To the community,

    I have not had the chance to make a decent research before going to bed, but I was wondering if anyone had links to good examples on OTN, a blog, apex.oracle.com etc, but I thought I would ask the question there during the night.

    I have a table that contains my data blob, mimetype, name of file, and I would like to create an example of interactive report that displays the image in the BLOB in three formats - standard interactive report using icon view and by using the detail view.

    Note that I am not referring to images that may be in the system file or directory--but within the boundaries of a table.

    For some reason any I was losing the battle this afternoon, I was wondering if anyone knew good concise examples, such as this one for the use of images in the form & classic report pages.
    http://www.Oracle.com/WebFolder/technetwork/tutorials/OBE/DB/Apex/R31/apex31nf/apex31blob.htm

    See you soon,.

    Scott

    >
    I have a table that contains my data blob, mimetype, name of file, and I would like to create an example of interactive report that displays the image in the BLOB in three formats - standard interactive report using icon view and by using the detail view.

    Note that I am not referring to images that may be in the system file or directory--but within the boundaries of a table.
    >

    See the products integrated IR page 3 of the sample Application.

  • Report interactive apex 3.2.0.00.27...

    I do some stuff of the JQuery ToolTip for an interactive report... He still works for the first page, but if I search something... After pressing the button 'GO', the ToolTips is no longer working. If you view the Source Code (and he says 'original' in the title bar of Internet Explorer), the Source seems to be the same as the original interactive report.

    That makes sense... What is displayed on the screen, not what's in the window 'View Source '...

    Published by: tward October 12, 2011 07:39

    Tward salvation,

    I do some stuff of the JQuery ToolTip for an interactive report... He still works for the first page, but if I search something... After pressing the button 'GO', the ToolTips is no longer working

    When you press the 'Go', the region of report refresh via AJAX. So, any ' link, you did during the loading of the page disappeared. If you need to use 'live' instead of 'bind '.

    See http://api.jquery.com/live/

    If you view the Source Code (and he says 'original' in the title bar of Internet Explorer), the Source seems to be the same as the original interactive report.
    That makes sense... What is displayed on the screen, not what's in the window 'View Source '...

    IE is not intended for developers. "Inspect the report" using Firebug in Firefox. You can see exactly what is happening.

    Kind regards
    Hari

  • How you trigger sort column of the APEX report interactive page element?

    Hi guys!

    A certain page, I have an interactive report of the APEX. Part of the query is similar to:

    SELECT

    ...,

    (definition column1) BCV,

    (definition column2) RFV,

    ...

    table. RAU,

    The TABLE table_name,...

    WHERE conditions;

    I also have a defined through the following LOV page P121_SORT_BY (selection box) element:

    SELECT "BCV" d, "BCV" r FROM DUAL

    UNION ALL

    SELECT "RF value" d, 'RFV r' FROM DUAL

    UNION ALL

    SELECT 'RA (USD)' d, "RAU" r FROM DUAL

    I've linked a dynamic Action to P121_SORT_BY which runs on the 'Change' event and performs the following JavaScript Code:

    var my_column = $v ('P121_SORT_BY');

    Alert ('test1');

    $x('apexir_COLUMN_NAME').value = my_column;

    Alert ('test2');

    gReport.column.order ('DESC');

    Alert ('test3');

    Alert (my_column);


    Obiously, there is something wrong with my code JS... What can I do to make my report interactive sort DESCENDING column selected in my page element?

    Please note that I also tested the JS without comments and I get pop ups (test1, test2, test3 and the correct name of the column of my_column) but the report isn't back to normal... What am I doing wrong?

    Thank you

    Digital

    Hi all

    I found the answer to my question by navigating through the java scripts in Apex.

    So, this is what works:

    gReport.last_col_id = "BCV";

    gReport.column.order ('DESC');

    Where "BCV" is actually your name of column position, you can send it by a Page Item and means of descending "DESC" and "CSA" means growing.

    I hope this helps other people too.

    Thank you

    Digital

  • How to create a column width fixed in an interactive report 4 APEX?

    This thread is a continuation of {message identifier: = 9191195}. Thank you fac586.

    Partial success: the following code provided by fac586 limit the width of the column of the Apex 4 interactive report as long as the data in the column contains a white space in a browser Firefox 3.6:

    < pre class = "jive-pre" >
    < style type = "text/css" >
    e #T_DESCRIPTION {}
    Width: 300px;
    }
    TD [headers = "T_DESCRIPTION"] {}
    Width: 300px;
    dressing: break-Word;
    }
    < / style >
    < / pre >

    Notes:
    1. the above code is placed in the HTML header for the page section.
    2 T_DESCRIPTION is defined as VARCHAR2 (2000).
    3. the above code works in Firefox 3.6.12 browser but does not work in the browser Internet Explorer 7.0.5730.13.

    I tried to add "float: left;":

    < pre class = "jive-pre" >
    < style type = "text/css" >
    e #T_DESCRIPTION {}
    Width: 300px;
    }
    TD [headers = "T_DESCRIPTION"] {}
    Width: 300px;
    dressing: break-Word;
    < font color = "red" > float: left; < / police >
    }
    < / style >
    < / pre >

    Notes:
    1 "float: left;" requires no white space and successfully splits the column between the characters instead of whitespace.
    2. "float: left;" reduces the height of the cell and allows the page to show through... could not determine how to solve this fundamental problem.
    3. the above code works in Firefox 3.6.12 browser but does not work in the browser Internet Explorer 7.0.5730.13.

    I've did some more research, but I've yet to discover how to create a fixed-width column in an interactive APEX 4 report that displays correctly in Internet Explorer 7 browser.

    Ideas and help will be appreciated.
    what theme are you using?

    A customized version of the 15 theme.

    You said you were using APEX 4.0, if I was testing on 4.0, but using one of its new themes based on the standards. 15 theme is a theme of legacy from older versions of APEX, mainly to ensure a certain level of support for the despised IE6 browser. The new themes are designed to restore mode standard and those inherited mode quirks (This is explained here). Firefox (and Safari, Opera and Chrome, and...) for your application, it's academic: all the required CSS: selectors attribute, the property max-width and dressing work in two modes.

    Enter Microsoft. They decided that in IE7, backwards compatibility meant that new CSS features would be supported only in standard mode, even if they had never been implemented in older versions, with no previous, behavior that may break. Go figure. Yes, even so the dressing will work in quirks mode (no surprise - Microsoft invented), attribute selectors, and max-width only. The latter is bug in standard mode, so I tried using widthworkaround, but who has always used an attribute selector, which of course is ignored, there are no selectors of friendly quirks mode in uneditable Oracle IR of supplement.

    The best 2 options are:

    1. stop using IE.

    2. use a theme based on standards.

    Less satisfactory would be:

    3. change your theme custom (or some of its pages) in standard mode (but it could break him other stuff).

    4 throw some JavaScript to fix the problem (I'll sleep on this one).

  • Adjust the height of the line in an interactive report for all lines

    Hello
    I have an interactive report with lots of data in certain cells. The height of the heights of lines varies, so that all data is visible in the cells.
    I want to correct or to limit the row height to a specific value, so that all lines are displayed with the same height.
    Do anyone knows how to win this? Thanks in advance.

    Published by: kps204020 on 26.12.2012 20:27

    kps204020 wrote:
    Thanks a lot for your answer.
    I tried your proposal, but it has no effect. The cells in the report show all their content using as many lines as you need for this.

    This is the default behavior for the HTML table data (tables and cells grow to fit their content).

    So I have always with lots of lines, lines and lines with only a few mixed lines in my IR dependant on the contents of the cell. Because some lines almost filling the whole screen, it is difficult to get an overview with regard to adjacent lines.
    I use the Application Express 4.1.1.00.23. with the theme 21. Scarlet and Firefox 17.0.1.

    All users using Firefox?

    In fact, I'm working on my first APEX Solution for use in my business and demanding customers a solution for this topic. So I'm very keen to find a solution.
    I am very looking forward to your reply.

    I have been involved in similar questions in the past. My first reaction is simple: these data must be included in the report? The offending column can be removed from the primary report? They will always be visible in the display of the row and the detail view when it exists.

    The second option is to create a detailed view of the report with a structure that is better suited to the data concerned and make it the default view. (For an example, see the treatment of the PRODUCT_DESCRIPTION column in the detail view of the report in the sample database Application: click the show details on the product page.)

    The third possibility is some sort of customization of the presentation of the data. It will be using a combination of HTML/CSS/dynamic of the Actions/Plug-ins/JavaScript that you may not be familiar with: do you have any experience of these? To go this route, you must describe in detail how you want to present data, or what behavior is required when the data is too long and share a sample of the report on the apex.oracle.com we can work with.

  • Simple questions about interactive Apex reports

    I have not yet made many experiments with interactive reports, and a few weeks ago, I heard a colleague that I should not create them. He told an interactive report in our environment of production - according to him, if a user changes the interactive report (for example, adding or dropping a column), other (s) see the same changes that have been made by the first user, so this interactive report cannot have its columns or content is personalized for each user because each user will need to see its own version of the interactive report.

    Because it is expected that each user can see their own version of interactive reports, it discouraged me to go forward. I need to understand this situation because I'm about to release another interactive report in a new page of the Apex - and overcome this if possible.

    Another question: is it possible to replace Oracle reports with export to PDF - Apex and this would include customized logo, header, trailer, and other features of Oracle reports? Certainly not at 100%, but some of these features, such as reports of matrix - they do? Right now, I put reports in packs of function that returns custom types and activities of logic inside the function that returns a type Apex them simply returns by selecting its data, but this question has crossed my mind because I would like to release the Apex of other software development environment.

    I use version 4.2 of the Apex.

    Hello

    There is an attribute on interactive reports where you can define whether the user can save it s own versions of the report, removing columns or adding filters, but the main report is always the same for all users, just as it has been defined by the developer of.

    On PDF printing, I use Jaspersoft Studio to do. It s free and very useful.  There is a package called jrxml2pdf developed by Andreas Weiden, that allows you to print reports of APEX jaspersoft.

    It may be useful

    Best regards.

  • break clause and column break report the area of ttitle

    in sqlplus, break on report clause causes the value of column previous failure to print again on the next great total page if the column break is printed on the title page. Is it possible to remove the break the column value in the region of tttile last total page big?

    Thank you.

    Hello

    In reply #3, I was talking about why SQL * more product for the page "Grnd Totl":

    Dept report

    Total general

    JOB TOTAL_COUNT

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

    14

    -----------

    14

    In other words, it puts the individual elements above the line and below the line AMOUNT.  In this case, it sounds strange, because there is only a single element above the line.  It would look funny if you give something like this:

    Dept report

    Total general for all departments

    JOB TOTAL_COUNT

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

    ANALYST 2

    4. THE CLERK

    MANAGER 3

    PRESIDENT 1

    SELLER 4

    -----------

    14

    I realize that's not what you (or your customers) asked, but you (or they) might like it.  (My favorite definition of 'feature' is "A bug that no one has the intention of".)

    It's an easy change, inserting one word will do:

    SELECT NVL (TO_CHAR (deptno)

    , 'Grand Total for all departments.

    ) AS dept

    work

    COUNT (*) AS total_count

    FROM scott.emp

    GROUP BY GROUPING SETS ((deptno, job)

    , (job)

    )

    CONSOLIDATION ORDER (deptno), deptno, job

    ;

  • The BLOB (image) column in the report (interactive)

    Hello

    I have a field called "image" in my "details" table, which is of type BLOB. I also have a field 'MIME Type' and 'filename '.

    In addition, I have a "name" and "description" column I need to display with the image in the form of columns in a report (interactive preference).

    I also modified the display BLOB format as per

    http://www.Oracle.com/WebFolder/technetwork/tutorials/OBE/DB/Apex/R31/apex31nf/apex31blob.htm

    what Miss me is the correct query. If possible, I want to control the size of the rendered image in the report as saying 40 * 50.

    I also mentioned the thread

    APEX 3.1 BLOB Image display

    But I do not know how to place the

    DBMS_LOB. GetLength ("BLOB_CONTENT") as "BLOB_CONTENT".

    in my query.

    The foregoing allows also the report type column 'number Should it?

    Any help would be appreciated.

    Kind regards
    Rigaut

    so I am very confused if the error is in the report or the table/data type definition itself.

    Or {noformat}) {noformat}

    The problem is in the settings of the P4_PICTURE element in the form on page 4. The Type of storage has been upgraded with WWV_FLOW_FILES of the Table, so the uploaded images were going to the repository of integrated files, not the BLOB on your CATEGORY table column. So the fundamental problem is that there are no images in your table to be included in the report.

    I changed the element P4_PICTURE Type of storage to a BLOB column specified in the attribute of the Source element, has added the additional column information and the IMAGESource and changed column PHOTO report 3 Format page mask download image, and the picture I have uploaded via the updated form the appears.

  • Start the report on a new line column

    Hey guys,.

    Anyway is to slice a report into two lines? It's just, I have a big report which goes across the page im wondering if it is possible to divide it so that it does not continue on the page. So start a column of the report on a new line...

    T.I.A

    Stefan

    Well since you can not have 2 interactive reports on a single page, no...

    otherwise, you could solve this problem with 2 separate reports

  • How to make all visible columns in a report interactive by default

    Hi all

    I have a report with the first column is visible and the rest are hidden by default. Is there a way I can do them all visible by default so that users may not go in equities to display in the report?

    Thank you
    Sezer

    Sign in as a developer > run the interactive report > actions > select all the columns of your choice

    Now got to actions > save > default > primary > apply

    http://docs.Oracle.com/CD/E23903_01/doc/doc.41/e21674/ir_using.htm#CHDFDFJA

  • GREP expression for the last line, followed by the column break

    For all of you who read this, thank you for taking the time to help. I'm a noob to JavaScript and GREP expressions, so thank you for all your time and help with this.

    I wrote a JavaScript script to help my company format some of our work more quickly. We have pre-made models with character Styles all implemented (body, header, BodyItalic) etc.

    My script works almost perfectly to identify patterns and apply the correct character style.

    However, my expressions do not work perfectly and last line of text in the text box (linked), which has a column break, do not get to the format.

    This last line is always different depending on the document. So I can't put in the constants. They are always variable.

    My current GREP expression is. + ~ M which, theoretically, should find any character who repeated one or more times and is followed by a column break. The problem is, he finds that the last two characters on the line which are followed by a column break.

    for example

    Tribute would be tribeTE

    Eulogy would be EuloGY

    etc etc.

    As you can see, they are not always the same words and could even be a short sentence so I can't just look like some words.

    I am trying to establish why the GREP expression does not. Maybe I use GREP evil symbols? I don't know, so any help would be appreciated.

    Thank you in advance.

    Scorpio

    This column break thing seems bugy. I have no idea why only the last two characters are found. If I try to find an entire word with \w+, which does not work. I get results as weird if I try to \b\w+~M. the good news, is that InDesign is no crash, here.

    However: There is no GREP to search a specific line, so I'm looking for a columnbreak and then for the line which belongs to the aware found:

    app.findGrepPreferences = app.changeGrepPreferences = null;
    app.findGrepPreferences.findWhat = "~M"; 
    var found = app.activeDocument.findGrep();

    if (found.length > 0) {
    for ( var i = 0; i < found.length; i++ ) {
      var curFound = found[i];
      var curLine = curFound.lines[0]; 
      curLine.fillColor = app.activeDocument.swatches[4];
    }
    }

  • Interactive report attributes: missing a column?

    It comes to Application Express 3.2.1.00.12

    I'm working on a report with columns drawn in a SQL statement in the definition of the region of the screen section interactive report attributes. We want to change the column names, so that they are more user-friendly, so forth that the report attributes tab, I'm looking for the name of the column, we want change, but it does not appear. Now, in the final report, the column is visible with the name of the column in the database header, so the system is aware of the column and can display it, but for some reason that we cannot see in the report attributes tab.

    Why a column would be invisible or inaccessible in the report attributes tab? There are 100 columns displayed in the attributes report: section of the column attributes. Is this the reason why I'm missing some columns; 100 is a hard column on this page limit?

    Thanks in advance for any help you can provide.

    Matthew Nagler

    Published by: user13579247 on July 20, 2011 10:45

    Published by: user13579247 on July 20, 2011 12:20

    Hello

    You are almost right place. You must click before the 100th column name, to screen where you can change column attributes.
    In the top right is buttons (Cancle, apply, < and=""> )

    Kind regards
    Jari

    Published by: jarola July 21, 2011 17:43

    He could documentation will guide you to the right screen
    http://download.Oracle.com/docs/CD/E14373_01/AppDev.32/e11838/app_comp.htm#sthref978

    >
    To access the attributes of the column:

    1. on the homepage of the workspace, click the icon of the Application Builder.

    2. Select the application.

    3. Select a page. The definition of Page appears.

    4. According to the regions, click interactive report next to the name of the region of report you want to edit.
    The page Interactive report attributes with the attributes of the column at the top of the page section is displayed.

    5. to access the column attributes page, click Edit next to the Alias column.

    >

    Published by: jarola July 21, 2011 17:44

Maybe you are looking for