Question of dynamic title using javascript
http://apex.Oracle.com/pls/apex/f?p=20866:1 workspace: SVK user: demo password: demo
I'm trying to update the title of the region whenever the selection list changes. The title of region should start by empno of the employee in the query (i.e. ' 7900 TEST REPORT NAME').
I use js:
$("#dynreg div.rc-title").text("&P1_SELECT_LIST. TEST REPORT NAME");
where http://www.ESRI.ie/research/research_areas/international_economics/dynreg is the static id for my region. This works sometimes, but then stops or not at all.
Hello
I have change your dynamic action and place points of region attribute of report Page elements.
I think that your sample now works
Kind regards
Jari
-----
My Blog: http://dbswh.webhop.net/dbswh/f?p=BLOG:HOME:0
Twitter: http://www.twitter.com/jariolai
Tags: Database
Similar Questions
-
How to set a dynamic title using a variable presentation
Hello every1
In my dash I want to use a dynamic title: "list of services by", which is based on the prompt of the user 'countries '.
How can I do this?
For example when the user selects Morocco, then the title goes: 'lists of services by the Morocco '.
Thank youHello
also try this...
http://bischool.WordPress.com/2009/05/05/presentation-variable-values-in-report-titles-or-using-presentation-variable-in-dashboard-text-object-and-narrative-view-directly/ -
JS - Can XML Question - I add attributes using Javascript?
I want to add an attribute to an element tag, but I don't see how to do it programmatically. Is this possible? Also, is it possible to appoint a tag element dynamically? For example:
How to add a child element is to use the appendChild as follows:
XMLObject.appendChild(<childElement/>); XMLObject.childElement= "something";
or just add it like this:
XMLObject.childElement = "something";
Right? (Side Question: is there a difference between these two methods?).
What I want to do, is to add a dynamic attribute to a child named statically, or to create a child named dynamically.
I could not understand this. Any ideas?
Maybe take a look at Mozilla's E4X tutorial: https://developer.mozilla.org/en/E4X_Tutorial/
There is no need eval() here. (There are usually not.) Use:
XMLObject.appendChild(<{nameReference}/>);
To add an attribute, you can use:
XMLObject.@new_att = "the value";
Jeff
-
Dynamic title using SPEL?
Is it possible to assign a value of title to a messageChoice and messageTextInput using SPEL? I need to dynamically assign titles and haven't found anything in the tutorial that talks about. At present, the SPEL 'literal' is displayed.
Published by: sreese on April 22, 2009 21:10You can use SPEL for required property...
You can linked to values to set quickly, use the following code in processRequest()
OrderTotal = OAMessageInputTextBean
(OAMessageInputTextBean) webBean.findIndexedChildRecursive ("OrderTotal");If (orderTotal! = null)
{
orderTotal.setAttributeValue (PROMPT_ATTR,
new OADataBoundValueViewObject (orderTotal, "PromptAttribute"));
}And when you change the value of the processFormRequest() attribute the invites will be changed in the front-end server.
Prasanna-
-
Dynamic stamps using JavaScript
Hello
I'm having a problem with a stamp that I am creating (Acrobat X pro). I created a stamp custom and then added a form field using the form editor that includes the following script. When I open a document and click on the stamp, the java dialog box appears. I have a previously created stamp which has more fields and it works fine, but when I removed the 2 fields and recorded on my new stamp it won't work. I've renamed the stamp test.pdf file name to match the name in the code as well. Help, please. Thank you.
var = {} dialog box
«numberValue: "«,»
function: Commit (dialog) {/ / called pressed OK}
results var = dialog.store ();
this.numberValue = results ["txt1"];
},Description:
{
name: 'Information number', / / title of the dialog box
elements:
[
{
type: "display."
elements:
[
{
name: "number."
type: 'static_text. "
},
{
item_id: "txt1"
type: 'edit_text. "
Multiline: true,
Width: 300,
height: 80
},
{
type: "ok_cancel."
ok_name: "Ok."
cancel_name: "Cancel".
},
]
},
]
}
};
If (event.source.forReal & & (event.source.stampName == "#test"))
{
If ('ok' is app.execDialog (dialog))
{
CMSG = "Number\n" + dialog.numberValue;
this.getField("Number").value = CMSG;
Event.source.source.info.Description = dialog.numberValue;
}
}The stampName cannot be 'test '.
See this thread on this topic: http://forums.adobe.com/message/4928707
-
How to use Javascript to loop through a tabular presentation
APEX: 4.2.3
DB: 11 GR 2
Requirement:
I have a master form / retail. We will see that master is the order information; Detail is the order lines. Detailed form is tabular
The detailed form, there is an attribute called 'Line Order Qty' and the user can update this field.
User can update all rows in the detail forms and change "line Order Qty' for each line. When the user click on 'Save' button on Master form, I have to do below:
Sum of the 'line Order Qty' for all lines, and compare it to another field called 'Plan Order Qty' on the master shape.
If sum 'Line Order Qty' > "Plan Order Qty", then it should appear a message with "Are you sure?" with two buttons on the message: OK and cancel.
If users click on 'OK', the application will proceed and update another field called 'Sum of Order Qty' on the main form and the value set for the sum of "Online Order Qty" for all lines;
If the user clikc 'Cancel', the application will be paused. The user must come back to change "Line Order Qty", and then try again
given, I need a popup message when the validation, I think I have to write javascript; However, in the javascript code, I need complete all lines in detail (tabular form) to get the
The sum of the 'line Order Qty'. Then I can compare the value and to launch the pop message if validation has failed?
By reading this thread: building the perfect beast: Oracle APEX - Soft Validation using dynamic measurements
I think I need to create a reference for action (DA) dymaic Javascript expression; However, in Javascript, how do I browse a table?
Yet once, I need an example of using Javascript to browse tabular forms in the form master / detail.
I don't know that my question should be raised before; but I can't find a good match of thread.
Thank you!
Kevin
Hi Kevin Zhang,
Sum of the 'line Order Qty' for all lines, and compare it to another field called 'Plan Order Qty' on the master shape.
If sum 'Line Order Qty' > "Plan Order Qty", then it should appear a message with "Are you sure?" with two buttons on the message: OK and cancel.
If users click on 'OK', the application will proceed and update another field called 'Sum of Order Qty' on the main form and the value set for the sum of "Online Order Qty" for all lines;
If the user clikc 'Cancel', the application will be paused. The user must come back to change "Line Order Qty", and then try again
given, I need a popup message when the validation, I think I have to write javascript; However, in the javascript code, I need complete all lines in detail (tabular form) to get the
The sum of the 'line Order Qty'. Then I can compare the value and to launch the pop message if validation has failed?
Follow the steps below
Step 1: Change your page - > function and declaration of the Global Variable-> to insert the code below
(i) f06 is here, the column on which I am looping the f06 column and enters the total variable to the value change in the values of the row that is changed by the user.
(II) also replace your column with f06 markup on which you want to loop and calculate the total
(III) assuming that P6_ITEM is the point where you plan_order_qty, replace with your article.
(IV) SAVE this demand is what happens when OK is clicked, assign the request to process.which you give the floor to a click of the button SAVE the
function update_order_qty () { var line_order_qty_tot = 0; $("input[name='f06']").each(function() { line_order_qty_tot += parseFloat($(this).val().replace(/,/g,''))||0; }); var plan_order_qty = apex.item( "P6_ITEM" ).getValue() if (line_order_qty_tot > plan_order_qty) { apex.confirm('Are you sure?', 'SAVE'); } else { apex.submit( 'SAVE' ); } }
Step 2: Edit the page-> Execute when loading the page-> to insert the code below
\\calculate the total on change $("input[name='f06']").change(function(){update_order_qt();})
Step 3: Change your button Save and put under the Action when the button is clicked
Action: Redirect URL
Target URL:
javascript:update_order_qty();
Hope this helps you,
Kind regards
Jitendra
-
Pop - up using javascript in dynamics of the Actions
Hi all
Before you begin with the question, I want to share the below of the details on the application
Table creation script
create table status_dashboard (ID number, name varchar2 (10), varchar2 (10) State, varchar2 (1000)) URL;
Insert the script
insert into status_dashboard values 1, 'A1', 'up', 'www.ibm.com';
insert into status_dashboard values 1, 'B1', 'up', 'www.hp.com';
"insert into status_dashboard values 1, 'C1', 'up', ' www.msn.com";
insert into status_dashboard values (1, "D1", "low", "www.yahoo.com'");
insert into status_dashboard values 1, 'E1', 'up', 'www.oracle.com';
insert into status_dashboard values 1, 'F1', 'up', 'www.facebook.com';
insert into status_dashboard values (1, 'G1', 'down', 'www.twitter.com');
"insert into status_dashboard values 1, 'H1', 'up', ' www.google.com ';
insert into status_dashboard values 1, 'I1', 'up', 'www.apex.oracle.com';
Report query
SELECT max (case when mod (rn, 3) = 1 then end name) col1
, max (case when mod (rn, 3) = 2 then end name) col2
, max (case when mod (rn, 3) = 0 then end name) col3
, max (case when mod (rn, 3) = 1 then decode (status, 'down', 'red', 'green') end) The_color1
, max (case when mod (rn, 3) = 2 decode (status, 'down', 'red', 'green') then end) The_color2
, max (case when mod (rn, 3) = 0 then decode (status, 'down', 'red', 'green') end) The_color3
, ceil ((rn) / 3)
(select name, status, row_number() on rn (order by name) of status_dashboard)
Group by ceil ((rn) / 3)
order by ceil ((rn) / 3)
Report link on Oracle Apex
https://Apex.Oracle.com/pls/Apex/f?p=54850:1
I created a matrix report, enabled the conditional formatting. The only problem I have right now is to go to a link in the report.
I use 3 text elements Apex - P1_ID, P1_NAME and P1_URL.
I use also 3 dynamic actions
1. DEFINE NAME - will set the P1_NAME field with the value clicked in the report.
2 SET ID & URL - define the fields P1_ID and P1_URL of the DB using the P1_NAME field.
3-pop-up-appears the P1_URL using javascript.
Problem statement:
The pop up page is a blank page, although I can see that the value for the P1_URL field is defined using dynamic measurements.
Could someone please take a look at this example and help me with the same.
PS: The example was developed using sample data.
Hello
When you use the substitution in JavaScript string, the value is used when page and is pretty hard-coded in the document value.
Even if you change the value of the element or the element value in session state, it will not happen to the HTML document.
In dynamic action, try something like
popupURL($v("P1_URL"))
Who will choose the value of the item and pass it to the popupURL function.
Yes, you have created, sample, but how we can view source if we are unable to connect your workspace?
Kind regards
Jari
-
dynamic titles or chapter... markers?
Hello world
I have a question: does anyone have a 'how to' on the following:
I made a video which must contain a feature, which allows viewers to skip to the next chapter. Or better said: the next question. This is a faq video, which is pretty long, and I want viewers to be able to have the opportunity to go to the next question. Therefor, I'm looking for something like the dynamic titles (like: "question 2 starts here") that pop up when you scroll the timeline.
It will not be displayed on youtube and it is also certainly not end up on a dvd. Can someone help me with a how? I have access to flash, never done anything with it. I usually work with the pp and ae. But I think that if someone wants to be good enough to describe - or point - a 'how to', I would be able to understand. Thank you so much in advance!
Sincerely, Lucy
Use the cuepoints.
Google: actionscript 3 cuepoints
-
2 running, 1 inside and 1 sql external, dynamic queries using loops and ref Cursor
Hi all
I'm under Oracle 10.2.0.2. I'm currently building dynamic sql using external and internal queries ref Cursor. Queries make use of user selected lists of ID, which is stored in a table in memory at run time. My example is as follows. From a list of book_publication_id on a web page, the user selects several books. The same user selects then several maps from a list of map_publication_id on the same web page. A book contains several maps and some of these cards will appear in more than one book (aka many many relationships).
This should then ask the following output to a new web page:
In the example above, the outer loop displays the details of the book for book_publication_id 230 and the inner loop displays all the users selected the maps in book_publication_id 230. Then, it moves on the details of the book for book_publication_id 240 and done the same thing again. Similar in some ways to how break would work in SQL * Plus, even if the table is built like an HTML, the book details must be on a separate line for the card details. However I don't know how I would want it to work.Outer loop: Display book details for book_publication_id 230 Inner loop: Display 1st map details for map_publication_id 340 Inner loop: Display 2nd map details for map_publication_id 346 Inner loop: Display 3rd map details for map_publication_id 350 Outer loop: Display book details for book_publication_id 240 Inner loop: Display 1st map details for map_publication_id 346 Inner loop: Display 2nd map details for map_publication_id 375 Outer loop: Display book details for id 255 and so on.
So far, using loops, I could not show all the details of card for each different book_publication_id, after the details of the book for only 1 book_publication_id are displayed each time. If a loop in a loop. I hope that makes sense. I think this is my internal request that it be built differently. My code for this part of the program, which is currently wrong, is as follows:
If anyone has any ideas or suggestions, I would be grateful. It is an extension of my previous code, I posted a question recently. As I am working and learning a step at a time, I left this idea in my previous question, that I had to make sure I knew that first.--Global variable section contains: var_user_chosen_map_list_ids VARCHAR2(32767); var_details VARCHAR2(32767); ...... PROCEDURE PROCMAPSEARCH (par_user_chosen_map_list_ids PKG_ARR_MAPS.ARR_MAP_LIST) IS BEGIN FOR rec_user_chosen_map_list_ids IN 1 .. par_user_chosen_map_list_ids.count LOOP var_user_chosen_map_list_ids := var_user_chosen_map_list_ids || '''' || par_user_chosen_map_list_ids(rec_user_chosen_map_list_ids) || ''',' ; END LOOP; var_user_chosen_map_list_ids := substr(var_user_chosen_map_list_ids, 1, length(var_user_chosen_map_list_ids)-1); var_details := FUNCMAPDATAFIND (var_user_chosen_map_list_ids); htp.print(var_details); END PROCMAPSEARCH; FUNCTION FUNCMAPDETAILS (par_user_chosen_map_list_ids IN VARCHAR2(32767) RETURN VARCHAR2 AS TYPE cur_type_map IS REF CURSOR; cur_book_search cur_type_map; var_book_date NUMBER(4); var_book_title VARCHAR2(32767); cur_map_search cur_type_map; var_map_date NUMBER(4); var_map_title VARCHAR2(32767); begin: OPEN cur_book_search FOR 'SELECT BI.book_date, BT.book_title FROM BOOK_INFO BI, BOOK_TITLE BT, TABLE (sys.dbms_debug_vc2coll(' || par_user_chosen_book_list_ids || ')) BL_1 WHERE BI.book_title_id = BT.book_title_id AND BI.book_publication_id = BL_1.column_value'; OPEN cur_map_search FOR 'SELECT MI.map_date, MT.map_title FROM map_info MI, map_title MT, TABLE (sys.dbms_debug_vc2coll(' || par_user_chosen_book_list_ids || ')) BL_2 TABLE (sys.dbms_debug_vc2coll(' || par_user_chosen_map_list_ids || ')) ML WHERE MI.map_title_id = MT.map_title_id AND BI.book_publication_id = BL_2.column_value AND BI.book_publication_id = MI.pub_publication_id AND MI.map_publication_id = ML.column_value'; LOOP LOOP FETCH cur_map_compare INTO var_book_date, var_book_title; var_details var_details := var_details || 'Book date: '|| var_book_date || 'Book title: ' || var_book_title; FETCH cur_map_compare INTO var_map_date, var_map_title; var_details := var_details || 'Map date: '|| var_map_date || 'Map title: ' || var_map_title EXIT WHEN cur_book_compare%NOTFOUND; END LOOP; EXIT WHEN cur_map_compare%NOTFOUND; END LOOP; RETURN var_details; END FUNCMAPDETAILS;
Kind regards
TimUsing dynamic SQL
declare dd sys_refcursor; ee sys_refcursor; d dept%rowtype ; e emp%rowtype ; begin open dd for 'select * from dept' ; loop fetch dd into d ; exit when dd%notfound ; dbms_output.put_line('Department:'||d.dname); open ee for 'select * from emp where deptno='||d.deptno ; loop fetch ee into e ; exit when ee%notfound ; dbms_output.put_line('..Employee:'||e.empno||':'||e.ename); end loop; end loop ; end ; / Department:ACCOUNTING ..Employee:7782:CLARK ..Employee:7839:KING ..Employee:7934:MILLER Department:RESEARCH ..Employee:7369:SMITH ..Employee:7566:JONES ..Employee:7788:SCOTT ..Employee:7876:ADAMS ..Employee:7902:FORD Department:SALES ..Employee:7499:ALLEN ..Employee:7521:WARD ..Employee:7654:MARTIN ..Employee:7698:BLAKE ..Employee:7844:TURNER ..Employee:7900:JAMES Department:OPERATIONS PL/SQL procedure successfully completed.
HTH
SS
-
Hello
We tried the window. ResizeTo and window. Methods MoveTo using javascript. It doesn't seem to work in version 9.0.1. Please suggest any alternative.Thank you
AvinashThis is no longer allowed for security reasons (bug 565541).
See https://support.mozilla.org/nl/questions/880032
https://developer.Mozilla.org/en/DOM/window.MoveTo -
How to change the language settings in firefox using JavaScript
My question is: how to change the language settings in the use of JavaScript in firefox:
I want to set the value of intl.accept_languages en using JavaScript.
How can I do?
EDIT: The reason mail, I want to do is to be able to run selenium for different languages test scenarios with manually change them rather progrmmetically
You will need to close and open the pref via user.js or prefs.js before restarting Firefox to perform the next test.
See:
-
How to generate QML objects using javascript?
Hello
I'm trying to generate new labels whenever the information is changed. I am aware of generate and load XML. However, I am looking for a way alternative simple generate labels or other objects using javascript. How to do this?
This page contains an example to create components dynamically:
http://developer.BlackBerry.com/Cascades/reference/bb__cascades__qmlcomponentdefinition.html
-
APEX DA validation using javascript
Hello
APEX 4.2 using (Oracle, 10 anf 11g)
I have a page and check off the items when click on the button "SUBMIT" using Javascript.
for example. I have a 10 page. P10_item1, P10_item2, P10_item3 so on. name of the button is SUBMIT.
Dynamic action: Click-> button-> action-> execute Javascript code
If ($x('P10_item1').value == "| $x('P10_item2').value ==" | $x('P10_item3').value == ") {}
Alert ('required fields can be left blank');
}
else {}
Apex. Submit ('SUBMIT');
}
ALL WORK fine, but I want to add the change of background color (field) if any field above is empty after
Click on submit. I added these to the CSS page
. Highlight-error
{
background-color: #FAE7E7! important;
color: white;
}
so, how can I use this css in my javascript code after warning message please?
Thank you very much.
Kind regards
RI
Hi RI,
(1) put that css for you have created for normal in background
Page-> css-> online
.highlight-ok { background-color: none !important; color: white; }
(2) check the else part
if ($x('P10_item1').value == '') { $("#P10_item1").addClass('highlight-error'); alert('Mandatory fields can be left blank'); } else if ($x('P10_item2').value == '') { $("#P10_item2").addClass('highlight-error'); alert('Mandatory fields can be left blank'); } else if ($x('P10_item3').value == '') { $("#P10_item3").addClass('highlight-error'); alert('Mandatory fields can be left blank'); } else { $("#P10_item1").addClass('highlight-ok'); $("#P10_item2").addClass('highlight-ok'); $("#P10_item3").addClass('highlight-ok'); apex.submit('SUBMIT'); }
Hope this helps,
Kind regards
Jitendra
-
How to get IMEI number with phonegap app by using Javascript?
Hello
I suffer on this the last 2 days to get the IMEI number in phonegap app by using javascript.
I found all things related to Phonegap with Android, but I want to get the IMEI number with phonegap app by using javascript/JQuery according to requirement.
Could you please give me the process step by step to get the IMEI number with phonegap app with javascript/JQuery?
Thanks in advance.
Thank you
Jayaram
You can use the cordova-plugin-device plugin for a UUID of the device (this api is the same on iOS, Android,...)
This isn't exactly the same as the IMEI, but it is unique enough to identify the device, while protecting the privacy of the owner of the phone.
If you need to get the IMEI, then google is your friend. This [1] was the first result when searching for "imei cordova.
There's a good stack overflow article here [2] which has the disadvantage of using this value and encourage you to consider other ways to identify users, because users cannot trust your application if you ask for this info. Read the accepted answer.
[1] GitHub - aquto/cordova-plugin-imei
[2] http://stackoverflow.com/questions/1972381/how-to-get-the-devices-imei-esn-programmaticall y-android
-
Can you create Destinations named by using JavaScript?
I am creating a menu option in Adobe Acrobat that uses JavaScript to parse through a large pdf document and create named destinations by using the titles in the document.
The titles all follow the same format unique, so I am able to identify them using regex. Once I found a title, I identify also the page it's on--and I store several times the title and the page in a table.
My plan was to create named destinations using the information stored in the array. However, I did have a lot of chance to find how to create destinations named with JavaScript.
Any input would be appreciated.
Not possible with Acrobat Javascript.
Maybe you are looking for
-
Why can I not access "Tools"?
It is suggested that I go to "tools/options/...etc" but I have no icon 'tools' at the top of my page. Can you help me to restore the correct layout?
-
Portege M800 - at startup "Please wait" message remains more than a minute.
Hello I'm French and I bought a laptop Toshiba Portege M800-10v! Currently, this pc is great! However, I noticed something disturbing. In fact: when you start Windows Vista, I get the message "Please wait", which remains for more than a minute! I fou
-
Pavilion dm1: I need help
I need help I don't know administration pAsseord or power on password what can I do
-
Satellite A50-522 - how to remove BIOS password?
Hello I have a Toshiba Satellite A50-522 of Spain and there a startup password.How can I recover the password? Or how can I reset the password to start? Thanks in advance!
-
At approximately 17:20 01/21/16, of my icloud email account Inbox suddenly emptied itself without provocation. I was looking at my Inbox on my phone when it happened. A second, it contains messages, the other, they are all gone. I checked icloud.com