The difficulty to define a page element by using $s
Hi all
I try to use an APEX 'list' as a "pick list", so that the user can click just a value in the value list on the right side of the page, and then refreshes the tabular presentation, query data for the selected value.
I have a point to page setup to store the selected value and I can select an item in the list and I can see it changes the page element, but there's just the question for a second, and then the question is equivalent to null.
Here is my sample application:
Workspace: leppard
username: guest
PW: app_1000
App: MyTestApp (App ID: 32581)
Page: 27
apex.Oracle.com/pls/apex/f?p=32581:27
My dynamic action is named "Select a list item" and is based on a picker jQuery (li) and contains a simple code:
$('li').click(function() { var text = $(this).text(); $s('P27_LOC', text); });
Then I have another real action to refresh the form of the tab area.
I can't understand what I'm missing or why I see this behavior. Any advice or suggestions are appreciated!
Thank you
John
I brought the following to your application changes to make it work:
Change 1: as Scott suggests, your list of 'Place' under the shared components missing the href of the link. I changed your 'Location' as shown below.
Before:
select distinct null, loc label, null target from dept
After:
select distinct null, loc label, 'javascript:void(0);' target from dept
Change 2: page 27, I edited your "Table" report Under the "Region definition-> Source-> Page elements must send", I entered the name of your item to display P27_LOC. This is because $s (JavaScript API) sets the value of the element on the page (DOM) and not in session state.
3 change: page 27, I edited more your 'Table' report but this time to allow the partial-Page update. Report of the attributes-> layout and Pagination-> Enable partial Page Refresh. I've changed that from no to Yes. "Refresh" action under dynamic actions can refresh your report in the form only in a partial Page refresh was set to Yes.
Thank you!
JMcG
Tags: Database
Similar Questions
-
What is the order of evaluation of Page elements
I wonder what the order of execution of the page point assignments are in the page rendering process.
Sequence (+ region), the Type of items, more skilled checking dependencies?
I couldn't find anything here, or looked at with the wrong keywords.
I just need to know, what reliable hypothesis on the dependencies between page elements?
Which is visible in the APEX code? A pointer to that would be OK.
Thank you very much
ThomasHello
If you have a process 'Automated row fetch', then APEX will fill the session state of all elements on the page where source type = "Column DB" when the process is run.
All other types of source page point are filled in the order that the elements of the page are rendered.
Concerning
Patrick
-----------
My Blog: http://www.inside-oracle-apex.com
APEX Plug-Ins: http://apex.oracle.com/plugins
Twitter: http://www.twitter.com/patrickwolfPublished by: Patrick Wolf on November 15, 2012 13:47
-
Is this a bug? HTML is not escaped in the conditional read only LOV page elements
Then test my application for injection HTML filling HTML for each column in my data injected datamodel HTML running when a field only LOV ready, I noticed
I have dynamic LOV in use in my form, so their share, users can select. That sometimes I don't want to make them able to change a value, they chose earlier.
For this reason I condtionalu readonly my LOV. by using the conditional read only an option for the items on the page.
That's when a dynamic LOV made readonly HTML code inside is done instead of escaped
is this a bug or is it intentional?
At least, I think I should be able to choose the behavior.
GeertGeert - Thanks for the info. I think that's not a bug. With the read-only option, it displays the data as it would for a display text (does not save the State) items for which source of HTML element, that is, unescaped. If you want the text escaped by using your dynamic lov query simply use htf.escape_sc:
Select htf.escape_sc ('
data ') d, 1 r of the doubleScott
-
The substitution of a master page element
How to override the master page image to a page?
CTRL (Cmd) + shift + click
-
Display the results in a report on the APEX of two datepicker page elements
Hi all
I'm trying to get some data to display in a report by choosing between two dates. These two dates, I select by datepickers, then a button is pressed to submit and the report to appear.
I made the conditional statement on the button, the button submit as "searchdates", then a branch that is conditional (when the button is pressed, the application is set to "searchdates") and the branch is: 'On Submit - after treatment.
the query behind the report is:
and the sample data that I use to test:select * from desk_allocation where (DESK_ALLOCATION.DATE_FREE >= TO_CHAR((:P5_DATE_FROM), 'DD-MON-YY') AND DESK_ALLOCATION.DATE_FREE < TO_CHAR((:P5_DATE_TO), 'DD-MON-YY') AND :P5_DATE_TO IS NOT NULL AND :P5_DATE_FROM IS NOT NULL) AND DESK_ALLOCATION.ALLOCATED like 'No'
When I run the page, it is said no data displayed.DESK_NO DATE_FREE ALLOCATED ALLOCATED_TO 66 20-AUG-10 No - 75 19-AUG-10 Yes Superman 60 16-AUG-10 Yes Spiderman
Someone at - it ideas?
Using APEX v3.2
Thanks in advance :)I tried with your data with this query, remove the additional supports, SQLDeveloper. There is no record for 'No', then the data found was the correct result. Changed to 'Yes' and got results.
select * from desk_allocation where DESK_ALLOCATION.DATE_FREE >= TO_DATE('10-AUG-10', 'DD-MON-RR') AND DESK_ALLOCATION.DATE_FREE < TO_DATE('20-AUG-10', 'DD-MON-RR') -- AND :P5_DATE_TO IS NOT NULL AND :P5_DATE_FROM IS NOT NULL) AND DESK_ALLOCATION.ALLOCATED = 'Yes'
Kind regards
-
< ! DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional / / IN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" > ""
" < html xmlns =" http://www.w3.org/1999/xhtml ">
< head >
< meta http-equiv = "Content-Type" content = text/html"; charset = utf-8 "/ >"
< title > TOPIC EDINBURG IRANIAN FESTIVAL < /title >
"" < link href = "... / include/css/new_style.css" rel = "stylesheet" type = "text/css" / >
"" < link href = "... / include/css/menu.css" rel = "stylesheet" type = "text/css" / >
<! - include the jQuery library - >
" < script type =" text/javascript"src =" http://AJAX.googleapis.com/AJAX/libs/jQuery/1.3.2/jQuery.min.js "> < / script > .
<!-include Cycle plugin->
" < script type =" text/javascript"src =" http://cloud.github.com/downloads/malsup/cycle/jQuery.cycle.all.latest.js "> < / script > .
< script type = "text/javascript" >
Image Exchange with fade effect
function swapImage (id, path, index)
{
Images of swap with filter
El var = document.getElementById (id);
El.Count = el.count | 0;
document.getElementById (id).style.filter = "blendTrans (duration = 3)" "
If (document.getElementById (id) .filters & & document.getElementById (id) .filters [0])
{
document.getElementById (id).filters.blendTrans.Apply)
document.getElementById (id).filters.blendTrans.Play)
document.getElementById (id) SRC = path [el.count];
El.Count = (el.count + 1) % path.length;
}
}
Allows multiple slides
function slideshow()
{
setInterval (function)
{
swapImage ('Slide1']
".. "/ include/slide_shop_f/images/001.jpg"
".. "/ include/slide_shop_f/images/002.jpg"
".. "/ include/slide_shop_f/images/003.jpg".
(], [0,1,2,3,4]);
(}, 5200);
setInterval (function)
{
swapImage ('cliche2']
".. "/ include/slide_shop_m/images/001.jpg"
".. "/ include/slide_shop_m/images/002.jpg"
".. "/ include/slide_shop_m/images/003.jpg".
]);
(}, 3900);
}
< /script >
< / head >
< body onload = "slideshow ()" >
< div class = "container" >
<? PHP require("..) ("/ include/head.php");? >
< div >
< br / > < br / > < br / > < br / > < br / >
< table style = "" text-align: center "width ="100% "border ="0">"
< style tr = "width: 50%" t >
< style td = "width: 50%" > < a href = "shop_fest.php" > < img name = "Slide1" alt = "" id = "slide1" src =""... / include/slide_shop_f/images/001.jpg "/ > < / has > < table >"
< style td = "width: 50%" > < a href = "shop_pref.php" > < img name = "Slide1" alt = "" id = "slide1" src =""... / include/slide_shop_m/images/001.jpg "/ > < / has > < table >"
< /tr >
< class tr = 'date' style = "do-size: 16px;" text-transform: capitalize ">"
< td > FESTIVAL
< Table > MERCHANDISE
< td > ARTISTS
MERCHANDISE < br / > books / CD / movies / etc < table >
< /tr >
< b >
< style td = "" text-align: center "class ="date"colspan ="2"> < br / > < br / > < br / > < br / > < br / > copyright & copy;" Edinburgh Iranian Festival 2013 < br / >
Contact Web Design < table >
< /tr >
< /table >
< / div >
< / div >
< / body >
< / html >
This is a double post. The answer was given in another thread.
http://forums.Adobe.com/thread/1459829?TSTART=0
FYI, you cannot reference on GitHub scripts in your web pages. GitHub is not a content distribution network. It is a repository of scripts only download.
Nancy O.
-
Started happening after I upgraded to Firefox 10
Not all support 64-bit plugins and if not, you must start Firefox in 32-bit mode to use this plugin.
- Closing of Firefox
- Launch the Finder and open the Applications folder
- Make a right click or Ctrl-click the icon of Firefox.app
- Select "Get Info."
- Select or deselect the option "open in 32-bit mode".
- Close window "Firefox Info"
- Restart Firefox
-
Complete the URL for popupURL of a table/Page element?
Hi all
Someone please tell me if the URL to run a report BEEP can be filled with a table/page element when using popupURL and if so, how?
Background:
I have a Table called TBL_LETTERS with a column varchar2 REPORT_URL
I have a Page (Pg 303) that fills a Page of text element (P303_REPORT_URL) with a URL string appropriate to the table.
Here's my problem:
I would like to replace my function javascript to work (see below):
Run myLetter_40()
{
popupURL ("& BI_URL. Guest/DEV/TEST/FRM_40/MM_40/MM_40.xdo?_xpf= & _xpt = 1 & P_CASE_ID = & P303_CASE_ID. & P_PERSON_ID = & P303_PERSON_ID. & _xt = MM_40_xf = rich text ');
}
with something like:
Run myLetter_40()
{
popupURL ($x("P303_REPORT_URL").value);
}
.. .but it does not work.
With my knowledge of limited javascript, I can only imagine that the variables with success a value in my first example of assigned function do not succeed to my second, I'm probably just passing through all this as a simple string (like this: + & BI_URL.) Guest/DEV/TEST/FRM_40/MM_40/MM_40.xdo?_xpf= & _xpt = 1 & P_CASE_ID = & P303_CASE_ID. & P_PERSON_ID = & _xt = MM_40_xf & P303_PERSON_ID = rtf +), but would appreciate very much all the advice.
What I need to
a. create the string of REPORT_URL differently in the table so that when it is passed to the Page element it includes the required variable data?
b. something completely different?
c. the forget, it is not possible!
PS. I use Apex 3.2.1
Thank you in advance.
Sue
Published by: smp245 on August 21, 2012 14:19Hi Sue,
you could build the url with javascript like this:
popupURL('&BI_URL.Guest/DEV/TEST/FRM_40/MM_40/MM_40.xdo?_xpf=&_xpt=1&P_CASE_ID=' + $v('P303_CASE_ID') + '&P_PERSON_ID=' + $v('P303_PERSON_ID') + '&_xt=MM_40_xf=rtf');
the javascript $v function belongs to the Apex javascript library and gets the value of an element of HTML page.
Kind regards
Erik-jan -
Problem with the help of the $s javascript function to fill a page element
Hello Oracle APEX community,
I work on a page dashboard of exploration down and have been a problem when I try to fill a Page of text (hidden or not) element using javascript built in function $s.
The feature works very well when the data is a number such as dept_id (even if the field type is varchar type). However, trying to pass what is a text the process fails, unless a value is hardcoded as parameter to the function. So, for example, I have a table with constituents by State counties. I would like to fill out (filter) a table based on when you click a bar for a State without having to submit the page. I use dynamic actions and built in javascript function in the SQL code for the graph to achieve; But even once, it works fine when I use a field varchar as the FIPS code (FIPS for Texas is "48"), but when I try to fill the page element by using the abbreviation of the State "TX" (new varchar), it fails.
Here is an example of code that works:
And here is an example of code that does not work:SELECT 'javascript:$s("P1_DEPTNO",'||d.deptno||')' LINK, d.dname LABEL, sum(e.SAL) sal FROM emp e, dept d where e.deptno = d.deptno group by 'javascript:$s("P1_DEPTNO",'||d.deptno||')', d.dname
However, when I hard code a value the script text works:SELECT 'javascript:$s("P1_DEPTNO",'||d.loc||')' LINK, d.dname LABEL, sum(e.SAL) sal FROM emp e, dept d where e.deptno = d.deptno group by 'javascript:$s("P1_DEPTNO",'||d.loc||')', d.dname
I encounter this problem on several versions of the APEX: (4.0.2.00.07 - local installation) and (4.1.0.00.28 - apex.oracle.com)SELECT 'javascript:$s("P1_DEPTNO","BOSTON")' LINK, d.dname LABEL, sum(e.SAL) sal FROM emp e, dept d where e.deptno = d.deptno group by 'javascript:$s("P1_DEPTNO","BOSTON")', d.dname ORDER BY d.dname
Does anyone know of this problem and how to solve? I have looked for the parameters of the element of the page itself and can not understand.
I rewrote my sql to use the fields of value of my tables instead, but I have a few objects on the page that will really depend on the data of base characters instead.
Thank you
WayneIn your javascript that you generate, surround your value with quotes and it will then should always work with the numbers and strings (your channels are probably interpreted as variable names and that they do not exist when running, so slip out).
Example:
SELECT 'javascript:$s("P1_DEPTNO","'||d.loc||'")' LINK,
Published by: gti_matt on August 16, 2011 09:50
-
How do you get the help of a Page element to display text?
How do you get the help of a Page element to display text? We entered our text in the help text of our Page element part. However, when you place the cursor of the mouse on the Page element, any help text is displayed? Any comment is appreciated. Thank you.How do you get the help of a Page element to display text?
.. .a page element...
Is there a link for the point label? Otherwise, change the model of wording of article to use the model named "Necessary with assistance" or "optional with assistance.
When you place the cursor of the mouse on the Page element, any help text displayed?
If there is a link, you must click on the link.
Scott
-
[AS] Cannot remove a Page element
I'm confused as to how to remove a page element. It is a jpeg embedded in a document of AI, I can remove it by selecting and executing a simple script like this:
Tell application "Adobe Illustrator"
say active document
delete selection
end tell
tell the end
However, if I try to find and delete as part of a larger script, it won't clear. No error is thrown and everything else in the script works, but the item not be deleted. Here's a piece of the script that I had hoped to find and remove the element. Note that the script can find the item very well because I am able to copy its position property and it allows to place another point in that I paste.
the value question for each page element of the document 1
Repeat with e from 1 to the number of question
put pourla to the point e of question
If width of pourla = 26 may
on theBounds position of pourla
delete pourla
paste
Paster point value 1 of the selection
theBounds the value position of Paster
end if
end repeat
Any ideas would be a great help. Thank you.You might have better luck looking for elements of running through all the elements of the page if you want to remove is always an embedded JPEG images.
This is an example
Tell application "Adobe Illustrator"
the docRef active document value
Define rasters (each point on the page of the docRef) whose class is the point of frame
Remove rasters
Close docRef save Yes
tell the end -
I have problem to apply/create an element of the master page and how to run the previos page text block to create the page text
InterfacePtr<IPageSetupPrefs> iPageSetupPrefs (,static_cast<IPageSetupPrefs * > (:QueryPreferences() IID_IPAGEPREFERENCES, docRef)));
if (iPageSetupPrefs is nil) {
Assert (iPageSetupPrefs);
break
}
InterfacePtr<ICommand> iNewPageCmd (CmdUtils:kNewPageCmdBossCreateCommand());
if (iNewPageCmd is nil) {
Assert (iNewPageCmd);
break
}
InterfacePtr<IApplyMasterCmdData> iApplyMasterCmdData (iNewPageCmd, IID_IAPPLYMASTERCMDDATA );
if (iApplyMasterCmdData is nil) {
Assert (iPageCmdData);
break
}
InterfacePtr<IPageCmdData> iPageCmdData (iNewPageCmd,UseDefaultIID());
if (iPageCmdData is nil) {
Assert (iPageCmdData);
break
}
Int32 numPagesToInsert = 1;
PMRect pageSizeRect = iPageSetupPrefs->GetPageSizePref();
Int32 pos = iPageCmdData->GetNewPageInsertPosition();
ISpreadGeometry InterfacePtr<IGeometry> (spreadList->QueryNthSpread(0));
if (iSpreadGeometry is nil) {
Assert (iSpreadGeometry);
break
}
spreadUIDRef =:GetUIDRef(iSpreadGeometry);
PMRect dfltPMRectPageSize = iPageSetupPrefs->GetPageSizePref();
PMReal pageWidth is dfltPMRectPageSize. Right () - dfltPMRectPageSize. Left ();
PMReal pageHeight is dfltPMRectPageSize. Bottom () - dfltPMRectPageSize. Back to top ();
PMRect usrDefPMRectPageSize (0, 0, pageWidth, pageHeight);
K2Vector< PMRect> pageBoundingBoxes;
for ( int32 i = 0; i < numPagesToInsert; ++ i) {
pageBoundingBoxes. push_back (usrDefPMRectPageSize);
}
iPageCmdData->SetNewPageCmdData(spreadUIDRef, numPagesToInsert, pos +1, & pageBoundingBoxes, nil);
/ / CreateSpreadFromSpread (docRef, spreadUIDRef);
InterfacePtr<IBoolData> iBoolData (iNewPageCmd,UseDefaultIID());
if (iBoolData is nil) {
Assert (iBoolData);
break
}
bool16 allowShuffle;
if (this->GetShufflePref(allowShuffle, docRef) iskFailure) {
break
}
iBoolData->Set(allowShuffle);
CmdUtils:ProcessCommand(iNewPageCmd);
Above code, able to create a page but the problem in applied master page?
Using document Pages face?
I think that your posToInsertAt for IPageCmdData::Set is incorrect.
If the doc does not have facing Pages, posToInsertAt = 1;
If doc is facing Pages and page insertion is the left-hand Page, posToInsertAt = 2;
If doc is facing Pages and insert page is the right Page, posToInsertAt = 1;
posToInsertAt = spread-> GetNumPages();
newDocCmd and newDocCmdData are not used, you can delete these.
-
Appeal procedure for a page element
Hi friends,
I have a page element and I need to return a value for the page element by using the procedure. For this I created a procedure
And called this procedure as the below in the section by default, by specifying the type as 'the plsql function body '.create or replace procedure xx_test_proc7(a number,b out varchar2) as begin select sum(sal) into b from scott.emp where deptno=a; end;
But this element does not receive the value of the procedure.declare x varchar2(20); begin xx_test_proc7(20,x);------>20------>hardcoded dbms_output.put_line(x); end;
What is the problem with her friends.
Brgds,
MiniHello
Your code should be based, so try
declare x varchar2(20); begin xx_test_proc7(20,x);------>20------>hardcoded RETURN x; end;
Kind regards
Jari -
I need to display the title on a set of pages information. I changed my page template and the string substitution put (& MY_TITLE.). Then I tried to add the element of hidden page (MY_TITLE) on each page and fill it with database information. But the top does not have page elements with the same name, even if they are on different pages.
I need something as part of the extended page, which will be available only in the current page and will not affect other pages, or a kind of double string substitution when the first name of the page element is built and then the value of this element of the page is taken.
How can I solve my problem?
Published by: 866569 on July 8, 2011 12:43
Published by: 866569 on July 8, 2011 12:50Hello
You can use application article or article page zero.
Then use calculation on each page to set the desired value for this element.Kind regards
Jari -
Turn off the text field (always submits page when you press enter)
I have an area which allows you to enter search criteria. There are two fields and a button. The 1st field is a selection list that gives a list of columns in a database that can be searched on. The 2nd field is where the user enters the value to search for. The user can submit the search in 2 ways. They can press the button or press return when the cursor is in the 2nd item that is a text field (always submits page when you press enter). The results are then displayed in a region of report below.
The problem I have, is that if the request is for > 10 seconds and the user gets impatient and hits the Enter key or the button search again the query is returned for a second time (or third or fourth according to the impatience of the user) causing the claim on the basis of data with a negative impact on the performance of the system.
I know how to handle the search key. On a click event on I turn off the button so that the user cannot click on it again and resubmit the request.
My question is - how can I turn off "always provides a page when you press enter" text item when the user presses enter? I tried an onclick event, but disabled the front element I could type in anything. Onblur event does not seem to do anything.
Any ideas would be very appreciated.
AndyHello
First of all, one thing to try: attributes of the Page, there is a section for the presentation in double - try setting this option on no.
Otherwise, using the text field type, adds the following to the INPUT tag:
onkeypress="return submitEnter(this,event)"
which means, you can call your own function of javascript on the onkeypress event, the final line would be call submitEnter(). But you can set the value of a hidden page element:
function doEnter(t, e) { if ($x('P1_SEARCH_RUNNING').value == 0) { $x('P1_SEARCH_RUNNING').value = 1; return submitEnter(t, e); } else { return false; } }
Then, after changing your element to an element of normal text on the attributes of HTML form elements, add in:
onkeypress="return doEnter(this,event)"
Andy
Maybe you are looking for
-
I made a few simple calculations in number and found what appears to be an error- Cell A1: 1.001 (entered manually) Cell B1 = 1000 *(A1-1) 1.001 0.99999999999989 The result should be 1, but it returns 0.9999999999989. When I try chaining the formula
-
All, When you use the virtual com COM4 on a RT system port: 1. can I send data to the RT via this port? 2 is this port for playback only? I can see the boot data so I know that I speak of the RT. Thank you
-
I clicked on outlook that displayed on the screen of Hotmail, when I connect today. He said explore outlook. I did and now, this is what my screen is showing. I want my old format and back tool bar. not outlook. I don't like outlook, that he might
-
No menu 'File', available in Windows Live Mail; not even a taskbar in order
In a previous answer: "then in WLM file-import-Messages-Outlook Express 6 and place you in the folder you all the dbx files to." when I open Windows Live Mail, I don't have the command bar typical with choices or menus as "File",""Edit","View", etc.
-
Directories remain after standard user accounts are deleted
I created two user accounts standard on my new Dell (that I named "Steve") running Windows 7. We'll call the users 'John' and 'Mary '. Initially, I have named the account of Mary Mary_Standard but changed the username of Mary. No problem with the