Model of how APEX handles data (values)?

Reference {: identifier of the thread = 2486655}

I am trying to get a model of how APEX handles data (values). There are several places (?) data (values) that may exist. Or so it seems. I'm trying to understand how these work - to put all the pieces together.

Question:
(A) where data can be?
(1) in the database
(2) for the session
(3) rendering - and then displayed on the screen, if a value displayed - but not in the session
(4) in perhaps (?) a few (?) memory work pool but different from the rendered page of values, I see on the screen?
(5) other?

Why I think that it's relevant?
Question:
(B) attended the session different from that made, then when the code runs, the values and values that (rendering or session) if he runs against?

And maybe the answer is, "You don't understand what is happening." Yes, "exactly!" Where the question.

Best wishes
Howard

Hello

If you like to have 'default value' in session state, use the calculation.
And as you've noticed, you need to before calculation of the item is made to get the same "default" session state and the screen.

Kind regards
Jari
-----
My Blog: http://dbswh.webhop.net/htmldb/f?p=BLOG:HOME:0
Twitter: http://www.twitter.com/jariolai

Tags: Database

Similar Questions

  • How to handle null values in the RTF models

    Hi - I have two groups in a report for different SQL and two formulas for each group, CF_ELE_CNT and CF_ELE_CNT1. In the model that I used the code to print a section below or not.

    <? If: number (CF_ELE_CNT + CF_ELE_CNT1) > 0? >

    The problem is when no data in the second group it was created not the tag XML for CF_ELE_CNT1, if CF_ELE_CNT has 13, it does not always print this partucular article. If I remove the CF_ELE_CNT1 in the State, it works fine. I was wondering how to handle this.

    Any help would be appreciated!

    Thank you
    RAV

    Hey Rav,.

    Check my profile, you will find.

    purpose of fusion {point} [AT] gmail [dOt] com

  • How to handle data from multiple fields

    Hi all

    My data are:
    FldName           FldTypeCode          Text
    Sandya            02                         nothing
    Raj                 01                         12/Oct/2008
    Lokesh            03                          12546
    Harish             04                          12565.35
    King                01                          12/Nov/2007
    Cobra              02                          texttype
    In the user interface, I give all the data of three fields with refcursor. now in HQ DB happening all the values to be updated at the same time.
    (Q) now my question is how to update all values.
    For example: create procedure procdname (ip_allvalues in typerecord)
    is
    Start
    -statements;
    end;

    the procedure input parameter above can manage all data from three fields as they pass.
    (1) if the parameter handle, should what kind I create?
    (2) I need how can I update multiple records at once?

    Please can any body...
    Thanks in advance...

    sanjuv wrote:
    But when it goes to day it must pass all records at once (lines have almost 55) at a time not possible to update for all records but also not good to create input parameters for the procedure 55. If it has past a table how can I handle this situation.

    Why do you need to update all records at once? And what is blocking you implements a loop on the user interface which, for each changed row, submits an update of the DB? Note that you will get no improvement with a bulk operation when entering comes from a user interface.

    Alessandro Bye

  • WebADI: How to handle date/time fields

    I create my own UPDATEIntegrator _.

    1.
    The view provides a few date fields, and in the worksheet Excel download, these are displayed in form

    2007-10-08 00:00:00.0

    How can I get rid of the '00:00:00.0 '?

    2.
    When download managing the date?

    What format I have to enter my Excel sheet? Can I formatting date fields entering the PROCEEDINGS against what date format?

    What is the date formats are from?

    Thanks for your help
    Volker

    Use the date_to_displaydate function in the view to convert dates in order to correct the format for the user to see. Read the date excel string and convert it back to date using the displaydate_to_date function. In this way the model will work with any format mask that is defined.

  • How to add data to the table using Manager POST for restful Apex application

    Hi all

    I managed to create a service application web Manager restful using GET for the Restful service module. I am able to get the data in row on the presentation of a table row id in the application. But I can't find an appropriate example, how the new data in the table can be posted or deleted. I created a POST handler for a URI scheme and look forward on how to proceed. Any help would be really appreciated.

    Source for the POST Manager:

    Start

    insert into ALL_BOOKS values(:id,:book);

    end;

    Also created 2 parameters id and the book.

    Hi jerry2134,

    jerry2134 wrote:

    I managed to create a service application web Manager restful using GET for the Restful service module. I am able to get the data in row on the presentation of a table row id in the application. But I can't find an appropriate example, how the new data in the table can be posted or deleted. I created a POST handler for a URI scheme and look forward on how to proceed. Any help would be really appreciated.

    Source for the POST Manager:

    Start

    insert into ALL_BOOKS values(:id,:book);

    end;

    Also created 2 parameters id and the book.

    Check out the following tutorials OBE, that explains the creation of GET and POST RESTful Web Services and how to use them in the APEX.

    Also what yo mean "looking forward on how to proceed? Do you want to or created for use/consume in your Oracle APEX application hosted RESTful web services?

    If Yes, in your Application, you must create a RESTful Web Service reference -> shared components. Then, create a form/report based on Web Service reference.

    Kind regards

    Kiran

  • search form Web apps: how to retrieve the value of the data-source type field

    Hello

    My question is:

    How can I retrieve the value of the source field of a web - app data-types when you insert the "form web search apps" on a web page.

    I have a web application that contains fields from the data source of the type. These fields to recover the (data) value of the 'web app' - 'elements of the field' field of another web application.

    When I insert the form

    Web apps

    Web apps-search form

    Name of the Web application

    It displays the fields with the field (ie. string, number) types other than type of field 'data source '.

    (Note: in the mode 'model of list' module of data tags, the fields of the data source are visible).

    What other (alternative) possibilities are there to create a search form?

    Thanks for your help.

    Kind regards

    Carla

    By chance, I came up with this workaround. Of course there are other methods to get your data from a web - app, but if you want to use the 'Web apps search form', it would be a workaround.

    I noticed that the "Web apps entry form" contains all the fields of web applications for your web application (including the fields of the data source).

    It is possible to add the fields to the form of the "Web apps entry form" in the «Web apps search form»

    If you insert the "Web apps entry form" on a blank page, you will see all the fields in your web App including the "data source fields. The names of form fields contain something like.

  • How to handle special characters in the Apex

    Hello

    In my application, I have two regions - region report (interactive report) and other is region HTML with text elements two - Empno and name

    My report has two columns Empno (varchar2) and Ename (varchar2).

    When I click on the link change in the column of the report, the empno should be a read-only value EMPNO and ename is a text with the value of the ENAME field.

    When I run my application, I have encountered the following problems:
    1. If my empno has special characters such as "#", the characters after that is not posting
    2. If my empno has special characters such as "," characters after the decimal point is considered to be a value of next texitem

    Here is my authentication information,

    CTSAN_ORACLE_DB workspace
    Username [email protected]
    Password lakshmi321
    URL: http://apex.oracle.com/pls/apex/f?p=9444:19:4292839314890159:


    Please, I beg you. suggest me how to fix these problems.

    Thank you
    David...

    Published by: David on August 13, 2010 03:05

    Do not pass the data values in the URL. If it is possible to escape values to make URL - and APEX parameter-safe, it is much better to avoid the problem completely.

    Create a primary key of the substitution on the table which is an immutable discreet digital identifier and use it only as a URL parameter. In pages/target areas, use this value of PK to extract the data from the table.

  • How many users can simultaneously Apex handle?

    I'm just evaluating Apex at this stage. Can Apex handle thousands of concurrent users? I know the answer should be dependent on what the app was, what were users, how well the app was built... but there is probably still something basically answer the question (I hope). The application is more or less an accounting software package order, with some users to enter data and other reports view, etc..

    How much difference would use XE vs one of the full oracle dbs do? The specific application that I think would be deployed in a society where Oracle is the standard database, but I am curious about the ability of the XE to welcome many users also.

    Hello

    If you are familiar with apex.oracle.com where Oracle provides free APEX, free hosting of images, the statistics of the year last condition by David Peake, Product Manager for Oracle APEX, can give you a few ideas that can make the APEX.

    =======

    For the week ending on 11/18/2007:
    1 647 648 total page views for the week
    2 076 separate applications accessed over the week
    2 773 distinct users connected throughout the week
    last week approved 243 new workspaces

    Total of workspaces: 11 290

    ========

    See the post at http://dpeake.blogspot.com/2007/11/statistics-on-apexoraclecom.html

    Tarraf

  • 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

  • How to get the value on a model that is defined in the java code in email

    Hello

    I created a custom code and send email as well to custom component. I can send emails using the method:

    InternetFunctions.sendMailTo (EmailID, EmailTemplate, subject, cxt);

    But my problem is that I have to get a value in the model of "EmailTemplate" which are defined from java code. but I don't know how to get the value.

    I will highlight in the java code by using this code: binder.putLocal ("ErrorApproveRejectMsg", massegeBody);

    I'm trying to enhance the model using the code below, but not able to get.

    1 < $exec getValue ("#active", "ErrorApproveRejectMsg") $ >

    2 < $exec getValue ("#active", ErrorApproveRejectMsg) $ >

    3 < getValue ("ErrorApproveRejectMsg") $exec $ >

    4 < $exec getValue (ErrorApproveRejectMsg) $ >

    5 < getValue ("#local", ErrorApproveRejectMsg) $exec $ >

    6 < getValue ("#local", "ErrorApproveRejectMsg") $exec $ >

    7 < $ErrorApproveRejectMsg$ >

    8 < $exec ErrorApproveRejectMsg$ >

    Assuming that cxt will be your Service or execution context object

    You can do something like this

    DB. PutLocal ("ErrorApproveRejectMsg", "Error");

    cxt.setCachedObject ("DataBinder", db);

    PageMerger h = new PageMerger (db, cxt);

    cxt.setCachedObject ("PageMerger", h);

    InternetFunctions.sendMailTo (usersEmail, emailTemplate, emailSubject, cxt);

    where db is current databinder object, and you can put any variable custom in the workbook by using the putLocal method.

    Thank you

    Vikram

  • How to dynamically set the filter IR APEX of the value of a radio button column?

    Hello

    I built a simple APEX 4.2 IR report that includes column, namely "Source_Data" and a separate user to input radio button namly "P33_SOURCE_DATA" with two possible values in 'X' or 'Y '.

    I would like the report filter source_data = 'X' or source_data = "Y" is applied, after each time the user clicks on the radio button P33_SOURCE_DATA. "

    So my question is, how to set the value of the IR filter using the value of P33_SOURCE_DATA to the dynamic action and javascript?

    Thanks in advance.

    Concerning

    Susanna

    In this case, you can pull an onchange dynamic action on the radio, or at the click of a button.

    This dynamic action update your IR region

    And your IR region would have an appropriate where clause, with "Page to go" set on your radio.

  • Oracle how to assign a date value in a parameter declaration

    How can I assign a date value to a parameter declaration in SQL?

    Here are my existing script.

    CURRENT SITUATION:

    select distinct as summary ' iCash EAD error Summary", count (*).
    AAA. BKS_ICASH_EAD_ERRORS
    where creation_date > to_date (' 26/05/12 08:50 "," mm/dd/yy HH24 ')
    Summary group


    I want to assign the date I'm looking for a parameter and use the setting in my query.


    OBJECTIVE:

    DECLARE
    pCreateDate DATE;

    exec: pCreateDate: = 5/26/12-08:50 ';

    select distinct as summary ' iCash EAD error Summary", count (*).
    AAA. BKS_ICASH_EAD_ERRORS
    where creation_date > to_date (: pCreateDate, "mm/dd/yy HH24 '")
    Summary group

    Hello

    In SQL * Plus, you can do this:

    VARIABLE     pcreatdate     VARCHAR2 (20)
    EXEC           :pcreatedate := '5/26/12 8:50';
    
    SELECT    summary          AS "iCash EAD Error Summary"
    ,       COUNT (*)          AS "Total Count"
    FROM        aaa.bks_icash_ead_errors
    WHERE       creation_date  > TO_DATE (:pcreatedate, 'MM/DD/RRRR HH24:MI')
    GROUP BY  summary
    ;
    

    'GROUP BY summary' means that you will get a line of output for each distinct value of the summary. He has no need of SELECT DISTINCT since the GROUP BY is already ensuring that the lines are separate.

    There is no variable binding DATE in SQL * Plus, so you must use a VARCHAR2.
    If you do something similar in PL/SQL, you can use a DATE variable. Make sure that you do not call TO_DATE on something that is already a DATE.

    Published by: Frank Kulash on June 26, 2012 14:01

  • How can I add days to a Date value in a Script time?

    How can I add days to a Date value in a Script (XPATH) time?

    XPATH:

    Add Date:

    xs:dateTime($yourCurrentDateVar) + xs:dayTimeDuration($yourDuration)
    

    Difference in date:

    move "fn:days-from-duration(xs:dayTimeDuration(xs:date($yourCurrentDateVar) - xs:date($yourPrevDateVar)))" to $diff;
    

    You did not mention the version of the Framework, you can take advantage of the Business Service (BS) to perform Date calculations, for example, for FW2.2.x, you can use BS: C1-DateMath with such options as the 'Resistance' to add to the Date, "DIFF" for Date-Diff and FW4.x, you can use BS: F1-DateMath with options such as "F1AD" to add to the Date etc.

    Find out more about XPATH herefunction.

  • How to validate the Date value in the text column

    Hi all

    I entered DATE value in the element of text field (Char Data Type), now how do I validate, the entered date is valid or not.

    Thanks in advance.

    Well, the easiest would be to make the part of DATE data type.

    Another possibility is to try to convert the value to a date in the WHEN-VALIDATE-POINT-trigger, as

    DECLARE
      dt DATE;
    BEGIN
      dt:=TO_DATE(:BLOCK.ITEM);
      -- if code comes here, the date is valid
    EXCEPTION
      WHEN OTHERS THEN
        -- seems to be no valid date
        MESSAGE('Error');
        RAISE FORM_TRIGGER_FAILURE;
    END;
    

    Published by: Andreas Weiden on 19.12.2010 12:23

  • How to handle empty dates

    In my form, the user can select a date of beginning and final search, a text field to search, or both dates and the text field to search for. Here's what I have:

    < b >
    < td align = "center" colspan = "2" >
    < font = "3" face = "Arial, Helvetica, sans-serif" size = "003366" color >
    < b > Date: < /b > < / make >
    < input type = "text" size = 11 name = "fromDate_value" value = "" >
    < a href = "javascript:show_calendar4('document.getPSDocs.fromDate_value',_document.getPSDocs.fromDate_value.value)" >
    < img src = "calendar.gif" width = "25" height = "25" border = "0"
    ALT = 'Click here for the Date stamp' > < / a >

    < font = "3" face = "Arial, Helvetica, sans-serif" size = "003366" color >
    < b > to date: < /b > < / make >
    < input type = "text" size = 11 name = "toDate_value" value = "" >
    < a href = "javascript:show_calendar4('document.getPSDocs.toDate_value',_document.getPSDocs.toDate_value.value)" >
    < img src = "calendar.gif" width = "25" height = "25" border = "0"
    ALT = 'Click here for the Date stamp' > < / a >
    < table >
    < /tr >
    < b >
    < td colspan = "2" >
    < table >
    < /tr >
    < b >
    < td colspan = "2" align = "center" >
    "" < img height = "3" src = "... / images/rule_navyH4W760Solid.gif" width = '759' border = '0' >
    < table >
    < /tr >
    < b >
    < td colspan = "2" >
    < table >
    < /tr >
    < b >
    < td align = "center" colspan = "2" >
    < font = "3" face = "Arial, Helvetica, sans-serif" size = "003366" color >
    < b > choose a request number: < /b > < / make >
    < select name = "search_type" >
    < option value = "Contains" > Contains < / option >
    < option value = "begins by" > begins by < / option >
    < option value = "ends with" > ends with < / option >
    < option value = 'East' > < / option >
    < option value = "is not" > not < / option >
    < option value = "Before" > before < / option >
    < option value = 'After' > after < / option >
    < / select >

    < input type is "text" name = "prNumber" required = "Yes" message is "Request number must be entered to search" >
    < table >
    < /tr >
    < b >

    On the page of my action, I build the query based on the search criteria. Here's what I have so far:

    < cfquery name = "getPRNum" datasource = "docuTrack" >

    SELECT *.
    OF dbo.psFileInventory

    < cfif form.search_type is 'Contains' and form.prNumber is not "" > "".
    Where dbo.psFileInventory.prNumber like '% #form.prNumber#% '.

    < cfelseif form.search_type is "begins by" and form.prNumber is not "" > "".
    Where dbo.psFileInventory.prNumber like '#form.prNumber#% '.

    < cfelseif form.search_type is 'Ends with' and form.prNumber is not "" > "".
    Where dbo.psFileInventory.prNumber like ' % #form.prNumber #

    < cfelseif form.search_type "is" and form.prNumber is not "" > "".
    Where dbo.psFileInventory.prNumber = ' #form.prNumber # '.

    < cfelseif form.search_type is "Is not" and is not form.prNumber "" > "".
    Where dbo.psFileInventory.prNumber <>' #form.prNumber # '.

    < cfelseif form.search_type is 'Before' and form.prNumber is not "" > "".
    Where dbo.psFileInventory.prNumber < = ' #form.prNumber # '.

    < cfelseif form.search_type is 'After' and form.prNumber is not "" > "".
    Where dbo.psFileInventory.prNumber > = ' #form.prNumber # '.
    < / cfif >


    < cfif form.fromDate_value is not ""and this is not form.prNumber"" > ""
    And fileDate between #CreateODBCDate (form.fromDate_value) # and #CreateODBCDate (form.toDate_value) #.
    < cfelseif form.fromDate_value is not ""and form.prNumber"" > ""
    Where fileDate between #CreateODBCDate (form.fromDate_value) # and #CreateODBCDate (form.toDate_value) #.
    < / cfif >

    order of prNumber
    < / cfquery >

    I did see to see what has been select so that I can use similar, not like, etc... Then I check to see if there is a date value so that I can learn to use AND in the select statement.

    If both the field and the dates are selected, so we could select where xxxx and date...
    If the field is selected only, then we could select where xxxx
    If the date is selected only, it would be more select the date where xxxxxx

    The problem is when I check for date is "" in the cfif statement, get error on null values. So I check for date is null or is not null, but this still does not work. It works find when I check for both the field and the date is not "", then I can use AND, but when I try to check for any what other combinataion, I get error NULL.

    How can I fix?

    Trojnfn wrote:
    In addition, using your method, how can I get the date in the query?

    My suggestion is to a block of code that does not involve the date. In any case, here's an idea. It is based on advice from Efecto747 isDate.

Maybe you are looking for