Pass the value modal page using static URLS
Hi guys,.
I have a simple page with three boxes.
When one of the check boxes is selected, I want to draw a new page which I use as a modal page (SkillBuilders Modal plug to help). I need to pass a value of a checkbox (P1_WTD_OPT_OUT) in the new modal page.
I have the following in the static URL
f? p = & APP_ID.:2: & APP_SESSION.:2:P2_WTD_ID, P2_WTD_OPT_OUT: & P1_WTD_ID, & P1_WTD_OPT_OUT. :
where I'm moving the value of P2_WTD_OPT_OUT to P1_WTD_OPT_OUT.
As I don't submit anything when the check box that calls the modal page is checked, how I would pass the value in the modal page?
At the moment, if P1_WTD_OPT_OUT is enabled or not, P2_WTD_OPT_OUT is always null when modal page.
I use apex v4.0
Any help would be great,
Thank you
Here is what goes wrong:
-page is first rendered, P8_WDT_OPT_OUT is NULL
-the static url for the modal lov is generated. Given that the item is NULL value in the url for the P9_WDT_OPT_OUT point shall be void in this url
-l' change event fires. The P8_WDT value is stored in session state
-the modal opens and navigates to the static url
End result is that the P9 indeed will be null.
The solution to this is to not not to set the value of the item through the URL, because it will simply not work. But given that the element of P8 is located in session state, you can use the value of it to the default value of the element on P9.
On page 8, I changed the dynamic action to not set the value of the element in the URL, and on page 9 I changed the default value of the element.
Tags: Database
Similar Questions
-
Pass the value of LINE via a URL to Google Map
If I use the Oracle whitepaper for the passage of the GMAP LOCATION I use: var point = new GLatLng (& P1_LOCATION); where P1_LOCATION is a value returned to a text box after asking the geo location button.
I have a column in a report region called RENTAL, I put it as a LINK and a URL.
If I change var point = new GLatLng (& P1_LOCATION); Var point = new GLatLng(#LOCATION#); it fails because I am not correctly to the col value var GLatLng() on the popup page.
How to pass a data element instead of a text box value?
Thank you
BradHere ya go... This should take care of the job:
1 change your URL:
URL: javascript:popUp2('f?p=&APP_ID.:2:&SESSION.:::P2_LAT,P2_LONG:#LATITUDE#,#LONGITUDE#','650','450');
2nd create two elements to the Page 2 called P2_LAT and P2_LONG, are the hidden items and put them in a region somewhere...
3rd change your javascript to what follows:
var point = new GLatLng ($x('P2_LAT').value, $x('P2_LONG') .value);
It should work for you...
-David
-
Pass the value using javascript:modalpage()
Hello
Apex 4.2
I need to know, is it possible to do the following.
I have 4 buttons on the page as (Suspend, end, restoration, Add) and whenever you press a button and then MODAL_REGION will appear and I m using this javascript:openModal('Open_Page');
within the action of the button - URL redirect for all the buttons. I did not create DAs for it as I create four DAs for each button.
So my question is? I can pass the value in the code above. like javascript:openModal('Open_Page'); $s(P6_ITEM1,'S');
but above does not work. I can just do a few DAs for him but don't want that for all buttons. Thus, when the press "SUSPEND" button hidden point P6_ITEM1 should take the of ' as a value, if the press which ENDED then take 'E' and so on.
Please advice?
Thank you very much.
RI
Hi Irha10,
There is no need to use a DA to pass values to it. In the redirect URL
javascript:$s('P6_ITEM','S'); openModal('Open_Page'); document.forms[0].P6_ITEM.focus();
Hope this helps
Kind regards
Benjamin.
-
Problem by passing the values in the url
Hai...
I have created a report region1, because I change the link to change the values, after clicking on the edit link region.2 will appear, im passing in the url of the region.2. My problem is that the values of a ': ' in that... so by passing the values in the url im not getting the onlu 'Region.2' for values that got ':' in it... How can I overcome the issue.
im passing value contains ':' in this example:-"petroleum products: Europe.
When I pass this URL im get like this
http://nypploratest.Platts.McGraw-Hill.com:7777 / pls/dews/f? p = 100:105:1304192021604971:NO:P105_NEWS_CODE,
P105_NEWS_DESCRIPTION, P105_NEWS_CODE_HIDDEN:PDD % 2COil % 20Products: % 20Europe, 2-1 colon is included in the url
Please help me...
Thank you
DavidYes, it's possible. Depends on what you are doing. Source value of the element can be a query, so if you have spent the value PK of a line in a table to the page, then the query source of this element could extract the line using this key and use the text value retrieved from another column to fill the text element.
Scott
-
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
DraganYou 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
-
Passing the value from one page to the other page
Hi gurus,
I need to pass the value from one page to the other page and two pages use different AMs.
In the first page I have sellers results region table where the $vendor_name column is a hyperlink that navigates to the page Vendor_Sites. Now after accessing the second page, I want to excute the VendorSitesVO in PR of CO based on the value passed to VendorsVO (vendor_id) of first page.
can someone help me on this?
Thank you
Vincent.
Published by: user4933347 on December 4, 2009 12:19 AMYou can set parameters of Pagecontext and transmit values through them. These values can be passed between pages, even if the AMs are different.
Try:
pageContext.putParameter ("Parameter1", value1);
pagecontext.setForwardURL (second page)Concerning
Sumit -
How to pass the value of a column to a variable to be used in another analysis
Hello
I'm on OBIEE 11.1.1.7.1.
I have the following problem.
I have DISCOVERED called analysis. It has just a column with the result. Simple. Assume that the answer is 2500
I have another scan which has two other columns, namely GOLD and LOANS. I want to calculate the total DISCOVERED + GOLD + READY.
That's why I need to pass the value of 2500 of the first analysis of the second analysis via a variable.
I can not add all three of them in the same analysis there are various filters for OVERDRAFT, and the application of these filters on the GOLD and LOANS gives the desired result. I tried to add filters in the column of the overdraft, but that doesn't seem to work.
Any help will be greatly appreciated.
I'll give you an example. I hope that you will mark for my time...
Hope that you will be aware of how to combine a similar request.
in the first criterion you have
Goldprice Loanamount year 0
Second criterion
Year 0 0 Overdraftamount
the two maintain the necessary filters.
Add a column of result (option you can see in the topic area pane) that add all three columns. You can choose the columns. formula will come something like below
saw_1 + saw_2 + saw_3
Thank you
AJ
-
By passing the value in column IR to package Oracle
All,
I try to call a package Oracle of APEX and must pass the value of a column of IR in this packaging. I tried saying: ADJ_ID but I don't think his pasing anything for the backend.
Here are the steps.
1. the user runs IR
2. There is a column that I put as "ROLLBACK" on this report for each line that has a LINK that calls URLS like
JavaScript:apex.confirm (' safe to restore adaptation? "," SEND");
3. once the user confirms submit, I call the package, package gets called but I want to send a value for that line to the package, I do this by saying: (colon) rating but it does not work.
Thank you
VishalYou must set you page item (as you try to pass by using the method of colon in PLSQL) first
You can change your link to
* JavaScript:apex.confirm ("Sure to restore adaptation?", {request: 'SUBMIT', value: {"P1_ROW_VALUE": 10}}); *
P1_ROW_VALUE is the Page element that you want to set and 10 here is specific to the LINE value
If you use the "links" section in the report attributes
and then, something like that would* JavaScript:apex.confirm ('Safe to restore the fit?', {request: "SUBMIT", value: {'P1_ROW_VALUE': ' #COLUMN_ALIAS #'}}); *
Alias_de_colonne is the name of the column you want to set the element with the value.
Published by: 814948 on November 23, 2010 08:46
-
Waterfalls by passing the value between QML
Hi, I have the main.qml with a display list, on, click on any element of the display of the list, I want to pass the value to another QML which is a leaf to change or remove, I followed what is on the tutorial to use the alias property to the second page to set the alias for the fields that I want to access another page and have the main.qml to create the object in the worksheet and assign value and open. Right now, it's say those alias not found. Here is the excerpt code sheet QML import bb.cascades 1.0 sheet {id: content newEventSheet: Page {id: addEventPage... eventNameText.text = ' '; eventTimePicker.value = eventTimePicker.dateFromTime("00:00:00"); newEventSheet.close (); mainObj.addData (eventName, selectedHour, selectedMinute, selectedSecond);}} Container}}} {layout: StackLayout {orientation: LayoutOrientation.TopToBottom} container {container {layout: StackLayout {orientation: LayoutOrientation.LeftToRight} leftPadding: 20.0 topPadding: 50.0 bottomPadding: 50.0 Label {text: preferredWidth 'Event name': 200.0} TextField {property alias txtEventName: eventNameText id: eventNameText hintText: preferredWidth 'Enter event name': 500.0}} container {layout: StackLayout {orientation: LayoutOrientation.LeftToRight} leftPadding: 20.0 Label {text: preferredWidth "Event time": 200.0} DateTimePicker {property alias pickEventTime}}} {{: eventTimePicker id: eventTimePicker mode: DateTimePickerMode.Timer minuteInterval: 1 preferredWidth: 500.0 onValueChanged: {}}} hand QML Container {id: eventListContainer ListView {id: eventList dataModel: eventsModel / / use a ListItemComponent to customize the appearance of the list function itemType view (data, row) {console.log ("Calling itemType:" + row);}}} return "item"; return (indexPath.length == 1? ("head": "item"); } listItemComponents: [ListItemComponent {type: 'the point' StandardListItem {title: "event:"+ ListItemData.EventName; "}}] Description: "time:" + ListItemData.EventHour + ":" + ListItemData.EventMinute + ":" + ListItemData.EventSecond ;}}] "." onTriggered: {console.log ("Calling onTriggered:" + row);} var selectedEvent = dataModel.data (row); var eventDetailPage = eventDetailDefinition.createObject (); eventDetailPage.txtEventName.text = selectedEvent ['EventName']; eventDetailPage.pickEventTime.value = picker.dateFromTime(selectedEvent["EventHour"]+":"+selectedEvent["EventMinute"]+":"+selectedEvent["EventSecond"]); eventDetailPage.open (); }} the device connect by default to the 14:44:50.432 com.example.IntervalTimer1.testDev_ervalTimer1a7a2c2e2.11214974 may 28 9000 REVIEWS asset:///main.qml:122: TypeError: result of expression 'eventDetailPage.txtEventName' [undefined] is not an object. Can someone help me? Thank you
Have you tried to put the alias property in the root of the sheet in the TextField?
-
Pass the value in the search on an interactive report string
Hello
I have a report interactive (page 2) page which I navigate from a main navigation page that contains a text box (: P1_PART_NO) and a button (which has details of the branch).
Can someone tell me how to pass the value of: box at the top of the interactive report of P1_PART_NO in research and have the results filtered as a result that the page is loaded.
I use apex v4.0
Thanks in advance,
ChrisIf you google
put Apex ir report
You should get some answersGus
-
Passing the value of processFormRequest to processRequest
How does one pass variable to the processFormRequest to processRequest is using pageContext.putSessionValue ("xxx", xxx). It is not passing the value and want to ensure that the right way to spend it. an example would help. still a beginner in training. Thanks for the helpOnce you do the pageContext.putSessionValue ("xxx", xxx), then run pageContext.forwardImmediately back to the original page. Then in your processRequest, check that the value using pageContext.getSessionValue.
Remember that the first time you page loads, that value be here if will be sure the return NULL value or you can get a null pointer exception. It was only after the processFormRequest and the forwardImmediately back to the page as your processRequest will see a value.
I hope this helps.
Kristofer Cruz
-
Call AJAX process and pass the value on request
Hello
I want to call a process on demand by a button. So I added the following for her javascript code:
function update_bp1()
{
Alert ('hhhhi');
Alert (document.getElementById('P11_PATIENTID').value);
var ajaxRequest = new htmldb_Get (null, & APP_ID., 'APPLICATION_PROCESS is update_bp', 0);
ajaxRequest.add ('patient_id1', document.getElementById('P11_PATIENTID').value);
ajaxResult = ajaxRequest.get ();
Alert (ajaxResult);
}
< /script >
The called application process is:
declare
number of v_id;
number of v_visitno;
v_patientid varchar2 (10);
BEGIN
Select max (id), max (VISITNO)
in v_id, v_visitno
of TBL_PATIENT
where PATIENTID =: patient_id1;
Update TBL_PATIENT
the SYSTOLIC value = 10,
DIASTOLIC = 20
where id = v_id
and visitno = v_visitno
and patientid =: patient_id1;
commit;
HTP. PRN ('process value'-|: patient_id1);
end;
It seems there is error in the ajaxrequest.add clause, as after commenting on the function is executed. Alert print correctly the value P11_PATIENTID.
The alert of the ajaxresult gives the complete HTML code and the process is not running. How interpreet ajaxresult error.
Please help me to identify the problem.
Thank youHello
I think that it is not relative browser, but Firefox with the module Firebug is just a better tool for web developer.
It is easier to debug problems you have now.Is the point of application patient_id1? You need also to pass the value to the application process?
If you don't need it another vise, it is better to use variables global apex_applicationTry this
JavaScript for HTML page headerThen, create the new process On demand application named UPDATE_PATIENT. Please note that the name of this process is case sensitive.
DECLARE v_id NUMBER; v_visitno NUMBER; v_patientid VARCHAR2(10); v_count NUMBER; BEGIN SELECT MAX(id), MAX(visitno) INTO v_id, v_visitno FROM tbl_patient WHERE patientid = apex_application.g_x01 ; UPDATE tbl_patient SET systolic = 10, diastolic = 20 WHERE id = v_id AND visitno = v_visitno AND patientid = apex_application.g_x01 ; v_count := SQL%ROWCOUNT; COMMIT; htp.prn(v_count || ' rows updated'); EXCEPTION WHEN NO_DATA_FOUND THEN htp.prn('error: patientid ' || apex_application.g_x01 || ' not exists in tbl_patient'); WHEN OTHERS THEN htp.prn('error: ' || sqlerrm); END;
Kind regards
Jari -
Passing a value between pages for navigation
Hi all
To the point: selecting an option on the first page passes the value of query string, in this case, 11, to the next page.
The next page has several bits of data, in this case short prargraphs. There are only three paragraphs illustrated per page and a navigation system is in place to allow the user to go back and forth between these groups of paragraphs.
Everything works perfectly.
I want to ADD is the ability to pass the original value the long query (11) string each time the user moves forward or backward by using the navigation links.
The navigation system is PHP and reloads the same page with the appropriate data.
I just want to have a value of... How?
Thanks in advance!
Sincerely,
wordman
At any time, man.
-
How to pass the value to query LOV of rows in the table.
simple table on the page of the ofa:
col1 col2
ABC lov-activated
PQR lov-people with disabilities
MNO lov-activated
Col2 is lov and turned under condition if it meets certain conditions. I am capable of until.
How to pass values in col1 to the co of lov lov query?
Help, please
Thank youHello
You can pass the value to LOV in this way in a region of the table.
col1 col2
DEPTNO empname (Lov field)
1 lov1
2 lov2requirement: lov1, you will need to pass the value of deptno 1.
If deptno is message style text then you need to create a value of the deptnoFormValue with the attribute in the base page table area, and the same instance of vo.
danslechamp empname lov
fields of lov region:
EmpName,
DEPTNO,
and deptnoFormValueinLovlov mappings: a first return to the basic page.
a second part of the criteria
Point lov region: deptnoFormValueinLov
Return article: -.
Point of criteria: deptnoFormValue
Required: true
Query programmatically: trueNow create a controller for the region of Lov
the code example is:
Import oracle.apps.fnd.framework.OAApplicationModule;
Import oracle.apps.fnd.framework.OAViewObject;
java.util.Dictionary import;in the process request:
OAApplicationModule m = pageContext.getApplicationModule (webBean) (OAApplicationModule);
Dictionary passiveCriteria = pageContext.getLovCriteriaItems ();
String deptno = (String) passiveCriteria.get ("deptnoFormValueinLov");System.out.println ("org code in controller of lov is" + orgcode);
OAViewObject vo = (OAViewObject) am.findViewObject ("view instance of lov");
vo.setWhereClause ("Organization_code =" "+ deptno +" ' "");System.out.println ("request after adding where clause." + vo.getQuery ());
hope this is useful
Kind regards
Barros.
[email protected] -
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
I'm on page 1 and passing the value G_DEPT_NO of the Application element .onchange="javascript:function1($x('P1_DEPT_NO').value);"
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
I just want to know, How to pass the value of the Application in Javascript element.onchange="javascript:function1($x('G_DEPT_NO').value);"
Thank you
DeepakDeepak,
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 goalIf 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#T1BThank you
Rajesh.
Maybe you are looking for
-
Trying unsucessfully to install an add-on translation for Firefox 11
After losing my Google toolbar translation feature, because I don't have the toolbar, I'm looking for something else. I tried some of the modules of translation, but none seems not to work. They all (at least what I tried) are classified as not compa
-
iMac 5K with ultra wide screen LG
Hello I just ordered a 5K iMac and I currently have an LG monitor ultra wide 34UC87-C I had to connect to the Mac. My question is which compatible cable should I buy given the resolution 3440 x 1440 p of the external monitor. It is not a thunderbolt
-
BlackBerry Q5 network blocked due to sim not valid
Nice day! I had a problem with my blackberry SQR100 q5-2, my first sim card in the device was sim Smart Communications and it works fine. After 6 months I switched to Globe Telecom 3 weeks of use, it works very well also. But recently I received noti
-
For our REST services we have implemented a number of privileges.Each right is defined for a number of roles.So, we have the same problem as described here: Client OAUTH with more of a privilegeDocumentation of OAuth (pdf) package differs from oauth
-
Error 0xC1900101 - 0 x 40017 in K46CM from ASUS
I received this error until the message preparing devices. Here are my specs: Intel core i5 3317u Nvidea geforce gt 635 m 8 GB ram 500 GB of hard drive 24 GB of SDS USB 3.0 HDMI Sonic master HD SCREEN HD CAMERA. Please give me a solution I am looking