How to pass the values from popup window to parent's window
Hi Experts,
in my application i need to develop one popup window in that i have created 4 dropdowns and one ok button , if i willl click on that ok button the values should pass to parent window dropdownlistboxes
can any body suggest how i will get the popup window values
thanks in advance,
ramani.
Hi Ramani,
I can provide few inputs on how can we control JSP 2 from JSP1.
Here is the code. Check if you can convert this to make useful to you. I am not passing values but control.
here it is:
JSP 1.
<h1>Page One</h1>
<br>
<a href="/irj/portalapps/<PAR_FILE_NAME>/images/<HTML_PAGE_NAME>.html#part1">part 1</a>
<br><br><br>
<a href="/irj/portalapps/<PAR_FILE_NAME>/images/<HTML_PAGE_NAME>#part2">part 2</a>
<br><br><br>
<a href="/irj/portalapps/<PAR_FILE_NAME>/images/<HTML_PAGE_NAME>#part3">part 3</a>
JSP 2.
<h1>Page Two</h1>
<br>
<a name="part1">
<h3>Part 1</h3>
</a>
<a name="part2">
<h3>Part 2</h3>
</a>
<a name="part3">
<h3>Part 3</h3>
</a>
This way you can move from one JSP to other.
regards
-Kedar Kulkarni
reward points if useful.
Message was edited by:
Kedar Kulkarni
Similar Messages
-
How to get the values from popup window to mainwindow
HI all,
I want to get the details from popup window.
i have three input fields and one search button in my main window. when i click search button it should display popup window.whenever i click on selected row of the popup window table ,values should be visible in my main window input fields.(normal tables)
now i am able to display popup window with values.How to get the values from popup window now.
I can anybody explain me clearly.
Thanks&Regards
kranthiHi Kranthi,
Every webdynpro component has a global controller called the component controller which is visible to all other controllers within the component.So whenever you want to share some data in between 2 different views you can just make it a point to use the component controller's context for the same. For your requirement (within your popups view context) you will have have to copy the component controllers context to your view. You then will have to (programmatically) fill this context with your desired data in this popup view. You can then be able to read this context from whichever view you want. I hope that this would have made it clear for you. Am also giving you an [example|http://****************/Tutorials/WebDynproABAP/Modalbox/page1.htm] which you can go through which would give you a perfect understanding of all this. In this example the user has an input field in the main view. The user enters a customer number & presses on a pushbutton. The corresponding sales orders are then displayed in a popup window for the user. The user can then select any sales order & press on a button in the popup. These values would then get copied to the table in the main view.
Regards,
Uday -
How to pass the value from Sub report to main report
I have un report(mainreport) within a subreport(subreport).
With reporting services, how to pass the value from Sub report to main report?
thanksHi Alebet,
With reporting services to pass values from sub report in to main report is not supported directly.
But there are some workarounds through which you can get this .
There are two ways to get this.
1- Put your sub report query into some table. i mean to say through the subreport query get some temporary table.
2- Using this temporary tables data write some Scala function in the data base.
3- Now in your main report query return this scala function as a column.
4- Extract the column value where ever you want in your main report which is getting calculated from the subreport query. so you will be getting the values returned from the subreport in the main report.
This will definitely work fine as i have done some report in this way.
Another way of doing is that
1- prepare another data set with the same query as in sub report in the data tab.
2- then refer this 2nd dataset in your main report .
But better way will be the top one.
Anyway please let me know if you get the solution.
Thanks
Mahasweta -
How to pass the values from the Wb Dynpro Application to the SAP Backend ?
Hi All,
Good morning..,
I have scenario like:
I want to pass the values from the web dynpro appication to the SAP Back end R/3 Table. IN backend the RFC is writtn to accept the structure input from the Webdynpro.
Upto know I imported the corresponding RFC and maaped to the View.
How to proceed with the coding to save the data...
PLease suggest...
Regards and Thanks in Advance,
CSPHi Pradeep
Steps:
1. First create an instance for bapi and bind the instance to the bapi node.
Z<bapi name> zb=new Z<bapi name>();
wdContext.nodeZ<bapi name>. bind(zb);
2. Then if u have the import parameter u have to set them by using
The instance of the above bapi.
Zb.set<import parameters>;
3. If the bapi has a table parameters then the structure for the table parameters will also be imported
In the model class.
4. Set the table parameters by creating the instance for that structure and using this instance set it.
Z<Struct>itm tab=new Z<Struct>();
Tab.set<table parameters>
5. Then add the structure instance to the bapi instance.
Zb.add(Tab);
6. Then Execute the bapi after setting the import parameters.
7. If there is any export parameters, then get the values after execution.
Look at this thread for codes
Re: RFC call on click of button
Regards,
Arun -
How to pass the value from JSP or HTML to Applet
Plz reply ....How can we pass the value from the JSP Page or from HTML page to Applet embedded in same page....
Hi,
<applet codebase = "."
archive = foo.jar"
code = "com.bar"
name = "bar"
id = "bar"
width = "<%=Request["width"] %>"
HEIGHT = "<%=Request["appHeight"] %>"
hspace = "0"
vspace = "0"
align = "middle"
alt = "Applet is Loading..."
>
<param name="LANGUAGE" value="<%=Request["lan"] %>">
<param name="LOGOUT_USER_URL" value="EndSession.asp">
<param name="DATA_READ_INTERVAL" value="10000">
<param name="REFRESH_INTERVAL" value="5000">
<param name="DEFAULT_FONT" value="Arial">
</applet>
pass values @ ur html or jsp page to Applet as parameters.
Refer above code. By using getParameter() method of Applet, u can take values inside applet. -
How To Pass the value from JSP to Applet
plz reply how can we pass the value from the JSP to Applet ...the applet is embedded in JSP page....
Hi,
<applet codebase = "."
archive = foo.jar"
code = "com.bar"
name = "bar"
id = "bar"
width = "<%=Request["width"] %>"
HEIGHT = "<%=Request["appHeight"] %>"
hspace = "0"
vspace = "0"
align = "middle"
alt = "Applet is Loading..."
>
<param name="LANGUAGE" value="<%=Request["lan"] %>">
<param name="LOGOUT_USER_URL" value="EndSession.asp">
<param name="DATA_READ_INTERVAL" value="10000">
<param name="REFRESH_INTERVAL" value="5000">
<param name="DEFAULT_FONT" value="Arial">
</applet>
pass values @ ur html or jsp page to Applet as parameters.
Refer above code. By using getParameter() method of Applet, u can take values inside applet. -
How to pass field value from popup window to oninput processing of other pg
Hi,
I want to pass a field value from the popup window to oninput processing of main page ( from where popup window is triggered). and need to close the popup window. How to do it ?
In the popup window's oninputprocessing, im doing some validation checks. If it passes all the validations, then only the control shd come to main page ..else it should stay in popup window only .
Regards,
Jothi.Hi Jothi,
you can use java script to pass the value and close your popup window. use the following code.
in your popup window:
function passData(h1)
window.opener.document.getElementById('var1').value = h1 ;
window.close();
then call this function when you finish your validations.
in your main page layout create an input field with id as passed in the function above "var1".
In the value attribute give it your variable as follow:
<htmlb:inputField id = "var1"
value = "<%= var2 %>"
visible = "false" />
"var2" will be assigned the value from your popup window.
I hope this will help you..
Regards,
Husain -
How to pass the values from one screen to another
HI,
consider me21n,
po is created with the item category L,so components tab is enabled.that u all know.
i have added the custom tab in the item details with netwt,gross wt,no of pieces and one more field.
those fields are also in component structure of material data.
i need to pass the matnr,maktx,quantity,ntwt,grosswt from the component to be displayed in the subscreen.
i used import mdpm to xmdpm from memory id 'subcon', where it is exported from the function module 'me_components-maintain'.
how to pass all the values from component of structure MDPM to the subscreen of custom tab in the item details.
help me pls........................'hi everyone,
MODULE status_0111 OUTPUT.
data : fill type i.
SET PF-STATUS 'xxxxxxxx'.
SET TITLEBAR 'xxx'.,
DESCRIBE TABLE lt_zzmm_po_comp LINES fill.
ctrl_0111-lines = fill.
ENDMODULE. " STATUS_0111 OUTPUT
MODULE fetch_data OUTPUT.
ctrl_0111-lines = 2.
import xmdpm to lt_xmdpm from memory id 'SUBCON'.
IF not sy-subrc eq 0.
CLEAR lt_zzmm_po_comp[].
LOOP AT lt_xmdpm.
MOVE-CORRESPONDING lt_xmdpm TO lt_zzmm_po_comp.
APPEND lt_zzmm_po_comp.
ENDLOOP.
MOVE-CORRESPONDING lt_zzmm_po_comp TO ctrl_0111.
read table ctrl_0111-cols into col where index = 3.
ENDIF.
ENDMODULE. " FETCH_DATA OUTPUT
MODULE pass_line OUTPUT.
READ TABLE lt_zzmm_po_comp INDEX ctrl_0111-current_line.
MOVE-CORRESPONDING lt_zzmm_po_comp TO ctrl_0111.
ENDMODULE. " PASS_LINE OUTPUT
flow logic
PROCESS BEFORE OUTPUT.
MODULE status_0111.
MODULE FETCH_DATA.
loop at lt_zzmm_po_comp WITH CONTROL ctrl_0111 cursor
ctrl_0111-current_line.
module pass_line.
endloop.
PROCESS AFTER INPUT.
MODULE USER_COMMAND_0111.
loop.
*module read_data.
endloop.
but i cant see my fields in the table control .....i dont know y it is not coming?can anyone help me with code... -
How to pass the value from sub report to sub report
how i want get one value from sub report to sub report..
can i do this one...
how can get the value.
i know main report to sub report
i tried that way but
value is 0.00 is comming
Any reasons.Hi Try this.
Create a formula like this in subreport1 (from the report where you want to pass your value)
Whileprintingrecrods;
Shared Numbervar x :={subreport1Value};
Then go to 2nd sub report and Create a formula like this
Whileprintingrecrods;
Shared Numbervar x ;
Note :Your sub report1 should execute before sub report2 .That means sub report1 should be in the above section of sub report2 -
How will read the value from Adobe Reader/Viewer in c# windows App
I m using VS2005 . working in windows appliction. i am using adobe Reader 9, Then the new pdf document open inside the Acrobat adobe reader , Exsiting PDF file is created by Adobe Forms(Adobe LiveCycle designer and Adobe pro 9).
Using the Class is:
1.AcroExch.App
2.AcroExch.AVDoc
3.AcroExch.pdDoc
4.Acrobat.CAcroApp
namespace is:
using AxAcroPDFLib;
using AFORMAUTLib;
using Acrobat;
Using DLL is:
1. Interop.Acrobat
2. Interop.AcroPDFLib
3. Interop.AFORMAUTLib
4. AxInterop.AcroPDFLib
My problem is,
I am Working in
PDFis open inside the adobe reader/Viewer, but i can not able to get the value from PDF Forms.
( This Pdf forms is Some more Control Design is Available)
Ex:
I have Attached my Pdf disgn file. Please see this Pdf file.
I am not able to get the value from inside window(adobe Reader/Viewer), but i can able to get the value from the out side of adobe viewer/Reader.
This coding not working properly,
try
CAcroAVDoc AcroExchAVDoc = default(CAcroAVDoc);
CAcroApp AcroExchApp = default(CAcroApp);
CAcroPDDoc oDoc = default(CAcroPDDoc);
AFORMAUTLib.AFormApp AFormAut = default(AFORMAUTLib.AFormApp);
AFORMAUTLib.Field Field = default(AFORMAUTLib.Field);
AFORMAUTLib.Fields Fields = default(AFORMAUTLib.Fields);
bool OK = false;
AcroExchApp = new AcroApp();
oDoc = new AcroPDDoc();
AcroExchAVDoc = new AcroAVDoc();
AFormAut = new AFormAppClass();
//AcroExchApp = (Acrobat.AcroApp)Activator.CreateInstance(Type.GetTypeFromProgID("AcroExch.App" ));
//oDoc = (Acrobat.AcroPDDoc)Activator.CreateInstance(Type.GetTypeFromProgID("AcroExch.PD Doc"));
//AcroExchAVDoc = (Acrobat.AcroAVDoc)Activator.CreateInstance(Type.GetTypeFromProgID("AcroExch.AV Doc"));
//AFormAut = (AFORMAUTLib.AFormApp)Activator.CreateInstance(Type.GetTypeFromProgID("AFormAut .App"));
bool bOK = AcroExchAVDoc.Open(pdfWindowLeft.src, "Temp"); ' some time not true
' if ok (true) then
if (bOK)
Fields = (AFORMAUTLib.Fields)AFormAut.Fields;
foreach (Field myField in Fields)
if (myField.Name == "form1[0].#subform[0].Id[0]") ' field value not get from the inside window
string Id = myField.Value; ' not getting a answare
if (myField.Name == "form1[0].#subform[0].PatientName[0]")
string PatientName = myField.Value;
if (myField.Name == "form1[0].#subform[0].Email[0]")
string Email = myField.Value;
if (myField.Name == "form1[0].#subform[0].PhoneNo[0]")
string PhoneNo = myField.Value;
if (myField.Name == "form1[0].#subform[0].Address[0]")
string Address = myField.Value;
catch (Exception Ex)
lbl_Result.Text = Ex.Message;
finally
Conn.Close();
This coding is working properly,
try
String FORM_NAME = addressLeft.Text;
//String FORM_NAME = Application.StartupPath + "\\..\\..\\..\\..\\..\\TestFiles\\SampleForm.pdf";
// Initialize Acrobat by cretaing App object.
CAcroApp acroApp = new AcroAppClass();
// Show Acrobat Viewer
acroApp.Show();
// Create an AVDoc object
CAcroAVDoc avDoc = new AcroAVDocClass();
// Open the pdf
if (!avDoc.Open(FORM_NAME, ""))
lbl_Result.Text = "Cannot open" + FORM_NAME + ".\n";
return;
// Create a IAFormApp object, so that we can access the form fields in
// the open document
IAFormApp formApp = new AFormAppClass();
// Get the IFields object associated with the form
IFields myFields = (IFields)formApp.Fields;
// Get the IEnumerator object for myFields
IEnumerator myEnumerator = myFields.GetEnumerator();
bool bFound = false;
// Fill the "Name" field with value "John Doe"
while (myEnumerator.MoveNext())
// Get the IField object
IField myField = (IField)myEnumerator.Current;
// If the field is "Name", set it's value to "John Doe"
// form1[0].#subform[0].Name[0]
if (myField.Name == "form1[0].PatientInformation[0].Id[0]")
//form1[0].#subform[0].Id[0]
bFound = true;
lbl_id.Text = myField.Value;
//form1[0].#subform[0].Name[0]
if (myField.Name == "form1[0].PatientInformation[0].PatientName[0]")
bFound = true;
lbl_name.Text = myField.Value;
if (myField.Name == "form1[0].PatientInformation[0].Email[0]")
bFound = true;
lbl_email.Text = myField.Value;
if (myField.Name == "form1[0].PatientInformation[0].PhoneNo[0]")
bFound = true;
lbl_phoneno.Text = myField.Value;
if (myField.Name == "form1[0].PatientInformation[0].Address[0]")
bFound = true;
lbl_address.Text = myField.Value;
can u anyone help me. It's very urgent for my project.
Thanks for ur replay,
Regards
Ganesaselvam.IFirst off - the code you wrote won't work with Reader, it will only work with Adobe Acrobat.
Second, LiveCycle Designer-based forms are a special type of PDF and don't use AcroForms, they use an XML-based forms grammar. Therefore, the AcroForms API calls aren't designed to work with them. You should be using the JSObject bridge code along with JavaScript to access the values of the fields. -
How to pass the value from DB in Approval Policy Rule OIM 11g R2
Hi,
I need to get the value of rule condition in Approval policy from DB.
Please let me know how to achieve this. I am using OIM 11g R2.
ThanksHow to passing the textbox value within the jsp page
without using javascript or reload the page.No, jsp executes on the remoter server, the text box is on a client machine, you need to send information to the server over the network, http does this with a request, which will reload the page..................... -
How to pass the values from internal table to field groups
hi all,
how can i pass the internal table values to field groups?
already field groups are holding some values.. INSERT STATEMENT IS NOT WORKING as it is ovewriting the existing values..
Use full answers will be rewared.
Thanks.
Moderator message - duplicate post locked
Edited by: Rob Burbank on Jun 23, 2009 9:51 AMHi,
You can use INSERT statement to put a work area of an Internal table in Field-group
and use Extract to get info out of it.
Hope it helps,
Raj -
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 -
How to pass the value from z-program to screen
Hi,
I have created a Z-report which is displaying the data according to the selection screen,but while going to click on 1 pushbutton,it should call z-transaction.
My problem is how i will pass the selected data to my screen.suppose i have selected 1 material no.,i want to pass the material no. to my matnr field in my screen(which is already present in my screen)HI.
Create SET PF-STATUS 'STATUS'.like as follows.
1 .double click on 'STATUS1' create pushbutton by appilcation tool bar.
2 .In fuction attributs ,In fuction code give your t-code.
3.In Fucntion type give T.
Eg:
module STATUS_1001 output.
SET PF-STATUS 'STATUS1'.
SET TITLEBAR 'TITLE1'.
endmodule. " STATUS_1001 OUTPU
It will helpfull u.
Regards.
Jay -
How to pass the value from one level to another level
Example :
we have secnario for leave process
initiall the user enters the name in first action the personal number should pick from first action to background RFC CO to pick the Payroll admin from R/3
i designed the first data input form.... i want to pick the personal number and pass that one to next action in background mode.
thanks in advance
sukumarHi,
If you want to execute the step in background then you can use the callable object of type "Background Execution" or if you want to do any user interaction on that step then you can go for web dynpro callable object. Here is the link for Background Execution callable object.
http://help.sap.com/saphelp_nw70/helpdata/en/9a/e8934258a5ca6ae10000000a155106/frameset.htm
Here is also link for Web Dynpro Callable Object
http://help.sap.com/saphelp_nw70/helpdata/en/de/8976417f2d5558e10000000a1550b0/frameset.htm
If you have any conficution please let me know.
Thanks
Chandan
Maybe you are looking for
-
Hirerachical display in ALV report
Hi all, I am using Fm as following for hirerachical display. CALL FUNCTION 'REUSE_ALV_HIERSEQ_LIST_DISPLAY' EXPORTING i_interface_check = ' ' i_callback_program = sy-cprog is_layout = ls_layout
-
6303i - display settings not saved!
Hello - I have updated my 6303i to the latest firmware from the nokia site. Everything works fine but now any chance I make to my display settings (e.g. wallpaper) are not saved, i.e. the change is being populated until the next reboot of the device.
-
Fetching fields from Purchase Order - ME21N
Hi, I need to fetch the 'Delivery Date', 'Scheduled Qty', 'Committed Date', 'Committed Quantity', 'Material Availability Date' ' Goods issue Date' for a Purchase order. The tcode is ME21N. From which table can i get these fields, as F1 help on these
-
Hi experts, I need to upgrade my ERP 11.510.2 to R12. Please suggest some ID or link to do the same. second please let me know which version of R12 I can upgrade max to max from 11.5.10.2 thanks in ADV
-
I need to import a 6 page PDF file into a 20 page indesign cc 2014 operating on a macbook pro. The PDF is not on individual pages. Please help. Nancy