Save the values of array element and confirm by the ID of the table

Hello

[Apex 4.2.1] Oracle 11g.

I create an interactive report using some elements of the page. Now, I am able to write these items in a table by using a button with a dynamic action:
BEGIN
  INSERT INTO teststable
    (ID
    ,TESTVALUE
    )
  VALUES
    (teststable_sequence.NEXTVAL
    ,:P35_TEST
   );
Now, I want to confirm this as:
Your current selection has been saved with id  'Select ID from teststable where .....'
Is there a way to indicate to the user the ID that was just created? Don't forget there are several users simultaneously online.

THX in advance
Thorsten

Thorsten wrote:
OK, now I know that I need to use

apex_application.g_print_success_message

but it won't work either:

DECLARE
l_id testschema.testtable.id%TYPE;
BEGIN
INSERT INTO testschema.testtable
(ID
,Testvalue
)
VALUES
(testschema.testtable_sequence.NEXTVAL
,:P35_TEST
)
RETURNING id INTO l_id;

COMMIT;
apex_application.g_print_success_message := l_id
END;

Do you know why?

It only works when the page is rendered

Create an item hidden on your page or use if available. for example P35_ID

Change your dynamic action that has this process

change the return clause:

RETURNING id INTO :P35_ID;

Enter P35_ID in the Page items to be returned

Create a real action such as:

Action: Run the JavaScript Code
Code: alert (' your current selection has been registered with the id ' + $v ('P35_ID'));

Please note that you can change this option to show a more user-friendly message instead of an alert

Tags: Database

Similar Questions

  • read the values of an array element and by sending a digital output to a designated channel according to the value read from the table

    Hello world

    could someone help me before I get out of my hair. Here's my problem.

    I read 3 values of an array of 3 elements i.e. 1,2,3. These values are then compared to a constant value, example if the first element of the array is 1 and it meets the comparison condition can send a digital camera of output for that channel on data acquisition

    I want to be able to send a value from a table to its corresponding comparison and then on its designated channel on the acquisition of data, the whole point of this is due to the fact the table element will not always read the value 1,2,3 for example could be 2,3,1

    Here's one the vi I have so far

    If someone could help it would be much appreciated

    all the best

    brand

    Take time to explore the many examples included with LabVIEW that cover the basics.

    -Indexing table

    -reading a spreadsheet file

  • Extract the supplied index value of array element

    Hello

    A similar question might have been asked before, but I couldn't find one that exactly matches what I want. Also, I'm using labview 8.5 so could not read most of the views that you guys tied with other solutions.

    The files that I use are attached. Test_FIFO_TimeTagging-Nov16 - try1.vi is the main vi.

    The absolute time in milliseconds in the table of resorption. As can be seen, it is derived from the berries Micro2 and Macro2. I want the user can specify the duration, that is, whether the current item in the table of absorption has a value greater than the value of the user entered, so I want the index of this item in the resorption so that I can use this index to create Micro2 and Macro2 subtables that contain only items from index 0 to index I get resorption.

    I do not know how to retrieve the index of an array given the value of the element, so can't go forward.

    Thank you

    Kaiser

    Hey Kaiser,

    the function that you need is 'threshold 1 d table '. (I guess that your time values are sorted, otherwise using subdashboards makes no sense...)

  • Possible bug: save the table with double and extended precision to the worksheet

    If one concatenates an array of double-precision and an array of precision extended with the 'build' vi table, then recorded using 'Write in a spreadsheet file' vi any digits to the right of the decimal are reset to zero in the saved file. Regardless of the entry of signifier of format (for example %.10f) to the vi 'Write in a spreadsheet file'.

    I'm on Vista Ultimate 32 bit and labview 9.0

    This is a possible bug that is easily circumvented by the conversion of a type before you incorporate arrar in a worksheet. Nevertheless, it's a bug and it cost me some time.

    Hi JL,.

    No, this is not a bug - it's a feature

    Well, if you'd look closer you would recognize the 'save to spreadsheet' as polymorphic VI. As this polymorphic VI does not support the EXTENSION numbers internally (it only supports DBL, I64, and String) LabVIEW selects the instance with more precision: I64 (I64 a 64 bits of precision, DBL that 53...). Your options are:

    -the value of the instance to use as the DBL (by right click and "Select type... »)

    -make a copy of this VI, save it under a different name and make support number of POST (not rework the polymorphic VI like you would break compatibility with other facilities of LV or future revisions)

  • How to save the table column and row headings

    I have a table where I activated the column and row headings.  Once the table is loaded with data, I would like to save the contents of the table, including the column and row headings in a text file.  The crux of "value" property returns only the content of the table, not the row and column headers.  I could use "header line chains []" and '[] column header chains' property nodes as well, but I'm in the island there is an easier way.  Looks like adding the headers of lines would be difficult.  Any ideas?

    Thanks in advance.

    Here is a way. The construction with the empty constant is to provide to the left corner of the table where there is no data.

  • Save the table on column

    Hello

    I have attached a simplified VI which records data after taking measurements of my measuring instrument.  Each iteration in the while loop is a measure.  Currently the data in two columns.  Can you help me save the data after each while the iteration of loop in different columns.

    For the attached VI, I want to get the data spread across 8 columns:

    x0data y0data x1data y1data x2data y2data x3data y3data

    Thank you

    hiNi

    Just put a 2D array of converts between the while loop and array to a worksheet string

  • Save the table/chart as an image file

    Hi all

    I wonder if there is any way I can save the graph Microsoft graph/with the data as an image file (jpg, etc.)? I need the image on the same file saved under the Microsoft Graph graph/so that the program is running. She should have black and non-white colors.

    I knew how to do it in matlab but don't know how to do it in labview. Can someone help me with an example Vi that can do it in labview 2009?

    Thank you!

    It's pretty easy. Just create the image for the chart and use one of the screws the graphic format:

    Note: This is also explained in the Help of LabVIEW.

  • compare the two array element and ignore the undesirable element of the array

    Hello

    Here I attached the vi. In this vi I compare table with ideal picture of A to z. normally in an entry, that we get a data with noise, as is show in this vi normally I just need to compare the value has Cwith c D with D with A & B with B, and so on. now the problem is I have to compare ideal picture with input .and string array if the input string is not in series from A to Z the whole comparion is .i false hope you understand my problem and give some suggestion thank you

    Please take a look at this modified version of your code and I would like to know if that's what you are trying to achieve.

    Please, ask questions and make sure you are comfortable and understand what I coded.

  • dynamically create files (.txt/.doc/.css etc.) and save the table as BLOB without file system reference

    Hi guys,.

    IAM trying to find a plsql/pkg process that creates a file for example myiphones.txt (with content) and save this file as BLOB directly in a table in the DB (not on file system moreove there is no access to the file system) - Ive studied this but nothing about other than as_pdf3 that iam still working on.

    Here are the summarized steps:

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

    1. run plsql to create a single file like myiphone.txt,

    2. in this (myiphone.txt) inserts a record content from another table EMP as,

    MYiPhone.txt

    ============

    Greg Taylor,

    Mike Owen

    3 then finally record this (myiphone.txt) in another table MYFILES as BLOB - Note Please that I don't want to not refer to file system manager and I have not access to it for the time being,

    I hope it is clear

    no idea about the way to handle this is appreciated?

    Thank you.

    You can try this:

    Data are from a clob table.

    DECLARE
      L_BLOB BLOB;
      L_CLOB CLOB;
      L_DEST_OFFSET INTEGER := 1;
      L_SRC_OFFSET INTEGER := 1;
      L_LANG_CONTEXT INTEGER := DBMS_LOB.DEFAULT_LANG_CTX;
      L_WARNING INTEGER;
      L_LENGTH INTEGER;
    BEGIN
    
      -- create new temporary BLOB
      DBMS_LOB.CREATETEMPORARY(L_BLOB, FALSE);
    
      --Select CLOB
      SELECT CLOB_VAL INTO L_CLOB FROM MY_TABLE;
    
      -- tranform the input CLOB into a BLOB of the desired charset
      DBMS_LOB.CONVERTTOBLOB( DEST_LOB => L_BLOB,
      SRC_CLOB => L_CLOB,
      AMOUNT => DBMS_LOB.LOBMAXSIZE,
      DEST_OFFSET => L_DEST_OFFSET,
      SRC_OFFSET => L_SRC_OFFSET,
      BLOB_CSID => NLS_CHARSET_ID('WE8MSWIN1252'),
      LANG_CONTEXT => L_LANG_CONTEXT,
      WARNING => L_WARNING
      );
    
      -- determine length for header
      L_LENGTH := DBMS_LOB.GETLENGTH(L_BLOB);  
    
      -- Your custom INSERT INTO statement
      INSERT
        INTO MY_TABLE
         (NAME,
          BLOB_FILE,
          BLOB_LENGTH
         )
         VALUES
         ('lala.txt',
          L_BLOB,
          L_LENGTH
         );
    
      EXCEPTION
      WHEN OTHERS THEN
      DBMS_LOB.FREETEMPORARY(L_BLOB);
      RAISE;
    END;
    

    Concerning

    Tobias

  • Save the table in the file of the image - error 6

    I have problems saving a table control in a file photo.  Get error 6 - generic file i/o error.  Any thoughts?  Criterion VI attached.

    Thank you.

    Yes. For example, the name of your VI is 123. vi and here you try to create a folder name 123. vi, then the .png file, which cannot be done. Try to create a sample file anywhere in your PC and bearing the same name with the extension to try to create a folder and see what happens. So, when you use the current path VI it give the path as well as the taking of VI and on top of that you want to create a folder that, as said will not happen. Please, try the method I suggested earlier.

  • The search in a table a value then delete this array element

    Hello.

    I have an array of VO (id, link, title, url...) I want to get an ID of this array element and remove the element with the corresponding id. Any thoughts on how I would go to this topic?

    Thanks in advance!

    Ryan

    I don't know much on your and this probably isn't the most elegant solution, but you can do something like:

    for (var i: Number = 0; i<>

    {

    If (myVOArray [i] ["id"] is "someId")

    {

    myVOArray.splice (i, 1);

    }

    }

  • SQL query to display the sum of the values of each June and December

    Hello having problems of construction of a query to the list SQL query to display the sum of the values of each June and December each year.

    My Table;

    TABLE name: MONTH_TERM

    Fields with values:

    TERM_KEYMONTH_ACTUALMONTH_DATE
    8250001/11/2015 0:00
    8245001/12/2015 0:00
    8240501/01/2016 0:00
    8240001/02/2016 0:00
    8245001/03/2016 0:00
    8242501/04/2016 0:00
    8243501/05/2016 0:00
    8241006/01/2016 0:00
    8240901/07/2016 0:00
    8241501/08/2016 0:00
    8242009/01/2016 0:00
    8242210/01/2016 0:00
    8243611/01/2016 0:00
    8255601/12/2016 0:00
    8256801/01/2017 0:00
    8262402/01/2017 0:00

    What I would like to see in a query result:

    TERM_KEYMONTH_ACTUALMONTH_DATETotal of 6 months
    8250001/11/2015 0:00
    8245001/12/2015 0:00950
    8240501/01/2016 0:00
    8240001/02/2016 0:00
    8245001/03/2016 0:00
    8242501/04/2016 0:00
    8243501/05/2016 0:00
    8241006/01/2016 0:002525
    8240901/07/2016 0:00
    8241501/08/2016 0:00
    8242009/01/2016 0:00
    8242210/01/2016 0:00
    8243611/01/2016 0:00
    8255601/12/2016 0:002658
    8256801/01/2017 0:00
    8262402/01/2017 0:00

    ---

    Here's my query:

    Select

    "TERM_KEY,"

    "MONTH_ACTUAL,"

    to_char(MONTH_DATE,'MM/YYYY') MONTH_DATE,

    DEAL to_char (MONTH_DATE, 'MM')

    WHEN '06' THEN (SELECT SUM (MONTH_ACTUAL)

    OF MONTH_TERM

    WHERE the to_char (MONTH_DATE, 'MM') between 1 and 6

    AND term_key = 82)

    WHEN '12' THEN (SELECT SUM (MONTH_ACTUAL)

    OF MONTH_TERM

    WHERE the to_char (MONTH_DATE, 'MM') between 7 and 12

    AND term_key = 82)

    ELSE null

    END as SIX_MO_CUMM,

    of MONTH_TERM

    where term_key = 82

    It's my results:

    TERM_KEYMONTH_ACTUALMONTH_DATETotal of 6 months
    8250001/11/15 0:00
    8245001/12/15 0:003608
    8240501/01/16 0:00
    8240001/02/16 0:00
    8245001/03/16 0:00
    8242501/04/16 0:00
    8243501/05/16 0:00
    8241001/06/16 0:003717
    8240901/07/16 0:00
    8241501/08/16 0:00
    8242001/09/16 0:00
    8242210/01/16 0:00
    8243601/11/16 0:00
    8255601/12/16 0:003608
    8256801/01/17 0:00
    8262401/02/17 0:00

    Any ideas on how to fix would be great

    Select term_key,

    month_actual,

    month_date,

    case mod (to_char (month_date, 'mm'), 6)

    When 0 then sum (month_actual)

    During)

    term_key partition

    order of month_date

    between the previous month '5' interval and the current line

    )

    end '6 MONTHS in TOTAL'

    from tbl

    order of term_key,

    month_date

    /

    TERM_KEY MONTH_ACTUAL MONTH_DAT 6 MONTHS TOTAL
    ---------- ------------ --------- --------------
    82 500 NOVEMBER 1ST, 15TH
    82 450 1 DECEMBER 15 950
    82 405 1 JANUARY 16
    82 400 1 FEBRUARY 16
    82 450 1ST MARCH 16
    82 425 1ST APRIL 16
    82 435 1 MAY 16
    82 410 2525 1 JUNE 16
    82 409 1 JULY 16
    82 415 1ST AUGUST 16
    82 420 16 - SEP - 01

    TERM_KEY MONTH_ACTUAL MONTH_DAT 6 MONTHS TOTAL
    ---------- ------------ --------- --------------
    82 422 1 OCTOBER 16
    82-436 NOVEMBER 1, 16
    82 556 2658 1 DECEMBER 16
    82 568 1 JANUARY 17
    82 624 1 FEBRUARY 17

    16 selected lines.

    SQL >

    SY.

  • Tween an array element

    I created a script that will movieclips to fill the stadium. In this case, a ranking.

    each created movieclip is positioned and placed in a table.

    The problem becomes an array element and the power of tween it

    * I would like to experiment with tween different combinations to get them out of the scene. Here's what I got

    I am able to get the clips on the stage... [Can't get them off =]

    Import mx.transitions.Tween;

    Import mx.transitions.easing. *;

    Block = new Array();

    var Xposition:Number = 0;

    var Yposition:Number = 0;

    var stack:Number=Math.ceil(Stage.height/30);

    var Numofstacks:Number=Math.ceil(Stage.width/30);

    var fadeit:Tween;

    var n: Number = 0;

    for (r = 0; r < (Numofstacks); r ++) / / 25

    {

    PositionY = 0;

    for (c = 0; c < (stack); c ++) / / 3

    {

    var particle = this.attachMovie ("block", "gabarit@sur" + r + c, this.getNextHighestDepth ());

    Particle._y = PositionY

    Particle._x = which

    Block [n] = particle._name;

    trace (Particle._name)

    PositionY = PositionY + 30;

    n ++

    }

    Which = which + 30

    }

    runit var = setInterval (effects, 3000)

    effects function (): Void

    {

    trace ("Go")

    for (a = 0; c <(Block.length-1); a ++) / / 3

    //{

    Yvan = new Tween (block [0], "_alpha", Strong.easeOut, 100, 0, 1.5, true);

    //}

    clearInterval (runit);

    }

    Do not store the _name in table property, store the particle itself.

    Block [n] = particles;

  • By subtracting the tables table 1 d 2d

    Hello world

    So I'm having a different problem now with subtraction tables table 1 d 2d.  I would like to subtract each row and output the result in the form of a table 1 d.  Anyone have any ideas?  I tried to look away, but the info online doesn't seem to work for me.  Such as:

    http://forums.NI.com/T5/LabVIEW/subtract-2D-array-elements-and-insert-the-result-into-a-new-row/TD-p...

    I am only interesting see the result in the form of a 1 d array and do not care to keep the original 2d table.  For example:

    Table 2D:

    1 2

    5 2

    6 4

    Result:

    -1

    3

    2

    Thank you!

    Jon

    Are you the 2D table indexing itself or are you indexing inside a loop with autoindexing?

  • Could not save the different string value to each element of the array

    I have a configuration of VI to read several channels Veristand project.  The entrance is a table 1 d of channels, (an element for each channel, I want to read).  The channels have different names, each of the elements in the chain must be different.  I am able to edit each item and run the VI, and it works fine.  However, if I save, close and reopen the VI, all elements show the same value (what happens to the value of the last element for which I defined a default value).  Is this behavior planned, or have I missed a configuration setting which would allow different string values?  Please notify.  Thank you.

    GSinMN

    Make sure that you select the table and not only one item when you right click-> set by default on the front panel.

Maybe you are looking for

  • I can't remove Incredibar from about: config. When I've reset, it is always

    I have deleted all instances of incredibar/incredimail from my laptop. When I go into the configuration of Firefox (topic: config), I have reset ALL incredibar extensions. However, when I restart Firefox, ALL incredibar extensions are back. It is rea

  • What do I need play AVI files in El Capitan

    I have 3 versions of Flip4Mac and Quicktime and I can't convert or even play AVI files in El Capitan?

  • Firefox crashes when I try to download a file

    Hello! I run Firefox Nightly 8.0a1 (2011-07-08) on Arch Linux 64-bit with Gnome 3, and I have a problem with crashes when I try to download files. This does not happen in the stable version of Firefox (5) I also installed on my computer. It is possib

  • Update on Satellite S70-B-10N wireless card

    Hello Just got a laptop above this morning and I would like to upgrade the card wireless inside an AC7260 module. There is a significant lack of documentation on the inside of this laptop with no info on youtube either. Research on Amazon there are s

  • 500 px

    Part of the promotion of Sony TVs UltraHD 4 k is an affiliation with the website 500px.com photography. Sony capitals carry the logo of 500px. 500px is currently the location for the art of photography and images. I have an account there. 2014 of Tha