Commas distort the setting of data in page APEX elements

I have a form with several fields - Px_ITEM1, Px_ITEM2, Px_ITEM3, etc..

I want to create a new record in which I want to automatically assign the new record with the values of the elements 1, 2 and 3 of the current record.

I do this with a button which redirects the page to itself, and then each element affect the value in the current record. It works fine as long as there is no comma in one of the elements. If there is a comma in, for example, item1 (for example "MY COMPANY, INC."), then the values after the decimal point (here ' INC') will be placed in item2 and the value set to go in item2 will go into item3, etc..

How can I treat this problem so that commas do not cause this inaccurate transfer to occur?

Published by: Doug on April 10, 2012 09:40

Hi Doug,.

You can define a calculation of load on page to the inversion to commas. The tricky part will make the initial substitution when the page is redirected. I might try a calculation of page after the presents and see if it works, but I think this may not occur since you make a redirect and not a shipment.

If you redirect right on the same page it is possible to delete any page clearing cache, and then you won't have to pass the items on the page at all, simply adjust the items that already exist on the load calculations.

A third option would be to adjust your page to submit instead of redirect, using conditions on any process page on submit that you do not want to run.

Aaron

Tags: Database

Similar Questions

  • Problem with comma in the source of data merge document

    I use InDesign CS6 on a Mac in the Mavericks.

    I created a data source document in Word, saved as a .txt file.  It is a unique field which is the titles of documents. One of the documents has two commas in the title. When I do the merging of data, this page displays only the part of the title until the first comma, and then the merger's going to the next page.

    InDesign aid supposed to include the punctuated title between quotation marks. I tried enclosing the entire title in quotes, and I tried enclosing just commas in quotes. I used quotes and quotes. The result is always the same, the title merges up to the first comma and then going to the next page.

    Usually, Google is my friend, but I could not find all the answers either.  What I am doing wrong?

    When you perform a data merge, it uses a character as the delimiter between fields. The default value is a comma. If you have just a single column of data, with no field to separate, then you can check the Options to Import Show key when selecting your data source and set the delimiter to be something thing-anything! -other than a comma. This will force InDesign to ignore commas in your data.

  • Use the data from a DataSet as a source for another (the join between the sets of data)

    Hello. I come with a problem, very simple, but which I think is not implemented in the beer Pub.

    In the DataModel, I create a DataSet, providing some data (for example, a string from a web service), and after this, I create another set of data that uses this string as a parameter for a database query. Is this possible? The only link I found between the sets of data is only this concatenation of the main data set.

    Is there a way that I can do? Thank you!

    * [url http://www.java-forums.org/blogs/advanced-java/collection/] Java collection *.

    In Publisher 10 g and sooner you can use a data model to the join and the structure of data from different sources SQL.

    In Publisher, 11g, you can join data sets for which Publisher can 'know' on the data fields. For example. In addition to SQL data sets, you can reach Excel, LDAP, MDX and answers. Web Services, like XML file are data sets that editor does not know the data fields, so unfortunately, no way to join them... I know.

    Also, true that LOVs can either be SQL or data fixed (i.e. the entered values).

    Allowing the Web Service as a source of LOV or a way to define data fields, it's something for us to consider for a future version.

    Mike

  • extend the set of data

    Hi all
    Please find the below example scenario where I have to extend the set of data.
    I working on oracle 10g and all by extending the data set, we should exclude weekends. The sample is only for 2 ID, but there may be more than one.
    Thanks for your help.
     
    
    ID                    ST_DT          END_DT          VAL 
    ====               ========         =======        ======== 
    1                  2/2/2011             2/4/2011       4 
    1                  2/4/2011             2/8/2011       5 
    1                  2/8/2011                            6 
    2                  1/28/2011           2/1/2011        2 
    2                  2/1/2011                            8 
    
    ID                    DT             VAL 
    ====                ========      =======        
    1                 2/2/2011           4 
    1                 2/3/2011           4 
    1                 2/4/2011           5 
    1                 2/7/2011           5 
    1                 2/8/2011           6 
    1                 2/9/2011           6 
    2                 1/28/2011          2 
    2                 1/31/2011          2 
    2                 2/1/2011           8 
    2                 2/2/2011           8 
    2                 2/3/2011           8 
    2                 2/4/2011           8 
    2                 2/7/2011           8 
    2                 2/8/2011           8 
    2                 2/9/2011           8 
    
    select 1 as id,to_date('02/02/2011','MM/DD/YYYY') as st_dt,to_date('02/04/2011','MM/DD/YYYY') as end_dt, 4 as val from dual 
    union all 
    select 1 as id,to_date('02/04/2011','MM/DD/YYYY') as st_dt,to_date('02/08/2011','MM/DD/YYYY') as end_dt, 5 as val from dual 
    union all 
    select 1 as id,to_date('02/08/2011','MM/DD/YYYY') as st_dt, null as end_dt, 6 as val from dual 
    union all 
    select 2 as id,to_date('01/28/2011','MM/DD/YYYY') as st_dt,to_date('02/01/2011','MM/DD/YYYY') as end_dt, 2 as val from dual 
    union all 
    select 2 as id,to_date('02/01/2011','MM/DD/YYYY') as st_dt,null as end_dt, 8 as val from dual; 

    Hello

    I guess, when end_dt is NULL, you want to use the current date as end_dt, and the results you have posted are the desired results if the query is executed on February 10, 2011.

    Here's one way:

    WITH     got_n_days     AS
    (
         SELECT     id, st_dt, end_dt, val
         ,     NVL ( end_dt
                  , TRUNC (SYSDATE)
                  ) - st_dt          AS n_days
         FROM     table_x
    --     WHERE     ...     -- If you need any filtering, put it here
    )
    ,     cntr          AS
    (
         SELECT     LEVEL  - 1     AS n
         FROM     (
                   SELECT  MAX (n_days)     AS max_n_days
                   FROM     got_n_days
              )
         CONNECT BY     LEVEL <= max_n_days - 1
    )
    SELECT       d.id
    ,       d.st_dt + c.n          AS dt
    ,       d.val
    FROM       got_n_days     d
    JOIN       cntr          c  ON     c.n     < d.n_days
    WHERE       TO_CHAR ( d.st_dt + c.n
                  , 'DY'
                , 'NLS_DATE_LANGUAGE=ENGLISH'     -- If necessary
                ) NOT IN ('SAT', 'SUN')
    ORDER BY  id
    ,            dt
    ;
    

    Basically, each line of your original table must be repeated n times, where n is the number of days between (included) st_dt and end_dt (not included). The first subquery calculates this number and the main query results by combining your data with a "counter table", NTRC, which contains a line for each value of n that you may need. This 'table' is generated in the second auxiliary request.
    The join produces a line for each day. The WHERE clause eliminates the Saturday and Sunday from these results.

    Thanks for posting the sample data in a useful form. That really helps.

    Published by: Frank Kulash, February 10, 2011 14:29

  • Widget jQuery equivalent to the set of data for CC 20141 dreamweaver spry?

    I built a site earlier with CS4 or CS5. I used spry data sets to make menu items in the tables on the Web site. I did some research and found that spry widgets fired suites CC for any reason whatsoever and replaced with jquery widgets. I'm not 100% sure why adobe does this, but what equivalent of jquery widget that's spry data sets in dreamweaver cm³ 20141?

    Thanks for all your help!

    -Joe

    The closest you will get to this http://www.dmxzone.com/go/21863/html5-data-bindings

  • SQL query for the set of data rows not values

    Hello!

    I use Oracle 10 g (10.2.0.1.0) and I need help to solve this difficult task. I have a huge table with more than 145000 records and I shows you only a sample of it:

    ID TEAMNAME_EN DT TEAMNAME_EN HPROB AM APROB FT
    324813 31/8 / 2012 DEN HAAG GRONINGEN 1.90 3.30 3.10 2
    324823 31/8 / 2012 MAINZ GREUTHER FÜRTH 1.75 3.25 3.65 2
    324805 31/8 / 2012 GAZELEC DIJON 1.60 3.15 4.75 1
    324810 31/8 / 2012 ÖREBRO DJURGÅRDEN 2.80 3.25 2 2.05
    324795 31/8 / 2012 FC KÖLN COTTBUS 1.85 3.20 3.35 2
    324837 31/8 / 2012 PORTLAND WOOD COLORADO RAPIDS 2,00 3.20 2.95 1
    324828 31/8 / 2012 DROGHEDA UNITED, DUNDALK 1.45 3.65 5.25 1
    324827 31/8 / 2012 CORK CITY SHAMROCK ROVERS 3,30 3,80 1.70 2
    324833 31/8 / 2012 BARUERI ASA 2.45 3.20 1-2.30
    324798 31/8 / 2012 GENÇLERBIRLIGI ORDUSPOR'A 2.00 3,10 X 3.00
    324814 31/8 / 2012 ALMERE CITY FC OSS 1,80 3,50 3,20 2
    324830 31/8 / 2012 CRICIÚMA BRAGANTINO 1.25 4.35 1 8.00
    324820 31/8 / 2012 VOLENDAM FC EINDHOVEN 1.80 3.25 3.45 1
    324818 31/8 / 2012 MVV MAASTRICHT TELSTAR 1.40 4.00 X 5.25
    324819 31/8 / 2012 DORDRECHT VEENDAM 1.80 3.25 3.45 1
    324834 31/8 / 2012 CEARÁ GUARATINGUETÁ 1.40 3.85 X 5.50

    If this table consists of
    dates
    teams (hometeam, awayteam)
    numbers for homewin, shoot, awaywin probability
    and the final result as 1, X, 2

    What I want is a sql query that returns to me for each hometeam, awayteam and (if possible in a single line)
    all documents of the hometeam which had the same number of prior probability. For example:
    CEARÁ (last line), I would like to the sql to show me all the records of CEARA who had _1.40 3.85 or 5.50_ in each of the three issues of probability, BUT the problem is that I do want separate lines... I can do so far is to calculate a sum of House probability, probability of drawing, close probability for each team but the same records are calculated again in each game of probability!

    This means if CEARÁ has 1.40-3.85-5.50 in the past it will return me this line only once, and not 3 times (one for each set of probability)

    I hope that I've done my duty,
    Thank you for your time and lights
    N. Saridakis

    Is that what you are looking for:

    select hometeam,
           awayteam,
           hw,
           hd,
           hl
    from  (select hometeam,
                  awayteam,
                  ft,
                  SUM(CASE ft
                      WHEN '1' THEN 1
                      ELSE 0
                      END) OVER (PARTITION BY hometeam) hw,
                  SUM(CASE ft
                      WHEN 'X' THEN 1
                      ELSE 0
                      END) OVER (PARTITION BY hometeam) hd,
                  SUM(CASE ft
                      WHEN '2' THEN 1
                      ELSE 0
                      END) OVER (PARTITION BY hometeam) hl
           from   plays)
    where ft is null
    
  • Help to calculate the difference between the set of dates

    CASE_NAME         TEST_NAME           TEST_ON_HOLD_DATE        TEST_OFF_HOLD_DATE           Days On Hold (Not actual column in the table)
    
    A   1           01-JAN-12               03-JAN-12          3 
    A   2           01-JAN-12               05-JAN-12          5
    A   3           01-JAN-12            08-JAN-12          8
    A   4           04-JAN-12            10-JAN-12          7
    A   5           13-JAN-12            16-JAN-12          4
                                                                                                                                                -----        
                                                                               27               I actually want  total hold days as 14
    
    B  1             01-FEB-12            03-FEB-12          3
    B  2           02-FEB-12            05-FEB-12          4
    B  3           03-FEB-12            08-FEB-12          6
    B  4           05-FEB-12            10-FEB-12          6
    B  5           13-FEB-12            16-FEB-12          4
                                                                                                                                               -----
                                                                               23              Actual hold days for case B :14 days 
    
    I am trying to calculate actual hold days for each case ,could some one please help me to give me idea to start he issue.
    
    
    
    create table Caris_Life (case_name varchar2(10) ,Test_name varchar2 (10),Test_on_Hold_date date ,test_off_hold_date date);
    
    insert into  Caris_life  (case_name,Test_name,Test_on_Hold_date,test_off_hold_date) values ('A',1,TO_DATE ('01/01/2012','MM/DD/YYYY'),TO_DATE ('01/03/2012','MM/DD/YYYY'));
    
    insert into  Caris_life  (case_name,Test_name,Test_on_Hold_date,test_off_hold_date) values ('A',2,TO_DATE ('01/01/2012','MM/DD/YYYY'),TO_DATE ('01/05/2012','MM/DD/YYYY'));
    
    Insert Into  Caris_Life  (Case_Name,Test_Name,Test_On_Hold_Date,Test_Off_Hold_Date) Values ('A',3,To_Date ('01/01/2012','MM/DD/YYYY'),To_Date ('01/08/2012','MM/DD/YYYY'));
    
    insert into  Caris_life  (case_name,Test_name,Test_on_Hold_date,test_off_hold_date) values ('A',4,TO_DATE ('01/04/2012','MM/DD/YYYY'),TO_DATE ('01/10/2012','MM/DD/YYYY'));
    
    insert into  Caris_life  (case_name,Test_name,Test_on_Hold_date,test_off_hold_date) values ('A',5,TO_DATE ('01/13/2012','MM/DD/YYYY'),TO_DATE ('01/16/2012','MM/DD/YYYY'));
    
    insert into  Caris_life  (case_name,Test_name,Test_on_Hold_date,test_off_hold_date) values ('B',1,TO_DATE ('02/01/2012','MM/DD/YYYY'),TO_DATE ('02/03/2012','MM/DD/YYYY'));
    
    insert into  Caris_life  (case_name,Test_name,Test_on_Hold_date,test_off_hold_date) values ('B',2,TO_DATE ('02/02/2012','MM/DD/YYYY'),TO_DATE ('02/05/2012','MM/DD/YYYY'));
    
    Insert Into  Caris_Life  (Case_Name,Test_Name,Test_On_Hold_Date,Test_Off_Hold_Date) Values ('B',3,To_Date ('02/03/2012','MM/DD/YYYY'),To_Date ('02/08/2012','MM/DD/YYYY'));
    
    insert into  Caris_life  (case_name,Test_name,Test_on_Hold_date,test_off_hold_date) values ('B',4,TO_DATE ('02/05/2012','MM/DD/YYYY'),TO_DATE ('02/10/2012','MM/DD/YYYY'));
    
    insert into  Caris_life  (case_name,Test_name,Test_on_Hold_date,test_off_hold_date) values ('B',5,TO_DATE ('02/13/2012','MM/DD/YYYY'),TO_DATE ('02/16/2012','MM/DD/YYYY'));
    Published by: vijayp on Sep 14, 2012 22:58

    Published by: vijayp on Sep 14, 2012 23:09

    >
    Thank you very much for the idea, I will work with your query to see why he gives different number.
    >
    I think that I have now. Try this

    with q as (
    select case_name, test_name, test_on_hold_date, test_off_hold_date,
           lag(test_off_hold_date, 1, test_on_hold_date - 1) over (partition by case_name
            order by test_on_hold_date) prior_off_hold_date,
           lead(test_on_hold_date, 1, test_off_hold_date + 1) over (partition by case_name
            order by test_on_hold_date) next_on_hold_date
    from Caris_life
    ),
       p as (
    select q.*,
            case when (test_on_hold_date > prior_off_hold_date) -- if this record starts a new date range
              then test_off_hold_date - test_on_hold_date +1       -- then just subtract the dates
              when (test_off_hold_date > prior_off_hold_date)      -- but if this record overlaps the previous one
                 then test_off_hold_date - prior_off_hold_date        -- then adjust this records off date to only count the new days
            else 0 end days
     from q
    )
    select case_name, sum(days) days_held from p group by case_name
    
    CASE_NAME,DAYS_HELD
    A,14
    B,14
    
  • Problem with the syntax to call a page Apex

    I display 5 faces changing mood of a table. Each face has a link stored in the table. The link should go to a page in the same application and pass a parameter to this page when the face is selected.

    Somewhere, there is a problem with the syntax of the link, can anyone please help me out with the correct syntax, please.

    The error that I get when I select a face, is the following:

    Screenshot (34).png

    The link entry in the table is the following: http://apex.enciva.co.uk/pls/apex/f?p=842:1: & SESSION.: P1_MOODID:1

    and the code to display the faces, is as follows:

    DECLARE

    BEGIN

    FOR (IN) c1

    SELECT Hmauin,

    mntitle, mnlink

    OF MOODYFACES

    WHERE NVL ((mnfilename) dbms_lob.getlength, 0) > 0

    AND mnactive = 'yes '.

    ORDER BY HMAUIN

    ) LOOP

    HTP.prn ("< a class ="dock-item"HREF ="'|) C1. MNLINK | "" ">

    < img src = "f? p = & APP_ID.: & APP_PAGE_ID.: & APP_SESSION.:APPLICATION_PROCESS = GET_IMG1:NO:P141_MNID:' | C1. HMAUIN | "" "alt =" "/ >

    < span > ' | C1.mntitle | / span > < /a > ');

    END LOOP;

    END;

    Any answer will appreciated.

    Thanks fac586, spawn the link works perfectly.

  • View the database name and schema page APEX

    Hello

    I have the following problem:
    We have 2 runing of APEX systems, one for testing and one for production.
    When I'm connected, I don't easily see system on which I work.

    So what I want to do is to place a textfield at the bottom of each page of the APEX, which shows the name of the database and schema name, my current APEX application is running on.

    Is this possible? Are there variables that store these values?
    I think there should be some possibiliy to know that my work space is always referencing a db schema.

    Concerning
    Michael

    Michael:

    It should work

    Select Rename global_name;

    CITY

  • Different control of Page Apex element formatting

    Hi all

    I am aware that it is very very dump question and well silly but...!

    I tried to format n align the link below to watch good and attractive, if anyone can help with links of good example that would be great.

    [http://apex.oracle.com/pls/otn/f?p=16569:18]

    Or if someone can show me examples of different ways to format in alignment.


    Thank you


    Deep

    Published by: user11086173 on May 20, 2009 03:36

    Hi Jim,.

    It is not actually a 'feature' Apex or 'function' - not to put disabled issues is actually a browser thing.

    Using an HTML button is insufficient - it depends if #LINK # is illustrated in the model of button. If there is, especially if it is in the HREF attribute, it would probably cause problems that he would be replaced by the doSubmit() function call. That's why I use a model of separate button specifically for the execution of the javascript calls. Ideally, what you want, it's your button attributes to insert in an A tag and its HREF attribute to be set on ' # '.

    Andy

  • Creating auto-generated pages of the order of the day with dates

    Want an easy way to create pages of 12 months of a value with a provision of model grid generated in Illustrator at the end.  This development has seven different days (different available calendar highlight each day of the week amongs other things) can someone tell me how to generate these 365 pages without having to individually create all these pages and gather the?  I have no idea of software wich or function would be better to create this type of document.

    Thank you

    There are two ways to link your list that you make in Excel to the identity document. One is to export the text list and place (it's a bit complex when you have so many masters) and the other is to use the data merge.

    If you want to place the text, starting with a master page that has a frame on each side of the spread (for pages face to face) to contain the dates and add any other information that will appear on all pages in the order of the day. Make sure that the images for the dates are threaded from left to right, and then click inside the image on the left with the text tool. Apply a paragraph style that includes 'Start in the next section' in the framework Options keep in the style definition. Master pages of basis for seven days on this master. Befor put you the date implementation of 365 pages list to apply the correct masters, then place the date list by holding the SHIFT key and clicking inside the frame of date on page 1.

    To use the data merge you need to add a line to the top of the list and put a name in what will become the label of the field, then export the tab delimited text (because I assume you have commas, but without tab in your arrival dates).  I make a master with only the date box and nothing else included (or start with no master) and do a one record per page, then AFTER the merger merger, apply the will find it with the other information on the correct pages. The framework of date box should not appear on other masters. Help on the fusion of data files are very good, but do not hesitate to come after read you them if you have any other questions.

  • Set the filter of Date &gt; today


    IR vs Hyperion 9

    I want to filter a results by DATE.  I have a column of date called RenewDate.  I want this field to display always what lies in the future.  To do this, the setting always date field must be set to only show what is greater than today.

    How can I do this?

    It should work. Create a calculated item (called now) defined as

    New Date()

    and another (named filter) defined as

    (new Date (RenewDate)) > now

    Define the filter = 1.  Once you handle issues related to the management of the values NULL and my stupid column names, it should work.

  • Comparing two sets of data in BPEL

    Hey guys,.

    There is a web service that provides (and is the source of) data, and a table that is independent of the service that contains the same data. I am writing a 11g BPEL process to synchronize the data that is returned by the service with the data in the table. I invoke the database and service adapter to receive a data collection and I need to compare two sets of data to see what is on the whole of the service data that is not in the set of data in the table, so that I can insert them into the table. I also need to compare the values of the data sets possible updates of already existing records. I don't know how to do it though. I thought using a java embedded activity to compare the two games. What is the best way to do it? Examples of code would be much appreciated.

    Thank you

    Bill

    Hi, can not use the merge (insert or update) operation in the adapter of database for this use case?

  • Drill/output of the hierarchical chart data?

    I have a set of hierarchical and grouped data that are be drawn. I want the user to be able to go down and drill on the sets of data in the graph. When drilling, setting the dataProvider of the graph to the clicked element's children on works well
    However, I don't see no method of drilling back since the clicked item has no parents. Someone has an idea?

    Quote:
    Posted by: Sreenivas R
    I posted a sample here

    http://flexpearls.blogspot.com/2007/12/displaying-groupingcollectionhierarchic.html

    Wow, this is more or less perfect. I just need to change the effects of more then treat a data series. Thanks a bundle.

    UM... seems I also need a way to detect if your at the top level and prevent you from drilling. Shouldn't be too difficult.

    EDIT: Quite easy, just added another check in the loop from the forest to the top.

    However this method disconnects the data grid table, following problem is advanced. But his closer.

    EDIT: Bah, I need more sleep. Just need to point the hView times the grid and table.

  • Importing data into Oracle Apex

    Hello

    I have an obligation to provide a screen to the user where they can import excel data to an existing table and I saw a feature in the workshop of data in Oracle Apex, but I can't use that since I have extra things added into that must. The requirment is mentioned below,

    (1) need a screen where the user can select the excel file and start the import of a temporary table without validation
    (2) the data from the temporary table must be visible to the format of form Multi line in the screen and the user must be able to modify the data
    (3) the need for a feature or a screen mapping where the user can map the temporary table to the original table column before you pass data to the original (as data) table
    (4) the data should be transferred in the original table and the respective data should be deleted from the temporary table (in case if an error occurs, error record must appear in a temporary table up to less than the user of the corrected data into the original table)
    (5) need to add different types of validation, update the record in the original record if same id is available or insert a record value, non-zero, etc...

    Please suggest me how can I do this in the Apex.

    Is it possible to use the existing data and design workshop robot code in my new screen?

    You will probably have to code this yourself... There are packages that have been written to import Excel and CSV style...

    Here's a blog entry to make the upload of Excel file: http://avdeo.com/2008/05/21/uploading-excel-sheet-using-oracle-application-express-apex/

    Once you call who you might have a tabular layout displays the data to the user...

    Other processes must be written by you (migration of data from the temporary table to the table of live data...

    Thank you

    Tony Miller
    Webster, TX

    On the road of life... He has "windshield", and there are "bugs".
    (splat!)
    "Squeegees wanted."

Maybe you are looking for

  • Very slow Firefox loading pages

    So many pages are really slow loading as minute, as Courier hot.EE youtube and many more. It started to happen when I updated to 20.0. Looked up a few suggestions and found that everything: config network.http.keep - alive using fake. And so I did an

  • Not able to install the wireless adapter built on Tecra 8200

    Hi all I have a Tecra 8200 After you have installed Windows XP Pro, the wireless adapter will be found as PCMCIA MTD-0002. I cannot install the drivers for the card of m. XP is SP2BIOS is 1.60 Could someone help me what to do, thanks in advance. Brgd

  • Laptop guard reset after sleep with Ultra II 960 GB installed

    I have problems with my new SanDisk Ultra II 960 GB SSD card into the laptop Asus Q550LF running Windows 10: laptop guard reset after being woken up from sleep. Look in the Windows event log, event of sleep is actually absent. This event was recorded

  • Can I attach my camera using Photoshop CS6? If yes how?

    Can I attach my camera using Photoshop CS6? How can I do? I have the cable and other articles as well.

  • By clicking on OAM and scroll to an anchor in Muse.

    Hello I have a big problem with Adobe Edge animate and Muse!I made a button Rollover in border in the Muse. Mouseover and mouseout/mouseouthandler() functions work well.But my problem is: When I click on the animation I want to scroll smoothly to an