Reset the value of the item page to null

Hello
On one of the pages of my site, my I list of some articles and each value of the element is a link, and if I click on the name of the element, a pop up appears which shows me the history of the issue. This pop-up history item, I have two elements of date picker where I provide the start and end date between which I want to see the story from this point. I add two calculations (before header) to set the values of the selectors of dates for the minimum and maximum dates for the mark of history goes back to this article in the database and on the first time, a complete history of the item turns in pop. Now I can choose my own minimum and maximum dating bicker date element and press a button, now the pop up refreshes and shows me the story between the dates, I have chosen.
Now I close the pop-up windows and click on something else, but here when pop up is charged, I see the old values of date (that I selected for the previous article) in the date picker and ideally my calculations must have worked and dates selectors should see the minimum and maximum dates for this item.

Can someone help me solve the problem so that if ever a new pop-up is open to a new element, the element in date picker must have updated them to the values that should be linked to the new item I clicked on that moment rather than date of previous section values.

Thanks in advance

Salman

Hello Salman,

I think I understand now what you are aming at.
You say you have a calculation for the popup that defines the values where they are used for the first time. What conditions you have on these points? I guess they are submitted every time that you run the update, so the State of the item is updated with these values. If you don't reset it, these values will persist and be taken to the next item, which is what you currently see.
You can place a process in your calling page that resets the page desired elements to be null before your calculation evaluates their condition, so the calculation allows you to retrieve the values of database. Another option would be to send a trigger element (for example a hidden item PX_TRIGGER get value 1 on submit) to the target page, which is part of the condition of your calculation (PX_TRIGGER = 1) and reset the trigger in your calculation (: PX_TRIGGER = 0).
Please correct me if I am wrong.

-Udo

Tags: Database

Similar Questions

  • read the value of the item page after filling value pop-up window

    I can't read or insert and also I cannot perform dynamic action of a page element data after the filling of the data page of the window popup (pass back to the point of the page). But I can read and insert, perform a dynamic action data while filling in the data using ajax and PLSQL code...


    How to read the value after the filling of database page popup window?


    SKUD

    Set value using Javascript is that in your browser page but is not yet available in the session. This is why the report does not return the expected results.

    Before you refresh the report, you need to set the session state from this point.

    You can configure after assigning a new value or before the report is updated to the element
    For interactive reports, is available built in
    You can go to report attributes > attributes advanced-> Page elements to submit and specify P2_X1 for the field (and any other page element that depends on the report)

    For standard reports, you can create a dynamic Action that is triggered 'before updating"report region, select PLSQL as action types, give a code BÉGIN END NULL; model and specify the name of the item in the item page to submit the field so that it affects the value of items in the session.

  • State of Session of the item page is RESET_TO_NULL

    Using pre-packaged application of Group on Page 10 calendar when an event is created and a newly added field is empty I can not update the field

    I'll try to do this as clearly as possible, I use apex 4.2 and it comes to the application of pre-packaged group calendar.

    I created my own custom page elements. text fields and the fields number and when I create a new event and fill my new all custom fields works well, and the data is written to the database.

    Then I try to change the event and any update (change the event and change my custom page created value) I do is retained and the new values are stored in the database.

    When I create a new event and I let my new custom fields empty and then logs the event everything works fine, but when I try to change the event (pg 10) and added value to my field previously customized null (TextBox, text are or field number)

    (he was left null when the event was created) the new value is not saved in the database (after I clicked on apply changes) and the field is not updated. I checked in session state and the State of the session of all the elements of my custom page created are labeled as RESET_TO_NULL

    Question is why doesn't my custom fields retain their value and/or write to the database (apply the changes on the edit event) if (page_item) field was empty when the event was created?

    @Fac586

    Thank you for your help if you do not have an answer for me, I was able to understand the question when you configure the problem can be reproduced on apex.oracle.com

    When you apply the same logic in 5.0 on my oracle.com workspace I realized, while changing the package of eba_ca_api, I made this a slight mistake. I will show below in the hope that I'll save someone else the countless hours it took me to understand this simple question.

    On this single line in the package, I had the following code:

    If c1.testfield! = p_testfield then

    Update EBA_ca_events

    Set testfield = p_testfield

    where event_id = p_event_id;

    end if;

    That was wrong I really need this code:

    If nvl(c1.testfield,'0')! = nvl(p_testfield,'0') then

    Update EBA_ca_events

    Set testfield = p_testfield

    where event_id = p_event_id;

    end if;

    I think that's it, because if you do not meet these new fields when a new record is created these fields are NULL, oracle is not like them, so you must use the nvl function which solves the problem. Thank you once again @Fac586 your answer helped me understand the issue, I appreciate it because for some reason, nobody provided any comment.

  • No Page 1 - how to reset the start page

    I deleted my page 1. I have reset the connection process to go to page 2 and reset the logout URL to go to page 2. Yet if I refer to the application without specifying the start page http://localhost: 8080/apex/f? p = 137, when I login it sends me on the first page and then gives me an error b/c there is no page 1. What I missed. TIA.

    Request Express 4.0.2.00.06
    Linux
    Oracle 11g R1
    PL/SQL gateway

    You need to make changes in two places

    In the process of "login" on page 101

    wwv_flow_custom_auth_std.login (
         P_UNAME =>: P101_USERNAME,
         P_PASSWORD =>: P101_PASSWORD,
         P_SESSION_ID => v ('APP_SESSION')
         P_FLOW_PAGE =>: APP_ID | | ': 7'
         );
    

    and also in the shared components > change the security attributes

    Home Link: f? P = & APP_ID.: 7: & SESSION.
    

    As you can see I am referring to page 7 instead of 1.

    I hope you will be useful

    concerning

    Gerard

  • Reset the Properties Page of the property inspector in Dreamweaver CS6

    Need help to reset the button properties page in the property inspector. He was there when I installed CS6, but somehow, I have changed the settings.

    Looking at the expanded property inspector?  There is a small white triangle in the lower right corner of the Inspector that enables / disables the display of the bottom of half of this Panel.  It is this part that contains the Page Properties button...

  • improve alignment of the item page

    Hello - I have a request on apex.oracle.com, I would like someone to take a look at.

    workspace: dew_mir_tor
    username: [email protected]
    password: Mir97Dew77! Tor

    Demand Align, 24646 number.

    I want the last element in the last line (physical size) to appear directly under the name of type of data...
    just as data type name is directly under the name of Code of data system.

    Can someone tell me how to proceed?

    When you get to Page 1, simply click the Go button to access the page in question.

    Thank you
    Carol

    Hi, Carol.
    I modified your app to do what you described.

    It's a bit of a hack because I used an element displayed in the one page without value or label to start a new line and give you a whole empty cells in a table.

    I tried a "cleaner" approach by putting in the HTML of the element but which separates the page sound element label.

    I hope this helps.

    Walter

  • Dynamic action to get the value of the item page

    Hello

    I have user 4.2 APEX with DB11g, I have a dynamic action with 2 real action:

    • 1 (value) in a State of variable defined on page like this
    BEGIN
      IF lecture_pkg.is_guest_submit_poll ('PUSH') THEN
        :P0_URL := 'http://www.google.com';
      ELSE
        :P0_URL := 'f?p=&APP_ID.:504:&APP_SESSION.::::P504_POLL_TYPE:PUSH';
      END IF;
    END;
    

    • 2nd (Execute the JavaScript Code) for javascript with setting of sending call which set step 1 "P0_URL" , for example to draw attention of:
    alert('&P0_URL.');
    

    the problem is in the 2nd step, displaying alert is displayed with the null value

    Note that i 1st stage i chose the option "wait for result"

    Any suggestion

    Step 1:

    Items affected

    Selection type - point

    Objects - P0_URL

    Step 2:

    Alert ($x('P0_URL').value);

    Please, make these changes and see if you get what you want.

  • LOV cannot find the value of the item page

    Hello.

    Ive created a form master detail and I would have a LOV on one of the columns in the report for retail area.

    I created the wizard master detail, when I check that session state the P12_ID is set to the correct value. I can also use the form with no problems.

    Then I try to add the LOV on colum 'USER', choose the dynamic and then typed lov query mode:

    Select
    "display the user."
    "id value.
    of ' #OWNER # '. " Table005 ".
    where "Table010_ID" =: P12_ID

    Then I try to run the page and get this error message:
    ""Unable to bind": P12_ID".

    "ORA-01003: no instruction not analyzed.

    Why can I not call a page of a LOV element in another region?

    How can I solve this problem?

    Thank you...

    Is P12_ID rendered before or after your region in detail? If after, it probably won't work because the question is not really exist yet.

  • Conditional processing of JavaScript by using the value of the item page

    Dear experts,

    I have the following code to draw a Gantt chart and need to package some steps. They should only appears if the date values are not null or not zero.

    I tried the following, as you can see in my code. However, the first line is always printed even if the value of my article on page P1112_GP_AUFTAKT_START is null or zero (display value).

    Can you please give me a hint how to do conditional processing in my case?

    I appreciate your help!

    Thank you very much

    SEB
    <script>
      var g = new JSGantt.GanttChart('g',document.getElementById('GanttChartDIV'), 'day');
      g.setShowRes(0); // Show/Hide Responsible (0/1)
      g.setShowDur(1); // Show/Hide Duration (0/1)
      g.setShowComp(1); // Show/Hide % Complete(0/1)
      g.setCaptionType('Caption');  // Set to Show Caption
      g.setShowStartDate(1); // Show/Hide Start Date(0/1)
      g.setShowEndDate(1); // Show/Hide End Date(0/1)
      g.setDateInputFormat('dd/mm/yyyy') 
      g.setDateDisplayFormat('dd/mm/yyyy') 
    
      if( g ) {
        if ($x('P1112_GP_AUFTAKT_START').value != null || $x('P1112_GP_AUFTAKT_END').value != null || $x('P1112_GP_AUFTAKT_START').value != 0 || $x('P1112_GP_AUFTAKT_END').value != 0 || $x('P1112_GP_AUFTAKT_START').value != ""  || $x('P1112_GP_AUFTAKT_END').value != "")
       
           {g.AddTaskItem(new JSGantt.TaskItem(1, 'Auftaktveranstaltung'    ,  $x('P1112_GP_AUFTAKT_START').value , $x('P1112_GP_AUFTAKT_END').value    ,  'fff600', '', 0, 'LWF',  100, 0, 0, 1));}
         
         g.AddTaskItem(new JSGantt.TaskItem(2, 'Kartierung LRT Flachland', $x('P1112_KART_LRT_START').value  , $x('P1112_KART_LRT_END').value  ,  '00a3ff', '', 0, 'LWF',  20, 0, 0, 1, "1"));
         g.AddTaskItem(new JSGantt.TaskItem(3, 'Inventur LRT Flachland'  , $x('P1112_INV_LRT_START').value , $x('P1112_INV_LRT_END').value ,  'ff6347', '', 0, 'LWF',  30, 0, 0, 1, "1"));
    
        g.Draw();     
        g.DrawDependencies();
    
    
      }
      else
      {
        alert("not defined");
      }
    
    </script>

    Hello

    Try

    if($v('P1112_GP_AUFTAKT_START').length>0 ||
     $v('P1112_GP_AUFTAKT_END').length>0   ||
     $v('P1112_GP_AUFTAKT_START')*1 != 0 ||
     $v('P1112_GP_AUFTAKT_END')*1 != 0 ||
    ){
    /* your code */
    }
    

    Kind regards
    Jari

  • Condition of the item page

    Just a quick question, how the State represent characters when view you items in page (link to session in the dev. bar)? That is to say: U, R, I etc...

    The meanings of the status values are documented in the following APEX Developer's guide

    The status column shows the status of the session state. The available values are:

    *

    I inserted
    *

    U - update
    *

    R - reset

    http://download.Oracle.com/docs/CD/E10513_01/doc/AppDev.310/e10498/build_app.htm#sthref165

    CITY

  • Cannot reset the home page

    I tried to reset my home page with Internet Options, but the area that is shaded and a message at the bottom of the dialog box shows some settings are managed by your administrator. Problem is my computer is a stand-alone system, not in any network configuration. The character of logon only available Windows is under my name.

    Please help me solve this problem.

    My first guess on this one, it's that an entry in file "hosts" diverts the search.  Look at your file c:\windows\system32\drivers\etc\hosts with Notepad.  The only line that does not begin with a symbol "#" should be:

    127.0.0.1 localhost

    If you have any other lines in this file, then delete them.

    HTH,
    JW

  • How to pass the value of the item Application Javascript function.

    Hello

    I have the JavaScript in the properties attribute of the HTML Form element

    I'm on page 1 and passing the value of the item page P1_DEPT_NO. It is perferctly working very well and I am able to get the exact value of the element on the page
    onchange="javascript:function1($x('P1_DEPT_NO').value);"
    I'm on page 1 and passing the value G_DEPT_NO of the Application element .
    The problem here is, I don't get the point of Application inside the javascript function value.
    I tried to use alert(); and it gives me the undefined value
    onchange="javascript:function1($x('G_DEPT_NO').value);"
    I just want to know, How to pass the value of the Application in Javascript element.

    Thank you
    Deepak

    Deepak,

    I'm not a Javascript expert, but the suggestin I did was because the javascript is a case-sensitive... language and thats why onChange is not the same thing as onchange.
    Not sure if this is causing the problem.

    Application elements not associated with a page and have therefore no properties user interface.
    So, as mentioned in another post, the rendering would not work for the elements of the application.
    If it is for a single item, used only on this page, you might create a hidden page element and use it fo your goal

    If you want to keep watching objects application and AJAX, this page contains examples of using AJAX to solve problems like the one you mentioned.
    http://www.Oracle.com/technology/OBE/hol08/apexweb20/ajax_otn.htm#T1B

    Thank you
    Rajesh.

  • Apex 5, call a modal page, set page elements, in values referenced title page elements are not the same (correct) than the item itself

    Hello

    Apex 5.

    IR (departments) on page 2 I want to open a modal page 3 (classic report) with the detail data (from emp) for a Masters depno via a link on depno column.
    In Page 3, I created two elements P3_DEPNO and P3_DNAME. These elements are defined in modal page 3 of page 2.
    When I do these two visible elements on page 3 I can see, the values are set correct according to the value in column (depno) link on page 2.
    However, I would like to place these element values in the page title of page 3
    Title: PGE for DepNo: & P3_DEPNO., DepName: & P3_DNAME.

    It happens that the values mentioned in the title of the page are not the same (good) as in the items himself.
    Initially, they are NULL. Only when I refresh page 2 the values change but remain the same (last called depno) as long as I'm doing a new refresh of page 2.

    I wonder how I can run to display the values of the correct point in the title of the page corresponding to the values of the correct page element (that I have hidden).

    Y at - it something more to do, or it could be a small bug?

    I've created a little demo app on
    https://Apex.Oracle.com/pls/Apex/f?p=75955:2

    WS: AMLWS001

    Demo/demo (developer is)

    Please see the report 1.

    Thank you in advance!

    André

    Hi andremi,

    andreml wrote:

    Hello

    Apex 5.

    IR (departments) on page 2 I want to open a modal page 3 (classic report) with the detail data (from emp) for a Masters depno via a link on depno column.
    In Page 3, I created two elements P3_DEPNO and P3_DNAME. These elements are defined in modal page 3 of page 2.
    When I do these two visible elements on page 3 I can see, the values are set correct according to the value in column (depno) link on page 2.
    However, I would like to place these element values in the page title of page 3
    Title: PGE for DepNo: & P3_DEPNO, DepName: & P3_DNAME.

    It happens that the values mentioned in the title of the page are not the same (good) as in the items himself.
    Initially, they are NULL. Only when I refresh page 2 the values change but remain the same (last called depno) as long as I'm doing a new refresh of page 2.

    I wonder how I can make it work to display the values of the correct point in the title of the page corresponding to the values point right page (what I have hidden).

    Y at - it something more to do, or it could be a small bug?

    Page title is rendered before the page elements, that is why is not highlighted in your title.

    I don't think directly, we can use the page as a page element value.

    Creates a copy of yours and made the change it new App id - 45390

    There, I created a static area without a model before your report area and put your article into that.

    then displayed title PGE for DepNo: & P3_DEPNO, DepName: & P3_DNAME. for the area of your report.

    Kind regards

    Jitendra

  • How do I dynamically set values of the pages on a null value when an item is changed

    Hi all

    I am new to Oracle Apex.

    I have P_ITEM1 as a selection and P_ITEM2 also a list selection of value P_ITEM1. (to my condition that I do not use cascading article Parent LOV)

    I submit the page when the P_ITEM1 value is selected then LOV on P_ITEM2 gets refreshed based on the P_ITEM1 value.

    I am train to clear the item previously selected to P_ITEM2 when the value of P_ITEM1 is changed.

    I tried to create a dynamic action on the change on P_ITEM1 event and net Action on P_ITEM2.

    and the dynamic action does not work.

    Thank you.

    -Kumar

    Kumjeeth

    Set the attribute area of the Page to send items to P_ITEM2. He would submit the P_ITEM2 on dynamic action of refreshment.

    Nicolette

  • passing the value of the item to another page

    Hello!

    I have a few questions while passing the value of the item to another presentation page and page refreshes.

    I have a page (page n ° 2) with more areas where users can fill data in some articles (text box, popups,...), then I have a region report report and button to enter a new item. When users, click the button is it redirects to another page (page no. 21), where the user enters the values to other elements (popup, text box,...) then I have 3 buttons on this page ('Cancel', "create one", "create an and create another") and now I don't know how to handle the button ' create a. Action for the button "create one" I want is that when button "create one" is clicked in a table (in my DB) should be inserted some values of page 2 and certain values on page 21, then users should be redirected to page 2, where you can see everything that you see before the user has clicked 'enter a new element button' (so all the values in the elements of the page 2 must be visible) + in this report in the region must be updated (so you can see the inserted elements on page 21)

    I hope you understand what I mean and you can help me. And sorry again for my English.

    Kind regards
    Dragan

    You can create a collection and use it in this way:

    IF apex_collection.collection_exists ("YOUR_COLLECTION") = TRUE THEN
    apex_collection.delete_collection (p_collection_name-online 'YOUR_COLLECTION');
    END IF;
                             
    apex_collection.create_collection (p_collection_name-online 'YOUR_COLLECTION');

    -Value added to the collection
    apex_collection.add_member ("p_collection_name-online 'YOUR_COLLECTION', p_c001 => ' value to save");

    -get the value of collection
    Select C001 in apex_collections where collection_name = "YOUR_COLLECTION";

    Go through this link to learn more about the collections http://docs.oracle.com/cd/E17556_01/doc/apirefs.40/e15519/apex_collection.htm

    OR

    as you say if its only id you want to perform, then simply create an item hidden in your page 2 =>: P2_ID_SO, then capture the value in your 2 page deal and use it in page 21.

    -Manu

Maybe you are looking for