How to pass column name as a values from one page to another
hi
i have created a report(pivot) from a table
SQL> SELECT * FROM T;
C1 C2 C3 D SEQ
A AA 2 1
A AB 3 2
A AC 2 3
B AB 5 4
B AC 6 5
SQL> SELECT C1
2 ,NVL(MAX(CASE WHEN C2='AA' THEN C3 END),'') AA
3 ,NVL(MAX(CASE WHEN C2='AB' THEN C3 END),'') AB
4 ,NVL(MAX(CASE WHEN C2='AC' THEN C3 END),'') AC
5 ,SUM(C3) FROM T GROUP BY C1;
C1 AA AB AC SUM(C3)
A 2 3 2 7
B 5 6 11
SQL>
my requirement in Apex is like this(reverse)
eg-
when i click on cell values '2' then,it should return
C1 C2 C3 D SEQ
A AA 2 1
{quote}how to pass column name as a values from one page to another
for example i have to pass 'c2' as a value to next page{quote}for report pivot you can reffer below link
Report
Amu
thanks for your reply
i 'm doing what exactly you mention here .
my problem here is
i have 15 columns
i am executing a query based on the values of the column(column name) in the target page
1)here i am passing(all) the column values to the next page-but i want to pass only one column values(column name)
when i click on any cell of that column
OR
2)i can pass all column name to target page -there(in the target page) i can filter out
i think option 1 would good if you filter out the unwanted columns
Regards
Amul
Similar Messages
-
Pass value from one page to another
Hi All,
"How to pass the value from one Flex page to anothere Flex
page".
In First Flex page contains One Inputtext and one button is
there.After entering the data in inputtext box,the user clicks on
the button then get the data from inputtext box and then i need to
send that value to another flex page and display there.
Can u tel me plz............
Thanks & Regards,
Nagarjuna.I believe you are thinking in terms of HTML and traditional
page coding. As an old school ColdFusion guy I understand it is
difficult to leave that behind. (at least it was for me.) Unless
you literally have two different HTML pages that each have their
own Flex app running in them you do not need to send data from one
page to the next like you would with Web Forms. (If you are doing
that you may want to simply write the data to a Shared Object, Pass
it to a server to store and then feed back into the second Flex App
when it loads or perhaps use the ExternalInterface to then pass it
through as a series of URL parameters that can be loaded into the
next Flex App.)
In Flex you do not have to worry about loosing state between
pages because there are literally no pages. Only different views.
You would not "Send" the value from one page to another. You
provide a mechanism for the second view to reference the same model
or data object (most call them ValueObjects) that the first view is
setting via the form fields.
You would want to use a ValueObject in the first VIEW and
then fill the object with the form data using setter methods on the
object. For example set the fields onChange event to call the
setter on the object and pass it the form fields value as the
property. Alternately you could bind the values of the model
directly to the fields so that they automatically obtain the data
that is being filled in.
Depending on how complex of an application you are going to
build and how scalable it must eventually be you have many
different options to choose from to allow the second View to use
the data set but the first. However to make the application
ultimately more scalable you are going to want to keep your view
separated from the controller and that separated from the
Model/ValueObject. (By seperated I mean in different classes.)
I would suggest looking up the subject of MVC in Flex and
also the Mediator Design pattern. There are many great sources of
information.
Here are a few links that may help with ideas.
http://flexblog.faratasystems.com/?p=246
http://pages.cpsc.ucalgary.ca/~heatond/mediator/
http://livedocs.adobe.com/flex/3/html/help.html?content=introbd_2.html -
Pass lov value from one page to another page
hi
can any one please help me how to pass selected lov value in one page to another page
iam able to get the lov value in controller but how to pass that value as parameter to the VO in another page.Hi,
Get the value in controller, create a hash map and put that value in hashmap.
Then pass that hashmap in pageContext.forwardImmediately method.
If you want to use that value in multiple pages, then put that in session variable.
--Sushant -
How to pass the value from one page to another page
Dear Gaurav
I have three pages
1-creation page
2-search page
3-creation page
in first creation page I have column name user write a% and submit to that search for that name.
it is going to second page (search page)name a% is passed and search that corresponding value,the corresponding values are not there user will call third creation page and enter the details and save and click back to first page the value is not calling passing from third page to first page I submit the button in 3rd page the error is coming like this.
The requested page contains stale data. This error could have been caused through the use of the browser's navigation buttons (the browser Back button, for example). If the browser's navigation buttons were not used, this error could have been caused by coding mistakes in application code. Please check Supporting the Browser Back Button developer guide - View Object Primary Key Comparison section to review the primary causes of this error and correct the coding mistakes.
Cause:
The view object xxcrmleadmgmtAM.xxcrmleadmgmtVO contained no record. The displayed records may have been deleted, or the current record for the view object may not have been properly initialized.
in first page column name I removed view instance and view attribute the value is passing from third page to first page
my requirement is the value call from 3 to 1 and user will enter remaining fields in 1st page and save the records.
Regards
MaheshHi Mahesh,
Use
OA.jsp?page=/oracle/apps/................&retainAM=Y).
Thanks
Jegan -
Passing a Value from one page to Another is not working
Hi friends,
I have a table called country in which i build a Form in page1 with a report in page2 based on the table. So iif i clicked the edit icon in the page 2 report means then it can fetch the corresponding record in the page 1 form as well(so that i can update the record in the form).
My scenario is i have one more search page in page 3 which has one page item like Country_id(text item) with a Region button "Find".
If i typed any country id in the text item and pressed Find, means then it should redirect to the form page 1 inorder to fetch those correponding country id details that i entered in the search page page 3.
For that i followed the below steps like in the search page 3
created a Find button in the page 3 with below options
Button Style: Template Based Button
Button Template: Button
Button Type: Normal
Action: Submit Page
Button Style: Template Based ButtonThen under the after Processing i created a branch condition:
On submit: After processing(After Computation, Validation and Processing)
Target Type: page in this Appliction
page : 1
Set these items P1_COUNTRY_ID
with these values: &P3_COUNTRY_ID.
(when button Find is pressed)
But the id is not passing to the page 1 from the page 3(search region) that i entered inorder to query my form in page 1 according to the value that i entered in search region in page3
kindly help me friends with this.. Hope u understand my scenario..
Brgds,
MiniHi,
Source setting for that form page item P1_COUNTRY is
Source Used:"Only when current value in the session state is null"
Source Type: Static Assignment.Since i build this form along with report.
Is im missing something.
Regards,
Mini -
Passing a value from one page to another with multiple projects?
Hi,
I am trying to do something and I am not quite sure what I may be doing wrong. Situation is this:
I have 1 project which is our Model, deployed into a .jar and imported successfully into the main project. No problems with this.
I also have another project for editing profiles, in it it contains a taskflow running off of page fragments to accomplish a CRUD design. This is also deployed and imported into our main project successfully. It has a parameter value that should be detected upon entry into the pageflow called inEntityID.
I have our main project application which has both imported .jar files into the library.
I am using the unbounded adfc-config Flow to make sure that the pages can see each other. They can.
If I use no data being sent from my main page to my edit page I can see both the main page fine and what would be a working region that is displaying the task flow from our editing project. If I attempt to send a value from my main page to the edit page it will not show up.
ADFC looks like so: MAIN goEdit>EDIT
Code snippet from my button which gathers data from the main page table to send to the edit page via action goEdit
<af:commandToolbarButton text="Edit Entity"
id="ctb3" action="goEdit">
<af:setPropertyListener type="action"
to="#{pageFlowScope.sendID}"
from="#{bindings.PseLegalEntityId.inputValue}"/>
</af:commandToolbarButton>
PseLegalEntityId is the value that I have named which is an attiributevalue from my mainPageDef which links to the primary key that I want to send to edit.
The paramenter that I have set in the region is set as such: Task Flow Binding Parameters : id* inEntityID | Value* #{pageFlowScope.sendID}
I am using Jdeveloper 11.1.1.2.0
Any insight on what I may be doing wrong would be helpful. Thanks in advance,
PSPIs more information needed to answer this? if so let me know which.
Thanks,
PSP -
Passing value from One page to another PageVO
Hi All,
I have one advance table (View Name: MainVO) in a MainPG. In each row i have messageChoice for 'ResultType',
MessageTextInput for 'ResultValue'. If I select the value 'MessageBuilder' from ResultType(messageChoice),
I opened a new window name like 'MessageBuilderPG'.
In MessageBuilderPG I can form the message. When I click the apply button in MessageBuilderPG ,
I like to set this message to 'ResultValue(MessageTextInput)' in MainPG.
So I set this value in the same row of 'MainVO'. But this is not reflected in my Advance Table.
May i get any suggestions to solve this
Thanks..............I have one advance table (View Name: MainVO) in a MainPG. In each row i have messageChoice for 'ResultType',
MessageTextInput for 'ResultValue'. If I select the value 'MessageBuilder' from ResultType(messageChoice),
I opened a new window name like 'MessageBuilderPG'.
In MessageBuilderPG I can form the message. When I click the apply button in MessageBuilderPG ,
I like to set this message to 'ResultValue(MessageTextInput)' in MainPG.
So I set this value in the same row of 'MainVO'. But this is not reflected in my Advance Table.
May i get any suggestions to solve this
Thanks..............
Hi ,
Just let me tell you what i have understood from your post.. if it is correct, i think i have the solution.
you want the message that you develop in MessageBuilderPG page to be reflected back in the 'ResultValue(MessageTextInput) in MainPG . am i right ??
If i am right then i have some questions..
is that 'ResultValue(MessageTextInput) associated with any view attrbute ?
if so then you can use entity objects to update the value of that attribute...
or
you can just send this message as parameter to the MainPG once you click the update button and using the bean corresponding to that message text you can set its value as the parameter value..
ok .. -
How to send date field value from one page to another page
Hi every one!
In my page I have a requirement....I need to select From date and Todate....based on that data has to be displayed in the table....but in my table i dont have such type of fields.....please help meI used hidden variable also but it's not useful for me. If by "hidden variable" you mean a "hidden field" (ie a text-input field in the submitting form with display=none), then that's exactly what I was thinking...
So WHY is a hidden field "not useful"? It's just that... ummm... I suspect you're doing it wrong, or maybe just not understanding how it works. So post both your JSP Pages (if they're not too big), or take the time to prepare a [Short Self-Contained Compilable (Correct) Example|http://mindprod.com/jgloss/sscce.html].
The more information you provender, the greater your chances of getting real help.
Cheers. Keith. -
Copy all values from one page to another
Dear all
i have creation page user enter all the records and save if the details are not in customer master
then user click add customer it will call to master customer page and as well as i want to copy all these fields to customer master when ever he click on add customer
how it is possible..
Regards
SreekanthHi,
before navigating to the Master customer Page...
take all the values in hashmap
hm.put("value1",value);
hm.put("value2",value2);
Pass the hashmap in pageContext.setForwardURL();
then on Master customer Page
grab the values in string variables using pageContext.getParameter
and set it on fields using
setText();
Thanks,
Gaurav -
How to pass column name at run time in function.
how to pass column name at run time in function as parameter.
thank in advance
pramod patelHello,
Using dynamic sql you can pass column name to function. well I am not getting what you really want to do ? Please write in more detail. By the way I am providing one example here. see it uses dynamic sql.
Create or replace function fun_updtest (p_columnname_varchar2 in varchar2,
p_value_number in number)
return number is
v_stmt varchar2(500);
begin
v_stmt := 'update emp
set '||p_columnname_varchar2||' = '||to_char(p_value_number)||'
where empno = 7369';
execute immediate v_stmt;
return 0;
commit;
end;
call to this function can be like this..
declare
v_number number;
begin
v_number := fun_updtest('SAL',5000);
end;
Adinath Kamode -
Im new to Sharepoint.
I need to know , how to fetch the x1 , x2 values from one form to another form x1, x2 fields, this wants to happen when 2 forms ID fields(Drop down field) are same.
ex:
first module I have 3 fields like, "Marketing ID" , "Company name" , "Vendor name".
second module I have the same related fields like "Marketing ID" , "Company name" , "Vendor name" and some more fields.
now i need to fetch the information from 1st module to 2nd module ( "Company name" , "Vendor name" ) when I select the Marketing Id(Drop down - field)
it should be want to show in Calculated columns.
Can someone make a suggestion on how I can do this.
Thank you so much for any help you may be able to provide.
Sincerely
Ahalya BabuCalculated Columns can only generate a value from fields of the current item. And only some types of fields (for example, it can't use a lookup column).
Consider using a workflow to accomplish your goal.
Scott Brickey
MCTS, MCPD, MCITP
www.sbrickey.com
Strategic Data Systems - for all your SharePoint needs -
How to pass value from one method to another method
Hi all,
I have created a funtion module and i am calling this function module inside a method and it is exporting some value in a table, now i have to pass table value to another method where i have do some thing based upon this values.
I think there a marco available to move the values from one method to another method.
Please help me in this issue.
Regards
Balaji E.Hi,
Let me make certain assumptions!
Method 1 - You export the table values
Method 2 - The method where you need the table values
Once you create a method from a function module which has tables as one of the export parameters then the code automatically puts in the macro code which looks like : SWC_SET_TABLE CONTAINER 'Table' TABLE.
The 'Table' in the above code is the container element which is created by the workflow once you use this method and the TABLE (The table that gets filled in the function module) is the variable to code automatically created.
Now you can use the other function module in the workflow as a background step and pass the values from the 'Table' container to this method using the binding. When you use this then the method automatically has the macro SWC_GET_TABLE CONTAINER 'Table' ITABLE. Here the 'Table' is the same container table you used in the binding and the ITABLE would be the variable you can use in the other function module.
Hope this helps,
Sudhi -
How to handle the date attribute,passing parameter from one page to another
hi Friends,
i want to pass data attribute from one page to another page-
i am passing like below ,in jdev log window i am getting below error.
String StatusUpdateDate = row.getAttribute("StatusUpdateDate");
params.put("StatusUpdateDate",StatusUpdateDate)
Error(121,50): incompatible types; found: java.lang.Object, required: java.lang.String
Suppose i am passing like below , while moving one page to another i am getting below error in application
String StatusUpdateDate = row.getAttribute("StatusUpdateDate").toString()
Status Update Date - JBO-25009: Cannot create an object of type:oracle.jbo.domain.Date with value:26-MAR-2009
please can any suggest me how to handle this error.
Thanks and Regards,
vamshiHi Pratap, Thanks for your help
it was my mistake that previously property it was varchar2, now i have changed as you suggested every thing. still i am getting error. this is my code-
AM CODE-
public void xxselection(String Name, String Email,String Product,String Region, DATE StatusUpdateDate)
DetailVOImpl vo1=getDetailVO1();
vo1.initQuery2(Name);
Row detailRow = vo1.createRow();
detailRow.setAttribute("Name", Name);
detailRow.setAttribute("Email", Email);
detailRow.setAttribute("Product", Product);
detailRow.setAttribute("Region", Region);
detailRow.setAttribute("StatusUpdateDate", StatusUpdateDate);
vo1.last();
vo1.next();
vo1.insertRow(detailRow);
detailRow.setNewRowState(Row.STATUS_INITIALIZED);
Controller- Process Form Request- Source page
if (pageContext.getParameter("Detail")!= null)
String Name=row.getAttribute("Name").toString();
String Email=row.getAttribute("Email").toString();
String Product=row.getAttribute("Product").toString();
String Region=row.getAttribute("Region").toString();
DATE StatusUpdateDate =(DATE)row.getAttribute("StatusUpdateDate");
HashMap params =new HashMap();
params.put(" Name", Name);
params.put("Email",Email);
params.put("Product",Product);
params.put("Region",Region);
pageContext.putTransactionTransientValue("StatusUpdateDate",StatusUpdateDate); //As you suggested
pageContext.forwardImmediately("OA.jsp?page=/xxm/oracle/apps/pos/stg/webui/DetailStagePG",
null,
OAWebBeanConstants.KEEP_MENU_CONTEXT,
null,
params,
true, // retain AM
OAWebBeanConstants.ADD_BREAD_CRUMB_NO);
another page Controller-Process request-Destination page-
String Name = pageContext.getParameter("Name");
String Email = pageContext.getParameter(" Email");
String Product = pageContext.getParameter("Product");
String Region = pageContext.getParameter("Region");
DATE StatusUpdateDate=(DATE)pageContext.getTransactionTransientValue("StatusUpdateDate");
Timestamp tstmpStatusDate=StatusUpdateDate.timestampValue();
System.out.println("tstmpStatusDate"+tstmpStatusDate);
Serializable[] parameters1 = {Name,Email,Product,Region,tstmpStatusDate};
am.invokeMethod("xxselection", parameters1);
Error - getting at while running the application page to page
No method with signature - No method with signature - xxselection(class java.lang.String, class java.lang.String, class java.lang.String, class java.lang.String, class java.lang.String)
every thing is getting passed except DATE Attribute, please check the code and update me
Thanks in Advace-
vamshi -
Passing value from one jsp to another?
how to pass value from one jsp to another? i have a value assigned in the link, i want to pass that value to another jsp page?
please help with code?Instead of the value being passed, i am getting a null value.
Here is my calendar code:
<%@page import="java.util.*,java.text.*" %>
<html>
<head>
<title>Print a month page.</title>
</head>
<body bgcolor="white">
<%
boolean yyok = false;
int yy = 0, mm = 0;
String yyString = request.getParameter("year");
if (yyString != null && yyString.length() > 0)
try
yy = Integer.parseInt(yyString);
yyok = true;
catch (NumberFormatException e)
out.println("Year " + yyString + " invalid" );
Calendar c = Calendar.getInstance( );
if (!yyok)yy = c.get(Calendar.YEAR);
mm = c.get(Calendar.MONTH);
%>
<table align="center">
<tr>
<td>
<form method=post action="calendar.jsp">
Enter Year : <select name="year">
<%
for(int i= yy;i<=2010;i++)
%>
<OPTION VALUE= <%=i%> > <%=i%> </option>
<%
%>
</select>
<input type=submit value="Display">
</form>
</td>
</tr>
<tr>
<table>
<%!
String[] months = {"January","February","March",
"April","May","June",
"July","August","September",
"October","November", "December"
int dom[] = {
31, 28, 31, 30,
31, 30, 31, 31,
30, 31, 30, 31
%>
<%
int leadGap =0;
%>
<div id="t1" class="tip"><table border="4" cellpadding=3 cellspacing="3" width="250" align="center" bgcolor="lavender">
<tr>
<td halign="centre" colgroup span="7" style="color:#FF0000;">
</colgroup>
<tr>
<td>
<%
GregorianCalendar calendar =null;
for(int j=0;j<12;j++)
calendar = new GregorianCalendar(yy, j, 1);
int row = 1 ;
row = row + j;
%>
<table>
<tr>
<colgroup span="7" style="color:#FF0000;">
</colgroup>
</tr>
<tr align="center">
<th colspan=7>
<%= months[j] %>
<%= yy %>
</th>
</tr>
<tr>
<td>Sun</td><td>Mon</td><td>Tue</td><td>Wed</td><td>Thu</td><td>Fri</td><td>Sat</td>
</tr>
<%
leadGap = calendar.get(Calendar.DAY_OF_WEEK)-1;
int daysInMonth = dom[j];
if ( calendar.isLeapYear( calendar.get(Calendar.YEAR) ) && j == 1)
++daysInMonth;
out.print("<tr>");
out.print(" ");
for (int h = 0; h < leadGap; h++)
out.print("<td>");
out.print("</td>");
for (int h = 1; h <= daysInMonth; h++)
out.print("<td>");
out.print("<a href=desc.jsp>" + h + "</a>" );
out.print("</td>");
if ((leadGap + h) % 7 == 0)
out.println("</tr>");
out.println("</tr></table></div>");
if( row%3 != 0)
out.println("</td><td>");
else
out.println("</td></tr>\n<tr><td>");
%>
</html>I need to pass the value in 'h' to the desc.jsp page.
my code for desc.jsp is :
<html>
<head>
</head>
<body bgcolor="lightblue">
<form method=post action="Calenda.jsp">
<br>
<%= request.getParameter("h") %>
<h2> Description of the event <INPUT NAME="description" TYPE=TEXT SIZE=20> </h2>
<BR> <INPUT TYPE=SUBMIT VALUE="submit">
</form>
</body>
</html>But i am not able to pass the value. The 'h' value contains all the date. i want to pass only a single date, the user clicks to the other page. please help -
Passing the values from one pgm to another pgm (Calling pgm has no sel scr)
Hi gurus,
In my requirement i need to pass the values from one program to another program.
I am using SUBMIT statement . But , the program which i am calling has no selection screen.
So how can i pass the values?
Please help me ASAP.
Regards,
Bhanu.RExport your internal tables or work areas to a memory id in ur program before u use submit.
Then in second pgm you have to import from memory id given above.
example.
EXPORT gs_header FROM gs_header to memory id 'HEADER'.
EXPORT gt_item FROM gt_item to memory id 'ITEM'.
SUBMIT YFIIN_DISHC_MAILREPORT EXPORTING LIST TO MEMORY AND RETURN.
In your second pgm you can write
import gs_header TO gs_header from MEMORY id 'HEADER'.
import gt_item TO gt_item from MEMORY id 'ITEM'.
Maybe you are looking for
-
Can't Get Hyperlink To Work From One iWeb Site To Another
I created a "family" website, including a blog page. In a recent blog, I briefly announced that my two nieces just completed a two-week adventure in the African bush. I have created a second website using iWeb which is a simple photo page. I had hope
-
I get error 998 when calling a LabVIEW buildt DLL from MSVC++
I created a DLL in LV 6.0.2. This DLL contains 39 VIs and controls. 13 of the VIs are exported, the others are subVIs, which one of them is a dynamic VI. I do not have all connectors used by defining the VI prototype in the build file for the applica
-
There has got to be something wrong with my X230 touchpad
I just received my X230 in the mail and while overall its a fantastic machine, light, capable, wonderful keyboard, sturdy, the trackpad is absolutely atrocious and I'm not sure if it's supposed to be (since many reviewers have been singing its praise
-
Hey, so about a year ago I had this problem and went to apple but they were no help at all and did nothing but it seemed to work by itself afterwards. However this past week my camera shutter has no been opening and I have looked online for ways to m
-
Move Action links to the Top on Disco viewer
Hi all ! I customized the viewer worksheet through worksheet.uix file using one of the documents from metalink. I moved the Action links from the left side of the worksheet to the top and replace the links with images. It looks awesome !! But what i