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
Tags: Database
Similar Questions
-
How to convert a message Inline in the Page of the Apex of javascript alert message
Hi all. IM new at the Apex.
Current - approach
I have a region report dynamics developed using the API like APEX_ITEM etc. I use scripts in java to validate these dynamic elements and Alerts popup as shown below.
function ValidateNotObservedCB (p_row_num)
{
var v_row_num = p_row_num;
var v_not_observed_cb_status = document.getElementById('f_notobserved_'+v_row_num).checked;
var v_not_in_district_cb_status = document.getElementById('f_notindistrict_'+v_row_num).checked;
var v_program_code = document.getElementById("f_program_code_"+v_row_num).value;
If ((v_program_code.length > 0) & & (document.getElementById('f_notobserved_'+v_row_num).checked == true))
{
"BOLD" alert ("you have already entered a program code.") "BOLD"
document.getElementById('f_notobserved_'+v_row_num).checked = false;
document.getElementById('f_notobserved_'+v_row_num).value = 'n';
} else if ((v_program_code.length==0) & & (document.getElementById('f_notobserved_'+v_row_num).checked == true)) {}
document.getElementById('f_notobserved_'+v_row_num).value = 'Y ';
document.getElementById('f_notobserved_'+v_row_num).checked = true;
} else
{
document.getElementById('f_notobserved_'+v_row_num).checked = false;
document.getElementById('f_notindistrict_'+v_row_num).checked = false;
document.getElementById('f_notindistrict_'+v_row_num).value = 'n';
document.getElementById('f_notobserved_'+v_row_num).value = 'n';
}
}
Question/problem - how can I convert these to Inline messages alert messages to indicate on the page, similar to what appears when we take stock of the Validations at the APEX.
Waiting for answers because this is urgent.
Thanks in advance,
MadhuYou created an empty paragraph with an Id that you might find in your javascript code with
document.getElementById ('message')
After this in your javascript code say you in this paragraph "now your text is:" with the function
innerHTML = 'your message ';
And the generated HTML code is
+
+.And everything works fine!
Do not forget to say that my answer was 'Correct '! Thank you...
Bye and good luck on APEX.
-
How can I set a certain web page automatically start and open when I connect Windows?
How can I set a certain web page automatically start and open when I connect Windows? My company as a "Home Page" that I would like it to appear when I connect Windows.
Hello.
Yes, you can do it. The only way to do this is to create a startup items.
STEP 1- Make sure that the home page is set correctly
Second STEP- Creating a startup items
How to create a startup items:
- Right click on the shortcut of browser (Internet Explorer, Mozilla Firefox, Google Chrome), then click on copy.
- Open the start menu, click all programs.
- Right click on the startup folder, click Explore.
- Right-click on an empty area of the Windows Explorer, click Paste shortcut.
STEP 3- Restart the computer to apply the changes and see the effect
Response to see if it helps.
-
in the menu toolbar customization, ALL the small icons in the last set (home, reload the page, page download stop, etc.) are dishes on MISSING, and therefore I can not add the Firefox.What can I do?
These buttons are not in the drop-down to 'Add' Palette, they are on the Navigation toolbar and must be "moved".
The buttons Stop and reload should appear between the address bar and the search bar when customize is open, and the home button should appear to the right of the search bar. -
How to copy and paste text from the page of the book one photo to another.
Hello, I downloaded this software 2 days ago, and I had so much fun with it. pls I need help on how to copy and paste text from the page of the book one photo to another. Second, how to copy my photo book completed pages project to another laptop computer for printing. Thank you
Wow! I solved the first problem, I clicked on 'ctrl c' to copy and "ctrl v" to paste. yipppppeee! now am loving this software d most just need help with the second question now
-
Once printed, how you fold a pdf so that the pages are in the order of reading?
Once printed, how you fold a pdf so that the pages are in the order of reading?
I think that I am not following you. In my opinion, a PDF file can not be folded; and whether the pages are in the reading order may not be modified by the free player.
-
Model number: how to fix the pages so that they update when updates to the model?
I've created dozens of pages using templates and I forgot to check the "update of the page when the template is changed" I created the pages, defeating my purpose for the use of the models. How can I edit the pages so that they update when I change their model?
I tried to modify > templates > update Pages (and update current Page) but nothing change.
I use Dreamweaver CS4, Mac system. Thank you!
Sorry - there is no quick fix because by not checking this option, the 'child' pages are created with NO markup model at all.
-
Filling of the elements in another block in when-validate-item
When the user changes the value in the given field, I need to insert records into different blocks. The second block is block of multi-record. The two blocks are no db block, just for display. When the value is changed by the user to the first block, calculating product collecton who wish to view the content of each element in the second record to display block. The problem is that I can not enter the values for records in the second block other than the first record. To access the second records block display, need to navigate to display block with go_block and navigate to new records with next_record. Both go_block and next_record cannot be called from the Organization in the form of small modules.
I want to avoid having to press the button that makes a new calculation and redisplay (so can use go_block and next_record), wish just to refresh when the user updates the value, IE the OrganizationYou can use WHEN-VALIDATE-ITEM trigger to loop through the record of the block in detail using the TIMER. What you have to do is in the trigger WHEN-VALIDATE-ITEM create timer like below...
TRIGGER = WHEN-VALIDATE-ITEM DECLARE vTimer TIMER; BEGIN vTimer:=CREATE_TIMER('MY_TIMER',10,NO_REPEAT); END;
Now, create a trigger more on called WHEN-TIMER-EXPIRED at the form level and use the code below...
TRIGGER = WHEN-TIMER-EXPIRED BEGIN GO_BLOCK('DETAIL_BLOCK'); FIRST_RECORD; LOOP -- Perform your functionality here... IF :SYSTEM.LAST_RECORD = 'TRUE' THEN EXIT; END IF; NEXT_RECORD; END LOOP; END;
-Clément
-
Action dynamic set value for the Shuffle.
I have a Select list that bears the name of the servers. Depending on the value selected in the select list, the random component must be filled. I created a dynamic action to select the list complete the Shuffle. It does not work. Any help is appreciated.
I gave shuffle as the name of the item assigned to the dynamic action, I chose the option to set value, set SQL statement type and the following query:
SELECT DISTINCT MOUNT_POINT IN SERVER_DISK_SPACE_UTILIZATION WHERE SERVER_NAME =: P2_SERVER_NAME
Thank you.Hi Nicolas,.
If you use APEX 4.0 or more, then the feature you're looking for is given for the selection list and shuttle (non-random) I think!
My assumptions are:
Select the list item: Servers (P2_SERVER_NAME)
Shuttle point: Mount Points
Just what you need to do is, in shuttle item properties there is a section from the list of values :
Set
Cascading LOV Parent items to P2_SERVER_NAMEList of values definition of
SELECT DISTINCT MOUNT_POINT FROM SERVER_DISK_SPACE_UTILIZATION WHERE SERVER_NAME=:P2_SERVER_NAME
I hope that helps!
Kind regards
Kiran -
How to trigger a conditional display based on a dynamic Action without submitting the Page
Hello
Using Oracle APEX v4.2 on 11g, I have the following scenario and wanted to take other people on how to accomplish what I'm trying to do, i.e.:
In region 1, I have a select item list page called P1_SELECTION, which contains selections from drop down to the user to choose from the following three: A1, B2 and C3
In region 2, I have two checkbox elements:
P1_CBOX1 I gave a conditional display of ' point value / Expression 1 column! = 2 expression, where Expression 1 = P1_SELECTION and Expression 2 = B2, so P1_SELECTION! = B2
P1_CBOX2 I gave a conditional display of ' value of the point / column Expression 1 = Expression 2 where Expression 1 = P1_SELECTION and Expression 2 = B2, then P1_SELECTION = B2 .
Use of dynamic Action on the evolution of the P1_SELECTION in region 1, how can I trigger the correct display of the checkbox in region 2, with the default view of the region 2 checkbox being P1_CBOX1, without submitting the entire page, just refreshing each of the elements checkbox to trigger the conditional display correct?
For example, on the changes of P1_SELECTION = B2 then entire submission without page, only P1_CBOX2 is presented to the user in other P1_CBOX1 is displayed.
Is this possible?
Thank you.
Tony.
Hi Tony,.
condition your dynamic action on P1_SELECTION with the following condition of javascript: this.triggeringElement.value = "B2".
Add real actions that will show P1_CBOX2 and hide P1_CBOX1
Add false actions and going hide P1_CBOX2 show P1_CBOX1
Set the dynamic actions to fire on Page load
Kind regards
Erik-jan
-
To dynamically set values as session variables
Hello guys,.
I have a little problem with dynamically fixed values for text fields in my application. It is possible to set and passes the value even though I assign values, using the source (static, sql or other) but if I change the value in this field using a dynamic action it will not pass these values where I need. It shows a blank State, even if they are visible. Is there any solution to get these values passed as session variables.
Kind regards.
-shashikahk-
Looks like you need to investigate the use of the property "items to submit Page.
-
How to get and set values a HSlider
Hello
I haven't used flex for a while and I'm a little slow today. My question is simple: how to get and set my HSlider values in a class. My HSlider lives in an mxml file and class lives in a separate actionscript file. First of all, I want to get the value of the hslider. I use property change in the hslider to call a method in my class called Update(. ) In my class, I have the function called Update() and Interior using the id of the cursor to get the value of it. The compiler is complainiing of 1120: access of undefined property hslider. I gave an example of pseudocode below:
MXML
< mx:HSlider id = minimum "hslider" = "0" maximum = "100" value = "100" dataTipPlacement = 'top' tickColor = '0 x 323232 '.
snapInterval = "1" tickInterval = '10' allowTrackClick = "true".
liveDragging = "true" change = "aClass.Update ()" / > "as file
public void Update (): void {}
myVar = hslider.value / 100.0;
}Think how and then set the value of the hslider?
Maybe the update to this other file function must accept a parameter of the event and then you can probably get this value from the event
or maybe give the function a parameter of the cursor
change = "AClass.Update (hslider.value)" "
public void Update(value:int):void {}
myVar = value / 100.0;
} -
Using the page as a condition for interactive report item value
Hello. I add a button named edit in one of the interactive report column. This button should be displayed under certain conditions. Conditions are 1) If the user is Mencis and 2) value of the page called P2_DUMMY is 2. The value of P2_DUMMY is to 2 when a button is clicked. I defined a dynamic action for this. The problem is that I don't know what the condition of being added to the interactive report query.
I tried
CASE WHEN: APP_USER IN ('Mencis"). WHEN BOX: P10_DUMMY = 2 THEN ' < button type = "button" class = "button-default"; ">
< span > edit </span > < / button > ' END I just get errors.
If I just put the condition as
CASE WHEN: APP_USER IN ('Mencis") THEN ' < button type ="button"class ="button-default "; "> < span > edit </span > < / button > ' END
button is displayed in the report. If I add the second condition, all I get is error. I don't know how Add an element value of the page as one of the interactive report conditions. Please help me on this.
Mencis Joe wrote:
Hello. I add a button named edit in one of the interactive report column. This button should be displayed under certain conditions. The conditions are 1) if the user is Mencis and 2) value of the page called P2_DUMMY is 2. The value of P2_DUMMY is set to 2, when a button is clicked. I defined a dynamic action for this. The problem is that I don't know what the condition to be added to the interactive report query.
I tried
CASE WHEN: APP_USER IN ('Mencis"). WHEN BOX: P10_DUMMY = 2 THEN '' END I just get errors.
If I just put the condition as
CASE WHEN: APP_USER end of '' ('Mencis") THEN
the button is displayed in the report. If I add the second condition, all I get is error. I don't know how to add a value to the page element as one of the interactive report conditions. Please help me on this.
Combine the predicates in the CASE expression by using an AND condition:
case when :app_user = 'Mencis' and :p10_dummy = 2 then '' end
Hardcode a condition like the
:app_user = 'Mencis'
is likely to prove problematic for all sorts of reasons, not least including the value of APP_USER is uppercase by default, unless otherwise during authentication.Note that the semicolon and extra double quotes in
are not valid.
-
Generate dynamic elements without refreshing the page
Hello
I have a challenge to generate elements on a page dynamically without refreshing the page.
I tried to do with AJAX, but do not have the elements on the page.
I see that my process is called as I can warn the outcome of the appeal.
Here is my code:
I have a button calling the JavaScript function with AJAX call for the process:
function f_OnDemand() {}
get var = new htmldb_Get (null, $v ('pFlowId'), 'APPLICATION_PROCESS is NEW_FLOW', $v ('pFlowStepId'));
invoke
gReturn = get.get ();
ajax reminder alert
Alert (gReturn);
}
And here is the process that involves creating a few dynamic elements on a page:
DECLARE
Meter number;
number of items;
number of p_counter;
BEGIN
items: = TO_NUMBER(:P7_NUMBER);
FOR counter IN LOOP 1. items
p_counter: = counter + 1;
HTP. P ("Item" |) APEX_ITEM. DISPLAY_AND_SAVE (p_idx = > counter, p_value = >, p_item_id = > counter). ': ');
HTP. P ('Checkbox': counter |) ' ' || APEX_ITEM. CheckBox(p_idx => Counter, p_value => 'Test'));
HTP. P(' ' || APEX_ITEM. SELECT_LIST (p_idx = > counter, p_value = > 'Y', p_list_values = > ' Yes;) Y, no.; N') || br / > ');
HTP. P ("< br / > '");
END LOOP;
END;
The question is - how can I make these elements of rendering on a page?
I'm on Apex 4.2
Thank you.
The return would be inserted somewhere in the DOM of your page. So, regardless of the call ajax returns, must be added to a zone. Use jQuery for this. See this example:
https://Apex.Oracle.com/pls/Apex/f?p=93000:803
Denes Kubicek
-
How to display ProjectID, PName (account) on the Page through the entity
Hello
More than 200 companies in my implementation. The module of Capex is detailed to the level of the projects, so we have a dimension of project. The number of projects is huge, so I decided to design in order to reuse the project members in entities such as below
1. form project:
Page: Entity (E01, E02...)
Project ID Name of the project ..... P1 E01. P1. ProjectXYZ P2 P3 .... P1, P2... Project member and E01-> P01 is different with E02-> P01 and so on...
ProjectID, ProjectName is members of the account.
We have the second form, the details of the assets for each planning project so that the Dimension of the project is now put in the Page of the form
2. other assets
Page: Entity (E01, E02,...); Project (P01, P02,...)
Header 1 Header 2 Header 3 Header 4 AssetID AssetName ,,,,, Asset1 Asset2 ..... The problem is that the size of the project on the Page can only display members of the project name/alias P01, P02... which does not make sense with the users. What the user wants to use to display the ProjectName, projectID which are defined in the first form to their entity.
I think using javascript cutomization. But as I tried, it seems that javascript cutomization cannot work on my current version (11.1.2.3).
I think it's a common problem, so I'm posting here hoping that someone has found a work around for this. Please ask if there is any point is unclear.
Thank you very much
Van Huy.
Hi Huy
This isn't really a problem, it's just how Capex module is designed. Its designed in such a way so that the dimension of the projects lists your projects and it is where you would project names. You have decided to 'Customize' the module based on unique customer requirements that do not match the features "out of the box" of capital expenditures. That is why its our job to come up with models that meet the requirements.
I'm not messing around with java custom.
My thoughts are how about this.
1. you create a data entry form that lists the projects on the lines and details about the columns. (you already mentioned above)
2. on the planning of assets form, make a composite form, with horizontal split. Top of page section, have a form that has the entity and the project page and then only the project details accounts on the columns. On the line simply choose a dimension, say scenario, year or whatever is set for the data you expect. Unfortunately what ever you choose will display on the shape, but you could be creative and give it another alias, etc. Then, on the bottom have the form of assets, as you described above.
Now enter the first form, the process would be for a user to the entity of click with the right button on a project that is on the line and select an item from the menu called "Active Plan" - this menu will create and this menu must be a form menu that links to the composite shape above. Select the pass project dimension drop-down list, then this menu requires the addition of the first form. When the user selects the menu item, what will happen is that it will open the composite shape that has the assets listed in the form of the lower part of the composite and the details of the project will be displayed in the form above the composite. You can decrease the depth of the full form as most of the screen is the asset planning form and only the line after line of project details is displayed in the upper part have (if the form is not only deeply).
I know that's not ideal, but I think it's an approach that is nice to capture the requirement and also means that you don't create a Java Custom charges will not be supported by Oracle.
Thank you
Anthony
Maybe you are looking for
-
When I opened a pop-up Pogo game I don't see some of the areas of the game. The window itself is big enough, but I don't get the whole game.
-
Satellite A300D - creating recovery disk problem
Hello. I have Toshiba Satellite A300D-11 t (extended A300D-11) and I would like to create recovery disk. Problem is that I can't run the Toshiba Recovery disk creation tool. There is no shortcut in the start menu.I tried to run Program Files. Program
-
Since the Safari update to the most recent, problems with Google Drive
Since the update of Safari to latest, problems with Google Drive
-
tried to turn on my 4 k xbr65x900a and all I get is 4 flashing red flags and rehearsals flashing all the seconds. At this point I can just unplug the tv to get rid of the flashing. any help will be great. 4 k tv bought in November of 2013
-
What is ICS day ready for the Droid Bionic
Its the end of the Q3 and I have not received the UDATE ICS for THE DROID BIONIC. PLEASE GO GO WITH THIS UPDATE ZEUS