How to retain search values after submit in a result table
Hi, i have search page with a autoCustomizationCriteria query region.
In a simple search panel there are three messageChoise search items.
When the search is performed a result table is displayed together with a cancel and a submit button.
After submitting the changes in the result table a dialogpage is displayed and then returning to the search page.
The mesageChoise values in the search region are now all reset to default.
How can i retain the search values so that i can requery the page showing the updated values of the resulttable?
Code in PFR:
if (pageContext.getParameter("Submit") != null)
OAApplicationModule am = pageContext.getApplicationModule(webBean);
am.invokeMethod("apply");
// get message
OAException confirmMessage = new OAException("XX","XX_SOME_MSG_CONFIRM");
OADialogPage dialogPage = new OADialogPage(OAException.CONFIRMATION,
confirmMessage, null, APPLICATION_JSP +
"?page=/xxx/oracle/apps/xx/xx100/apps/webui/SearchPG", null);
// Note that we release the root "UI" application module
// so we can correctly handle any subsequent "Back" button
// navigation and attempts to resubmit the PO transaction.
pageContext.releaseRootApplicationModule();
pageContext.redirectToDialogPage(dialogPage);
Regards SG
Thanks but i've already tried to remove the
pageContext.releaseRootApplicationModule();
but it does not help.
Actually after pressing the start button in the query region and the data is shown in the result table, the following can be seen in the URL of the browser:
192.168.1.151:8988/OA_HTML/OA.jsp?page=/xxx/oracle/apps/xx/xx100/apps/webui/SearchPG&searchType=search&fwkSTSearchrPG__QueryRN=search&_ti=1151125721&retainAM=N&addBreadCrumb=N&oapc=10
So even before i submit the changes in the result table AM seems to be lost, but I'm not sure where the retainAM=N is initiated and where to override it. Any help would be appreciated.
Regards SG
Similar Messages
-
How can I search the last line in an internal table?
How can I search the last line in an internal table?
With a describe?? If it is , how can I do that?
Thanks!!Hi shilpa,
it seems to be you are NEW to SDN. welcome. if you want to get solutions to your Questions, you have to post a NEW thread.dont use the existing thread to post your question.
any way i am giving you the solution for your question
LOOP AT ITAB WHERE F1 = <SOME VALUE>
F2 = <SOME VALUE>.
ENDLOOP.
IF SY-SUBRC = 0.
ITAB WILL HAVE THE LAST RECORD which satisfying the given criteria in WHERE clause of LOOP.
write itab <--this ITAB will have the last record.
ENDIF.
regards,
Srikanth.
Message was edited by: Srikanth Kidambi -
How to eliminate select message after Radio button in ADF tables
how to eliminate select message after Radio button in ADF tables
example <f:facet name="selection">
<af:tableSelectOne>
</af:tableSelectOne>
</f:facet>
output:
radobutton select
radiobutton select
please help me regarding this issue.Hi,
this usually has a text String in the header saying "Select and .." which can be changed through the property inspector for the TableSelectOne component
Frank -
Af:query search page i have, in my result table on command is there ,i.e ID
af:query search page i have, in my result table on command is there ,i.e ID
when i am clickeing on a ID ,regarding id related details EDIT page i want display.
i need code and process of this USECASE.
Please replay ASAPUser, without a jdev version and an understandable user case we can't help.
Timo -
How to retain variable values across a BPEL Process?
Hi All,
I've created a BPEL process using number of variables. Out of these I've a common variable with name processorBO that is required for calling every service. But after calling a service, I lose values inside processorBO and it gets filled with the new values.
Can anyone tell me how to retain the processorBO values across complete process so that, I can use the required values at appropriate places ?
Thanks in Advance
Regardswell...you could always use the transformations to do the assign, or if you want to use just the assign activity to set the response values from the service to the 'global variable' you could use something like
<copy>
<from variable="inputVariable" part="payload"
query="/client:testProcessProcessRequest"/>
<to variable="globalVariable" part="payload"
query="/client:testList[1]"/>
</copy>the [1] will assign your values to the array-part of the variable.
This does the same as a for-each in your xsl transformation. -
How to update CheckBox value change in report in DB table
Hi;
I have created a tabular form & added a check box in my Select statment...also i created a procedure On Submit to update my table according to the checkbox values..
My problem is that the update statment is updating the whole records in the form not only the changes which i done
Any one can give me the key for the update statment?
Regards;
EhammadDid any one tried to implement the same example of dkubicek?!! i tried to do the same code but i have problem (f011) should be identified!!!
does any1 have any idea about kind of this error?
Regards; -
How to use one form to submit data to 2 tables on mysql
Can someone please help me on this,
I am developing a jsp website and I want to use one form to submit data to 4 tables on mysql database and the tables are related by one foreign key.
Can someone bail me out of this ....I've hit a hard brick wall!!!!...kwesij wrote:
Can someone please help me on this,
I am developing a jsp website and I want to use one form to submit data to 4 tables on mysql database and the tables are related by one foreign key.
Can someone bail me out of this ....I've hit a hard brick wall!!!!...What's the problem? What does a brick wall look like?
Connect to the database and execute four SQL INSERT/UPDATE statements as a single unit of work. The fact that you have one form shouldn't be an issue.
I'll bet you're having trouble because you haven't layered the problem either in code or in your mind.
I'd recommend that you write a POJO to take in some objects and execute the SQL. Once you have that running successfully you can worry about the form. Decouple the two.
Computer science is all about decomposing large problems into smaller ones.
% -
How to implement 'Quick Select' column in a query result table?
Hi,
I have a requirement in OAF to design a search page with 'Quick select' column.
One of the column in the query result table should be a quick select.
Once user clicks on the quick select column, we have to navigate back to the previous page with the row value selected.
Can anyone help me in this.
Thanks.Also refer the search exercise in the toolbox tutorials.
you can implement the quick search in the same way as update and delete buttons.
--Prasanna -
Question: How do I retrieve values after creating an autofilter.
So the question is sort of simple but my code is below, this is my first time really running in VBA but it isn't so far all to dissimilar to LotusScript which I am a bit more knowledgeable in. What I am trying to do is retrieve values from the filtered information,
or more simply, I am trying to retrieve values from two cells in the spreadsheet that I want move together.
As noted below one of them is a countries field which simply concatenates the country string with the duplicates with the same first column (A#) fields.
Example 123 .. UK
123 .. US
123 .. CA
The output stored in countries would be UK,US,CA and posted to sheet3.
Sub proFirst()
Dim wSheet As Worksheet
Dim columnCount As Integer
Dim rowCount As Long
Dim testVar As Long
Dim coll As New Collection, a
Dim Assignee() As String
Dim tmpList() As String
Dim newVar As Variant
Dim dict As Object
Const rowDataBegin = 2
Dim count As Long
rowCount = Sheets("Sheet1").UsedRange.Rows.count
columnCount = Sheets("Sheet1").UsedRange.Columns.count
'** This Cleans up the filtering to ensure all data is viewable before we begin **
Sheets("Sheet1").Activate
If (ActiveSheet.AutoFilterMode And ActiveSheet.FilterMode) Or ActiveSheet.FilterMode Then
ActiveSheet.ShowAllData
End If
Sheets("Sheet3").Activate
If (ActiveSheet.AutoFilterMode And ActiveSheet.FilterMode) Or ActiveSheet.FilterMode Then
ActiveSheet.ShowAllData
End If
'** This sets a filter to filter by column O which is designated as Submitted Date **
Sheets("Sheet1").Columns("A:S").AutoFilter Field:=15, Criteria1:="<>"
'** This block copuies and pastes the values we need for the final report however **
'** this is not a permenent viewable format for the report, a recut may be required **
Application.CutCopyMode = False
rowCount = Sheets("Sheet1").UsedRange.Rows.count
Sheets("Sheet1").Range("A1:D" & rowCount).Copy Sheets("Sheet3").Range("A1:D" & rowCount)
Application.CutCopyMode = False
Sheets("Sheet1").Range("J1:J" & rowCount).Copy Sheets("Sheet3").Range("H1:H" & rowCount)
Application.CutCopyMode = False
Sheets("Sheet1").Range("O1:O" & rowCount).Copy Sheets("Sheet3").Range("I1:I" & rowCount)
Application.CutCopyMode = False
'loops through the first column and acquires all of the data and generates as string array
rowCount = Sheets("Sheet3").UsedRange.Rows.count
columnCount = Sheets("Sheet3").UsedRange.Columns.count
ReDim Assignee(rowCount)
ReDim tmpList(rowCount) 'helper variant to make it smoother for recall of lines
For i = rowDataBegin To rowCount
Assignee(i - rowDataBegin) = CStr(Sheets("Sheet3").Cells(i, 1).Value)
tmpList(i - rowDataBegin) = rowCount
Next i
Set dict = CreateObject("Scripting.Dictionary")
For i = LBound(Assignee) To UBound(Assignee)
If dict.exists(Assignee(i)) Then
dict.Item(Assignee(i)) = dict.Item(Assignee(i)) + 1
Else
dict.Add Assignee(i), 1
End If
Next i
Sheets("Sheet3").Range("$A$1:$I$" + CStr(rowCount)).RemoveDuplicates Columns:=1, Header:=xlYes
rowCount = 2
Application.Workbooks(1).Worksheets("Sheet3").Activate
'** Header values Change as needed
Sheets("Sheet3").Cells(1, 5).Value = "Completed Global Questionnaire? (Yes or No)"
Sheets("Sheet3").Cells(1, 6).Value = "Number of Countries"
Sheets("Sheet3").Cells(1, 7).Value = "Name of Countries Submitted"
For Each v In dict.keys
If dict.Item(v) > 0 And v <> "" Then
Sheets("Sheet3").Cells(rowCount, 6).Value = dict.Item(v)
rowCount = rowCount + 1
End If
Next v
Sheets("Sheet3").Columns("A:I").AutoFilter Field:=6, Criteria1:=">1", _
Operator:=xlAnd
'** BEGIN TESTING AREA
'** Stage 2 Test Complete - able to retrieve a list of how many rows are in use
'** Stage 3 test - retrieve countries
Sheets("Sheet1").Activate
count = 2
For Each v In dict.keys
countries = ""
rowCount = 0
If dict.Item(v) > 1 Then
With ActiveSheet
Set rnData = .UsedRange
With rnData
.AutoFilter Field:=1, Criteria1:=v
.Select
'xlCellTypeVisible = 12
For Each rngArea In .SpecialCells(xlCellTypeVisible).Areas
tmp = .SpecialCells(xlCellTypeVisible).Rows
Next
For Z = 2 To rowCount
If countries = "" Then
countries = .Range("I" & Z).Value
Else
countries = countries & ", " & .Range("I" & Z).Value
End If
Next Z
End With
End With
Sheets("Sheet3").Cells(count, 7).Value = countries
End If
count = count + 1
Next v
'** Testing block **
Sheets("Sheet3").Columns("A:I").AutoFit
MsgBox "End loop"
The code below is only semi-tested but it should give you the idea of how to loop through the visible data of an AutoFiltered Range. You can't use code like "For r = 2 to Rows.Count" because the code stops after the first non contiguous row. However,
you can use For Each loop to loop through the rows and get the row number from there.
An explanation of the code to set rngVisible. (Note that a space and underscore at the end of a line is a line break in an otherwise single line of code.)
With .AutoFilter.Range This is the entire AutoFilter Range (Includes column headers, visible and non visible rows)
.Offset(1, 0) Moves down one row off the column headers but now includes an additional row at the bottom below the data. (Still includes visible and non visible rows)
.Resize(.Rows.Count - 1, .Columns.Count) Removes the additional row due to Offset (Still includes visible and non visible rows)
.SpecialCells(xlCellTypeVisible) Only include the visible rows.
Sheets("Sheet1").Activate
For Each v In dict.keys
countries = ""
If dict.Item(v) > 1 Then
With ActiveSheet
Set rnData = .UsedRange
With rnData
.AutoFilter Field:=1, Criteria1:=v
End With
'Note that AutoFilter.Range is an inbuilt object variable _
for the entire range covered by the AutoFilter
With .AutoFilter.Range
'Following tests if any rows (other than column header) are visible _
in the AutoFilter.Range. If > 1 then more than just column headers. _
Attempting to set the rngVisible will error if not at least one row _
of visible data.
If .Columns(1).SpecialCells(xlCellTypeVisible).Cells.Count > 1 Then
'Assign the visible data to a range variable
Set rngVisible = .Offset(1, 0) _
.Resize(.Rows.Count - 1, .Columns.Count) _
.SpecialCells(xlCellTypeVisible)
Else
MsgBox "No visible data. Procesing terminated."
'Left for you to handle what you want to do if the _
filter does not exist in the data and no visible rows present
Exit Sub
End If
End With
'Loop through the rows of rngVisible
'and get the row numbers
For Each rngRow In rngVisible.Rows
Z = rngRow.Row
If countries = "" Then
countries = .Range("I" & Z).Value
Else
countries = countries & ", " & .Range("I" & Z).Value
End If
Next rngRow
End With
End If
Next v
Regards, OssieMac -
How to change field values AFTER Inbound IDOC Posted successfully
Hi SAP Experts,
In my project I receive the inbound IDOC PORDCR05 from PI and posted as an Purchase Order in ECC.
I create the Z process code and Z function module (which is a copy version of IDOC_INPUT_PORDCR) and complete all the necessary configuration steps. It works perfectly.
My problem is: I have to collect some inbound idocs (that satisfied some criteria) and change the value of field EKPO-TXJCD and EKKN-KOSTL of the PO AFTER it posted successfully (means the purchase order is created and save in database).
How can I do this? I've try to put the logic code in Z function module, but it does not work, since at that time, the Inbound IDOC is not updated to the database yet.
Aprreciate your advise.
Regards,
Elaine.Hi Elaine ,
as per your cretiria pick the idocs and take created PO# from status 53 & use the BAPI (BAPI_PO_CHANGE) to change the neccessary values in the PO. We can't reprocess those idocs again.
Reddy -
How to update hidden item after submit of multi tab form
Hi everyone,
I have a multi tab form which is being used to insert records into a table. One of the columns I have included in the form source is 'hidden' and i want this item to be populated with the current date and time for each row, when I press the submit button. I have tried to achieve this by creating a PL/SQL process on the Page with the following details:
Process point: 'On Submit - After Computations and Validations'.
Source: :P5_DATE_ENTERED := :SYSDATE_YYYYMMDD;
However, when I test the Page I get the following error on pressing Submit:
'Error ERR-1002 unable to find ID for item P5_DATE_ENTERED...'
So, I'd be very grateful if anyone can advise me as to how to achieve this basic functionality,
cheers,
Kevin.Hi,
Thanks for the reply, I had considered that and I think that probably is the best approach. However, I'd like to know why my method of trying to do it in APEX doesn't work as it seems such a simple thing to want to do,
regards,
Kevin. -
How to retain selected value in apex_item.select_list?
Hi,
I've a report region query-
select distinct col1, col2,
APEX_ITEM.HIDDEN(2,col3)||
APEX_ITEM.SELECT_LIST(1,'No_Action','Valid;Y,Invalid;N') Action
from <tab1>
When 'Y' (valid) selected from the select list and SUBMIT is clicked - a validation and then page processing pl/sql process will run for the record, branching to the same page.
If validation fails custom error message comes on screen, but value of column "Action" is reset to default 'No_Action'.
Can anyone please tell me how can I show the last selected value in column "Action"?
Please reply asap. Regards.To be able to show the last selected value you need to make the value persistent, that is update it in some column in the table.
So the next time the report is run (refreshed) it fetches the value from the table/column . Then change your query to something like
select distinct col1, col2,
APEX_ITEM.HIDDEN(2,col3)||
APEX_ITEM.SELECT_LIST(1,NVL(COL_YN,'N'),'Valid;Y,Invalid;N') Action
from <tab1>COL_YN is the column where you stored the last selection. Unless you store it in some table/column you cannot get it back into the report when it is refreshed.
The other way of course is to use APEX_COLLECTIONS , but that might be more complex.
However, you need to think whether you really need the APEX_ITEMs API for this? If you just edit the Report Attributed and Edit the column definitions you might be able to achieve the same thing without having to use APEX_ITEM.
Regards, -
In OA Framework, How to retain a session after moving to some other page??
Hi All,
I am developing a page in OA Framework. In this i have developed a search page on which user provides search criteria & look for results. After getting results, user submits or saves the data & move to next page.
Now user wants to move back to previous page with all the same query that he entered for previous search.
Can anybody help me, what i have to do to maintain that session or anything else to achieve that functionality.
Thanks & Regards
NishaQueryBean would have been the ideal choice, but since you have already implemented the search, you can do what Mitishka has suggested.
So when you move to any other page, you need to retain the AM (true) and when you move back from that page to the search page, you need to retain the AM and navigate back.
Idea is , not to lose the AM from your search page.
Thanks
Tapash -
How to change action message after submit
Please advise.
I'm new to APEX and Oracle for that matter. I've got a form that is being displayed with no data after pressing a <CREATE> button from interactive report(Page 1).
I fill in the data and when I press <Save Changes> button from Page 2, internally the data is processed on insert and a trigger assigns a new Serial Number. When the screen branches back to same page, all data keyed goes away and is ready for my next add. However, what I would like is to be able to show the new serial number in the action message which defaults to "Action Processed". I'd like to be able to post the serial number followed by "added successfully".
The item on the screen is P2_SERIALNUMBER and the database column is SERIALNUMBER. The serial number is created by a trigger, therefore the P2_SERIALNUMBER is just a disabled text fiield saving state.
in the submit process, I tried setting an alert script where the current default message("Action processed") is, referencing the P2_SERIALNUMBER item but I don't think the new serial number generated from the trigger is populating the item.Thanks for the expeditious reply Matt.
Apparently, did not work. I have a dozen or so fields for update on this page(2). There is an autonumber PK called PROBLEMID(hidden on form as item P2_PROBLEMID). The field I want displayed in the action message is P2_SERIALNUMBER. I tried returning the value to a secondary key on the ARP screen and tried using the message you gave me, but upon pressing <Submit Changes> button it just echoed back the message you gave me literally with no data substitution for the argument &P2_SERIALNUMBER. I also tried an alert statement in the message field using <script>alert(html_getElement('P2_SERIALNUMBER').value + " added successfully")</script>. What I got back after pressing the <Submit Changes> button is an alert message that said "false added successfully". So I don't know if the code is wrong or that nothing is getting sent back to item P2_SERIALNUMBER(defined as text field with state) and therefore returned it "false". Any more ideas would be gladly appreciated. -
How to change SessionTimeOut value after deployed war file in SunAPP Server
Hi Guys,
Any one can help and give some guidence How i can change the session time out value in web.xml after deployed the file on sun one application server.This is the code given below which i have to change the time of session from 5 minutes to 1 minute.
<session-config>
<session-timeout>5</session-timeout>
</session-config>
Regards,
Suresh.Babu.Ramagani.For SunOne session configuration is in the sun-web.xml.
http://docs.sun.com/app/docs/doc/820-2207/abxcz?a=view
-steve
Maybe you are looking for
-
Download Tab Delimited file from spool!
Hi Experts, Is there any way to download tab delimited txt file from spool? Spool is created for Statements and Invoices from Sap Script and Smartform which is in OTF format. I am able to download this in Text file but I need this file in tab delimit
-
Dynamic Trim - mixing roll and ripple
Hi, I have a several layers in my Premiere timeline. I would like to trim the cuts using dynamic trimming. Can I mix types of edit while trimming? For example on layer 1 the cut needs to ripple, while on layer 2 it needs to roll. I was able to do tha
-
Is the Apple TV 2 supposed to be synced with iCloud or MM?
I listen to podcasts from my Mac but when I go to the podcast section of the ATV2 I see the same podcasts as unwatched. It seems like an obvious opportunity to do some syncing, right?
-
Hello There, I'm an LMS Administrator trying to load a course (built with ppt slides) into my LMS. I've tried many variations of the publisher settings. There is an imbedded quiz (weighted) along with 3 survey questions(not weighted). Upon completi
-
Not able to connect Samsung Galaxy S3 to Mac Pro
Hello Dude, I heade your help here . Last week I bought MacBook Pro notes and Samsung Galaxy 3 mobile.I have Installed OSX V 10.8.2 and Windiws 7. I'm able to connect Samsung Galaxy S3 when i login to Windows 7 and able to transfer files. The problem