Passing Request to a POPUP LOV from previous page
Hi All,
I'm stuck again :( and its urgent..
I have a popup LOV and i want to populate values in it based on REQUEST coming from first page.
If I click CREATE on first page POPUP LOV should display certain values and if I click UPDATE on first page, it should populate different set of values.
Also when I navigate further from this page and return back, the LOV's should have values based on previous request selected.
For this I have created an item P_REQ which stores value of request from first page i.e :P_REQ wil have values CREATE or UPDATE.
Now I'm able to pass this value to a select list. However a POPUP list is not able to fetch this P_REQ value.
MY query for LOV is as below
select d1 d ,r1 r
from
(select name d1 ,ID r1,'C' up_cr
FROM Client
'WHERE statusid in (1,3)
union
select name d1,ClientID r1,'U' up_cr
FROM Client_List)
where up_cr = decode(:P_REQ,'CREATE','C','U')
ORDER BY d1
Kindly help.. Its Urgent..
Hi,
If you use that computation to set the value of P_REQ it is actually also saving it in the session. The value stored can then be retrieved by the popup LOVs query using :P_REQ so you don't need to pass the value at all as it is already available.
To see this, go to: [http://apex.oracle.com/pls/otn/f?p=33642:237] The list of employees has INSERT or UPDATE in the final column. This is used in the link on the EMPNO column as the "Request" setting. This link passes you to another page which uses the computation to set the value in P238_REQUEST (this is displayed on the screen). Then you have a link to "Open popup". All this does is open another page which has a region with a source of: Request value: &P238_REQUEST.
Andy
Similar Messages
-
Animatioin get distbub while navigation from previous page and next page
animatioin get distbub while navigation from previous page and next page
To get the value from dropdown list:
For example:
<b>In Layout</b>
<htmlb:dropdownListBox id = "country"
nameOfKeyColumn = "land1"
nameOfValueColumn = "landx"
selection = "<%=country%>"
onSelect = "displayregion"
table = "<%=iland%>" />
<b>Oninputprocessing:</b>
CALL METHOD REQUEST->GET_FORM_FIELD
EXPORTING
NAME = 'country'
RECEIVING
VALUE = country.
<i>*Reward each useful answer</i>
Raja T -
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
Amuthanks 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 -
How do I pass parameter to different portlet regions from another page?
How do I pass parameter to different portlet regions from
another page?
I have a page that with two regions. Each region has a report
that uses the same information to generate its report.
Individually running the reports, I can use p_arg_names and
p_arg_values to get what I want. However, when I run the page
that has both portlets, my .show is gone and I cannot get it to
use the p_arg_names, etc. Do you have any idea how to overcome
this? Thanks for any help.How do I pass parameter to different portlet regions from
another page?
I have a page that with two regions. Each region has a report
that uses the same information to generate its report.
Individually running the reports, I can use p_arg_names and
p_arg_values to get what I want. However, when I run the page
that has both portlets, my .show is gone and I cannot get it to
use the p_arg_names, etc. Do you have any idea how to overcome
this? Thanks for any help. -
I am developing a 2 page signup form, where the person enters their username on the 1st page and password on the 2nd.
When I test the form, FF asks to remember my password for the site - however it thinks the zipcode (field above the password) is the username on the account.
I have tried to put their username/email in a hidden field on the 2nd page, just above the password field - and that did not work.
How can i force FF to use the username from previous page when it asks to remember acct info?This website is using autocomplete=off to prevent Firefox from saving and filling the name and password.
You can remove autocomplete=off with a bookmarklet to make Firefox save names and passwords and other form data.
*http://kb.mozillazine.org/User_name_and_password_not_remembered -
Pass textbox-value to popup LOV
Hi,
I have a textbox with a popup-LOV.
Now I was wondering if it is possible to pass the text, which is written in the textbox (the returning-value textbox - not the textbox at the top of the LOV), to the popup-LOV and filter this LOV by using this text?
I know that it is possible to search by using the textbox at the top of the LOV, but it would be more userfriendly if both ways are possible.
Thanks so much,
ElisabethHi,
I tired Benz' way and it works - sometimes. I think there is a problem with the refresh of the Textbox.
I typed in a value and klicked on the popup-button. Than the whole list occurs. After trying several times (I think in between the textbox kept the value) it worked - so the popup-list was already filtered.
Now if I want to search for another value, it still keeps the value from before.
Is this a 'normal' cache-"problem"?
LISA -
Running H/F to read Header from Previous Page?
Hopefully someone has figured this one out and can share the solution with me.
I'm using Framemaker 7.1
I have a Heading (Call it HeadingX) with body text below it.
That body text carries over to the next page. On that same carry over page I also have another HeadingX.
I would like to have a running H/F that reads the Header from the prevous page ( and displays as: HeadingX continued).
I'm aware of using the +, - feature in the building block and tried the -
<paratext[-, HeadingX]
but that still reads from the current page.
is there any way to use the - with some sort of command to read back to the previous page only... to ignore instances if the HeaderX on the current page and beyond?
It seems like it should be so simple but I'm stumped.OK, I still haven't had any luck with the markers (thank you though for trying to help me).
Here's what I have:
A Heading X (with a marker) and then body that flows to a second page. On that second page, I have the Running H/F reading the marker from the previous page (displaying as: HeadingX continued)
But further down that second page, I have a new Heading X (with a marker) and body that flows to a third page.
This creates the problem because the Runing H/F picks up the new HeadingX marker on the current page.
My solution seems simple but perhaps does not exist:
I need a Running H/F that will ignore content on the current page and ONLY READ BACKWARDS to previous pages.
Is there a way for someone to program such a thing? Is there an API for Framemaker out there to do this?
This format is a requirement for MIL-STD-40051 and I can't believe I'm the only/first one to ever face this dilemma! -
How do I retain formatting from previous Pages version
As I add sections to my pages document (designed in a previous Pages version), I notice that everything is completely messed up. Pictures & text are being moved to the wrong pages...
That is due to Pages 5 having a different file format and 100 fewer features than Pages '09.
At best it alters previous files, at worst it damages them:
http://www.freeforum101.com/iworktipsntrick/viewforum.php?f=22&mforum=iworktipsn trick
Peter -
Problem passing parameter to crystal report subreport from *.aspx page
Background:
I am developing a .NET web application using Visual Studio 2005. The code behind is in VB.net. One of my asp.net pages calls a report, which is invoked when the user clicks a Print button. I have developed this report using the Crystal Reports software that is bundled with Visual Studio 2005. I am passing one parameter from the asp.net page (utilizing the VB.net code-behind on the Print button) to the Crystal report. The report consists of a main report and 5 subreports. Both the main report and the subreports use the same parameter. Both the main report and the subreports are bound to stored procedures, each of which require a parameter.
Problem:
For some reason, the parameter is not being passed from the asp.net page to the report. I am receiving the following error: "CrystalDecisions.CrystalReports.Engine.ParameterField.CurrentValueException: Missing Parameter Values." However, when I remove the subreports, the parameter gets passed, and the report is invoked with no problem.
I have read in other forums that there may be an issue with the Crystal Reports software that is causing this problem. I have downloaded and run the suggested hotfix, but the problem remains unresolved. I have tried changing the linking of my main report to the subreport, but that doesn't help either. It is possible that I am doing something wrong with the linking, as this is the first time I have developed a report with Crystal Reports. I need a workaround or definitive solution. Below is the aspx code used to call the report:
Imports System
Imports System.Collections.Specialized
Imports System.Collections.ObjectModel
Imports System.Collections
Imports System.Text
Imports System.Configuration
Imports System.Data.SqlClient
Imports System.Data
Imports System.Data.SqlClient.SqlDataAdapter
Imports System.Web.Configuration
Imports Crystaldecisions.crystalreports.engine
Imports Crystaldecisions.reportsource
Imports Crystaldecisions.shared
Partial Class OACIS_Award_or_Deny_BudgetSummary_PrintRpt
Inherits System.Web.UI.Page
Dim paramFields As ParameterFieldDefinitions
Dim paramField As ParameterFieldDefinition
Dim paramValue As ParameterValues
Dim paramDiscreteValue As New ParameterDiscreteValue
Public Shared idCase, nameRpt As String
Private PrintRpt As ReportDocument
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Try
idCase = Request.QueryString("id")
nameRpt = Request.QueryString("prtName")
Dim config As Configuration = WebConfigurationManager.OpenWebConfiguration("~/")
Dim settings As AppSettingsSection = DirectCast(config.GetSection("appSettings"), AppSettingsSection)
Dim file As String = settings.File
Dim dSource, iCatalog, userIs, passUser, appString As String
dSource = Nothing
iCatalog = Nothing
userIs = Nothing
passUser = Nothing
appString = config.ConnectionStrings.ConnectionStrings("OacisConn").ToString()
Dim AppArray() As String = Split(appString, ";")
Dim arrayLgth As Integer = AppArray.Length
Dim i As Integer
For i = 0 To arrayLgth - 1
Dim pairIs() As String = Split(AppArray(i), "=")
Dim firstItem As String = pairIs(0)
Dim secondItem As String = pairIs(1)
If firstItem = "Data Source" Then : dSource = secondItem : End If
If firstItem = "Initial Catalog" Then : iCatalog = secondItem : End If
If firstItem = "UID" Then : userIs = secondItem : End If
If firstItem = "PWD" Then : passUser = secondItem : End If
Next
Dim crReportDocument As ReportDocument
Dim crExportOptions As ExportOptions
Dim crDiskFileDestinationOptions As DiskFileDestinationOptions
Dim crconnectioninfo As ConnectionInfo
Dim crDatabase As Database
Dim crtables As Tables
Dim crtable As Table
Dim crtablelogoninfo As TableLogOnInfo
Dim Fname As String
Dim Prtname As String
Dim FPath As String
Dim crSection As Section
Dim crReportObject As ReportObject
Dim crSubreportObject As SubreportObject
Dim subRepDoc As New ReportDocument
FPath = Server.MapPath("") + "\"
Dim rptIs As String = nameRpt
crReportDocument = New ReportDocument
Prtname = FPath
Prtname = Prtname + rptIs
crReportDocument.Load(Prtname)
Fname = "C:\WINDOWS\TEMP\" & Session.SessionID.ToString & ".pdf"
crconnectioninfo = New ConnectionInfo
crconnectioninfo.ServerName = dSource
crconnectioninfo.DatabaseName = iCatalog
crconnectioninfo.UserID = userIs
crconnectioninfo.Password = passUser
crDatabase = crReportDocument.Database
crtables = crDatabase.Tables
For Each crtable In crtables
Try
crtablelogoninfo = crtable.LogOnInfo
crtablelogoninfo.ConnectionInfo = crconnectioninfo
crtable.ApplyLogOnInfo(crtablelogoninfo)
crtable.SetDataSource(Prtname)
crtablelogoninfo.ConnectionInfo.DatabaseName = iCatalog
crtablelogoninfo.ConnectionInfo.UserID = userIs
crtablelogoninfo.ConnectionInfo.Password = passUser
crtable.ApplyLogOnInfo(crtablelogoninfo)
crtable.Location = iCatalog + ".dbo." + crtable.Name
Catch ex As Exception
Response.Write(ex)
Exit Sub
End Try
Next crtable
For Each crSection In crReportDocument.ReportDefinition.Sections
For Each crReportObject In crSection.ReportObjects
If crReportObject.Kind = ReportObjectKind.SubreportObject Then
crSubreportObject = CType(crReportObject, SubreportObject)
subRepDoc = crSubreportObject.OpenSubreport(crSubreportObject.SubreportName)
For Each crtable In subRepDoc.Database.Tables
Try
crtablelogoninfo = crtable.LogOnInfo
crtablelogoninfo.ConnectionInfo = crconnectioninfo
crtable.ApplyLogOnInfo(crtablelogoninfo)
crtable.SetDataSource(Prtname)
crtablelogoninfo.ConnectionInfo.DatabaseName = iCatalog
crtablelogoninfo.ConnectionInfo.UserID = userIs
crtablelogoninfo.ConnectionInfo.Password = passUser
crtable.ApplyLogOnInfo(crtablelogoninfo)
crtable.Location = iCatalog + ".dbo." + crtable.Name
Catch ex As Exception
End Try
Next
End If
Next
Next
crDiskFileDestinationOptions = New DiskFileDestinationOptions()
crDiskFileDestinationOptions.DiskFileName = Fname
crExportOptions = crReportDocument.ExportOptions
With crExportOptions
.DestinationOptions = crDiskFileDestinationOptions
.ExportDestinationType = ExportDestinationType.DiskFile
.ExportFormatType = ExportFormatType.PortableDocFormat
End With
Dim parIDCase As ParameterValues = New ParameterValues
Dim disIDCase As ParameterDiscreteValue = New ParameterDiscreteValue
disIDCase.Value = idCase
parIDCase.Add(disIDCase)
crReportDocument.DataDefinition.ParameterFields("@ID_CASE_NMBR").ApplyCurrentValues(parIDCase)
crReportDocument.Export()
Response.ClearContent()
Response.ClearHeaders()
Response.ContentType = "application/pdf"
Response.WriteFile(Fname)
Response.Flush()
Response.Close()
System.IO.File.Delete(Fname)
Catch ex As Exception
lblMessage.Visible = True
lblMessage.Text = "Error Load
" & Convert.ToString(ex)
End Try
End Sub
End Class
Your help is greatly appreciated!Thanks for your help!
I've now gotten past the "missing parameter values" error, and the report renders fine in the report viewer. However, I've encounted another problem. The data in my main report displays correctly, but the data in my subreport does not display. Of course, when I view the report in the designer, both the main report and subreport display correctly. What am I doing wrong? Below is my vb.net code:
Try
idCase = Request.QueryString("id")
nameRpt = Request.QueryString("prtName")
Dim config As Configuration = WebConfigurationManager.OpenWebConfiguration("~/")
Dim settings As AppSettingsSection = DirectCast(config.GetSection("appSettings"), AppSettingsSection)
Dim file As String = settings.File
Dim dSource, iCatalog, userIs, passUser, appString As String
dSource = Nothing
iCatalog = Nothing
userIs = Nothing
passUser = Nothing
appString = config.ConnectionStrings.ConnectionStrings("OacisConn").ToString()
Dim AppArray() As String = Split(appString, ";")
Dim arrayLgth As Integer = AppArray.Length
Dim i As Integer
For i = 0 To arrayLgth - 1
Dim pairIs() As String = Split(AppArray(i), "=")
Dim firstItem As String = pairIs(0)
Dim secondItem As String = pairIs(1)
If firstItem = "Data Source" Then : dSource = secondItem : End If
If firstItem = "Initial Catalog" Then : iCatalog = secondItem : End If
If firstItem = "UID" Then : userIs = secondItem : End If
If firstItem = "PWD" Then : passUser = secondItem : End If
Next
Dim crReportDocument As ReportDocument
Dim crExportOptions As ExportOptions
Dim crDiskFileDestinationOptions As DiskFileDestinationOptions
Dim crconnectioninfo As ConnectionInfo
Dim crDatabase As Database
Dim crtables As Tables
Dim crtable As Table
Dim crtablelogoninfo As TableLogOnInfo
Dim Fname As String
Dim Prtname As String
Dim FPath As String
Dim crSection As Section
Dim crReportObject As ReportObject
Dim crSubreportObject As SubreportObject
Dim subRepDoc As New ReportDocument
FPath = Server.MapPath("") + "\"
Dim rptIs As String = nameRpt
crReportDocument = New ReportDocument
Prtname = FPath
Prtname = Prtname + rptIs
crReportDocument.Load(Prtname)
Fname = "C:\WINDOWS\TEMP\" & Session.SessionID.ToString & ".pdf"
crconnectioninfo = New ConnectionInfo
crconnectioninfo.ServerName = dSource
crconnectioninfo.DatabaseName = iCatalog
crconnectioninfo.UserID = userIs
crconnectioninfo.Password = passUser
crDatabase = crReportDocument.Database
crtables = crDatabase.Tables
For Each crtable In crtables
Try
crtablelogoninfo = crtable.LogOnInfo
crtablelogoninfo.ConnectionInfo = crconnectioninfo
crtable.ApplyLogOnInfo(crtablelogoninfo)
crtable.SetDataSource(Prtname)
crtablelogoninfo.ConnectionInfo.DatabaseName = iCatalog
crtablelogoninfo.ConnectionInfo.UserID = userIs
crtablelogoninfo.ConnectionInfo.Password = passUser
crtable.ApplyLogOnInfo(crtablelogoninfo)
crtable.Location = iCatalog + ".dbo." + crtable.Name
Catch ex As Exception
Response.Write(ex)
Exit Sub
End Try
Next crtable
For Each crSection In crReportDocument.ReportDefinition.Sections
For Each crReportObject In crSection.ReportObjects
If crReportObject.Kind = ReportObjectKind.SubreportObject Then
crSubreportObject = CType(crReportObject, SubreportObject)
subRepDoc = crSubreportObject.OpenSubreport(crSubreportObject.SubreportName)
For Each crtable In subRepDoc.Database.Tables
Try
crtablelogoninfo = crtable.LogOnInfo
crtablelogoninfo.ConnectionInfo = crconnectioninfo
crtable.ApplyLogOnInfo(crtablelogoninfo)
crtable.SetDataSource(Prtname)
crtablelogoninfo.ConnectionInfo.DatabaseName = iCatalog
crtablelogoninfo.ConnectionInfo.UserID = userIs
crtablelogoninfo.ConnectionInfo.Password = passUser
crtable.ApplyLogOnInfo(crtablelogoninfo)
crtable.Location = iCatalog + ".dbo." + crtable.Name
Catch ex As Exception
End Try
Next
End If
Next
Next
crDiskFileDestinationOptions = New DiskFileDestinationOptions()
crDiskFileDestinationOptions.DiskFileName = Fname
crExportOptions = crReportDocument.ExportOptions
With crExportOptions
.DestinationOptions = crDiskFileDestinationOptions
.ExportDestinationType = ExportDestinationType.DiskFile
.ExportFormatType = ExportFormatType.PortableDocFormat
End With
crReportDocument.SetParameterValue("@ID_CASE_NMBR", idCase)
crReportDocument.SetParameterValue("@ID_CASE_NMBR", idCase, "MemberName")
crReportDocument.Export()
Response.ClearContent()
Response.ClearHeaders()
Response.ContentType = "application/pdf"
Response.WriteFile(Fname)
Response.Flush()
Response.Close()
System.IO.File.Delete(Fname)
Catch ex As Exception
lblMessage.Visible = True
lblMessage.Text = "Error Load<br>" & Convert.ToString(ex)
End Try
Edited by: LaShandra Knox on Sep 17, 2008 7:59 PM -
How to populate field on page with Primary Key value from previous page
I am trying to create a patient tracking system for a group of doctors. There is an add patient form based on the Patient table (which has Patient_Id as its primary key) which branches to a pre-operative assessment form. I would like to populate the pre-op assessment Patient_Id field with the Patient_Id generated by the Add Patient page during processing, which comes from the Patient_seq sequence. How can I do this? I have tried using a computation on the Pre-Op Assessment form, but no matter what I put in, the field remains blank.
Hi,
If I understand you correctly, once patient record is created you branching to next page (pre-operative assessment form). First create a static hidden item in patient form *:PX_PATIENT_ID_COPY*.
Create an On submit after computation and validation process in patient form to get the inserted patient_id from patient table. Here is the code -
SELECT patient_id into :PX_PATIENT_ID_COPY from patient_table where rownum=1
order by patient_id descI would not use the sequence to get the current value because if the inserted record been deleted from your patient table, sequence current value would not be valid to find that record in patient table.
Basically when the record been inserted, the process get the value and put into the hidden item.
Pass the value from the hidden item to the next page by setting them in page branch. Under the Action section in the page branch, Set this items field type - *:PX_PATIENT_ID* (next page item for patient_id). Type *&PX_PATIENT_ID_COPY.* in the with these values field. Make sure you include dot(.) after *&PX_PATIENT_ID_COPY*.
Give it a try now. Hope it would helps.
Regards,
Tajuddin
Blog: http://aspblog.whitepagesbd.com
web: http://tajuddin.whitepagesbd.com -
Pass string array to Oracle function from Web page
Hi. I need to pass a two-dimensional array of string values to an Oracle function from an ASP.NET page. Is there an efficient way to accomplish this? I'm thinking I'll have to create a long string with special delimiters,
|12345^4.000|67890^3.670|.....
I'd parse the string on Oracle and break it into its component parts. In this example, each "record" is separated by the bar "|" and each field is separated by the up arrow "^". So each record has two fields.
Is this a good approach? Your input is much appreciated. Thanks.In PL/SQL, it is easy enough to define a record type with two attributes and declare a store procedure that takes in an array of those parameters. I know that from Java it is possible to create and pass in such an array. I would suspect that the same is possible from .Net but I am not a competent .Net developer.
Justin -
Readonly table with where clause value from previous page
Hi
I am using jdeveloper 10.1.3.
I have a globalhome page where the user enteres a reference number. i have a backing bean for the globalhome page that runs a method to run an sql that seraches for this reference number, if the reference number exsits the user is directed to a detail page.
this detail page should display details of this reference number.
i have set up a read only table to display this data based on a view object with a bind varaible in the where clause.
however i am unsure how to set this bind varaible value to the reference entered in the first globalhome page.
please can anyone advise how to do this.
regardsHi,
You can follow following steps to achieve this
1) Write a custom method in your Application module like
public void executeMyVO(String bindVarValue)
MyVOImpl vo= getMyVo();
vo.setNamedWhereClauseParam(<bind variable name decalred in VO>,bindVarValue);
vo.execute();
2) Expose the above method to client. (Right click AM-->Client-->Shift method from left to right)
3) In the pagedef of globalhome page, create a method action for the aboce created custom method
4) execute the method action from your backing bean after you run an sql that seraches for this reference number.
Hope this help.
Vikram -
How to get the value from one Popup lov column to another popup lov column
Hi,
I am new to oracle apex development and having the below issue.
In my application, there is a tabular form with 15 columns ( c1.. c15).
I have to populate the value of column C5 based on the selected(from popup lov) value of column C3, tried to use onchange, but didn't help much.
Any help please.
Thanks and Regards,Oh boy, this is a fun one.
onchange should work theoretically (in this example, assume that f05 is the target column that should be set and "this" is the source item whose value is to be transferred to f05 on the same row (row 2)):
onchange=$s('f05_0002',$v(this));
BUT the catch is of course that needs to be different for every row (can't hardcode the '2'), so you need something to dynamically create the row number component.
I wrote this for an app I'm working on that uses master-detail forms heavily (I also wrote a lot more code to read the fmap array that is in v4 so that I can reference my cells via their column name and not the numeric position (so "f05 can be determined w/o hard coding), insulating against columns moving around, columns being made display-only etc. but I won't bore you with that here unless you really need to know).
function getRow(pObj)
{ //Pass in an object reference to a tabular form cell and get back an integer
//derived from the object ID.
var vRow=pObj.id.substr(pObj.id.indexOf("_")+1);
if (isNaN(vRow))
return (null);
return (parseInt(vRow,10));
function formatRow(pRow)
{ //Pass in an integer and it'll be returned as the tabular form cell ID suffix
//(e.g.: pass in 1 and get back string "_0001").
//Used in building ID references to tabular form cells.
if((isThingEmpty(pRow)) || (isNaN(pRow)))
return(null);
var vRow=pRow.toString();
while(vRow.length<4)
vRow="0"+vRow;
return("_"+vRow);
}Therefore:
onchange=$s('f05_'+formatRow(getRow(this)),$v(this));
So in essence, pass in "this" which will be a reference to the current item, largely to determine what row we're on. getRow will return 1, 2, 3, etc. formatRow will take that and return 0001, 0002, 0003, etc. Once that is done, it'll concatenate with the f05 and f04 to refer to the correct columns (determining f05, f04, etc. dynamically is another matter if you really need to but I didn't want to complicate this answer too much at once).
Note: above I also use a isThingEmpty() function that I wrote. It does nothing other than check the item for an empty string, if the item is null, etc. Just do your own evaluation of empty-string, no-value, etc. there.
It would indeed be nice though if Apex had a better way to delclaratively access the tabular form items though. Despite all the v4 enhancements, tabular forms were not entirely upgraded to the same full functionality of page items. -
Passing data from calling page to popup window
Hi All,
We are developing a BSP application for business card.I need to provide a preview button .
when the user clicks this button a
poopup window should open with the preview of business card.
My problem is how to pass the values like name , designation etc from the main page to popup window.
The code for previre image:
<h t m l b : i m a g e s r c = " s _ b _ d e tl . g i f " a l t = " P r e v i e w C a r d " o n C l i c k="addr" on C l i e n t C l i c k = " c a l l W i n d o w ( ) ; "/>
<s c r i p t t y p e = " t e x t / j a v a s c r i p t ">
f u n c t i o n c a l l W i n d o w ()
w i n d o w .o p e n ( " p r e v i e w . h t m " ) ;
</s c r i p t >
preview.htm is a simple HTML page . i need to pass values from main page to this page.
OR
Is it possibel to restrict the size of a VIEW to use it as a popup window?
OR
is there any other way to achieve this like.. the <bsp:call comp_id=" " />
tag , but i have no idea how to use it.
Thanks,
Anubhav.
Edited by: Anubhav Jain on Sep 12, 2008 3:38 PMHi Raja,
I did as suggested by you...but it is behaving strangely.
It works fine in debuging mode but when executed directly ....it is not working.
the scenario is:
Thers an image for preview as follows:
<htmlb:gridLayoutCell columnIndex="3" rowIndex="13">
<htmlb:i m a g e s r c = " s _ b _ d e t l . g i f " a l t = " P r e v i e w C a r d " o n C l i c k = " a d d r " o n C l i e n t C l i c k = " c a l l W i n d o w ( ) ; " / >
</htmlb:gridLayoutCell>
The JS code is:
f u n c t i o n c a l l W i n d o w ( )
<%
data: title(5),
fname(20),
lname(20),
comp(20),
addr(20),
city(20),
state(20),
pcode(20),
country(20),
phone(20),
fax(20),
email(241).
alt_addr-title = request->get_form_field( 'title' ) .
alt_addr-firstname = request->get_form_field( 'fname' ) .
alt_addr-lastname = request->get_form_field( 'lname' ) .
company = request->get_form_field( 'comp' ) .
alt_addr-street = request->get_form_field( 'addr' ) .
alt_addr-city = request->get_form_field( 'city' ) .
alt_addr-region = request->get_form_field( 'state' ) .
alt_addr-inhouse_ml = request->get_form_field( 'pcode' ) .
alt_addr-country = request->get_form_field( 'country' ) .
alt_addr-tel1_numbr = request->get_form_field( 'phone' ) .
alt_addr-fax_number = request->get_form_field( 'fax' ) .
alt_addr-e_mail = request->get_form_field( 'email' ) .
CALL METHOD cl_bsp_server_side_cookie=>set_server_cookie
EXPORTING
name = 'FORMFIELDS'
application_name = runtime->application_name
application_namespace = runtime->application_namespace
username = sy-uname
session_id = runtime->session_id
data_value = alt_addr
data_name = 'alt_addr'
expiry_date_rel = 1.
%>
w i n d o w . o p e n ( " . . / z _ b i z c a r d / p r e v i e w . h t m " , " W i n E " , " w i d t h = 2 4 0 , h e i g h t = 3 0 0 , t o o l b a r = n o , r e s i z a b l e = no ")
I was doing something similar...created a controller and a view , was calling the controller from window.open method with all other parameters for sizing etc.
How to pass a structure conatining data,from controller to the view...
Now in the onCreate event of the page PREVIEW.HTM in using;
CALL METHOD cl_bsp_server_side_cookie=>get_server_cookie
EXPORTING
name = 'FORMFIELDS'
application_name = runtime->application_name
application_namespace = runtime->application_namespace
username = sy-uname
session_id = runtime->session_id
data_name = 'alt_addr'
CHANGING
data_value = alt_addr.
and in the layout of PREVIEW.HTM in am using this alt-addr:
But if put a break point at the onCreate event of preview.htm and the execute i get the values in alt_addr but if i execute directly...it is empty in the layout?
What is the problem?
Thanks,
Anubhav. -
I am trying to restore my ipad from previous back up. itunes requests a password, it is none of the passwords I have used in the last decade any ideas to get around this?
The password would be either your iTunes ID password or your admin password for the Computer.
MJ
Maybe you are looking for
-
Items with zero stock quantity show negative stock value in Stock reports
When running Stock reports for controlling the stock value towards the GL accounts, some items appear with zero stock quantity, but the report still shows a stock value (negative value in my case) How can this happen, and how can I correct this situ
-
Doubt WEB.SHOW_DOCUMENT
HI Forms and Reports 10g How can I previow one report before print in printer? like forms and report 6i. Marcos
-
Safari crashes behind Microsoft ISA proxy \ Authenticating to MS services
I recently updated to Leopard but I'm experiencing multiple issues with Safari. Whenever I'm at the office Safari crashes repetitively whenever I try to access a site requiring authentication (mainly Microsoft based). at the office . This issue start
-
Update CF 7.0.0 to CF 7.0.2 Server
I'm currently running CF 7.0.0 server. Can I still get it updated to CF 7.0.2? I could not find the update anywhere in this site. Please help me with this.
-
Hi All, i want to know in which table stores all the errors information for opportunities in CRM. Thanks