How to Get the value when clicking on the link
I had a problem with when clicking on the link.
I need get the link value to the controller when clicking on the link.
I am displaying the database columns in jsp using repeater in links.
I am displaying the data like this:
RED
BLUE
GREEN
these are three links.when clicking on the link RED. RED should go to the controller.
After getting RED to the controller i will get the RED value from the database.
my requirement is like that only
I have just given the example of emp and dept
emp(empno,zone_group_id,zone_id,deptno,ename,emp_p_ind,last_update_datetime);
dept_emp(empno,dept_no,loc,dname,sal_emp,grade,last_update_datetime);
CREATE OR REPLACE VIEW emp_zone AS
SELECT e.empno,
(select zone_group_id from price_zone_group where rownum = 1) zone_group_id,
d.loc zone_id,
d.grade,
d.last_update_datetime,
FROM dept_emp d
emp e
WHERE d.empno=e.empno
AND e.emp_p_ind = 'Y'
WITH READ ONLY;
Now
my requirement is to get the data of emp_zone view and needs to store those data into some other temp table
if any of the above base table got updated deleted or inserted then the view last_updatetime also will get updated but problem is why im not using base table
direct because it is having huge data and it performance issue .i have to get the value on the basis of view only and using some logic
Similar Messages
-
Why does my form data gets cleared out when clicking on the back button.
Can someone explain why does my form selections get cleared out when clicking on the back button.
I have a JSP page that displays a form with some selections and text boxes. I populate the page and submit the request. The action on the submit call another jsp page, which processes the data and displays the results via a <jsp:include> statement which calls the results page. When clicking on the back button from the results page, it returns me to the form page, but the selections are cleared out.
1. Is there something in my calling of the pages that causes this behavior and can I prevent it?
I notice that the behavior is different when using the IE 6.0 version Netscape 7.1. IE clears the page Netscape 7.1 retains the settings.
If I cannot prevent this behavior does that mean I will have to save the state of the form data. And if I have to save the form data, what would be the easiest method of doing this. I'm a beginner to JSP and Java, but have some ASP experience. I don't understand why the back button in a JSP request clears the form data but a regular HTML page does not can someone explain?
THANKS.the browser doesn't have to remember what you submitted and fill that back in.
you can't prevent it unless you can ensure a new request to the server in which you can fill the default values in there. -
PDF stored in database and to view the PDF when clicking on a link
Is it possible to save a PDF document in the database as a blob column and to retrieve the PDF when clicking on the link
Example
Above method is possible for images
See: http://www.oracle.com/technology/obe/apex/apex31nf/apex31blob.htm.
But can I reach the same for PDF documents?
Thanks in advance for your response.
Kind regards,
IloonHello Andy,
This Upload and Download Files is very useful feature in APEX.
However, is there a way of displaying PDF files first in the report by clicking the corresponding link
in the table?
I mean, is it possible to view PDF files first by clicking the link before deciding to download them?
As we see, this approach is used by most websites and after opening and viewing a PDF file, we can save them.
Thanks.
Shurick.
Edited by: Shurick on Sep 28, 2009 12:51 PM -
Xml: how to get node value when pasing node name as a parameter
Hi,
I've got some xml:
var xmlData:XML =
<1stNode>
<buttonID>first child node value</buttonID>
<imageID>second child node value</imageID>
<labelID>third child node value</labelID>
</1stNode>
Then I want to read specific node value based on a value passed to a function. .
var buttonID = new Button;
var imageID = new Image;
var labelID = new Label;
getNodeValue(buttonID); //the value here is set dynamically
private function getNodeValue (nodeName:String):void {
trace (xmlData.nodeName) //doesn't work
var str:String = "xmlData." + nodeName;
var xml:XMLList = str as XMLList //doesn't work
I'm don't know how to get the value when node name is dynamically changed.use:
getNodeValue(buttonID); //the value here is set dynamically
private function getNodeValue (nodeName:String):void {
trace (xmlData[nodeName]) -
How to Get checkbox value when List value changed in classic report
hi ,
i worked with apex 4.2 and i create normal classic report with one checkbox column and one column change it to select list(named loved) now i want when user change list
take value of checkbox item and show it in message .
SQL for report
SELECT
'<INPUT TYPE="checkbox" NAME="f01" VALUE="'
||SEQ
||'">' SEQ,
ID,
DEPT_NO,
EMP_NAME} i change the column attributes of Dept_NO to Display as Select list of department name (named lov).
now i want when user change name of department the value of SEQ SHOW IN ALERT MESSAGE
i create JavaScript on the page
function test(pThis) {
var f01_value = $('select[name="f01"]').value;
alert('#SEQ : '+ f01_value);
</script>
I call this javascript function when list change but the value undefined..
My Question :
How can get this value Or any value of item in reports
regards
AhmedHi Ahmed,
>
i worked with apex 4.2 and i create normal classic report with one checkbox column and one column change it to select list(named loved) now i want when user change list
take value of checkbox item and show it in message .
SQL for report
SELECT
'<INPUT TYPE="checkbox" NAME="f01" VALUE="'
||SEQ
||'">' SEQ,
ID,
DEPT_NO,
EMP_NAME} i change the column attributes of Dept_NO to Display as Select list of department name (named lov).
>
You should not create checkboxes like this. Either use the APEX_ITEM.CHECKBOX2 API or change the Column Type to Simple Checkbox.
>
now i want when user change name of department the value of SEQ SHOW IN ALERT MESSAGE
i create JavaScript on the page
function test(pThis) {
var f01_value = $('select[name="f01"]').value;
alert('#SEQ : '+ f01_value);
</script>
>
name="f01" returns an array, what you need is single element value.
Try
<script type="text/javascript>
function test(pThis) {
var f01_value = $v(pThis);
alert('#SEQ : '+ f01_value);
</script>
{code}
{quote}
I call this javascript function when list change but the value undefined..
My Question :
How can get this value Or any value of item in reports
{quote}
Depends in how you are invoking/triggering the change event. Are you using DA or have you written an "onchange" event on the element?
Cheers, -
Today I discovered that when I was in facebook, and clicked on a link, anywhere, I would get a blank window and then another window would open up and have the links information on it. Things are really slow with this happening. I've checked out the popup tab, and I don't have it checked. There is nothing in the list either. PLEASE help me get rid of this problem. I have uninstalled firefox and reinstalled it. Would downloading an older version help?? Thank you for any help you can give me.
Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance).
*Do NOT click the Reset button on the Safe mode start window or otherwise make changes.
*https://support.mozilla.org/kb/Safe+Mode
*https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes -
How to get sequence value on click of button in OAF Page
Hi all,
I have a requirement to get a field called Bankrefernece number populated with sequence value on click of apply button ; i mean inserting new record in database for new transaction.
Sequence Value should be something like this:
Example
No Transfer Date Bank Reference Number
(DDMMYY_999)
1 24-Oct-2010 241010_001
2 24-Oct-2010 241010_002
3 25-Oct-2010 251010_001
means every day sequence should start with the date initials.
Kindly give your valuable input.
Thanks
Sims
Edited by: sims on Jan 4, 2011 11:22 PMsims wrote:
Hi Anil,
Its a standard page & i want it on click of apply button but my question is when i click apply button it navigates to other page..is it possible in such scenario to extend the controller.
Thnx for ur suggestion
SimsThat is not an issue, you can extend the controller of that page and get the value of sequence and set it to the VO attribute.
Thanks
--Anil
http://oracleanil.blogspot.com -
How to set item values when redirecting to the same page.
I just created a redirect button that I want to redirect to the same page and set the 2 page items on the page to the same value they had before the redirect.
But I can't write:
Set These Items: P1_Permit_Number,P1_Fishing_Year
With These Values: &P1_Permit_Number.,&P1_Fishing_Year.
Because there are no values in the session state, since a submit has not been done.
So how do I do this?
I know how to get the values stored in the items, e.g., $v('P1_PERMIT_NUMBER')
but where do I place that command? It's not allowed under "With These Values"
And I don't really want to make this a submit button and create a process that says:
P1_PERMIT_NUMBER := $v('P1_PERMIT_NUMBER') because that would complicate the page too much -- I already have other processes and branches on the pages whose conditions would have to be modified so that they don't run during this scenario.
Thanks.Thanks Gary and Andy. I rewrote the function according to above instructions:
function redirectToURL()
var permitNumber = document.getElementById('P1_Permit_Number');
var fishingYear = document.getElementById('P1_Fishing_Year');
var url = 'f?p=&APP_ID.:1:&APP_SESSION.::::P1_Permit_Number,P1_Fishing_Year:' + permitNumber +',' + fishingYear;
window.location.href = url;
But when I entered a value for permit number and fishing year and redirected, the word "null" appeared in the Permit page item, instead of the permit number that I had entered.
Remember that I am not submitting here. So if the syntax you showed me, i.e. getElementById('P1_Permit_Number'), searches for the item's session state, then it will be wrong, since there is no session state value for the items at this point. Perhaps that is the reason I got the null?
If so, what can I do? -
How to get MessageTextInput Value when rendered property is set to false.
Hi
Is there any way wherein i can get the value of the data populated in the messageTextInput field which has it's rendered property set to false.When I use pagecontext.getParameter("textboxname"),i can fetch the value at the time of LOV event..but once my lov event is done and I hit the go button,pagecontext.getParameter("textboxname"), returns me null.
Can anyone suggest me how can I track the value?
Thanks
PujaSetting rendered to false would make the bean not to be available in the HTML so you cannot do a getParameter on the bean.
if you want to read a value that is like a hidden field, try using formValueBean instead.
Thanks
Tapash -
Getting a error when clicked on the EWA report
Hi All,
I am getting the below error when i click on the EWA report.
Error: &EA1000000002570&: Attribute not found: &TEXTPARAM& &check_244_comment&, Program SAPLDSVAS_PROC, Include LDSVAS_PROCERI, Row 48hi
pls refer the thread
[Ealry watch alert report is not displayed in solution_manager|Ealry watch alert report is not displayed in solution_manager]
and
[Re: EWA report is not displayed in solution_manager|Re: EWA report is not displayed in solution_manager]
jansi -
How to get 3d coordinated by clicking on the universe?
Hi!
I've realized a simple java3d program generates a 3d graph from an XML file.
Once created the 3d universe, I need to get the coordinates (x,y,z) of the objects on which I click with the mouse.
Currently my class can only recognize what kind is the object on which I click.
Here is the source of class:
public void mouseClicked(MouseEvent e)
pickCanvas.setShapeLocation(e);
PickResult result = pickCanvas.pickClosest();
if (result == null) {
System.out.println("Nothing picked");
} else {
Primitive p = (Primitive)result.getNode(PickResult.PRIMITIVE);
Shape3D s = (Shape3D)result.getNode(PickResult.SHAPE3D);
if (p != null) {
System.out.println(p.getClass().getName());
} else if (s != null) {
System.out.println(s.getClass().getName());
} else{
System.out.println("null");
I'm new in the 3d programming and probably the code is not perfect ..
Can someone kindly help me?
Thanks in advance!
JacopoHi,
in the code below v gets the position of the Node (Shape and Primitive are both Nodes).
Node n = result.getNode();
Transform3D t = new Transform3D();
Vector3d v = new Vector3d();
n.getLocalToVworld( t );
t.get( v);Edited by: leha23 on Oct 2, 2008 7:47 AM -
Sending an email as part of the process when clicking on the 'Save' Button.
Would like to learn how to do this:
Do you have a purchase card () Yes () No
~~~~~~~~~~~~~~~~~~~~~~~~~~
If the user selects 'Yes', I want to send an email as part of the process when the user clicks 'Save'.
But I also have an item, P2_EmailSent that I would like to flag as being sent, along with the date it was sent, P2_DateEmailSent.
Then, after a week (check P2_DateEmailSent) from date it was sent, send it again.
Please let me know if you need more details?hi Zahid Khan,
as said i tried the same.
i have created a button "send" action :submit.
and also have created a process"send mail" with the folloing code
DECLARE
l_body CLOB;
BEGIN
l_body := 'Thank you for your interest in the APEX_MAIL package.'||utl_tcp.crlf||utl_tcp.crlf;
l_body := l_body ||' Sincerely,'||utl_tcp.crlf;
l_body := l_body ||' The APEX Dev Team'||utl_tcp.crlf;
apex_mail.send(
p_to => '[email protected]',
p_from => '[email protected]',
p_body => l_body,
p_subj => 'APEX_MAIL Package - Plain Text message');
APEX_MAIL.push_queue;
END;
and , Process Success Message as "done" and When Button Pressed (Process After Submit When this Button is Pressed): "SEND" WITH Process Point : "ON SUBMIT AFTER COMPUTATIONS AND VALIDATION"
The process is running.., getting the """success message""" but unable to""" get the mail""".(tried different combinations of mail ids)
any help !!! -
How to Open GUI Transaction when clicking in Hyper Link
Hello All,
I want to open GUI Transaction when user will click on Hyper Link created in a particular column in a table view. For that I have created Transaction Launcher ID using Transaction Launcher Wizard. Then what will be the next step, i'm not getting. Can anybody help me out on this?
Thanks in advance,
MadhusudanHi,
Here is the sample code:
DATA: lr_navigation TYPE REF TO if_crm_ui_navigation_service.
lr_navigation = cl_crm_ui_navigation_service=>get_instance( me ).
CHECK lr_navigation IS BOUND.
lr_navigation->navigate( iv_link_id = 'ZLINKID' ).
-ASB -
How to show entire TOC when clicking a CSH link
I am maintaining 2 separate help projects for 2 separate
applications. Both use map files and ids to open csh topics. There
is a main help link in the header of the application that is
supposed to open the entire help file, including the table of
contents, with the focus on the first page of the help.
In the one application, I have the link in the header going
to the map id for the first page of the help, and the entire help
file opens, including the TOC. In the other application, I have the
link in the header going to the map id for the second page of the
help (the other help project), and instead of the entire help
opening, I just get the csh page I linked to without the TOC. I
need the header link to open the entire help. Any suggestions? I
know that one project is looking for the first page of the help and
the other project is looking for the second page, but does that
really make a difference? I remember having this project link to
the first page before, and the entire help didn't open then either.
I don't know why it would function differently for the different
apps/projects, as they are set up identically.
I hope this makes sense.We have had this exact same issue, the TOC sometimes not
opening when WebHelp is launched from a CSH link. The behavior is
inconsistent, as you've indicated.
I've searched and found no solutions, and Adobe appears to
not recognize it as an issue.
Frankly, this and a number of other issues we're having are
leading me to lean towards dropping RH altogether. It is simply too
buggy. -
Not appear the value when i execute the report
Hi, what reasons could be:
appear "#" instead a value for example "100", but only forthe records of the last load, the other records of another loads are ok, the report show
Infoobject value = 200
KF = 1,
but for the last record in the query
Infoobject value = #,
KF= 1
in the cube exist this record, it not must be # , is 100, the only thing that i did was change an attr Nav, of this infoobject, just mark the check of lowercase allowed,
i dont know what can i do to solve this problem that i made i m sure because i execute this report yesterday and it was ok....
helpi reactivate the Master data,
i was checking and this Infoobject has 10 records in the cube and in the KF that i evaluate has record 1 = 1, record 2= -1, you know, and the others records that appears in the report has just 1, i guess this happend because i run the Delta load twice, i have just to load only one record trought Repair load and now appear ok in the report, but the problem is i can do this repair for all the records because it works with delta, and the delta works wrong....
Maybe you are looking for
-
Generic cursor type // generic datatype
Hi, I would like to dynamically declare a cursor in my procedure and retrieve rows from it for firing insert / update statements on another table. The procedure should take a table_name in VARCHAR2 and use it to declare a cursor like: procedure thisP
-
Adobe Reader PDF Desktop Icons No Longer Thumbnail Images
Hi... I am running Windows 7 Home Premium x 64 - and thanks to a fix for this I found somewhere a while ago, it's been working fine for the longest time. In the past week, I see that my Adobe Reader desktop icons are no longer thumbnail images - the
-
Directing home page to servlet
We use Netscape 3.6 and iPlanet 4.1 as web servers, and Tomcat 3.3.1 as servlet engine. I am writing a servlet for a mobile site that identifies user agent to generate the appropriate mark up language for the device (WML/HDML/HTML and etc). I am unab
-
Can't get matching xdb6.jar, xmlparserv2.jar and ojdbc6.jar
No matter what I try, they are always somewhat different and I'm getting exceptions with JDBC on either setSQLXML or on .getString() once I retrieved the SQLXML object and want to get the content back or I'm downright getting "oracle.xdb.XMLType cann
-
I have been using Safari to access a gmail account for about a year. Today, I got a message that Safari is no longer supported by gmail and I need to upgrade. But I'm using the latest version of Safari. as far as I can tell. Anyone else getting